C = input().split()



A = int(C[0])

B = int(float(C[1])*100+0.5)







E = A*B







if E < 100:

    print((0))

elif E < 200:

    print((1))

elif E < 300:

    print((2))

else:

    F = str(E)

    print((F[0:len(F)-2]))
C = input().split()



A = int(C[0])

B = int(float(C[1])*100+0.1)







E = A*B







if E < 100:

    print((0))

elif E < 200:

    print((1))

elif E < 300:

    print((2))

else:

    F = str(E)

    print((F[0:len(F)-2]))
C = input().split()
A = int(C[0])
B = int(float(C[1]) * 100 + 0.5)
E = A * B
if E < 100:
    print((0))
elif E < 200:
    print((1))
elif E < 300:
    print((2))
else:
    F = str(E)
    print((F[0 : len(F) - 2]))

C = input().split()
A = int(C[0])
B = int(float(C[1]) * 100 + 0.1)
E = A * B
if E < 100:
    print((0))
elif E < 200:
    print((1))
elif E < 300:
    print((2))
else:
    F = str(E)
    print((F[0 : len(F) - 2]))

-B = int(float(C[1]) * 100 + 0.5) +B = int(float(C[1]) * 100 + 0.1)