Points

medium
https://codeforces.com/contest/76/problem/E

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input
Check the link
Output
Check the link
Previous
Almost All Divisors
Next
Mafia

Related Questions