import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(scanner.next().replaceFirst("7", "8"));
    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

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

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

    public static void main(String[]$) {
        System.out.println(scanner.next().replaceFirst("7", "8"));
    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(scanner.next().replaceFirst("7", "8"));
    }
}