import java.util.Scanner;

public class Main {

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

} import java.util.Scanner; Scanner java.util public class Main {

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

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

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

} public class Main {

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

} Main
import java.util.Scanner;

public class Main {

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

}