Radical has an array consisting of n integers.Each integer a[i] equals to 1,or to -1.Also Radical asks you m queries.
Query number i is given as a pair of integers L[i],R[i](1<=L[i]<=R[i]<=n)
The response to the query will be integer 1, if the elements of array a can be rearranged so as the sum a[L[i]] + ... + a[R[i]] = 0,
otherwise the response to the query will be integer 0.
Print m integers — the responses to Radical's queries in the order they occur in the input.