Codeforces Round #163 Problem A Stones on the Table