a,b=map(int,input().split()) while b>0: if a%10