import java.util.Scanner;

public class Main {


    public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    }

    void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    }

}




 import java.util.Scanner; Scanner java.util public class Main {


    public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    }

    void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    }

} Main public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    } main {

    	Main main=new Main();

    	main.run();

    } Main main=new Main(); main new Main() main.run() main.run main String[] args args void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    } run {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String S=sc.next(); S sc.next() sc.next sc System.out.println(S.replaceAll("2017", "2018")) System.out.println System.out System System.out S.replaceAll("2017", "2018") S.replaceAll S "2017" "2018" public class Main {


    public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    }

    void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    }

} public class Main {


    public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    }

    void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    }

} Main
import java.util.Scanner;

public class Main {


    public static void main(String[] args) {

    	Main main=new Main();

    	main.run();

    }

    void run() {
    	Scanner sc=new Scanner(System.in);

    	String S=sc.next();



    	System.out.println(S.replaceAll("2017", "2018"));
    }

}





