Inv

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

A permutation pp on nn elements is an involution if p(p(i))=ip(p(i)) = i for each ii from 11 to nn inclusive. Your task is to compute the number of involutions on nn elements with kk inversions. To make your life easier, we ask you to print only the parity of this number.

입력

In the only line of the input, two space-separated integers are given: nn (1n5001 \le n \le 500), the length of the involution, and kk (0kn(n1)20 \le k \le \frac{n(n-1)}{2}), the number of inversions.

출력

Print a single number (00 or 11): the number of involutions on nn elements with exactly kk inversions, when taken modulo 22.

힌트

In the first sample, there are 33 such involutions.