@@ -0,0 +1,780 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class AppendAndDelete %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        String s = in.next();%0A        String t = in.next();%0A        int k = in.nextInt();%0A     %09%09int commonLength = 0;%0A%0A%09%09for (int i = 0; i %3C java.lang.Math.min(s.length(), t.length()); i++) %7B%0A%09%09%09if (s.charAt(i) == t.charAt(i))%0A%09%09%09%09commonLength++;%0A%09%09%09else%0A%09%09%09%09break;%0A%09%09%7D%0A%09%09if ((s.length() + t.length() - 2 * commonLength) %3E k) %7B%0A%09%09%09System.out.println(%22No%22);%0A%09%09%7D else if (((s.length() + t.length() - 2 * commonLength) %25 2 == k %25 2) %7C%7C (s.length() + t.length() - k) %3C 0) %7B%0A%09%09%09System.out.println(%22Yes%22);%0A%09%09%7D else %7B%0A%09%09%09System.out.println(%22No%22);%0A%09%09%7D%0A    %7D%0A%7D%0A

Create AppendAndDelete.java