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

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	}

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

	public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	}

} Main public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	} main {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) char[] c = in.next().toCharArray(); c in.next().toCharArray() in.next().toCharArray in.next() in.next in StringBuffer sb = new StringBuffer(); sb new StringBuffer() sb.append("2018") sb.append sb "2018" for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		} int i = 4; int i = 4; i 4 i < c.length i c.length c c.length i++ i++ i {
			sb.append(c[i]);
		} {
			sb.append(c[i]);
		} sb.append(c[i]) sb.append sb c[i] c i System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	}

} public class Main {

	public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	}

} Main

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

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner in = new Scanner(System.in);

		char[] c = in.next().toCharArray();

		StringBuffer sb = new StringBuffer();
		sb.append("2018");
		for (int i = 4; i < c.length; i++) {
			sb.append(c[i]);
		}

		System.out.println(sb.toString());

	}

}
