import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

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

	public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

		public void writeOutput() {
			System.out.println(answer);
		}
    }
} Main public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} main {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} Already solver = new Already(); solver new Already() solver.readInput() solver.readInput solver solver.solve() solver.solve solver solver.writeOutput() solver.writeOutput solver String[] args args static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

		public void writeOutput() {
			System.out.println(answer);
		}
    } Already private String input; input private String answer; answer private Scanner scanner; scanner public Already() {
			scanner = new Scanner(System.in);
		} Already {
			scanner = new Scanner(System.in);
		} scanner = new Scanner(System.in) scanner new Scanner(System.in) public void readInput() {
			input = scanner.next();
		} readInput {
			input = scanner.next();
		} input = scanner.next() input scanner.next() scanner.next scanner public void solve() {
			answer = input.replace("2017","2018");
		} solve {
			answer = input.replace("2017","2018");
		} answer = input.replace("2017","2018") answer input.replace("2017","2018") input.replace input "2017" "2018" public void writeOutput() {
			System.out.println(answer);
		} writeOutput {
			System.out.println(answer);
		} System.out.println(answer) System.out.println System.out System System.out answer public class Main {

	public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

		public void writeOutput() {
			System.out.println(answer);
		}
    }
} public class Main {

	public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

		public void writeOutput() {
			System.out.println(answer);
		}
    }
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Already solver = new Already();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class Already {

		private String input;
		private String answer;
		private Scanner scanner;


		public Already() {
			scanner = new Scanner(System.in);
		}

		public void readInput() {
			input = scanner.next();
		}

		public void solve() {
			answer = input.replace("2017","2018");
		}

		public void writeOutput() {
			System.out.println(answer);
		}
    }
}
