import java.io.*;

public class Exec4_2 {
  public static void main(String[] args) {
    if (args.length!=1) {
      System.out.println("Please provide a input file name in command line.");
      System.exit(-1);
    }

    try {
      BufferedReader input=new BufferedReader(new FileReader(args[0]));
      String line;
      float sum=0;
      int count=0;

      line=input.readLine();
      while (line!=null) {
        int number=Integer.parseInt(line);

        // Output and sum the input
        System.out.println(line);
        sum=sum+number;
        count++;

        line=input.readLine();
      }

      System.out.println("Avarage is : "+(sum/count));

      input.close();
    } catch (IOException e) {
    }
  }
}