import java.util.Scanner;

public class Main {

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

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		}
} import java.util.Scanner; Scanner java.util public class Main {

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

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		}
} Main public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			String s = sc.nextLine();

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		} main {
			Scanner sc = new Scanner(System.in);
			String s = sc.nextLine();

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc System.out.println(s.replaceFirst("2017/", "2018/")) System.out.println System.out System System.out s.replaceFirst("2017/", "2018/") s.replaceFirst s "2017/" "2018/" sc.close() sc.close sc String[] args args public class Main {

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

			System.out.println(s.replaceFirst("2017/", "2018/"));

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

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

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		}
} Main
import java.util.Scanner;

public class Main {

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

			System.out.println(s.replaceFirst("2017/", "2018/"));

			sc.close();
		}
}