g,j=map(float,input().split()) g=int(g*10000) print(int(g*j//10000))