import java.util.*;

public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} import java.util.*; util.* java public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    } solve {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan System.out.print(2018) System.out.print System.out System System.out 2018 for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i)); int i = 4; int i = 4; i 4 i < s.length() i s.length() s.length s i++ i++ i System.out.print(s.charAt(i)); System.out.print(s.charAt(i)) System.out.print System.out System System.out s.charAt(i) s.charAt s i public static void main(String[] args){
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
} Main
import java.util.*;

public class Main {
    void solve(){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print(2018);
        for(int i = 4; i < s.length(); i++) System.out.print(s.charAt(i));
    }
    
    public static void main(String[] args){
        new Main().solve();
    }
}
