    import java.util.Scanner;

    public class Main {
    	public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	}
    } import java.util.Scanner; Scanner java.util public class Main {
    	public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	}
    } Main public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	} main {
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String insert = sc.next(); insert sc.next() sc.next sc final String SEIKAI_YEAR = "2018"; SEIKAI_YEAR "2018" System.out.println(insert.replace("2017",SEIKAI_YEAR)) System.out.println System.out System System.out insert.replace("2017",SEIKAI_YEAR) insert.replace insert "2017" SEIKAI_YEAR String[] args args public class Main {
    	public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	}
    } public class Main {
    	public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	}
    } Main
    import java.util.Scanner;

    public class Main {
    	public static void main(String[] args){
    		 Scanner sc = new Scanner(System.in);
    		 String insert = sc.next();
    		 final String SEIKAI_YEAR = "2018";


    		 System.out.println(insert.replace("2017",SEIKAI_YEAR));
    	}
    }