diff --git a/2017/problem_e/problem_e.java b/2017/problem_e/problem_e.java index 8e2b662..80d2403 100644 --- a/2017/problem_e/problem_e.java +++ b/2017/problem_e/problem_e.java @@ -39,7 +39,7 @@ public static void main(String[] args) throws IOException{ temp.remove(temp.indexOf(s.charAt(i))); }else if(s.charAt(i) == ' '){ res+= ' '; - }else if(s.charAt(i) == '.' || s.charAt(i) == ','){ + }else if(s.charAt(i) == '.' || s.charAt(i) == ',' || s.charAt(i) == ';' || s.charAt(i) == ':'){ } else{ @@ -49,7 +49,7 @@ public static void main(String[] args) throws IOException{ blockflag = true; } } - if(temp.size() == 0){ + if(temp.size() == 0 && !res.equals("SANTA CLAUS")){ System.out.println(res); }