import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	} main {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	} String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018"); answer new Scanner(System.in).nextLine().replaceFirst("2017", "2018") new Scanner(System.in).nextLine().replaceFirst new Scanner(System.in).nextLine() new Scanner(System.in).nextLine new Scanner(System.in) "2017" "2018" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
	public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	}
} public class Main {
	public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		String answer=new Scanner(System.in).nextLine().replaceFirst("2017", "2018");
		System.out.println(answer);
	}
}