class Student:
    def __init__(self,name,stuno,score,grade):
        self.__name = name
        self.__stuno = stuno
        self.__score = score
        self.__grade = grade
        
    def printInfo(self):        
        print(f"{self.__name}'s student number is {self.__stuno}, and his grade is {self.__score}. He submitted {len(self.__grade)} assignments, each with a grade of {' '.join(self.__grade)}")
        
        
name = input()
stuno = input()
score = int(input())
grade = input().split()

s = Student(name, stuno, score, grade)
s.printInfo()