public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(system.in));

        double a = 0;
        double b = 0;

        while(true)
        {
            int liczba = Integer.parseInt(reader.readLine());
            if (liczba == -1)
            {
                 break;
            }
            else
            {
                a++;
                b = b + a;
            }
        }
        double c = a/b;
        System.out.println(c);
    }
}
pl/codegym/task/task05/task0507/Solution.java:9: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(system.in)); ^ symbol: class BufferedReader location: class pl.codegym.task.task05.task0507.Solution