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

    String s = sc.next();
    System.out.println(s.replace("2017", "2018"));

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

    String s = sc.next();
    System.out.println(s.replace("2017", "2018"));

    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int ans = 0;

    String s = sc.next();
    System.out.println(s.replace("2017", "2018"));

    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int ans = 0;

    String s = sc.next();
    System.out.println(s.replace("2017", "2018"));

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

    String s = sc.next();
    System.out.println(s.replace("2017", "2018"));

    sc.close();
  }
}
