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