static long findFair ( long n ) {
  boolean flag = true ;
  while ( flag ) {
    long temp = n ;
    flag = false ;
    while ( temp > 0 ) {
      long val = temp % 10 ;
      if ( val == 0 ) {
        temp = temp / 10 ;
        continue ;
      }
      if ( n % val != 0 ) {
        flag = true ;
        n ++ ;
        break ;
      }
      temp = temp / 10 ;
    }
  }
  return n ;
}

static long findFair ( long n ) { boolean flag = true ; while ( flag ) { long temp = n ; flag = false ; while ( temp > 0 ) { long val = temp % 10 ; if ( val == 0 ) { temp = temp / 10 ; continue ; } if ( n % val != 0 ) { flag = true ; n ++ ; break ; } temp = temp / 10 ; } } return n ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (while_statement condition: (parenthesized_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (false))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (continue_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (update_expression (identifier))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) (return_statement (identifier))))