fuck-this-problem

Problem Statement 
Unseen gang is the team of most wanted criminal. Unseen gang has planted bombs in different street and corner of the city. Gang members are sitting in the other part of the city, far away from the bomb site. They are controlling the bomb by sending the activation signal in the form of encrypted code.The Enigma crew has found the solution for the encrypted code. They came to know that the code is in the form of string S. Dividing the string up to its length L into many substrings of length N will give them the location of the bomb site.

Your job is to help the Enigma crew in finding the decrypted code. So, they can track the bomb site.

Input Format
The first line contain a string S.
In the second line integer N the length of the substring is given.

Output Format
Output line contain the total number of substrings each in new line.

Constraints 
1 ≤ L ≤ 10000
1 ≤ N=20

SAMPLE INPUT
Vhaveplanted bomb @allthe location intheCITY.
8

SAMPLE OUTPUT
Vhavepla
nted bom
b @allth
e locati
on inthe
CITY.

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
codes = input()
lens  = eval(input())
i = 0
while i < len(codes):
	print(codes[i:i+lens])
	i+=lens
	if i >= len(codes):
		print(codes[i:])
		break


s=input()
n=int(input())
while s!='':
	s1 = s[:n]
	print(s1)
	s=s[n:]



s = input()
n=eval(input())
i=0
while i<len(s):
	print(s[i:i+n])
	i+=n




s=input()
a=eval(input())
i=0
while(i<len(s)):
	print(s[i:i+a])
	i=i+a


x=str(input())
n=int(input())
p=list(x)
t=[]
l=[]
i=0
while(i<len(p)):
	t.append(p[i])
	l=t
	if len(t)==n:
		print((''.join(t)))
		t=[]
	i+=1
if len(l)!=n:
	print((''.join(l)))


		

		
	


s=str(input())
n=int(input())
i=0
while i<len(s):
	a=s[i:i+n]
	print(a)
	i=i+n


s = input()
n = (int)(input())
o = ""
l = len(s)

for i in range(l):
	if (i % n) == 0:
		o=o+'\n'
		o = o+s[i]
	else:
		o = o+s[i]

print(o)



string = input()
n= int(input())
ans = list(string[i:i+n] for i in range(0,len(string),n))
for i in ans:
	print(i)


n = input()
k = int(eval(input()))
i=0
p = k
while(i<=len(n)):
	print((n[i:p]))
	i+=k
	p+=k


s=input()
a=int(input())
i=0
while(i<len(s)):
	print(s[i:i+a])
	i=i+a


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
x = input()
y = eval(input())
c = 0
s = ""
for i in x:
	s = s+i
	c = c+1
	if c==y:
		print(s)
		c = 0
		s = ""
if c!= y:
	print(s)


if __name__=='__main__':
	string1 = input()
	n = int(input())
	count = 1
	st=''
	for i in range(0,len(string1)):
		if count == n:
			st += string1[i]
			print(st)
			st = ''
			count = 1
		   
		else:
			count += 1
			st += string1[i]
	if count <= n:
		print(st)