Trip Odometer

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

문제

A trip odometer can be used to record the distance driven on a single trip. You are very diligent: at the start of each trip you reset the trip odometer to read 00 and at the end of each trip you write down the distance travelled.

Thus, you maintain a list of distances (in kilometers) taken by all trips. Unfortunately, exactly one number from this list is spurious; you mistakenly recorded the length of one trip you took in another vehicle. You also forget which entry in your list corresponds to this trip.

You want to know all possible total distances that you could have taken in your own vehicle given that one of the written distances was fake. More specifically, all values DD such that it is possible to remove one trip from your list and have the remaining distances sum to DD.

입력

The first line of input contains a single integer NN (2N1052≤N≤10^5), the number of distances you wrote down. The second line of input consists of NN integers d_1,d_2,,d_Nd\_1,d\_2, \dots ,d\_N (1d_i1041≤d\_i≤10^4), where d_id\_i is the length of the iith trip you recorded.

출력

Display two lines. The first line should contain a single number KK, which is the number of possible distinct distances that could be obtained. The second line should contain the list of the KK distinct integers, each of which is a possible sum that can be obtained by removing exactly one of the written distances. The list should be displayed in ascending order.