import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a= Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int count = 0;
if (a>0) {
count ++;
}
if (b>0) {
count ++;
}
if (c>0) {
count++;
System.out.println(count);
}
else {
System.out.println(0);
}
}
}package com.javarush.task.task04.task0428;
/*
Положительное число
Ввести с клавиатуры три целых числа. Вывести на экран количество положительных чисел среди этих трех.
Примеры:
а) при вводе чисел
-4
6
6
получим вывод
2
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a= Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int count = 0;
if (a>0) {
count ++;
}
if (b>0) {
count ++;
}
if (c>0) {
count++;
System.out.println(count);
}
else {
System.out.println(0);
}
}
}