Rabbit
题号:NC237553
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld

题目描述

What a cute rabbit! Mr.Gree has a lot of cute rabbits in the farm, and every rabbit has a number a_1, a_2, a_3...a_n. Different rabbits may have same numbers. Mr.Gree thinks The Cute Value of these rabbits is . One day, he wants to make The Cute Value changed, so he takes away exactly one rabbit and The Cute Value is changed.

Mr.Gree wants to know how many different numbers The Cute Value could be?

For example, Mr.Gree has three rabbits numbered [3,4,5], now The Cute Value is . If he takes away a rabbit numbered 3, The Cute Value will change to . And if he takes away a rabbit numbered 4, now The Cute Value will change to . And if he take away a rabbit numbered 5, now The Cute Value will change to . So The Cute Value could change to 12, 15 or 20 three numbers after one rabbit is took away.

输入描述:

The first line of input contains a single integer 

The second line of input contains n integer means the number that the rabbit has.

输出描述:

print one line contains an integer.
示例1

输入

复制
3
3 4 5

输出

复制
3
示例2

输入

复制
4
1 1 2 2

输出

复制
1
示例3

输入

复制
4
-1 -1 1 1

输出

复制
1

说明

In the second case, initially The Cute Value is 1*1*2*2=4, if Mr.Gree takes away the rabbit numbered 1, The Cute Value is still 4, not changed.But if Mr.Gree takes away the rabbit numbered 2, The Cute Value is 1*1*2=2, The Cute Value is changed to 2, so he can make The Cute Value be one different number.

In the third case, the only way to make The Cute Value change is take away the rabbit numbered -1.