#include #include #include #include using namespace std; int main(){ string s; cin>>s; int ans = -1; for(int i=0;i subs; string front = s.substr(i,s.size()); for(int j=0;j