This problem looked to me a bit unflexible from dev point of view, but the reason error occured is because you need to follow the sequence of reading values: 1) read name 2) read yyyy 3) read mm 4) read dd Other than that, with the printing everyne was doing fine. Use the keyboard to enter a name. Use the keyboard to enter a birth date (three numbers): yyyy, mm, dd.