import java.util.*;

public class Main{

     public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     }
} import java.util.*; util.* java public class Main{

     public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     }
} Main public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     } main {
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     } String S S A; A Scanner sc = new Scanner(System.in); sc new Scanner(System.in) S = sc.nextLine() S sc.nextLine() sc.nextLine sc A = S.substring(0,4) A S.substring(0,4) S.substring S 0 4 if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } A.equals("2018") == false A.equals("2018") A.equals A "2018" false {
           S = S.replace(A, "2018");
        } S = S.replace(A, "2018") S S.replace(A, "2018") S.replace S A "2018" System.out.println(S) System.out.println System.out System System.out S String []args args public class Main{

     public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     }
} public class Main{

     public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     }
} Main
import java.util.*;

public class Main{

     public static void main(String []args){
        String S , A;
        Scanner sc = new Scanner(System.in);
        S = sc.nextLine();
        A = S.substring(0,4);
        if(A.equals("2018") == false){
           S = S.replace(A, "2018");
        } 
        System.out.println(S);
     }
}