#Lutece1001. 能被3和11整除吗

能被3和11整除吗

Migrated from Lutece 1001 能被3和11整除吗

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

读入一个整数,判断该数能否被331111整数。注意该数可能很大,它的范围为[0,10200][0,10^{200}]

Input

有多组测试数据。输入的第一行是整数TT0<T2000<T\le 200),表示测试数据的组数。每一组测试数据只有一行,即为要判断的整数。该行没有其它多余的符号。

Output

对应每组输入,输出一行判断的结果,第一个单词(yesno)表示该数能否被33整除,第二个单词(yesno)表示该数能否被1111整除,两个字符串之间用一个空格隔开。该行不能有其它多余的符号。

Samples

输入数据 1

2
2896
27824277658778257401

输出数据 1

no no
yes no

Resources

wxiaoping C语言练习