#include using namespace std; char s[100]; int main(){ scanf("%s",s+1); int n=strlen(s+1); for (int i=1;i