import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    }
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    } main {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String a=sc.nextLine(); a sc.nextLine() sc.nextLine sc System.out.println(a.replace("017","018")) System.out.println System.out System System.out a.replace("017","018") a.replace a "017" "018" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      System.out.println(a.replace("017","018"));
    }
}
