Codeforces Beta Round #62 A, B