import java.util.Scanner;

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

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