#include <iostream> using namespace std; int main() { int a, c; cin >> a; int b = 1; for (int i = 1; i <= a; i++) { cin >> c; b *= c; } cout << b; }