while 1:a,b=map(int,input().split());print(('%%d.%0*d'%(b,a%10**b)).strip('.0')%(a//10**b))