#!/usr/bin/python3

# Python program to multiply many large integers separated by spaces or newlines.
# The integers to multiply may be entered on the command-line or into standard input.

# Used by "primorial" with "matho-primes" to calculate large primorials.
# A primorial is the product of all primes up to a given number.

import sys
from functools import reduce

if len(sys.argv)>1:
    args = sys.argv[1:]
else:
    args = (w for s in sys.stdin for w in s.split())
print(reduce(int.__mul__, map(int, args), 1))
