V, T = input().split() V = int(V.split(".")[1]) T = int(T) print(V*T//10000)