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