#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int v[n], Trocados = 0, Conserto = 0;
for(int i=0; i<n; i++){
scanf("%d", &v[i]);
if(v[i]<50){
Trocados++;
}
else if(v[i]<85){
Conserto++;
}
}
printf("%d %d", Trocados, Conserto);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: