Boolean
Boolean-08
Boolean-09
Boolean-10
~/algor $ cat problems/uchga-yoki-beshgami
Divisible by three or five?
Easy
1000 ms
64 MB
13%
A positive integer $n$ is given. Check whether the statement is true: “$n$ is divisible without a remainder by $3$ or by $5$, but not by both”.
Input
One integer $n$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$1 \le n \le 10^{9}$
Examples
Input #1
9
Output #1
1
Input #2
30
Output #2
0