#include using namespace std; int main() { string s; cin >> s; int min = 2100000000; int len=s.size(); for(int i=0; i ((k-i)+1))min = (k-i)+1; } } } } if(min == 2100000000)cout << -1; else cout << min; return 0; }