Google code jam round1 A