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