v, t = input().split() v = int(v.split('.')[1]) t = int(t) ans = v*t print(ans//10000)