import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

		System.out.println(t);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

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

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

		System.out.println(t);
	} main {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

		System.out.println(t);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String t = sc.next().replace("2017", "2018"); t sc.next().replace("2017", "2018") sc.next().replace sc.next() sc.next sc "2017" "2018" System.out.println(t) System.out.println System.out System System.out t String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

		System.out.println(t);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String t = sc.next().replace("2017", "2018");

		System.out.println(t);
	}
}
