v, t = input().split() v = int(round(float(v) * 10000)) t = int(t) print(v * t // 10000)