import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    } 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<10;i++)
        {
            System.out.print(s.charAt(i));
        } int i=4; int i=4; i 4 i<10 i 10 i++ i++ i {
            System.out.print(s.charAt(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 System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        System.out.print("2018");
        for(int i=4;i<10;i++)
        {
            System.out.print(s.charAt(i));
        }
        System.out.println("");
    }
} Main
import java.util.*;

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