In order to stop the division among the fighters, the government of Eniarku decided to test the mathematical skills of the soldiers, while also boosting their morale in the fight against the invaders.
Given three integers and , find the number of integers in the range such that they are not multiple of any of the integers in the range . Since the answer can be really big, you need to print the remainder of the answer modulo .
Since this is an easy challenge for the leader of Eniarku, he wants to see if you are up to the challenge.
Input
The first line of the input contains three integers, , and (), ().
For tests worth points, .
For tests worth more points, .
For tests worth more points, .
For tests worth more points, .
Output
The output will contain the answer, modulo .
Examples
stdin
1 14 5
stdout
4
stdin
392692 6382655 20
stdout
1024429
Explanation
For the first sample, the numbers which are not divisible by either or are and .