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