/* package whatever; // don't place package name! */
 
import java.util.*;
import java.lang.*;
import java.io.*;
 
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	} main {
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.next(); s in.next() in.next in System.out.println("2018"+ s.substring(4)) System.out.println System.out System System.out "2018"+ s.substring(4) "2018" s.substring(4) s.substring s 4 String[] args args public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	}
} Main
/* package whatever; // don't place package name! */
 
import java.util.*;
import java.lang.*;
import java.io.*;
 
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner in = new Scanner(System.in);
		String s = in.next();
		System.out.println("2018"+ s.substring(4));
	}
}