removed a.java print debugging, relaxed shortFileName count condition