Codeforces Beta Round #65 (Div. 2) A