file_path = input().split("\\")
name_and_ext = file_path[-1].split(".")
file_name = name_and_ext[0]
file_extension = name_and_ext[1]

print(f"File name: {file_name}\nFile extension: {file_extension}")
77d894980f8a8c0830d3fc849289dee2243d3fb6
<mask token>

<mask token>
print(f"""File name: {file_name}
File extension: {file_extension}""")

file_path = input().split('\\')
name_and_ext = file_path[-1].split('.')
file_name = name_and_ext[0]
file_extension = name_and_ext[1]
print(f"""File name: {file_name}
File extension: {file_extension}""")

file_path = input().split("\\")
name_and_ext = file_path[-1].split(".")
file_name = name_and_ext[0]
file_extension = name_and_ext[1]

print(f"File name: {file_name}\nFile extension: {file_extension}")