Carbon (gray) with four substituents (labeled by priority 1-4) shows an R-configuration because when substituent 4 is in the back, substituents 1 - 3 run clockwise.
Carbon (gray) with four substituents (labeled by priority 1-4) shows an S-configuration because when substituent 4 is in the back, substituents 1 - 3 run counterclockwise.