package test;
import java.util.Scanner;
public class TestStudent {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
Student s=new Student(input.next(),input.nextInt());
Course c[]=new Course[3];
for(int i=0;i<3;i++) {
c[i]=new Course(input.next());
}
System.out.println(s.toString());
}
}
class SchoolMember{
protected String name;
SchoolMember(String name){
this.name=name;
}
}
class Course{
private String courseName;
Course(String courseName){
this.courseName=courseName;
}
public String getCourseName() {
return courseName;
}
}
class Student extends SchoolMember{
private int grade;
Course myCourse[]=new Course[3];
Student(String name,int grade) {
super(name);
this.grade=grade;
}
public void setMyCourse(String myCourseName[]) {
this.myCourse[0]=new Course(myCourseName[0]);
this.myCourse[1]=new Course(myCourseName[1]);
this.myCourse[2]=new Course(myCourseName[2]);
}
public String toString() {
return this.name+"\n"+this.grade+"\n"+this.myCourse[0]+"\n"+this.myCourse[1]+"\n"+this.myCourse[2];
}
}