import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] charArray = s.toCharArray();
		char[] notModify = new char[s.length() - 4];
		for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		}
		String notModified = "";
		for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		}
		System.out.println("2018" + notModified);
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] charArray = s.toCharArray();
		char[] notModify = new char[s.length() - 4];
		for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		}
		String notModified = "";
		for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		}
		System.out.println("2018" + notModified);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] charArray = s.toCharArray();
		char[] notModify = new char[s.length() - 4];
		for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		}
		String notModified = "";
		for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		}
		System.out.println("2018" + notModified);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] charArray = s.toCharArray();
		char[] notModify = new char[s.length() - 4];
		for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		}
		String notModified = "";
		for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		}
		System.out.println("2018" + notModified);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char[] charArray = s.toCharArray(); charArray s.toCharArray() s.toCharArray s char[] notModify = new char[s.length() - 4]; notModify new char[s.length() - 4] s.length() - 4 s.length() s.length s 4 for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		} int i = 0 ; int i = 0 ; i 0 i < notModify.length i notModify.length notModify notModify.length i++ i++ i {
			notModify[i] = charArray[i + 4];
		} {
			notModify[i] = charArray[i + 4];
		} notModify[i] = charArray[i + 4] notModify[i] notModify i charArray[i + 4] charArray i + 4 i 4 String notModified = ""; notModified "" for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		} int i = 0 ; int i = 0 ; i 0 i < notModify.length i notModify.length notModify notModify.length i++ i++ i {
			notModified = notModified + String.valueOf(notModify[i]);
		} {
			notModified = notModified + String.valueOf(notModify[i]);
		} notModified = notModified + String.valueOf(notModify[i]) notModified notModified + String.valueOf(notModify[i]) notModified String.valueOf(notModify[i]) String.valueOf String notModify[i] notModify i System.out.println("2018" + notModified) System.out.println System.out System System.out "2018" + notModified "2018" notModified String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] charArray = s.toCharArray();
		char[] notModify = new char[s.length() - 4];
		for(int i = 0 ; i < notModify.length ;i++){
			notModify[i] = charArray[i + 4];
		}
		String notModified = "";
		for(int i = 0 ; i < notModify.length ;i++){
			notModified = notModified + String.valueOf(notModify[i]);
		}
		System.out.println("2018" + notModified);
	}
}