Fresh Matrix

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

문제

A matrix of 0s and 1s is good if there are no two 1s in two matrix cells which share a side.

A matrix of 0s and 1s is connected if between all pairs of 0s there is a path which doesn't contain any 1s, and every two consecutive cells of the path share a side.

How many good connected matrices of 0s and 1s with nn rows and mm columns are there? As the answer can be rather big, print only its remainder modulo prime pp.

입력

On the first line, you are given three integers nn, mm, and pp: the number of rows and columns in the matrix and an integer you should use for taking the modulo (2n112 \le n \le 11; 1m1091 \le m \le 10^9; 2p1092 \le p \le 10^9; pp is prime).

출력

Print one integer: the number of good connected matrices modulo pp.