v,t=input().split() t=int(t) if v=='1.0000': print(t) else: _,V=v.split('.') print(int(V)*t//10000)