import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	String S = stdIn.next();
	
	System.out.println(S.replace("2017","2018"));
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	String S = stdIn.next();
	
	System.out.println(S.replace("2017","2018"));
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	String S = stdIn.next();
	
	System.out.println(S.replace("2017","2018"));
    } main {
	Scanner stdIn = new Scanner(System.in);
	String S = stdIn.next();
	
	System.out.println(S.replace("2017","2018"));
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) String S = stdIn.next(); S stdIn.next() stdIn.next stdIn System.out.println(S.replace("2017","2018")) System.out.println System.out System System.out S.replace("2017","2018") S.replace S "2017" "2018" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
	String S = stdIn.next();
	
	System.out.println(S.replace("2017","2018"));
    }
}
