import sys input=lambda: sys.stdin.readline().rstrip() a,b=map(int,input().split()) n,m=len(str(a))-1,len(str(b))-1 if a<0: n-=1 if b<0: m-=1 if a==(a//(10**n))*10**n and b==(b//(10**m))*10**m and n>=2 and m>=2: print((a//(10**n))*(b//(10**m))*(10**(n+m-1))) else: if a*b<-99999999 or 99999999