public static void main ( String [ ] args ) throws IOException {
  int h = readInt ( ) , m = readInt ( ) , n = readInt ( ) , u = readInt ( ) , v = readInt ( ) ;
  int min = Math . min ( u , v ) , max = Math . max ( u , v ) , cur = 0 ;
  if ( h >= min && h < max ) cur ++ ;
  if ( m >= min * 5 && m < max * 5 ) cur ++ ;
  if ( n > min * 5 && n < max * 5 ) cur ++ ;
  if ( cur == 1 || cur == 2 ) System . out . println ( "NO" ) ;
  else System . out . println ( "YES" ) ;
}

public static void main ( String [ ] args ) throws IOException { int h = readInt ( ) , m = readInt ( ) , n = readInt ( ) , u = readInt ( ) , v = readInt ( ) ; int min = Math . min ( u , v ) , max = Math . max ( u , v ) , cur = 0 ; if ( h >= min && h < max ) cur ++ ; if ( m >= min * 5 && m < max * 5 ) cur ++ ; if ( n > min * 5 && n < max * 5 ) cur ++ ; if ( cur == 1 || cur == 2 ) System . out . println ( " NO " ) ; else System . out . println ( " YES " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) consequence: (expression_statement (update_expression (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))