A,B=map(int,input().split()) if len(str(abs(A)))-1==str(abs(A)).count('0') and len(str(abs(B)))-1==str(abs(B)).count('0') and abs(A)//100>0 and abs(B)//100>0: print(A*B//10) else: print(A*B if -10**8