a,b=input().split()
b=int(b)
a=a[2:]
h=int(a)*b

if len(str(h))<=4:
    print(0)
else:
    print(str(h)[:-4])