public static void main ( String [ ] args ) {
  String s1 = sc . next ( ) ;
  if ( s1 . equals ( "A" ) ) {
    s1 = "T" ;
  }
  else if ( s1 . equals ( "T" ) ) {
    s1 = "A" ;
  }
  if ( s1 . equals ( "G" ) ) {
    s1 = "C" ;
  }
  else if ( s1 . equals ( "C" ) ) {
    s1 = "G" ;
  }
  System . out . println ( s1 ) ;
  System . out . flush ( ) ;
  sc . close ( ) ;
}

public static void main ( String [ ] args ) { String s1 = sc . next ( ) ; if ( s1 . equals ( " A " ) ) { s1 = " T " ; } else if ( s1 . equals ( " T " ) ) { s1 = " A " ; } if ( s1 . equals ( " G " ) ) { s1 = " C " ; } else if ( s1 . equals ( " C " ) ) { s1 = " G " ; } System . out . println ( s1 ) ; System . out . flush ( ) ; sc . close ( ) ; }
(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: (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: (block (expression_statement (assignment_expression left: (identifier) right: (string_literal)))) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (string_literal)))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (string_literal)))) alternative: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (string_literal)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))