class Student:
def __init__(self,student_name,studentID,points,grades):
self.student_name=student_name
self.studentID=studentID
self.points=points
self.grades=grades
def information(self):
print(f"{self.student_name}'s student number is {self.studentID}, and his grade is {self.points}. He submitted {len(self.grades)} assignments, each with a grade of {' '.join(self.grades)}")
student_name=input()
studentID=input()
points=int(input())
grade=input().split(" ")
student=Student(student_name,studentID,points,grade)
student.information()