a=1 for z in [int(x) for x in raw_input("").split(",")]: a*=z print a