Primes And Multiplication

medium
https://codeforces.com/problemset/problem/1228/C

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Example

Input

        
Output

        
Previous
Infinite Prefixes
Next
Laboratory Work

Related Questions