codeeval 134 AC (somehow)