題目來源:judgegirl from ntu prof. pangfeng Liu
Task Description
Write a program to print if the input is a multiple of , and is a multiple of , but is not a multiple of . Otherwise, print .
如果 是 和 的倍數且不是 的倍數,在螢幕上輸出 0
。其他情況輸出 1
。
Input Format
There is one line in the input. The line has a number .
Output Format
There is one line in the output. The line has if the input is a multiple of , and a multiple of , but not a multiple of . Otherwise, the output is .
Sample Input
15
Sample Output
0
Sample Input
105
Sample Output
1