import java.util.ArrayList;
import java.util.List;
class Main {
public static final String EMPTY = "";
public static String[] splitWith(String src, char c, char esc) {
if (src == null || src.trim().equals(EMPTY)) {
return new String[0];
}
List result = new ArrayList();
StringBuilder sb = new StringBuilder();
char[] chars = src.toCharArray();
for (int i = 0; i < chars.length; i++) {
if (chars[i] == c) {
if (i > 0 && chars[i - 1] != esc) {
result.add(sb.toString());
sb = new StringBuilder();
} else {
sb.deleteCharAt(sb.length() - 1);
sb.append(chars[i]);
}
} else if (i != 0 || chars[i] != c) {
sb.append(chars[i]);
}
}
if (!sb.toString().equals("")) {
result.add(sb.toString());
}
return result.toArray(new String[result.size()]);
}
}