public static void main ( String [ ] args ) {
  Scanner s = new Scanner ( System . in ) ;
  double x1 = s . nextDouble ( ) ;
  double y1 = s . nextDouble ( ) ;
  double r = s . nextDouble ( ) ;
  double x2 = s . nextDouble ( ) ;
  double y2 = s . nextDouble ( ) ;
  double x3 = s . nextDouble ( ) ;
  double y3 = s . nextDouble ( ) ;
  System . out . println ( ( x1 + r > x3 || x1 - r < x2 || y1 + r > y3 || y1 - r < y2 ) ? "YES" : "NO" ) ;
  System . out . println ( ( blueVisible ( x2 , y2 , x1 , y1 , r ) || blueVisible ( x2 , y3 , x1 , y1 , r ) || blueVisible ( x3 , y3 , x1 , y1 , r ) || blueVisible ( x3 , y2 , x1 , y1 , r ) ) ? "YES" : "NO" ) ;
}

public static void main ( String [ ] args ) { Scanner s = new Scanner ( System . in ) ; double x1 = s . nextDouble ( ) ; double y1 = s . nextDouble ( ) ; double r = s . nextDouble ( ) ; double x2 = s . nextDouble ( ) ; double y2 = s . nextDouble ( ) ; double x3 = s . nextDouble ( ) ; double y3 = s . nextDouble ( ) ; System . out . println ( ( x1 + r > x3 || x1 - r < x2 || y1 + r > y3 || y1 - r < y2 ) ? " YES " : " NO " ) ; System . out . println ( ( blueVisible ( x2 , y2 , x1 , y1 , r ) || blueVisible ( x2 , y3 , x1 , y1 , r ) || blueVisible ( x3 , y3 , x1 , y1 , r ) || blueVisible ( x3 , y2 , x1 , y1 , r ) ) ? " YES " : " NO " ) ; }
(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: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) consequence: (string_literal) alternative: (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier)))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier)))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))))) consequence: (string_literal) alternative: (string_literal)))))))