q="D"
if q=="A":
	S=input()
	print(sum((i=="+")-(i=="-")for i in S))
if q=="B":
	a=int(input())
	b=sum(int(i) for i in str(a))
	print("Yes" if a%b==0 else "No")
if q=="C":
	N,K=map(int,input().split())
	A=[int(i) for i in input().split()]
	func=lambda a,b:int(a/b) if a%b==0 else int(a/b+1)
	print(1+func((len(A)-K),K-1))
if q=="D":
	K=int(input())
	S=lambda x:sum(int(i) for i in str(x))
	#for i in range(1,110):
	count=0
	i=1
	while True:
		print(i)
		i+=1
		count+=1
		if count==K or count==9:
			break
	i=1
	while True:
		print(i*10+9)
		i+=1
		count+=1
		if count==K:
			break

