#!/usr/bin/python

# Python program to multiply many integers.
# Used with "matho-primes" to calculate large primorials.
# Primorials are the product of all primes up to a given number.
# Usage: matho-primes | ./mult

import string

prod = 1
input_line = raw_input()
while input_line:
	for s in string.split(input_line):
		prod *= int(s)
	try:
		input_line = raw_input()
	except:
		break;
print prod
