import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	}
} 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 correct = S.replace("017", "018");

        System.out.println(correct);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String correct = S.replace("017", "018"); correct S.replace("017", "018") S.replace S "017" "018" System.out.println(correct) System.out.println System.out System System.out correct String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	}
} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();

        String correct = S.replace("017", "018");

        System.out.println(correct);
	}
}
