class Student:
    def __init__(self, name, student_id, score, grades):
        self.name = name
        self.student_id = student_id
        self.score = score
        self.grades = grades

    def print_student_info(self):
        print(f"{self.name}'s student number is {self.student_id}, and his grade is {self.score}. He submitted {len(self.grades)} assignments, each with a grade of {' '.join(self.grades)}")

name = input()
student_id = input()
score = int(input())
grades = input().upper().split()

student = Student(name, student_id, score, grades)
student.print_student_info()