Codeforces Beta Round #77 (Div. 1 Only)