def LI():return list(map(int,input().split()))

def yes():return print("Yes")

def no():return print("No")

from collections import deque, defaultdict, Counter

from heapq import heappop, heappush

import math

from decimal import Decimal

# pi=math.pi

# print(pi)

# yes()

# no()

# n=int(input())



# s=input()

a,b=map(Decimal,input().split())

a=100*a

b=100*b

# print(type(a),type(b))

print(a*b//10000)

a,b=input().split()

b=b.replace(".","")

a=int(a)

b=int(b)

ans=a*b//100

print(ans)
def LI():
    return list(map(int, input().split()))


def yes():
    return print("Yes")


def no():
    return print("No")


from collections import deque, defaultdict, Counter
from heapq import heappop, heappush
import math
from decimal import Decimal

# pi=math.pi
# print(pi)
# yes()
# no()
# n=int(input())
# s=input()
a, b = map(Decimal, input().split())
a = 100 * a
b = 100 * b
# print(type(a),type(b))
print(a * b // 10000)

a, b = input().split()
b = b.replace(".", "")
a = int(a)
b = int(b)
ans = a * b // 100
print(ans)

-def LI(): -    return list(map(int, input().split())) - - -def yes(): -    return print("Yes") - - -def no(): -    return print("No") - - -from collections import deque, defaultdict, Counter -from heapq import heappop, heappush -import math -from decimal import Decimal - -# pi=math.pi -# print(pi) -# yes() -# no() -# n=int(input()) -# s=input() -a, b = map(Decimal, input().split()) -a = 100 * a -b = 100 * b -# print(type(a),type(b)) -print(a * b // 10000) +a, b = input().split() +b = b.replace(".", "") +a = int(a) +b = int(b) +ans = a * b // 100 +print(ans)