

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	}

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

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	} main {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println(s.replaceFirst("7", "8")) System.out.println System.out System System.out s.replaceFirst("7", "8") s.replaceFirst s "7" "8" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	}

} Main


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		System.out.println(s.replaceFirst("7", "8"));
	}

}
