import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String date = sc.next();
		Scanner a = new Scanner(date).useDelimiter("/");
		int i = 0;
		String[] list = new String[3];
		while(a.hasNext()) {
			list[i] = a.next();
			i++;
		}
		if(!list[0].equals("2018"))
			list[0] = "2018";
		System.out.println(list[0] + "/"+list[1] +"/"+list[2]);
		
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String date = sc.next();
		Scanner a = new Scanner(date).useDelimiter("/");
		int i = 0;
		String[] list = new String[3];
		while(a.hasNext()) {
			list[i] = a.next();
			i++;
		}
		if(!list[0].equals("2018"))
			list[0] = "2018";
		System.out.println(list[0] + "/"+list[1] +"/"+list[2]);
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String date = sc.next();
		Scanner a = new Scanner(date).useDelimiter("/");
		int i = 0;
		String[] list = new String[3];
		while(a.hasNext()) {
			list[i] = a.next();
			i++;
		}
		if(!list[0].equals("2018"))
			list[0] = "2018";
		System.out.println(list[0] + "/"+list[1] +"/"+list[2]);
		
	} main {
		Scanner sc = new Scanner(System.in);
		String date = sc.next();
		Scanner a = new Scanner(date).useDelimiter("/");
		int i = 0;
		String[] list = new String[3];
		while(a.hasNext()) {
			list[i] = a.next();
			i++;
		}
		if(!list[0].equals("2018"))
			list[0] = "2018";
		System.out.println(list[0] + "/"+list[1] +"/"+list[2]);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String date = sc.next(); date sc.next() sc.next sc Scanner a = new Scanner(date).useDelimiter("/"); a new Scanner(date).useDelimiter("/") new Scanner(date).useDelimiter new Scanner(date) "/" int i = 0; i 0 String[] list = new String[3]; list new String[3] 3 while(a.hasNext()) {
			list[i] = a.next();
			i++;
		} a.hasNext() a.hasNext a {
			list[i] = a.next();
			i++;
		} list[i] = a.next() list[i] list i a.next() a.next a i++ i if(!list[0].equals("2018"))
			list[0] = "2018"; !list[0].equals("2018") list[0].equals("2018") list[0].equals list[0] list 0 "2018" list[0] = "2018" list[0] list 0 "2018" System.out.println(list[0] + "/"+list[1] +"/"+list[2]) System.out.println System.out System System.out list[0] + "/"+list[1] +"/"+list[2] "/" list[1] list[0] + "/"+list[1] +"/"+list[2] list[0] list 0 "/" list[1] list 1 "/" list[2] list 2 String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String date = sc.next();
		Scanner a = new Scanner(date).useDelimiter("/");
		int i = 0;
		String[] list = new String[3];
		while(a.hasNext()) {
			list[i] = a.next();
			i++;
		}
		if(!list[0].equals("2018"))
			list[0] = "2018";
		System.out.println(list[0] + "/"+list[1] +"/"+list[2]);
		
	}
}
