#include using namespace std; using ll = long long; int main(){ ll g, a, b=1, p=0, N; string S, T=""; cin >> S; N = S.size(); for (int i=0; i