import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

		System.out.println(newyear);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

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

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

		System.out.println(newyear);
	} main {
		Scanner sc = new Scanner(System.in);

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

		System.out.println(newyear);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String date = sc.nextLine(); date sc.nextLine() sc.nextLine sc String newyear = date.replace("2017", "2018"); newyear date.replace("2017", "2018") date.replace date "2017" "2018" System.out.println(newyear) System.out.println System.out System System.out newyear String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

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

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

		System.out.println(newyear);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		String date = sc.nextLine();
		String newyear = date.replace("2017", "2018");

		System.out.println(newyear);
	}
}