This is not my area of expertise, so excuse me if I make a dumb error, but can't we just let G be the integers with the first map multiplication by 2, and the second map sending n to n(mod 2)?

Edit: I didn't check if is isomorphic to the direct sum. The obvious map is probably an isomorphism.