#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
using P = pair<char, int>;
int main() {
  string s;
  cin >> s;
  deque<P> deq;
  const int len = s.size();
  bool all_x = true;
  cout << -1;
}
