#include <bits/stdc++.h>
using namespace std;
int main() {
  string S;
  cin >> S;
  bool a = 0;
  int cnt, N = S.size();
  for (int i = 0; i < N - 1; i++) {
    if (i == N - 2 && S.at(i) == S.at(i + 1) && a == 0) {
      cout << "a" << i << cnt;
      break;
    } else if (i == N - 2 && (S.at(i) != S.at(i + 1) || a == 1)) {
      cnt++;
      cout << "b" << i << cnt;
      break;
    } else if (S.at(i) == S.at(i + 1) && a == 0) {
      i++;
      a = 1;
      cnt++;
      cout << "c" << i << cnt;
    } else if (a == 0) {
      cnt++;
      cout << "d" << i << cnt;
    } else if (a == 1) {
      a = 0;
      cnt++;
      cout << "d" << i << cnt;
    }
  }
  cout << cnt + 1;
}
