'''

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])

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: