import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  }
}
     import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  }
} Main public static void main(String[] args){
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  } main {
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  } Scanner s = new  Scanner(System.in); s new  Scanner(System.in) String str = s.next(); str s.next() s.next s System.out.println(str.replace("2017", "2018")) System.out.println System.out System System.out str.replace("2017", "2018") str.replace str "2017" "2018" String[] args args public class Main{
  public static void main(String[] args){
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  }
} public class Main{
  public static void main(String[] args){
    Scanner s = new  Scanner(System.in);
    String str = s.next();
    System.out.println(str.replace("2017", "2018"));
  }
} Main
import java.util.Scanner;

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