class Student:
    def __init__(self, a, b, c, d):
        self.姓名 = a
        self.学号 = b
        self.学生得分 = c
        self.作业等级 = d

    def show(self):
        return f"{self.姓名}'s student number is {self.学号}, and his grade is {self.学生得分}. He submitted {len(self.作业等级.split())} assignments, each with a grade of {self.作业等级}"


f = Student(input(), input(), input(), input())
print(f.show())