题目描述
Problem Description
Little A has just started learning multiplication. To help him practice, we provide him with several positive integers and ask him to multiply these numbers together.
For most problems, Little A can accurately calculate the answer. However, if the product of these numbers exceeds $10^6$, Little A doesn't know how to proceed.
Please write a program to tell us how Little A would respond.
Input Format
The first line contains an integer $n$, representing the number of positive integers.
Following that, there are $n$ lines, each containing an integer $a$. Little A needs to multiply all these $a$ together.
Output Format
Output one line. If the product exceeds $10^6$, output >1000000; otherwise, output the product of all the numbers.
Sample Input and Output
Sample Input #1
2
3
5
Sample Output #1
15
Sample Input #2
3
100
100
100
Sample Output #2
1000000
Sample Input #3
4
100
100
100
2
Sample Output #3
>1000000
Notes
Data Size and Constraints
For all test data, it is guaranteed that $1 \leq n \leq 50$ and $1 \leq a \leq 100$.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分