#include using namespace std; using pint = pair< int, int >; using ull = unsigned long long; template< typename T > void output( T&& range ) { for_each( begin( range ), end( range ), []( auto&& t ) { cerr << t << endl; } ); } int main() { int n = 0; pint ret {}; cin >> n; for( int i=0 ; i> t; ( t == 4 ? ret.first : ret.second )++; } cout << ret.first << " " << ret.second << endl; }