s = input().split()

s = [int(i) for i in s]

print((s[0] * s[1]))



s = input().split()

s = [float(i) for i in s]



tmp = int(s[0] * ((s[1]*100) //100))

print(tmp)
s = input().split()
s = [int(i) for i in s]
print((s[0] * s[1]))

s = input().split()
s = [float(i) for i in s]
tmp = int(s[0] * ((s[1] * 100) // 100))
print(tmp)

-s = [int(i) for i in s] -print((s[0] * s[1])) +s = [float(i) for i in s] +tmp = int(s[0] * ((s[1] * 100) // 100)) +print(tmp)