fixed codeeval 151