#c221103. 欧拉函数

欧拉函数

Euler's Totient Function

Problem Description

You are given TT, representing TT groups of data. Each group contains one number nn; output its Euler's totient function φ(n)\varphi(n).

Input Format

The first line contains a number TT.

The next TT lines each contain a number nn.

Output Format

A total of TT lines, each with one number representing the Euler's totient function φ(n)\varphi(n) of that number.

Sample Input

2
12345
987654321

Sample Output

6576
619703040

Constraints

For 100%100\% of the data, 1≤T≤103,1≤n≤1091\leq T\leq 10^3, 1\leq n \leq 10^9.