#include using namespace std; using ll = long long; int main() { string s; cin >> s; ll sum = atoi(s.c_str()); ll index = log10(sum) + 1; while (index