Invalid input despite following the example...why?

thank you, but unfortunately I get the same error!