#include <bits/stdc++.h>
using namespace std;
int main()
{
    int k,b=0,c=0,d=0;
    cin>>k;
    for(int i=0;i<k;i++)
    {
        int a;
        cin>>a;
        if(a==1)
        {
            b++;
        }
        if(a==5)
        {
            c++;
        }
        if(a==10)
        {
            d++;
        }
    }
    cout<<b<<endl;
    cout<<c<<endl;
    cout<<d<<endl;
    return 0;
}

0 comments

No comments so far...

Information

ID
790
Time
1000ms
Memory
256MiB
Difficulty
5
Tags
# Submissions
50
Accepted
19
Uploaded By