You are given an array of
binary integers. You are to print
1
if there is an odd number of s in
, and
0
otherwise.
Input Specification
The first line will contain the integer
.
The next line will contain binary integers,
.
Output Specification
Output 1
if there is an odd number of s in
, and
0
otherwise.
Sample Input
5
1 0 1 1 1
Sample Output
0
Comments