import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	} main {
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(sc.nextLine().replaceAll("^.{4}", "2018")) System.out.println System.out System System.out sc.nextLine().replaceAll("^.{4}", "2018") sc.nextLine().replaceAll sc.nextLine() sc.nextLine sc "^.{4}" "2018" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.nextLine().replaceAll("^.{4}", "2018"));
	}
}