import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	}


}


 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	}


} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) String str = reader.next(); str reader.next() reader.next reader String ans = "2018" + str.substring(4); ans "2018" + str.substring(4) "2018" str.substring(4) str.substring str 4 System.out.println(ans) System.out.println System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	}


} public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	}


} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String str = reader.next();
		String ans = "2018" + str.substring(4);

		System.out.println(ans);
		reader.close();
	}


}



