public static void main ( String [ ] args ) throws IOException {
  read ( ) ;
  int [ ] times = readArray ( ) ;
  int total = 15 ;
  for ( int time : times ) {
    if ( time <= total ) {
      total = time ;
    }
    else {
      break ;
    }
    total += 15 ;
  }
  out . print ( total > 90 ? 90 : total ) ;
  out . close ( ) ;
}

public static void main ( String [ ] args ) throws IOException { read ( ) ; int [ ] times = readArray ( ) ; int total = 15 ; for ( int time : times ) { if ( time <= total ) { total = time ; } else { break ; } total += 15 ; } out . print ( total > 90 ? 90 : total ) ; out . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (ternary_expression condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) consequence: (decimal_integer_literal) alternative: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))