Codeforces Round #614 (Div. 2)B(JOE is on TV!)

NoSuchKey