Replacing timing gears on F150 4.9 liter straight 6?

how to get the timing gears off the crank and cam shaft