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