# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll

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