@@ -0,0 +1,1100 @@
+import java.io.*;%0Aimport java.math.*;%0Aimport java.security.*;%0Aimport java.text.*;%0Aimport java.util.*;%0Aimport java.util.concurrent.*;%0Aimport java.util.regex.*;%0Apublic class Solution %7B%0A    static void separateNumbers(String s) %7B%0A        for(int i=1;i%3C=s.length()/2;i++)%7B%0A            String first = s.substring(0,i);%0A            long x = Long.parseLong(first);%0A            long k = x;%0A            String t = %22%22;%0A            while(first.length()+t.length()%3C=s.length())%7B%0A                first+=(++k);%0A                t = Long.toString(k);%0A            %7D%0A            if(first.equals(s)) %7B%0A                System.out.println(%22YES %22+x);%0A                return;%0A            %7D%0A        %7D%0A        System.out.println(%22NO %22);%0A    %7D%0A    private static final Scanner scanner = new Scanner(System.in);%0A%0A    public static void main(String%5B%5D args) %7B%0A        int q = scanner.nextInt();%0A        %0A        scanner.skip(%22(%5Cr%5Cn%7C%5B%5Cn%5Cr%5Cu2028%5Cu2029%5Cu0085%5D)?%22);%0A        for (int qItr = 0; qItr %3C q; qItr++) %7B%0A            String s = scanner.nextLine();%0A%0A            separateNumbers(s);%0A        %7D%0A%0A        scanner.close();%0A    %7D%0A%7D%0A

add SeparateTheNumbers.java