import java.io.*;
import java.text.*;
import java.util.*;
 
class Student
{
  String name;
  int id;
  float gpa;
} // Student

public class StudentCollection
{
  static void printStudents(ArrayList<Student> student)
  {
    String blank = "                              ";
    int i;
    for (i = 0; i < student.size(); i++)
    {
      Student s = student.get(i);
      System.out.print("Name = " + s.name);
      System.out.print(blank.substring(s.name.length()));
      System.out.print(" ID = "
        + new DecimalFormat("0000000").format(s.id));
      System.out.println(" gpa = " + s.gpa);
    } // for
  } // printStudents

  public static void main(String[] argv) throws Exception
  {
    BufferedReader fin;
    fin = new BufferedReader(new FileReader("students.txt"));
 
    // create an empty list
    ArrayList<Student> student = new ArrayList<Student>();
 
    // read and save the records
    while (fin.ready())
    {
      Student aStudent = new Student();
      aStudent.name = fin.readLine();
      aStudent.id = new Double(fin.readLine()).intValue();
      aStudent.gpa = new Double(fin.readLine()).floatValue();

      fin.readLine(); // skip the separator line

      student.add(aStudent);
    } // while
    fin.close();
 
    printStudents(student);
  } // main
} // public class
