import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replace("2017","2018");
		System.out.println(S);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replace("2017","2018");
		System.out.println(S);
	}

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

	void solve() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replace("2017","2018");
		System.out.println(S);
	}

} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replace("2017","2018");
		System.out.println(S);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

	void solve() {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		sc.close();
		S = S.replace("2017","2018");
		System.out.println(S);
	}

}