#include using namespace std; string S; main() { cin>>S; int cnt=0; for(int i=0;i<1<>j&1)now+=tmp,tmp=0; } now+=tmp; bool ok=true; for(long p=2;p*p<=now;p++)if(now%p==0) { ok=false; break; } cnt+=ok; } cout<