## Introduction

It is the almost the end of the first semester and your teacher has to make a student report. Can you write a computer program to help your teacher out?

Write a program that outputs each students, average score, the score in the first test, and the score in the last test for each subject.

## Input

A list of unsorted student records (student name, subject, test number, score). The last line contains the string END, do not process this line.

ADAM ENG 1 71
BETH SCI 1 79
BETH SCI 2 97

ADAM ENG 82 71 84