students = ["Терехов", "Жалнин", "Бушманов", "Соловьёва"]
summer_grades = [4.5, 3.8, 4.2, 4.9]
winter_students = ["Бушманов", "Соловьёва", "Терехов", "Жалнин"]
winter_grades = [4.1, 4.7, 4.3, 3.9]

surname = input("Введите фамилию студента: ")

if surname in students:
    summer_index = students.index(surname)
    summer_grade = summer_grades[summer_index]
    
    winter_index = winter_students.index(surname)
    winter_grade = winter_grades[winter_index]
    
    print(f"Студент {surname}:")
    print(f"  Летняя сессия: {summer_grade}")
    print(f"  Зимняя сессия: {winter_grade}")
else:
    print(f"Студент {surname} не найден в списке")