DWITE Contest

Test Case for Question #3 in DWITE 2007-2008 High School Round 5

Contest: DWITE 2007-2008 High School Round 5
Question: #3
Input File: DATA3.txt
Output File: OUT3.txt


Input

0
13
12
128
15




Output

0
1
0
1
0