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