#include #include #include #include #include #include using namespace std; int ans =0; int answ[3]; int get(string s){ ans =0; for(int i=s.length()-1;i>=0;i--){ if(i==0){ answ[0] = (answ[0]+(s[i]-'0'))%3; }else { answ[0] = (answ[0]+(s[i]-'0'))*4%3; } if(i==0){ answ[1] = (answ[1]+(s[i]-'0'))%5; }else { answ[1] = (answ[1]+(s[i]-'0'))*4%5; } if(i==0){ answ[2] = (answ[2]+(s[i]-'0'))%15; }else { answ[2] = (answ[2]+(s[i]-'0'))*4%15; } } return ans; } int main() { string s ; cin>>s; /* int digit[s.length()]; for(int i=0;i=0;i--){ if(i==0){ ans = (ans+(s[i]-'0')); }else { ans = (ans+(s[i]-'0'))*4; } }*/ /* cout<