#include using namespace std; typedef long long int ll; typedef unsigned long long ull; mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); ll myRand(ll B) { return (ull)rng() % B; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); string s; cin >> s; char c; if(s[0]==s[1])c=s[0]; else{ if(s[0]==s[2])c=s[0]; else c=s[1]; } int n=s.size(); for(int i=0;i