import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); }
		  } import java.util.Scanner; Scanner java.util public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); }
		  } Main public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); } main {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.nextLine(); s scanner.nextLine() scanner.nextLine scanner s = s.replaceFirst("7","8") s s.replaceFirst("7","8") s.replaceFirst s "7" "8" System.out.println(s) System.out.println System.out System System.out s scanner.close() scanner.close scanner String args[] args public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); }
		  } public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); }
		  } Main
import java.util.Scanner;

public class Main {
	  
	public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    
		    String s = scanner.nextLine();
		    
		    s = s.replaceFirst("7","8");
		    System.out.println(s);
		    
		    scanner.close(); }
		  }