Need More T-shirts!

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

The Innopolis Open 2020 is coming. And this means that it’s time to order T-shirts for the participants of the Olympiad.

The organizers decided that it would be great to buy T-shirts of different colors so that you can easily see who is the organizer, jury or participant of the Olympiad.

For this task, two people were assigned, they decided how many T-shirts of each color should be ordered. However, they did not agree among themselves, and one of them wrote down the number of T-shirts of a certain color that needs to be ordered, and the other wrote the percentage of T-shirts of a certain color. As a result, they got a list of length nn, where each element of the list a_ia\_i is either the number of T-shirts of color ii or the percentage of T-shirts of color ii of the total number of T-shirts. Moreover, it is known that in the list at least one element a_ia\_i is the number of T-shirts of the color ii.

Now the organizers need to understand, what is the total of T-shirts they need to buy for the olympiad. Help them find all possible options for the total number of T-shirts for which such a list could be obtained.

입력

The first line contains a single integer nn, the number of different colors (1n1051 \le n \le 10^5).

The second line contains nn integers a_ia\_i, either the number of T-shirts or the percentage of t-shirts for the color ii (1a_i 1091 \le a\_i \le 10^9).

출력

In the first line print the number of options for the total number of T-shirts for which such a list could be obtained.

In the second line print all possible options for the total number of T-shirts, in sorted order.

힌트

Explanation of the first example:

If the total number of T-shirts is 22: one of color 11, and one of color 22, we can obtain the given list if the first element (11) is the number of T-shirts of color 11, and the second element (5050) is the percentage of T-shirts of color 22. 2=1+2 501002 = 1 + 2 \cdot \frac{50}{100}.

If the total number of T-shirts is 5151: one of color 11, and 5050 of color 22, we can obtain the given list, if both elements are the numbers of T-shirts of colors 11 and 22. 51=1+5051 = 1 + 50.

Explanation of the second example:

  • 120=20+30+70120 = 20 + 30 + 70
  • 125=12520100+30+70125 = 125 \cdot \frac{20}{100} + 30 + 70
  • 140=14020100+14030100+70140 = 140 \cdot \frac{20}{100} + 140 \cdot \frac{30}{100} + 70
  • 300=30020100+30+30070100300 = 300 \cdot \frac{20}{100} + 30 + 300 \cdot \frac{70}{100}