If you apply clockwise force of magnitude N to green gear, you would be applying +N. Which would apply -N to yellow (not +N as you stated), +N to blue, -N to red, and +N to green again, thus rotating the gears. You obviously have a better understanding of this than I do, but you must be explaining some part of this equation incorrectly.