import java.io.*;
import java.util.*;
public class StudentGrades {
public static void parseLine(String line) {
Scanner parse = new Scanner(line);
String email = parse.next();
String lname = parse.next();
String fname = parse.next();
double sum=0.0;
int min=Integer.MAX_VALUE;
int max=Integer.MIN_VALUE;
int cnt=0;
while (parse.hasNextInt()) {
int next = parse.nextInt();
sum += next;
if (next<min) {
min=next;
}
if (next>max) {
max=next;
}
cnt++;
}
double avg=0.0;
if (cnt!=0) {
avg = sum / cnt;
}
parse.close();
System.out.printf("%s %s (%s): low of %d, high of %d, average of %.2f\n", fname, lname, email, min, max, avg);
}
public static void main(String[] args) throws FileNotFoundException {
Scanner file = new Scanner(new File("grades.txt"));
while (file.hasNextLine()) {
String line = file.nextLine();
parseLine(line);
}
file.close();
}
}