while 1:print reduce(int.__mul__,input())