import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    static HashMap<String,Integer>dp;
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    }
}



 import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main {
    static HashMap<String,Integer>dp;
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    }
} Main static HashMap<String,Integer>dp; dp public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    } main {
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    } Scanner in=new Scanner(System.in); in new Scanner(System.in) String str=in.nextLine(); str in.nextLine() in.nextLine in StringBuilder sb=new StringBuilder(str); sb new StringBuilder(str) System.out.println(sb.replace(0,4,"2018")) System.out.println System.out System System.out sb.replace(0,4,"2018") sb.replace sb 0 4 "2018" String []args args public class Main {
    static HashMap<String,Integer>dp;
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    }
} public class Main {
    static HashMap<String,Integer>dp;
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    }
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    static HashMap<String,Integer>dp;
    public static void main(String []args){
        Scanner in=new Scanner(System.in);
        String str=in.nextLine();
        StringBuilder sb=new StringBuilder(str);
        System.out.println(sb.replace(0,4,"2018"));
    }
}




