a,b=map(float,input().split()) print(round(a*10000*b)//10000)