import java.util.Scanner;
public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	}
} Main private static Scanner sc; sc public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	} main {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	} sc = new Scanner(System.in) sc new Scanner(System.in) String input_str = sc.next(); input_str sc.next() sc.next sc String before_fix = "2017"; before_fix "2017" String after_fix = "2018"; after_fix "2018" if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		} input_str.startsWith(before_fix) input_str.startsWith input_str before_fix {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		} input_str = input_str.replaceFirst(before_fix,after_fix) input_str input_str.replaceFirst(before_fix,after_fix) input_str.replaceFirst input_str before_fix after_fix System.out.println(input_str) System.out.println System.out System System.out input_str String[] args args public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	}
} public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	}
} Main
import java.util.Scanner;
public class Main {
	private static Scanner sc;

	public static void main(String[] args) {
		sc = new Scanner(System.in);
		String input_str = sc.next();
		String before_fix = "2017";
		String after_fix = "2018";
		if(input_str.startsWith(before_fix)) {
			input_str = input_str.replaceFirst(before_fix,after_fix);
		};
		System.out.println(input_str);
	}
}
