# Type your code here.
filename = input().strip()

with open(filename, 'r') as file:
    for line in file:
        photo_name = line.strip()
        info_name = photo_name.replace('_photo.jpg', '_info.txt')
        print(info_name)

Embed on website

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