public static void solve ( InputReader in ) {
  int n = in . readInt ( ) ;
  char s [ ] = in . readString ( ) . toCharArray ( ) ;
  int left = 0 ;
  int right = n - 1 ;
  for ( ;
  left + 1 <= right ;
  left ++ , right -- ) {
    if ( s [ left ] == s [ right ] ) continue ;
    if ( s [ left ] == 'a' ) {
      if ( s [ left ] + 1 != s [ right ] - 1 ) {
        System . out . println ( "NO" ) ;
        return ;
      }
    }
    if ( s [ left ] == 'z' ) {
      if ( s [ left ] - 1 != s [ right ] + 1 ) {
        System . out . println ( "NO" ) ;
        return ;
      }
    }
    if ( s [ left ] > s [ right ] ) {
      if ( s [ left ] - 1 != s [ right ] + 1 ) {
        System . out . println ( "NO" ) ;
        return ;
      }
    }
    else if ( s [ left ] < s [ right ] ) {
      if ( s [ left ] + 1 != s [ right ] - 1 ) {
        System . out . println ( "NO" ) ;
        return ;
      }
    }
  }
  System . out . println ( "YES" ) ;
}

public static void solve ( InputReader in ) { int n = in . readInt ( ) ; char s [ ] = in . readString ( ) . toCharArray ( ) ; int left = 0 ; int right = n - 1 ; for ( ; left + 1 <= right ; left ++ , right -- ) { if ( s [ left ] == s [ right ] ) continue ; if ( s [ left ] == ' a ' ) { if ( s [ left ] + 1 != s [ right ] - 1 ) { System . out . println ( " NO " ) ; return ; } } if ( s [ left ] == ' z ' ) { if ( s [ left ] - 1 != s [ right ] + 1 ) { System . out . println ( " NO " ) ; return ; } } if ( s [ left ] > s [ right ] ) { if ( s [ left ] - 1 != s [ right ] + 1 ) { System . out . println ( " NO " ) ; return ; } } else if ( s [ left ] < s [ right ] ) { if ( s [ left ] + 1 != s [ right ] - 1 ) { System . out . println ( " NO " ) ; return ; } } } System . out . println ( " YES " ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (for_statement condition: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier)) update: (update_expression (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))) consequence: (continue_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement)))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))