import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	}

} Main public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan System.out.println("2018" + str.substring(4)) System.out.println System.out System System.out "2018" + str.substring(4) "2018" str.substring(4) str.substring str 4 scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	}

} public class Main {

	public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception{
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		System.out.println("2018" + str.substring(4));
		scan.close();
	}

}
