Grid-00100

medium
https://codeforces.com/problemset/problem/1371/D

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Another Problem About Dividing Numbers
Next
Ehab And Prefix Mexs

Related Questions