public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int t = sc . nextInt ( ) ;
  sc . nextLine ( ) ;
  int n = 6 ;
  System . out . println ( n - t ) ;
  int a [ ] = new int [ 6 ] ;
  Arrays . fill ( a , 1 ) ;
  for ( int i = 0 ;
  i < t ;
  i ++ ) {
    String s = sc . nextLine ( ) ;
    if ( s . equals ( "purple" ) ) a [ 0 ] = - 1 ;
    if ( s . equals ( "green" ) ) a [ 1 ] = - 1 ;
    if ( s . equals ( "blue" ) ) a [ 2 ] = - 1 ;
    if ( s . equals ( "orange" ) ) a [ 3 ] = - 1 ;
    if ( s . equals ( "red" ) ) a [ 4 ] = - 1 ;
    if ( s . equals ( "yellow" ) ) a [ 5 ] = - 1 ;
  }
  if ( a [ 0 ] != - 1 ) System . out . println ( "Power" ) ;
  if ( a [ 1 ] != - 1 ) System . out . println ( "Time" ) ;
  if ( a [ 2 ] != - 1 ) System . out . println ( "Space" ) ;
  if ( a [ 3 ] != - 1 ) System . out . println ( "Soul" ) ;
  if ( a [ 4 ] != - 1 ) System . out . println ( "Reality" ) ;
  if ( a [ 5 ] != - 1 ) System . out . println ( "Mind" ) ;
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int t = sc . nextInt ( ) ; sc . nextLine ( ) ; int n = 6 ; System . out . println ( n - t ) ; int a [ ] = new int [ 6 ] ; Arrays . fill ( a , 1 ) ; for ( int i = 0 ; i < t ; i ++ ) { String s = sc . nextLine ( ) ; if ( s . equals ( " purple " ) ) a [ 0 ] = - 1 ; if ( s . equals ( " green " ) ) a [ 1 ] = - 1 ; if ( s . equals ( " blue " ) ) a [ 2 ] = - 1 ; if ( s . equals ( " orange " ) ) a [ 3 ] = - 1 ; if ( s . equals ( " red " ) ) a [ 4 ] = - 1 ; if ( s . equals ( " yellow " ) ) a [ 5 ] = - 1 ; } if ( a [ 0 ] != - 1 ) System . out . println ( " Power " ) ; if ( a [ 1 ] != - 1 ) System . out . println ( " Time " ) ; if ( a [ 2 ] != - 1 ) System . out . println ( " Space " ) ; if ( a [ 3 ] != - 1 ) System . out . println ( " Soul " ) ; if ( a [ 4 ] != - 1 ) System . out . println ( " Reality " ) ; if ( a [ 5 ] != - 1 ) System . out . println ( " Mind " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))