import java.util.Scanner;

public class Main {
	
    public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    }
} import java.util.Scanner; Scanner java.util public class Main {
	
    public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    }
} Main public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    } main {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String input = scan.next(); input scan.next() scan.next scan String output = "2018" + input.substring(4, input.length()); output "2018" + input.substring(4, input.length()) "2018" input.substring(4, input.length()) input.substring input 4 input.length() input.length input System.out.print(output) System.out.print System.out System System.out output String[] args args public class Main {
	
    public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    }
} public class Main {
	
    public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    }
} Main
import java.util.Scanner;

public class Main {
	
    public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
        String input = scan.next();
	String output = "2018" + input.substring(4, input.length());

        System.out.print(output);
    }
}