a,b,s=io.read(2,2,10)for i=-1,99+#s/2 do a,b=b,(a+b)%10,i<#s/2 or io.write(b,' ')end