public static void main ( String [ ] args ) {
  System . out . println ( new java . util . Scanner ( System . in ) . next ( ) . equals ( "a" ) ? - 1 : "a" ) ;
}

public static void main ( String [ ] args ) { System . out . println ( new java . util . Scanner ( System . in ) . next ( ) . equals ( " a " ) ? - 1 : " a " ) ; }
(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 (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (method_invocation object: (method_invocation object: (object_creation_expression type: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) arguments: (argument_list (field_access object: (identifier) field: (identifier)))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (string_literal))) consequence: (unary_expression operand: (decimal_integer_literal)) alternative: (string_literal)))))))