import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		StringBuilder sb = new StringBuilder(s);
		sb = sb.replace(0, 4, "2018");
		System.out.println(sb);
	}
} 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();
		StringBuilder sb = new StringBuilder(s);
		sb = sb.replace(0, 4, "2018");
		System.out.println(sb);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		StringBuilder sb = new StringBuilder(s);
		sb = sb.replace(0, 4, "2018");
		System.out.println(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		StringBuilder sb = new StringBuilder(s);
		sb = sb.replace(0, 4, "2018");
		System.out.println(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc StringBuilder sb = new StringBuilder(s); sb new StringBuilder(s) sb = sb.replace(0, 4, "2018") sb sb.replace(0, 4, "2018") sb.replace sb 0 4 "2018" System.out.println(sb) System.out.println System.out System System.out sb 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();
		StringBuilder sb = new StringBuilder(s);
		sb = sb.replace(0, 4, "2018");
		System.out.println(sb);
	}
}
