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);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	}
} 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);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	}
} 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);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	} solve {
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) System.out.println(sc.next().replace("2017","2018")) System.out.println System.out System System.out sc.next().replace("2017","2018") sc.next().replace sc.next() sc.next sc "2017" "2018" sc.close() sc.close sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
	}

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

	void solve() {
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	}
} 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);
		System.out.println(sc.next().replace("2017","2018"));
		sc.close();
	}
}