14686 - Multiple determination   

Description

Write a program that reads a positive integer.

  • If the integer is a multiple of 3 but not a multiple of 5, output 1.

  • If the integer is a multiple of 5 but not a multiple of 3, output 1.

  • In all other cases, output 0.

For example:

  • If the input is 36 or 20, the output should be 1.

  • If the input is 30 or 7, the output should be 0.

Input

A positive integer

Output

The result of the rules.

 

If the input is 36 or 20, the output should be 1.

If the input is 30 or 7, the output should be 0.

Sample Input  Download

Sample Output  Download




Discuss