import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	} main {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner System.out.println(s.replaceAll("2017","2018")) System.out.println System.out System System.out s.replaceAll("2017","2018") s.replaceAll s "2017" "2018" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		System.out.println(s.replaceAll("2017","2018"));
	}

}
