#P1553F. Pairwise Modulo
Pairwise Modulo
Description
You have an array consisting of distinct positive integers, numbered from to . Define as where denotes the remainder when is divided by . You have to find and print .
The first line contains — the length of the array ().
The second line contains space-separated distinct integers (, if ).
Print integers .
Input
The first line contains — the length of the array ().
The second line contains space-separated distinct integers (, if ).
Output
Print integers .