Excitation of an atom by a train of short pulses