文件目录

#include <iostream>
using namespace std;
int main()
{
    int n, a, sum = 1;
    cin >> n;
    bool f = true;
    while (n--)
    {
        cin >> a;
        sum *= a;
        if (sum > 1000000)
        {
            cout << ">1000000";
            f = false;
            break;
        }
    }
    if (f)
        cout << sum;
    return 0;
}