package com.codegym.task.task05.task0507; /* Arithmetic mean */ public class Solution { public static void main(String[] args) throws Exception { int sum = 0; int count = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(br.readLine()); while (number != -1) { sum += number; count++; } double mean = sum/count; System.out.println(mean); } }