import java.util.*;
public class Question3 {
	
	public static void main(String[] args) {
		
	    // Declare variables
		int score, total = 0, numtests = 0;
	
    	Scanner stdin = new Scanner(System.in);
    	System.out.println("Enter in the test scores.");
    	System.out.println("Enter a -1 to finish.");
    	score = stdin.nextInt();

		while (score != -1) {
			total = total + score;
			numtests++;
			score = stdin.nextInt();
		}
		
		if (numtests == 0)
			System.out.println("Sorry, there are no tests to average.");
		else
			System.out.println("Test average = "+(double)total/numtests);

  	}
}
