The two that have the slight bend go on the center ports as they have to bend around the oil filter cap, and they probably also have a larger diameter bend than the other two as they have farther to go. For the outside ports, the pipes are quite similar, but you can tell the difference as they flare a little different, each respectively to the side that it goes on when looking straight at the bike from the front tire view.
Hope that helps