import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    }
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    }
    
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    } main {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String before = scan.nextLine(); before scan.nextLine() scan.nextLine scan String after = before.replace( before.substring(0 , 4) , "2018"); after before.replace( before.substring(0 , 4) , "2018") before.replace before before.substring(0 , 4) before.substring before 0 4 "2018" System.out.println(after) System.out.println System.out System System.out after String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    }
    
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    }
    
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        
        String before = scan.nextLine();
        
        String after = before.replace( before.substring(0 , 4) , "2018");
        
        System.out.println(after);
    }
    
}