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

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

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

       String s=sc.next();
       String result=s.replace("2017","2018");
        System.out.printf(result);
    } main {
        Scanner sc = new Scanner(System.in);

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

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

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

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