Problem H. Product of coprimes
时间限制 1000 ms
内存限制 32 MB
You are given a positive integer m. Calculate the product of all positive integers less then or equal to m and coprime with m, and give the answer modulo m.
输入数据
输出数据
In the output file you should write the answer to the task.
样例输入
样例输出
$ Mathjax font initiator $