import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	}
} 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();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int i = Integer.parseInt(S.substring(0,4)); i Integer.parseInt(S.substring(0,4)) Integer.parseInt Integer S.substring(0,4) S.substring S 0 4 int root = (int)Math.sqrt(i); root (int)Math.sqrt(i) Math.sqrt Math i System.out.println((i + 1) + S.substring(4)) System.out.println System.out System System.out (i + 1) + S.substring(4) (i + 1) i 1 S.substring(4) S.substring S 4 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int i = Integer.parseInt(S.substring(0,4));
		int root = (int)Math.sqrt(i);
		System.out.println((i + 1) + S.substring(4)); 
	}
}
