import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

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

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	}
} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	} main {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	} Scanner s = new Scanner(System.in); s new Scanner(System.in) String str = s.next(); str s.next() s.next s StringBuilder sb = new StringBuilder(str); sb new StringBuilder(str) sb.delete(0, 4) sb.delete sb 0 4 System.out.println(sb.insert(0, "2018")) System.out.println System.out System System.out sb.insert(0, "2018") sb.insert sb 0 "2018" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	}
} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		StringBuilder sb = new StringBuilder(str);
		sb.delete(0, 4);
		System.out.println(sb.insert(0, "2018"));

	}
}
