import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String a = stdIn.next(); a stdIn.next() stdIn.next stdIn String b = "2018" + a.substring(4); b "2018" + a.substring(4) "2018" a.substring(4) a.substring a 4 System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		String a = stdIn.next();
		
	    String b = "2018" + a.substring(4);
	    
	    System.out.println(b);
	}
}