A,B=map(int,input().split()) ans=A*B n=len(str(A))-1 m=len(str(B))-1 if A%10**n == 0 and B%10**m == 0: ans=int(A*B/10) else: if -99999999>ans or 99999999