Training Site
Sideways banner

Emma's Socks

Input: Standard Input (stdin)
Output: Standard Output (stdout)
Memory limit: 128 megabytes
Time limit: 1.0 seconds

Emma had 4 pairs of socks, so one would think there should be 8 socks in total. Each pair was a different colour: one pair of red, one pair of pink, one pair of purple, and one pair of blue. But her mother, after sending her out barefoot to play, starts pairing the socks up and discovers one is missing! She yells out the window “Emma! Where is your _____ sock?”. Your job is to fill in the blank by writing a program that prints the colour of the missing sock.

Input

Input will consist of 7 lines, each containing either the word “Red”, “Pink”, ”Purple”, or “Blue”. These are the colours of the 7 socks Emma has left.

Output

You should output one word on a single line, the missing sock colour ie: “Red”, “Pink”, ”Purple”, or “Blue”.

Sample Explanation

In the sample input, there are 2 “Red”s, 2 “Blue”s, and 2 “Pink”s but only one “Purple”. The missing sock is, therefore, Purple.

  • Sample Input 1

    Red
    Blue
    Red
    Purple
    Blue
    Pink
    Pink
    

    Sample Output 1

    Purple