import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    }
} import java.io.*; io.* java import java.util.*; util.* java import java.text.*; text.* java import java.math.*; math.* java import java.util.regex.*; regex.* java.util public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    } main {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String S = in.nextLine(); S in.nextLine() in.nextLine in String regex = "2017"; regex "2017" Pattern p = Pattern.compile(regex); p Pattern.compile(regex) Pattern.compile Pattern regex Matcher m = p.matcher(S); m p.matcher(S) p.matcher p S String result = m.replaceFirst("2018"); result m.replaceFirst("2018") m.replaceFirst m "2018" System.out.println(result) System.out.println System.out System System.out result in.close() in.close in String[] args args public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    }
} Main
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String regex = "2017";
        Pattern p = Pattern.compile(regex);

        Matcher m = p.matcher(S);
        String result = m.replaceFirst("2018");

        System.out.println(result);

        in.close();
    }
}
