codeeval 170, 169 properly
atcoder k4pc