#include using namespace std; #define ALL(x) x.begin(),x.end() #define rep(i,n) for(int i=0;i<(n);i++) #define debug(v) cout<<#v<<":";for(auto x:v){cout<bool chmax(T &a,const T &b){if(abool chmin(T &a,const T &b){if(b>n; string s;cin>>s; string t=""; int ans=0; for(auto c:s){ if(c=='3' or c=='5' or c=='7') ans++; else t.push_back(c); } if(t.empty()){ cout<=2){ b-=2;ans++; }else if(a>0){ a--;ans++; }else{ a++; } }else{ if(a>0){ a--;ans++; }else{ b++; } } } cout<