Start: Sep, 19, 2017 22:00:00
2017程序设计基础第二章作业
End: Dec, 04, 2017 02:00:00
Time elapsed:
Time remaining:

【C系列2.9】吉祥物学数学2 1939

Time Limit:  1 s      Memory Limit:   128 MB
Submission:1415     AC:313     Score:1

Description

Loy要考验吉祥物cjc的智商,她让吉祥物判断一个数和2,3的关系。

Input

第一行输入T,表示有T组测试数据。

每组测试数据输入一个自然数n。

Output

如果n能被3和2整除,则输出”n divisible by 2 and 3? 1”,否则输出”n divisible by 2 and 3? 0”;

如果n能被3整除或者能被2整除,则输出”n divisible by 2 or 3? 1”,否则输出”n divisible by 2 or 3? 0”;

如果n能被2,3其中一个整除则输出”n divisible by 2 or 3, but not both? 1”,否则输出”n divisible by 2 or 3, but not both? 0”。

Samples

input
1 18
output
18 divisible by 2 and 3? 1 18 divisible by 2 or 3? 1 18 divisible by 2 or 3, but not both? 0