import java.util.Scanner;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	}

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

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	}

} Main private static Scanner sc; sc public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	} main {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	} sc = new Scanner(System.in) sc new Scanner(System.in) String dateStr = sc.next(); dateStr sc.next() sc.next sc System.out.println(dateStr.replaceAll("2017", "2018")) System.out.println System.out System System.out dateStr.replaceAll("2017", "2018") dateStr.replaceAll dateStr "2017" "2018" String[] args args public class Main {

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	}

} public class Main {

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	}

} Main
import java.util.Scanner;

public class Main {

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		String dateStr = sc.next();

		System.out.println(dateStr.replaceAll("2017", "2018"));
	}

}
