You are given a natural number N and an integer K. Write a program that computes the remainder of the binomial coefficient (KN) divided by M. M is not guaranteed to be prime.
Input
The first line contains N, K, and M, separated by spaces. (1≤N≤4×106, 0≤K≤N, 2≤M≤4×106)
Output
Print the remainder of (KN) divided by M on the first line.