ada language contest problem A