"The program should display the number of positive numbers in the original set."
This is the condition I did not met. Can someone point out to me where is the error in my code?

package com.codegym.task.task04.task0428;
/*
Positive number
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String num1 = br.readLine();
String num2 = br.readLine();
String num3 = br.readLine();
int x1 = Integer.parseInt(num1);
int x2 = Integer.parseInt(num2);
int x3 = Integer.parseInt(num3);
if (x1 > 0 && x2 > 0 && x3 > 0)
System.out.println(3);
else if ((x1 > 0 && x2 > 0) || (x1 > 0 && x2 > 0) || (x2 > 0 && x3 > 0))
System.out.println(2);
else if (x1 > 0 || x2 > 0 || x3 > 0)
System.out.println(1);
else
System.out.println(0);
}
}