import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		x = x.replace("2017", "2018");
		System.out.println(x);
		sc.close();
	}
} import java.util.*; util.* java public class Main {

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

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		x = x.replace("2017", "2018");
		System.out.println(x);
		sc.close();
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.next();
		x = x.replace("2017", "2018");
		System.out.println(x);
		sc.close();
	}
}