a = input().split() b = a[0].split('.')[1] s = str(int(a[1])*int(b))[:-len(str(b))] print(s if len(s) else 0)