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