inpt = raw_input().split() v = int(float(inpt[0])*10000) t = int(inpt[1]) print v*t/10000