Codeforces prob. A submitted succesfully