import sys input=lambda: sys.stdin.readline().rstrip() v,t=map(str,input().split()) v=int(v[2:]) t=int(t) print(v*t//10000)