Square-free Division (easy Version)

easy
<a href="https://codeforces.com/problemset/problem/1497/E1">https://codeforces.com/problemset/problem/1497/E1</a>

Input Format

.

Output Format

.

Constraints

.

Notice

.

Example

Input
3
5 0
18 6 2 4 1
5 0
6 8 1 24 8
1 0
1
Output
3
2
1
Previous
Nezzar And Board
Next
Celex Update

Related Questions