import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  } main {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc String s2=s.substring(4); s2 s.substring(4) s.substring s 4 System.out.println(2018+s2) System.out.println System.out System System.out 2018+s2 2018 s2 String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    String s2=s.substring(4);

    System.out.println(2018+s2);
  }
}
