v,t= input().split() t=int(t) v=v[2:] h=int(v)*t if len(str(h)) <= 4: print(0) else: print(str(h)[:-4])