import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	} main {
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuffer datestr = new StringBuffer(); datestr new StringBuffer() datestr.append(sc.next()) datestr.append datestr sc.next() sc.next sc datestr.replace(0,4,"2018") datestr.replace datestr 0 4 "2018" System.out.println(datestr) System.out.println System.out System System.out datestr String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
                StringBuffer datestr = new StringBuffer();
                datestr.append(sc.next()); 
                datestr.replace(0,4,"2018");
		System.out.println(datestr);
	}
}