import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		}
	}
} import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.util.Scanner; Scanner java.util class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		}
	}
} Main public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	} main {
		invoke(System.in);
	} invoke(System.in) invoke System.in System System.in String[] args args public static void	invoke(InputStream is) throws IOException
	{
		try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		}
	} invoke {
		try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		}
	} try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		} {
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		} Scanner in = new Scanner(is) Scanner in = new Scanner(is) new Scanner(is) 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 InputStream is is
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		try (Scanner in = new Scanner(is))
		{
			String	s = in.next();
			System.out.println("2018" + s.substring(4));
		}
	}
}