import java.util.*;
import java.lang.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tail = sc.next().substring(4, 10);
        System.out.println("2018" + tail);
    }

} import java.util.*; util.* java import java.lang.*; lang.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tail = sc.next().substring(4, 10);
        System.out.println("2018" + tail);
    }

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

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tail = sc.next().substring(4, 10);
        System.out.println("2018" + tail);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tail = sc.next().substring(4, 10);
        System.out.println("2018" + tail);
    }

} Main
import java.util.*;
import java.lang.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tail = sc.next().substring(4, 10);
        System.out.println("2018" + tail);
    }

}