#include using namespace std; int f(const string&s) { int ret=0; int pre=-114514; for(int i=0;i>N; int ans=0; for(;N--;) { string s;cin>>s;ans+=f(s); } if(ans>=4000) { cout<<"ERROR"<