#include #include using namespace std; using ll = long long; int main() { string t; cin >> t; int n = t.size(); int l = -1, r = -1; for (int i=0; i