I'm pretty sure they're both in the ground Egg Group. If so, then you can put them in with a Smeargle that sketched it or a Torkoal, who learns it by level up.