Adding GCJ 2013 Round 1B problem A code