In his article Little Child: The Harmonica in Beatle Music, Greg Panfile suggests that Lennon used a chromatic in the key of G. Well, it is possible to play both riffs on a G chromatic - of course, it is possible to play these notes on a chromatic tuned in any key.