Codeforces Beta Round #31