Everything seems right... but it does not require only one task. :/
package de.codegym.task.task04.task0428;
/*
Positive Zahl
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int n1 = Integer.parseInt(reader.readLine());
int n2 = Integer.parseInt(reader.readLine());
int n3 = Integer.parseInt(reader.readLine());
//int[] n = {n1,n2,n3};
int count = 0;
/* if(n1 > 0 && n1 != 0){
count++;
if(n2 > 0 && n2 != 0){
count++;
if(n3 > 0 && n3 != 0){
count++;
System.out.println(count);
}
}
}*/
if(n1 > 0 && n1 != 0){
count++;
}
if(n2 > 0 && n2 != 0){
count++;
}
if(n3 > 0 && n3 != 0){
count++;
}
System.out.println(count);
if(n1 < 0 && n2 < 0 && n3 < 0){
System.out.println(0);
}
}
}