class Student:
  name = None
  id = None
  gpa = None
# Student specification ends here

def outputStudents(student):
  for i in range(len(student)):
    print("Name = {:30}".format(student[i].name), end="") 
    print(" ID = {:07}".format(student[i].id), end="") 
    print(", gpa =", student[i].gpa)
# outputStudents ends here

# main program starts here
try: # open a file for input
  fin = open("students.txt")
  student = [] # an empty collection
except:
  print("file not found")
  exit() # end the program NOW

# read and save the records
for lineFromFile in fin:
  aStudent = Student()  
  aStudent.name = lineFromFile.strip()
  aStudent.id = int(fin.readline().strip())
  aStudent.gpa = float(fin.readline().strip())
  fin.readline() # skip the ---------- separator

  student[len(student):] = [aStudent] # copy to the end 
fin.close() # done with the file

outputStudents(student)