//Already2018.java
import java.util.Scanner;
class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(2018+s.substring(4,10));
        sc.close();
    }
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(2018+s.substring(4,10));
        sc.close();
    }
} Main public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(2018+s.substring(4,10));
        sc.close();
    } main {
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(2018+s.substring(4,10));
        sc.close();
    } 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 sc.close() sc.close sc String args[] args
//Already2018.java
import java.util.Scanner;
class Main
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(2018+s.substring(4,10));
        sc.close();
    }
}