3019: [SDOI2016小学组] 收集瓶盖赢大奖

Memory Limit:256 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

商店推出新活动收集 10 个‘幸运 ’瓶盖或者收集 20 个‘鼓励 ’瓶盖就可以换一份神秘大奖。

Input

第一行,一个整数 n(n<= 1000)。 以下 n 行每行两个数第一个是‘ 幸运 ’瓶盖数,第二个是‘ 鼓励 ’瓶盖数。

Output

以下 n 行如果能兑换便输出“True”,否则便输出“False”

Sample Input Copy

2
11 19
3 19

Sample Output Copy

True
False

HINT