UVA524 素数环 Prime Ring Problem
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=7&page=show_problem&problem=465
[PDF](https://uva.onlinejudge.org/external/5/p524.pdf)

Input Format

Output Format
