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