#include<iostream> using namespace std; int main() { int n,num,n1=0,n5=0,n10=0; cin>>n; for (int i=0;i<n;i++){ cin>>num; if (num==1){ n1++; } if (num==5){ n5++; } if (num==10){ n10++; } } cout<<n1<<endl<<n5<<endl<<n10<<endl; }