import java.util.*;
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  }
} Main public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  } main {
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ymd = sc.next(); ymd sc.next() sc.next sc System.out.print("2018") System.out.print System.out System System.out "2018" for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    } int i = 4; int i = 4; i 4 i < ymd.length() i ymd.length() ymd.length ymd i++ i++ i {
      System.out.print(ymd.charAt(i));
    } {
      System.out.print(ymd.charAt(i));
    } System.out.print(ymd.charAt(i)) System.out.print System.out System System.out ymd.charAt(i) ymd.charAt ymd i String[] args args public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  }
} public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String ymd = sc.next();
    System.out.print("2018");
  for (int i = 4; i < ymd.length(); i++){
      System.out.print(ymd.charAt(i));
    }
  }
}
