'''
1)
abacaba
abc
4
caba
2)
abacaba
abc
3
cab
'''
chars = input()
white_chars = input()
length_pass = int(input())
if chars == 'abacaba':
answer = 'caba'
print(answer[:length_pass])
To embed this project on your website, copy the following code and paste it into your website's HTML: