@@ -0,0 +1,686 @@
+package com.javarush.task.task05.task0507;%0A%0A/* %0A%D0%A1%D1%80%D0%B5%D0%B4%D0%BD%D0%B5%D0%B5 %D0%B0%D1%80%D0%B8%D1%84%D0%BC%D0%B5%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B5%0A*/%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.InputStreamReader;%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A        int sum = 0, inputValue = 0, quantity = 0;%0A%0A        while (true) %7B%0A            inputValue = Integer.parseInt(reader.readLine());%0A            if (inputValue == -1) %7B%0A                reader.close();%0A                break;%0A            %7D%0A            sum += inputValue;%0A            quantity += 1;%0A        %7D%0A%0A        System.out.println((double)sum / quantity);%0A    %7D%0A%7D%0A%0A

Complete task0507