#include #define endl '\n' using namespace std; string n; int main(){ cin >> n; for(int i = 0; i < n.size(); i++){ if(n[i] == '4') cout << '8'; else cout << n[i]; } return 0; }