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