while 1:print reduce(int.__mul__,map(eval,raw_input().split("*")))