filenames = input().split()
not_found = []
for name in filenames:
try:
with open(name, 'r', encoding='utf-8') as file:
content = file.read().strip()
print(content)
except FileNotFoundError:
not_found.append(name)
if not_found:
print(f"Файлы не найдены: {' '.join(not_found)}")