import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    }
} Main public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    } main {
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    } Scanner sc  = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String s2 = "2018" + s.substring(4,s.length()); s2 "2018" + s.substring(4,s.length()) "2018" s.substring(4,s.length()) s.substring s 4 s.length() s.length s System.out.println(s2) System.out.println System.out System System.out s2 String[] args args public class Main{
	public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    }
} public class Main{
	public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    }
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc  = new Scanner(System.in);
      	String s = sc.next();
      	String s2 = "2018" + s.substring(4,s.length());
      
      	System.out.println(s2);
    }
}