The pipe from the master cylinder goes into the port marked with either an "M" or a "1".
The pipe to the rear left wheel goes into the port marked with either an "L" or "2".
The pipe to the rear right wheel goes into the port marked either an "R" or "3".