#include<iostream> using namespace std; int main() { int n; cin>>n; int h[n],l=0,y=0,r=0,s=0,lz=0; for(int i=1;i<=n;i++){ cin>>h[i]; if(h[i]==0){ l++; } if(h[i]==1){ y++; } if(h[i]==2){ r++; } if(h[i]==3){ s++; } } cout<<l<<endl<<y<<endl<<r<<endl<<s; return 0; }