import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


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

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


    }
} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


    } main {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


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

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


    }
} public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


    }
} Main
import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        System.out.println("2018"+s.substring(4,10));


    }
}
