v, t = map(str, input().split()) v = int(v[2:]) print(int(v*int(t)/10000))