import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    }

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

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    }

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

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    } main {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.next(); S scanner.next() scanner.next scanner S = "2018" + S.substring(4,10) S "2018" + S.substring(4,10) "2018" S.substring(4,10) S.substring S 4 10 System.out.println(S) System.out.println System.out System System.out S String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.next();

        S = "2018" + S.substring(4,10);
        System.out.println(S);
    }

}