fixed codeeval 138