from decimal import *

A,B =[Decimal(x) for x in input().split(' ')]

print((int(A*B)))
A,B=[int(x.replace('.','')) for x in input().split(' ')]

print((A*B//100))
from decimal import *

A, B = [Decimal(x) for x in input().split(" ")]
print((int(A * B)))

A, B = [int(x.replace(".", "")) for x in input().split(" ")]
print((A * B // 100))

-from decimal import * - -A, B = [Decimal(x) for x in input().split(" ")] -print((int(A * B))) +A, B = [int(x.replace(".", "")) for x in input().split(" ")] +print((A * B // 100))