import java.util.*;

public class Main {
	public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	}

} Main public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	} main {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	} String s = "2017/01/"; s "2017/01/" Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) s= scanner.next() s scanner.next() scanner.next scanner String st = "2018/01/"; st "2018/01/" System.out.println(st+s.substring(8)) System.out.println System.out System System.out st+s.substring(8) st s.substring(8) s.substring s 8 scanner.close() scanner.close scanner String[] args args public class Main {
	public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	}

} public class Main {
	public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	}

} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {

		String s = "2017/01/";
		Scanner scanner = new Scanner(System.in);
		s= scanner.next();
		String st = "2018/01/";
		System.out.println(st+s.substring(8));
		scanner.close();
	}

}
