#include<iostream> #include<algorithm> using namespace std; int main() { string str; cin >> str; int len = str.size(); int n1 = len / 3; int n3 = len / 3; int n2 = len - (len / 3) * 2; if (n1 == n2) { n1 = n1 - 1; n3 = n3 - 1; n2 ...