#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, l, idx = -1;
  string s;
  cin >> s;
  l = s.length();
  if (l < 26) {
    cout << -1 << endl;
    exit(0);
  }
  for (i = 0; i < l; i++) {
    if (s[i] == 'a') {
      idx = i;
      break;
    }
  }
  if (idx == -1) {
    cout << -1 << endl;
    exit(0);
  }
  if (l - idx < 26) {
    cout << -1 << endl;
    exit(0);
  }
  long long t = 98;
  for (i = idx + 1; i < l; i++) {
    if (t == 123) {
      break;
    }
    if (s[i] - t == 0) {
      t++;
      continue;
    } else if (t - s[i] > 0) {
      s[i] = s[i] + (t - s[i]);
      t++;
      continue;
    } else if (t - s[i] < 0) {
      continue;
    }
  }
  if (t == 123) {
    cout << s << endl;
  } else {
    cout << -1 << endl;
  }
  return 0;
}
