import java.util.*;


public class Main {
    static void solve() {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        s = "2018" + s.substring(4, s.length());
        System.out.println(s);
    }

    public static void main(String[] args) {
        solve();
    }
} import java.util.*; util.* java public class Main {
    static void solve() {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        s = "2018" + s.substring(4, s.length());
        System.out.println(s);
    }

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

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

    public static void main(String[] args) {
        solve();
    }
} Main
import java.util.*;


public class Main {
    static void solve() {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        s = "2018" + s.substring(4, s.length());
        System.out.println(s);
    }

    public static void main(String[] args) {
        solve();
    }
}
