```
import java.io.*;
public class Solution
{
public static void main(String[] args) throws Exception
{
// program reads numbers from keyboard
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int neg = 0;
int pos = 0;
while (true)
{
String s = reader.readLine();
if (s.equals("")) break;
int number = Integer.parseInt(s);
//display # negative #s
if (number < 0) neg++;
//display # positive #s
if (number > 0) pos++;
}
System.out.println("Number of negative numbers: " + neg);
System.out.println("Number of positive numbers: " + pos);
}
}
```

package com.codegym.task.task04.task0429;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution
{
public static void main(String[] args) throws Exception
{
// program reads numbers from keyboard
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int neg = 0;
int pos = 0;
while (true)
{
String s = reader.readLine();
if (s.equals("")) break;
int number = Integer.parseInt(s);
//display # negative #s
if (number < 0) neg++;
//display # positive #s
if (number > 0) pos++;
}
System.out.println("Number of negative numbers: " + neg);
System.out.println("Number of positive numbers: " + pos);
}
}

Use the keyboard to enter three integers" Code doesn't work. I entered 3 integers per the instruction and nothing happens