import java.util.*;

class Main {
	
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		StringBuilder insert = new StringBuilder("2018");

		String str = sc.next();

		StringBuilder sb = new StringBuilder(str);

		sb.delete(0, 4);

		insert.append(sb.toString());

		System.out.println(insert.toString());

	}
} import java.util.*; util.* java class Main {
	
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		StringBuilder insert = new StringBuilder("2018");

		String str = sc.next();

		StringBuilder sb = new StringBuilder(str);

		sb.delete(0, 4);

		insert.append(sb.toString());

		System.out.println(insert.toString());

	}
} Main public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		StringBuilder insert = new StringBuilder("2018");

		String str = sc.next();

		StringBuilder sb = new StringBuilder(str);

		sb.delete(0, 4);

		insert.append(sb.toString());

		System.out.println(insert.toString());

	} main {

		Scanner sc = new Scanner(System.in);

		StringBuilder insert = new StringBuilder("2018");

		String str = sc.next();

		StringBuilder sb = new StringBuilder(str);

		sb.delete(0, 4);

		insert.append(sb.toString());

		System.out.println(insert.toString());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder insert = new StringBuilder("2018"); insert new StringBuilder("2018") String str = sc.next(); str sc.next() sc.next sc StringBuilder sb = new StringBuilder(str); sb new StringBuilder(str) sb.delete(0, 4) sb.delete sb 0 4 insert.append(sb.toString()) insert.append insert sb.toString() sb.toString sb System.out.println(insert.toString()) System.out.println System.out System System.out insert.toString() insert.toString insert String args[] args
import java.util.*;

class Main {
	
	public static void main(String args[]){

		Scanner sc = new Scanner(System.in);

		StringBuilder insert = new StringBuilder("2018");

		String str = sc.next();

		StringBuilder sb = new StringBuilder(str);

		sb.delete(0, 4);

		insert.append(sb.toString());

		System.out.println(insert.toString());

	}
}
