a,b=map(float,input().split()) a=str(a) print(int(int(a[2:])*b//1000))