#include <bits/stdc++.h>
using namespace std;
int main() {
  long long s[1000000];
  int num, max = 1000000;
  cin >> s[max];
  for (int i = 0; i < max; i++) {
    if (s[i] == '?') {
      s[i] = 0;
    }
  }
  for (int i; i < max; i++) {
    cout << s[i];
  }
  cout << s[max] << endl;
  return 0;
}
