#include using namespace std; typedef long long ll; typedef vector vi; typedef vector vl; typedef pair pii; typedef int _loop_int; #define REP(i,n) for(_loop_int i=0;i<(_loop_int)(n);++i) #define FOR(i,a,b) for(_loop_int i=(_loop_int)(a);i<(_loop_int)(b);++i) #define FORR(i,a,b) for(_loop_int i=(_loop_int)(b)-1;i>=(_loop_int)(a);--i) #define DEBUG(x) cout<<#x<<": "<>n; string s; //string tmp; queue q; int ans = 0; REP(i,n){ char c; cin>>c; if(c=='3'||c=='5'||c=='7'){ ans++; continue; } s += c; } char tmp ='0'; REP(i,s.size()){ if(s[i]=='1'){ if(tmp=='1'){ ans++; tmp='0'; }else{ tmp='1'; } }else if(s[i]=='9'){ if(tmp=='1'){ ans++; tmp='0'; } }else{ //cout<<"Error!"<