import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
int N , X, in = 0, out = 0;
int a =10,b=20 ;
Scanner scan =new Scanner(System.in);
N =scan.nextInt();
for (int i = 1; i <= N; i++) {
X =scan.nextInt();
if (X >= a && X <= b) {
in += 1;
}else {
out += 1;
}
}
System.out.print(in+" in\n"+out +" out\n");
}
}
0 comentários:
Postar um comentário