/* * This is an open source non-commercial project. Dear PVS-Studio, please check it. * PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com */ #include #line 3 "toke.c" #define YY_INT_ALIGNED short int /* $OpenBSD: flex.skl,v 1.16 2017/05/02 19:16:19 millert Exp $ */ /* A lexical scanner generated by flex */ #define yy_create_buffer sudoers_create_buffer #define yy_delete_buffer sudoers_delete_buffer #define yy_flex_debug sudoers_flex_debug #define yy_init_buffer sudoers_init_buffer #define yy_flush_buffer sudoers_flush_buffer #define yy_load_buffer_state sudoers_load_buffer_state #define yy_switch_to_buffer sudoers_switch_to_buffer #define yyin sudoersin #define yyleng sudoersleng #define yylex sudoerslex #define yylineno sudoerslineno #define yyout sudoersout #define yyrestart sudoersrestart #define yytext sudoerstext #define yywrap sudoerswrap #define yyalloc sudoersalloc #define yyrealloc sudoersrealloc #define yyfree sudoersfree #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 39 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* end standard C headers. */ /* $OpenBSD: flexint.h,v 1.1 2015/11/19 19:43:40 tedu Exp $ */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE sudoersrestart(sudoersin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern yy_size_t sudoersleng; extern FILE *sudoersin, *sudoersout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up sudoerstext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up sudoerstext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via sudoersrestart()), so that the user can continue scanning by * just pointing sudoersin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when sudoerstext is formed. */ static char yy_hold_char; static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ yy_size_t sudoersleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow sudoerswrap()'s to do buffer switches * instead of setting up a fresh sudoersin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void sudoersrestart (FILE *input_file ); void sudoers_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE sudoers_create_buffer (FILE *file,int size ); void sudoers_delete_buffer (YY_BUFFER_STATE b ); void sudoers_flush_buffer (YY_BUFFER_STATE b ); void sudoerspush_buffer_state (YY_BUFFER_STATE new_buffer ); void sudoerspop_buffer_state (void ); static void sudoersensure_buffer_stack (void ); static void sudoers_load_buffer_state (void ); static void sudoers_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER sudoers_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE sudoers_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE sudoers_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE sudoers_scan_bytes (yyconst char *bytes,yy_size_t len ); void *sudoersalloc (yy_size_t ); void *sudoersrealloc (void *,yy_size_t ); void sudoersfree (void * ); #define yy_new_buffer sudoers_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ sudoersensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ sudoers_create_buffer(sudoersin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ sudoersensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ sudoers_create_buffer(sudoersin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ #define sudoerswrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *sudoersin = (FILE *) 0, *sudoersout = (FILE *) 0; typedef int yy_state_type; extern int sudoerslineno; int sudoerslineno = 1; extern char *sudoerstext; #define yytext_ptr sudoerstext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up sudoerstext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ sudoersleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 78 #define YY_END_OF_BUFFER 79 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[916] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 64, 74, 73, 77, 72, 63, 76, 40, 67, 68, 40, 69, 64, 64, 64, 64, 71, 70, 77, 64, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 77, 64, 64, 74, 76, 55, 55, 55, 55, 55, 2, 77, 1, 64, 55, 55, 55, 64, 17, 16, 16, 17, 16, 16, 77, 76, 77, 3, 9, 8, 9, 4, 9, 5, 77, 13, 13, 13, 11, 12, 77, 19, 19, 18, 18, 18, 19, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 18, 19, 19, 65, 65, 66, 65, 64, 0, 74, 73, 72, 76, 76, 0, 0, 64, 42, 0, 40, 0, 41, 0, 62, 62, 0, 64, 64, 0, 64, 64, 64, 64, 0, 45, 64, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 0, 75, 64, 64, 64, 64, 74, 0, 0, 0, 0, 0, 76, 64, 64, 64, 64, 64, 2, 1, 0, 1, 56, 56, 0, 55, 64, 17, 17, 15, 0, 14, 15, 0, 3, 9, 0, 6, 7, 9, 9, 13, 0, 13, 13, 0, 10, 0, 42, 0, 0, 41, 19, 19, 0, 19, 0, 0, 18, 18, 18, 18, 18, 18, 19, 19, 55, 19, 19, 19, 19, 19, 19, 19, 19, 19, 65, 65, 65, 76, 76, 76, 0, 42, 64, 64, 64, 64, 64, 0, 0, 45, 45, 64, 55, 47, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 64, 64, 0, 0, 0, 0, 0, 76, 64, 64, 64, 64, 64, 64, 0, 64, 10, 0, 0, 0, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 76, 76, 76, 64, 64, 64, 64, 64, 64, 0, 46, 46, 46, 0, 0, 45, 45, 45, 45, 45, 45, 45, 64, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 51, 55, 55, 52, 64, 64, 64, 64, 0, 0, 0, 0, 0, 0, 76, 64, 64, 64, 64, 0, 0, 0, 0, 0, 18, 18, 19, 19, 55, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 64, 64, 64, 0, 0, 46, 46, 46, 0, 45, 45, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 64, 0, 29, 55, 55, 55, 55, 0, 36, 55, 55, 55, 55, 55, 55, 55, 55, 55, 53, 55, 55, 64, 64, 64, 64, 64, 0, 0, 0, 76, 64, 64, 64, 0, 0, 0, 18, 18, 19, 55, 55, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 64, 64, 64, 64, 64, 0, 46, 0, 45, 45, 45, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 64, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 57, 58, 59, 60, 64, 0, 0, 76, 64, 64, 64, 0, 0, 0, 0, 0, 19, 55, 55, 19, 19, 55, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 43, 43, 43, 0, 0, 45, 45, 45, 45, 45, 45, 45, 0, 0, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 64, 0, 38, 55, 55, 55, 0, 28, 55, 55, 55, 0, 37, 55, 55, 55, 55, 0, 27, 0, 30, 48, 64, 0, 0, 76, 64, 64, 64, 43, 43, 43, 55, 55, 19, 55, 55, 19, 19, 19, 64, 43, 43, 43, 43, 0, 45, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 20, 55, 55, 55, 55, 55, 55, 55, 55, 50, 55, 61, 0, 0, 76, 64, 24, 56, 0, 43, 43, 43, 43, 55, 55, 19, 55, 55, 19, 19, 19, 44, 44, 44, 44, 45, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 0, 0, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 64, 55, 55, 55, 0, 39, 55, 55, 0, 26, 0, 31, 49, 0, 24, 22, 76, 25, 0, 64, 44, 44, 44, 44, 55, 55, 55, 55, 64, 64, 44, 44, 44, 44, 0, 0, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 64, 54, 0, 34, 55, 55, 55, 25, 22, 22, 22, 22, 76, 24, 0, 0, 0, 0, 0, 24, 0, 0, 0, 44, 44, 44, 44, 55, 55, 55, 64, 64, 64, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 21, 0, 32, 55, 55, 22, 76, 0, 24, 0, 0, 0, 55, 55, 64, 64, 64, 64, 64, 0, 0, 0, 0, 0, 45, 45, 45, 45, 45, 45, 45, 45, 0, 35, 55, 23, 0, 0, 0, 0, 0, 55, 64, 64, 64, 45, 45, 45, 45, 45, 45, 0, 33, 23, 23, 23, 23, 0, 0, 0, 64, 64, 64, 64, 64, 45, 45, 45, 45, 45, 23, 0, 0, 0, 0, 0, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 7, 8, 9, 1, 10, 1, 1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 1, 1, 30, 31, 13, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 42, 43, 44, 45, 46, 47, 42, 48, 49, 50, 51, 52, 53, 54, 55, 42, 13, 56, 13, 1, 57, 1, 58, 59, 60, 61, 62, 63, 64, 65, 66, 64, 64, 67, 68, 69, 70, 64, 64, 71, 72, 73, 74, 64, 64, 64, 64, 64, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[75] = { 0, 1, 2, 3, 4, 3, 2, 5, 6, 7, 1, 8, 8, 1, 1, 9, 1, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 14, 8, 1, 12, 12, 12, 12, 12, 12, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 17, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19 } ; static yyconst flex_int16_t yy_base[996] = { 0, 0, 73, 123, 194, 81, 97, 265, 338, 411, 466, 128, 137, 522, 0, 154, 172, 4214, 4153, 74, 6090, 4204, 4197, 6090, 594, 72, 6090, 6090, 4142, 6090, 174, 606, 194, 95, 4168, 6090, 6090, 29, 669, 4153, 35, 48, 725, 51, 4161, 4147, 72, 4145, 4143, 52, 787, 226, 98, 225, 816, 55, 103, 4109, 76, 4101, 186, 259, 145, 286, 4126, 4125, 4132, 133, 0, 6090, 4161, 4156, 6090, 0, 359, 880, 230, 0, 4101, 6090, 134, 6090, 167, 6090, 253, 4100, 146, 184, 6090, 297, 248, 420, 908, 952, 287, 329, 1010, 1060, 4112, 140, 165, 1116, 4103, 4115, 4101, 4056, 4042, 356, 0, 160, 4022, 262, 6090, 429, 4005, 482, 286, 6090, 4053, 164, 6090, 4056, 434, 479, 414, 629, 436, 669, 4000, 798, 766, 3999, 1178, 581, 1191, 4007, 4018, 826, 836, 335, 4005, 272, 373, 1254, 1310, 3979, 3972, 3963, 3961, 3965, 3962, 471, 3952, 3959, 3956, 3948, 3947, 3922, 764, 6090, 235, 809, 148, 168, 908, 3898, 3903, 3884, 3868, 3857, 382, 602, 329, 314, 410, 233, 818, 314, 847, 361, 880, 3864, 1372, 885, 383, 0, 3895, 874, 3897, 6090, 6090, 1030, 0, 3814, 1158, 6090, 6090, 3813, 952, 3812, 3859, 769, 384, 892, 770, 3862, 454, 904, 1190, 3807, 1381, 0, 1230, 1438, 1390, 1330, 1477, 3834, 1402, 1437, 1040, 1527, 1583, 3796, 0, 3790, 3778, 3781, 3778, 1429, 3762, 3741, 3730, 3726, 3718, 828, 439, 259, 366, 444, 1460, 1497, 1630, 1670, 1710, 1750, 3749, 3736, 1795, 618, 1841, 830, 1886, 0, 3729, 3703, 3688, 3664, 3677, 3665, 3661, 3648, 3656, 3633, 3617, 483, 3602, 3598, 3612, 3611, 3599, 3598, 928, 408, 577, 3570, 3554, 3545, 3548, 1143, 555, 770, 3551, 605, 428, 708, 1670, 861, 887, 1605, 1642, 1684, 1931, 3591, 1976, 0, 3551, 3531, 3514, 3527, 3515, 3512, 3500, 3501, 3457, 3445, 3408, 3419, 1134, 3385, 6090, 752, 777, 1694, 1011, 2023, 2063, 1723, 752, 3425, 3398, 1732, 926, 3397, 3396, 908, 1770, 2103, 1815, 1340, 2149, 1863, 874, 3381, 1163, 3363, 3358, 921, 1228, 3337, 3323, 3310, 3300, 3291, 3289, 3283, 3267, 3243, 3246, 0, 3224, 3220, 0, 1385, 366, 604, 1101, 3208, 3203, 3204, 3154, 3168, 3117, 1165, 263, 1359, 879, 1138, 1906, 3170, 1953, 1998, 1509, 2194, 2239, 1387, 3124, 922, 1402, 3125, 3100, 3103, 3083, 3074, 3070, 3066, 3054, 857, 3071, 3077, 3015, 2286, 2326, 2366, 3001, 2997, 2033, 2956, 2946, 2931, 2914, 924, 2044, 1048, 2073, 1418, 2406, 0, 2085, 2453, 2123, 1615, 2499, 2171, 1125, 1797, 6090, 2888, 2893, 2882, 2875, 1798, 6090, 2890, 2861, 2808, 2821, 2791, 2784, 2764, 2757, 2758, 0, 2676, 2673, 986, 1091, 1148, 735, 1187, 2687, 2607, 2605, 1539, 1105, 1166, 1334, 2216, 2261, 2298, 2644, 2627, 2602, 2609, 2590, 2604, 2556, 2499, 2512, 2505, 2514, 2514, 2496, 2508, 2505, 2506, 2489, 2448, 2308, 1206, 2546, 2586, 2339, 2478, 2476, 2456, 2434, 2624, 1347, 2348, 2379, 2391, 1357, 2012, 2275, 2426, 2466, 2671, 0, 2479, 2718, 2519, 1825, 2764, 2558, 1351, 1933, 2408, 2391, 2387, 1934, 2375, 1632, 2150, 2367, 2339, 2342, 2320, 2151, 2152, 2307, 2283, 2260, 2240, 2238, 372, 2223, 2202, 1429, 1190, 1019, 1344, 2568, 2234, 2598, 2610, 2438, 2547, 2201, 2195, 2672, 2180, 1634, 2673, 2171, 2161, 2674, 2719, 0, 0, 0, 0, 2123, 2810, 2849, 2888, 2131, 2130, 2126, 2644, 2928, 2691, 1873, 2973, 2740, 2784, 2118, 2822, 2834, 2796, 1642, 1659, 2475, 2861, 2861, 2874, 3020, 0, 2900, 3067, 2874, 1963, 3113, 2911, 1207, 2720, 6090, 2093, 2082, 2071, 2721, 6090, 2064, 2066, 2059, 2767, 6090, 2045, 1980, 1983, 1980, 2940, 6090, 2974, 6090, 0, 1418, 1942, 1934, 1472, 1284, 1175, 1433, 2994, 3041, 3088, 1955, 1941, 1918, 1916, 1892, 1906, 1889, 1865, 3133, 131, 3172, 3211, 3145, 1888, 1852, 3158, 1423, 3183, 1751, 3251, 0, 3195, 3264, 3221, 2054, 3309, 3233, 3286, 3331, 3356, 1710, 1987, 2941, 2950, 3366, 2954, 3378, 0, 3400, 3425, 3445, 2181, 3472, 1745, 1820, 1821, 1800, 2975, 1755, 1732, 2976, 3021, 0, 1744, 1709, 1691, 1676, 2375, 1436, 2239, 1669, 3482, 1664, 3493, 3504, 3052, 1624, 1597, 3022, 1593, 1573, 3023, 3115, 0, 3516, 3556, 3596, 3636, 1586, 3528, 3540, 3568, 1585, 2262, 2380, 3578, 2477, 3676, 0, 3608, 3689, 3619, 3296, 3734, 3648, 3658, 1566, 3711, 3756, 3411, 2205, 2326, 2956, 783, 1023, 3781, 0, 3457, 1387, 1510, 3116, 1508, 3605, 6090, 1492, 1480, 3783, 6090, 3784, 6090, 0, 1421, 2218, 2110, 1759, 1415, 3808, 3816, 3809, 3821, 3833, 3854, 3860, 1394, 1367, 1370, 3871, 1667, 3911, 3951, 3884, 1685, 3890, 1397, 3924, 3936, 3902, 1338, 1337, 2535, 2587, 3961, 2611, 3991, 0, 3973, 4004, 4024, 3341, 4049, 4071, 4095, 4106, 4117, 2834, 1323, 1248, 1020, 0, 4051, 6090, 4052, 1235, 1233, 6090, 1504, 2335, 6090, 1678, 1802, 4144, 4152, 4160, 4168, 4162, 4190, 4204, 4220, 4217, 1227, 4242, 4254, 4266, 1223, 4197, 1156, 1140, 4274, 4314, 4354, 4286, 4298, 4326, 1153, 1133, 2741, 3196, 4336, 3234, 4394, 0, 4366, 4407, 4377, 3721, 4429, 965, 4453, 4464, 4082, 943, 871, 4227, 6090, 4228, 773, 6090, 2595, 4474, 4484, 4496, 4508, 4520, 4363, 715, 4530, 1707, 4570, 4610, 4543, 4549, 655, 4583, 4595, 4561, 630, 569, 3265, 502, 431, 4622, 0, 3195, 4622, 6090, 4650, 2769, 4648, 373, 4661, 4673, 4638, 4700, 4713, 4753, 4793, 4688, 4698, 4723, 331, 0, 246, 4725, 6090, 1847, 3685, 6090, 1913, 4736, 4765, 4777, 4803, 1881, 4843, 4883, 4816, 6090, 4854, 4864, 3864, 6090, 6090, 4893, 182, 4905, 4921, 4824, 4931, 4941, 4951, 4989, 4999, 5009, 21, 5019, 5029, 6090, 5035, 4439, 6090, 5085, 5104, 5123, 5142, 5161, 5180, 5199, 5218, 5237, 5256, 5264, 5282, 5301, 5304, 5323, 5342, 5361, 5380, 5399, 5418, 5437, 5456, 5475, 5494, 5502, 5509, 5517, 5535, 5554, 5573, 5576, 5595, 5614, 5633, 5652, 5671, 5679, 5696, 5715, 5723, 5731, 5738, 5745, 5752, 5760, 5767, 5773, 5780, 5787, 5795, 5804, 5811, 5818, 5825, 5833, 5842, 5849, 5856, 5864, 5873, 5880, 5889, 5897, 5906, 5913, 5922, 5930, 5939, 5957, 5976, 5995, 6003, 6012, 6020, 6027, 6036, 6043, 6052, 6070, 2015 } ; static yyconst flex_int16_t yy_def[996] = { 0, 915, 1, 1, 1, 916, 916, 917, 917, 918, 918, 919, 919, 915, 13, 920, 920, 915, 921, 915, 915, 915, 915, 915, 922, 923, 915, 915, 924, 915, 925, 921, 31, 31, 926, 915, 915, 921, 915, 38, 38, 38, 38, 42, 42, 42, 42, 42, 42, 42, 921, 31, 921, 915, 922, 38, 38, 42, 42, 42, 915, 915, 915, 927, 42, 42, 42, 921, 928, 915, 915, 928, 915, 928, 915, 922, 915, 929, 930, 915, 930, 915, 930, 915, 931, 932, 932, 932, 915, 915, 933, 934, 935, 915, 93, 93, 93, 915, 97, 97, 97, 97, 101, 101, 101, 101, 101, 93, 96, 96, 936, 936, 915, 936, 921, 921, 915, 915, 915, 937, 915, 915, 938, 915, 923, 915, 933, 923, 924, 924, 925, 939, 921, 921, 31, 940, 134, 134, 134, 134, 941, 942, 921, 915, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 915, 915, 921, 921, 921, 921, 915, 915, 915, 915, 915, 915, 937, 921, 134, 921, 921, 921, 915, 915, 915, 915, 943, 944, 921, 144, 921, 945, 945, 915, 915, 915, 915, 938, 946, 947, 947, 915, 915, 947, 947, 948, 915, 948, 948, 915, 915, 915, 933, 933, 933, 949, 950, 96, 949, 951, 915, 915, 93, 216, 216, 216, 216, 915, 221, 222, 952, 222, 222, 222, 222, 222, 222, 222, 96, 96, 953, 953, 953, 937, 937, 954, 915, 915, 921, 921, 921, 134, 245, 955, 915, 956, 915, 921, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 921, 921, 915, 915, 915, 915, 915, 937, 921, 921, 245, 921, 921, 921, 915, 921, 915, 915, 915, 915, 96, 292, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 96, 96, 915, 954, 954, 921, 921, 921, 921, 921, 921, 957, 958, 958, 321, 959, 958, 960, 250, 915, 327, 327, 915, 327, 921, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 921, 921, 921, 921, 915, 915, 915, 915, 915, 915, 937, 921, 921, 921, 921, 915, 915, 915, 915, 915, 292, 221, 222, 222, 961, 222, 222, 222, 222, 222, 222, 222, 222, 222, 96, 96, 96, 96, 921, 921, 921, 915, 962, 962, 396, 962, 963, 964, 965, 915, 966, 330, 966, 915, 406, 966, 915, 409, 409, 915, 409, 921, 915, 915, 144, 144, 144, 144, 915, 915, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 921, 921, 921, 921, 921, 915, 915, 915, 937, 921, 921, 921, 915, 915, 915, 373, 374, 222, 961, 961, 222, 222, 222, 222, 222, 222, 222, 222, 96, 96, 96, 96, 96, 921, 921, 921, 921, 921, 967, 967, 968, 969, 915, 915, 915, 915, 915, 970, 970, 971, 412, 971, 915, 487, 971, 915, 490, 490, 915, 490, 921, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 921, 921, 921, 921, 921, 915, 915, 937, 921, 921, 921, 915, 915, 915, 915, 915, 222, 961, 961, 222, 222, 961, 222, 222, 222, 222, 222, 96, 96, 96, 96, 96, 921, 921, 921, 915, 972, 973, 477, 915, 550, 550, 915, 550, 915, 915, 915, 915, 915, 915, 974, 974, 975, 493, 975, 915, 566, 975, 915, 569, 569, 915, 569, 921, 915, 915, 144, 144, 144, 915, 915, 144, 144, 144, 915, 915, 144, 144, 144, 144, 915, 915, 915, 915, 144, 921, 915, 915, 937, 921, 921, 921, 915, 915, 915, 961, 961, 222, 961, 961, 222, 222, 96, 921, 921, 921, 921, 921, 915, 976, 915, 977, 553, 977, 977, 625, 977, 915, 628, 628, 915, 628, 915, 915, 915, 915, 978, 978, 979, 572, 979, 915, 642, 979, 915, 645, 645, 645, 921, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 921, 915, 915, 937, 921, 921, 921, 915, 915, 915, 915, 915, 961, 961, 222, 961, 961, 222, 222, 96, 921, 921, 921, 921, 915, 915, 915, 915, 980, 980, 981, 631, 981, 981, 693, 981, 915, 696, 696, 915, 696, 915, 915, 915, 915, 915, 915, 982, 982, 983, 983, 983, 711, 983, 921, 144, 144, 144, 915, 915, 144, 144, 915, 915, 915, 915, 144, 915, 915, 984, 937, 921, 985, 986, 915, 915, 915, 915, 961, 961, 961, 961, 921, 921, 921, 921, 921, 921, 915, 915, 915, 915, 915, 915, 987, 987, 988, 699, 988, 988, 759, 988, 915, 762, 762, 915, 762, 915, 915, 915, 915, 989, 989, 921, 144, 915, 915, 144, 144, 144, 915, 984, 984, 915, 984, 937, 985, 985, 985, 985, 915, 985, 986, 986, 915, 915, 915, 915, 915, 915, 961, 961, 961, 921, 921, 921, 915, 915, 915, 915, 990, 990, 991, 765, 991, 991, 815, 991, 915, 818, 818, 818, 915, 915, 915, 915, 915, 921, 915, 915, 144, 144, 915, 937, 915, 915, 915, 915, 915, 961, 961, 921, 921, 921, 921, 921, 915, 915, 915, 915, 915, 915, 992, 992, 993, 993, 993, 856, 856, 915, 915, 144, 994, 915, 915, 915, 915, 915, 961, 921, 921, 921, 915, 915, 915, 915, 995, 995, 915, 915, 994, 994, 915, 994, 915, 915, 915, 921, 921, 921, 921, 921, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 921, 921, 921, 915, 915, 915, 921, 921, 921, 915, 915, 915, 0, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915 } ; static yyconst flex_int16_t yy_nxt[6165] = { 0, 18, 19, 20, 18, 21, 19, 22, 23, 24, 25, 26, 27, 18, 28, 29, 18, 18, 30, 31, 32, 33, 31, 31, 31, 31, 31, 31, 31, 34, 35, 36, 37, 38, 39, 39, 39, 40, 41, 42, 42, 42, 42, 43, 44, 45, 42, 46, 47, 48, 49, 42, 42, 42, 42, 42, 50, 18, 51, 51, 51, 51, 51, 51, 18, 18, 18, 18, 18, 18, 18, 18, 52, 18, 18, 53, 116, 115, 144, 53, 116, 125, 54, 19, 69, 115, 70, 19, 71, 146, 72, 144, 148, 156, 147, 142, 72, 149, 144, 19, 69, 126, 70, 19, 71, 152, 72, 157, 55, 56, 72, 73, 72, 57, 138, 138, 138, 138, 138, 139, 153, 58, 154, 171, 59, 60, 72, 73, 127, 60, 86, 20, 61, 21, 86, 87, 88, 74, 62, 86, 20, 63, 21, 86, 87, 88, 144, 179, 201, 614, 174, 179, 201, 74, 115, 18, 19, 20, 36, 21, 19, 111, 112, 162, 195, 172, 64, 120, 65, 238, 66, 42, 163, 42, 19, 20, 36, 21, 19, 111, 112, 131, 131, 222, 89, 131, 131, 115, 176, 115, 194, 202, 176, 89, 225, 67, 60, 196, 162, 898, 60, 177, 200, 61, 115, 131, 272, 184, 222, 62, 113, 226, 63, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 194, 115, 232, 18, 164, 113, 273, 132, 164, 158, 159, 233, 188, 158, 64, 159, 65, 200, 66, 42, 114, 42, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 198, 159, 125, 188, 198, 165, 166, 120, 621, 238, 167, 67, 19, 20, 236, 21, 19, 22, 168, 75, 178, 169, 207, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 116, 115, 248, 115, 116, 181, 181, 285, 444, 181, 181, 203, 204, 250, 205, 203, 208, 199, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 179, 181, 235, 115, 179, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 19, 20, 182, 21, 19, 22, 114, 75, 219, 219, 219, 219, 219, 220, 246, 246, 246, 246, 246, 246, 813, 187, 159, 179, 188, 187, 189, 179, 190, 310, 115, 238, 189, 915, 190, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 120, 283, 238, 190, 190, 863, 202, 282, 437, 76, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 19, 20, 190, 21, 19, 22, 79, 75, 209, 115, 915, 209, 80, 81, 82, 115, 115, 209, 158, 159, 209, 188, 158, 209, 209, 596, 115, 200, 83, 251, 915, 287, 125, 236, 120, 915, 312, 211, 279, 209, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 915, 115, 915, 115, 84, 19, 20, 127, 21, 19, 22, 79, 75, 212, 209, 356, 284, 80, 81, 82, 915, 115, 235, 366, 114, 114, 114, 114, 114, 208, 114, 114, 235, 83, 114, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 259, 260, 208, 114, 114, 114, 261, 262, 345, 346, 263, 621, 264, 265, 84, 36, 19, 20, 36, 21, 19, 22, 36, 36, 90, 26, 27, 36, 91, 29, 36, 36, 92, 93, 94, 95, 93, 93, 93, 93, 93, 93, 93, 34, 96, 36, 36, 97, 98, 98, 98, 99, 100, 101, 101, 101, 101, 102, 103, 104, 101, 105, 101, 106, 101, 101, 101, 101, 101, 101, 76, 36, 107, 107, 107, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 109, 108, 108, 120, 813, 121, 242, 243, 244, 242, 242, 242, 242, 242, 242, 242, 122, 115, 364, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 133, 438, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 135, 248, 115, 357, 136, 136, 136, 136, 136, 136, 240, 358, 326, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 115, 757, 115, 115, 115, 280, 136, 136, 136, 136, 136, 136, 114, 281, 846, 114, 124, 124, 124, 124, 280, 114, 124, 124, 114, 114, 124, 114, 114, 114, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 135, 124, 124, 114, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 145, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 115, 144, 136, 136, 136, 136, 136, 136, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 915, 120, 514, 312, 144, 144, 144, 144, 144, 144, 115, 868, 158, 159, 144, 188, 158, 201, 288, 131, 131, 201, 288, 131, 131, 280, 310, 135, 312, 114, 114, 114, 114, 114, 114, 158, 159, 115, 160, 161, 114, 114, 114, 131, 114, 114, 402, 248, 114, 128, 128, 128, 128, 128, 115, 128, 128, 158, 159, 128, 188, 158, 114, 114, 114, 120, 176, 121, 132, 861, 176, 200, 115, 128, 128, 128, 234, 280, 122, 177, 234, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 115, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 158, 159, 463, 188, 158, 464, 170, 120, 235, 121, 115, 181, 181, 288, 332, 181, 181, 288, 203, 204, 191, 205, 203, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 131, 164, 181, 131, 125, 164, 131, 131, 115, 131, 131, 131, 131, 259, 260, 131, 131, 248, 115, 261, 262, 115, 367, 263, 915, 264, 115, 182, 326, 211, 131, 131, 414, 248, 165, 166, 398, 398, 398, 167, 353, 354, 280, 355, 326, 158, 159, 168, 188, 158, 169, 208, 248, 419, 453, 214, 131, 211, 420, 454, 215, 211, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 135, 211, 248, 115, 217, 217, 217, 217, 217, 217, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 194, 511, 217, 217, 217, 217, 217, 217, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 915, 313, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 915, 915, 248, 115, 211, 211, 211, 211, 211, 211, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 293, 293, 293, 293, 293, 293, 402, 248, 115, 211, 211, 211, 211, 211, 211, 211, 115, 115, 404, 211, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 135, 211, 827, 601, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 223, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 512, 224, 217, 217, 217, 217, 217, 217, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 915, 120, 115, 238, 222, 222, 222, 222, 222, 222, 387, 388, 115, 389, 222, 193, 115, 757, 439, 193, 415, 193, 193, 120, 415, 238, 513, 519, 193, 211, 211, 211, 211, 211, 211, 131, 115, 691, 114, 130, 114, 114, 130, 193, 114, 114, 840, 416, 130, 115, 206, 206, 206, 206, 495, 446, 206, 206, 363, 115, 206, 839, 130, 130, 114, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 206, 206, 115, 468, 245, 245, 245, 245, 245, 245, 421, 115, 443, 520, 421, 209, 209, 209, 209, 209, 794, 209, 209, 115, 794, 209, 115, 665, 515, 245, 245, 245, 245, 245, 245, 114, 600, 422, 114, 209, 209, 209, 115, 115, 114, 402, 248, 114, 114, 649, 114, 114, 114, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 135, 831, 830, 114, 252, 252, 252, 252, 252, 252, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 115, 144, 245, 245, 245, 245, 245, 245, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 915, 115, 248, 664, 144, 144, 144, 144, 144, 144, 289, 290, 291, 289, 289, 289, 289, 289, 289, 289, 407, 407, 407, 407, 407, 408, 248, 691, 623, 114, 114, 114, 114, 114, 114, 181, 248, 326, 114, 180, 114, 114, 180, 209, 114, 114, 209, 404, 180, 135, 415, 115, 209, 131, 415, 209, 521, 131, 209, 209, 131, 115, 180, 180, 114, 421, 131, 435, 115, 421, 436, 602, 211, 574, 209, 748, 115, 416, 802, 801, 131, 131, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 422, 120, 445, 238, 915, 248, 212, 209, 131, 621, 115, 131, 115, 800, 131, 131, 404, 131, 131, 131, 131, 623, 773, 131, 131, 293, 293, 293, 293, 293, 293, 293, 293, 293, 293, 300, 301, 211, 131, 131, 115, 302, 303, 115, 120, 304, 238, 305, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 115, 599, 660, 115, 780, 214, 131, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 666, 783, 731, 784, 292, 292, 292, 292, 292, 292, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 368, 779, 369, 369, 369, 369, 369, 369, 663, 292, 292, 292, 292, 292, 292, 211, 120, 778, 238, 211, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 135, 211, 777, 774, 294, 294, 294, 294, 294, 294, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 701, 224, 292, 292, 292, 292, 292, 292, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 915, 518, 623, 549, 222, 222, 222, 222, 222, 222, 368, 741, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 488, 488, 488, 488, 488, 489, 740, 211, 211, 211, 211, 211, 211, 313, 739, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 368, 248, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 404, 181, 583, 738, 609, 181, 248, 584, 181, 610, 832, 667, 784, 742, 181, 115, 313, 485, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 181, 181, 368, 742, 371, 371, 371, 371, 371, 372, 369, 369, 369, 369, 391, 392, 393, 391, 391, 391, 391, 391, 391, 391, 115, 841, 115, 115, 313, 248, 316, 316, 316, 316, 316, 317, 314, 314, 314, 314, 485, 313, 115, 314, 314, 314, 314, 314, 314, 728, 727, 115, 396, 396, 397, 398, 398, 398, 398, 398, 398, 398, 323, 120, 115, 238, 115, 115, 114, 915, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 115, 623, 726, 721, 318, 318, 318, 318, 318, 318, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 415, 421, 115, 720, 415, 421, 120, 714, 238, 318, 318, 318, 318, 318, 318, 320, 321, 322, 322, 322, 322, 322, 322, 322, 322, 323, 785, 416, 422, 324, 324, 324, 324, 324, 324, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 567, 567, 567, 567, 567, 568, 882, 717, 883, 324, 324, 324, 324, 324, 324, 248, 327, 328, 329, 327, 327, 327, 327, 327, 327, 327, 330, 716, 715, 833, 331, 331, 331, 331, 331, 331, 915, 549, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 626, 626, 626, 626, 626, 627, 887, 331, 331, 331, 331, 331, 331, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 135, 897, 400, 883, 333, 333, 333, 333, 333, 333, 447, 448, 449, 447, 447, 447, 447, 447, 447, 447, 575, 580, 115, 679, 575, 580, 678, 677, 676, 318, 318, 318, 318, 318, 318, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 135, 675, 576, 581, 373, 373, 373, 373, 373, 373, 368, 674, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 643, 643, 643, 643, 643, 644, 673, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 248, 672, 662, 661, 374, 374, 374, 374, 374, 374, 368, 564, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 896, 659, 402, 248, 658, 657, 896, 373, 373, 373, 373, 373, 373, 313, 404, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 323, 479, 480, 481, 479, 479, 479, 479, 479, 479, 479, 694, 694, 694, 694, 694, 695, 115, 313, 656, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 402, 248, 483, 483, 483, 483, 483, 483, 655, 654, 782, 783, 404, 784, 782, 653, 652, 115, 402, 248, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, 651, 650, 555, 405, 405, 405, 405, 405, 405, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 585, 591, 593, 549, 585, 591, 593, 400, 323, 405, 405, 405, 405, 405, 405, 248, 409, 410, 411, 409, 409, 409, 409, 409, 409, 409, 412, 586, 592, 594, 413, 413, 413, 413, 413, 413, 915, 613, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 712, 712, 712, 712, 712, 713, 612, 413, 413, 413, 413, 413, 413, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 248, 611, 732, 608, 450, 450, 450, 450, 450, 450, 522, 564, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 607, 732, 732, 606, 732, 732, 522, 450, 450, 450, 450, 450, 450, 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, 732, 598, 732, 733, 451, 451, 451, 451, 451, 451, 522, 621, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 597, 623, 402, 248, 115, 115, 115, 450, 450, 450, 450, 450, 450, 468, 485, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 522, 115, 525, 525, 525, 525, 525, 526, 523, 523, 523, 523, 543, 544, 545, 543, 543, 543, 543, 543, 543, 543, 782, 783, 115, 784, 782, 115, 468, 248, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 640, 468, 595, 469, 469, 469, 469, 469, 469, 115, 555, 590, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 729, 120, 589, 238, 729, 115, 468, 588, 471, 471, 471, 471, 471, 472, 469, 469, 469, 469, 115, 555, 621, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 555, 691, 558, 558, 558, 558, 558, 559, 556, 556, 556, 556, 587, 582, 115, 402, 248, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 404, 730, 579, 578, 482, 482, 482, 482, 482, 482, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 522, 577, 523, 523, 523, 523, 523, 523, 549, 482, 482, 482, 482, 482, 482, 402, 248, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 485, 915, 248, 400, 486, 486, 486, 486, 486, 486, 402, 248, 915, 485, 402, 248, 562, 562, 562, 562, 562, 562, 485, 323, 691, 323, 485, 542, 541, 486, 486, 486, 486, 486, 486, 248, 490, 491, 492, 490, 490, 490, 490, 490, 490, 490, 493, 540, 539, 538, 494, 494, 494, 494, 494, 494, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 537, 575, 536, 535, 621, 575, 534, 533, 532, 494, 494, 494, 494, 494, 494, 468, 691, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 915, 576, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 603, 604, 605, 603, 603, 603, 603, 603, 603, 603, 862, 120, 531, 238, 862, 115, 468, 621, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 522, 757, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 522, 915, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 530, 757, 529, 115, 550, 551, 552, 550, 550, 550, 550, 550, 550, 550, 553, 528, 527, 915, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 915, 580, 585, 591, 357, 580, 585, 591, 517, 554, 554, 554, 554, 554, 554, 402, 248, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 485, 581, 586, 592, 561, 561, 561, 561, 561, 561, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 516, 593, 575, 580, 510, 593, 575, 580, 509, 561, 561, 561, 561, 561, 561, 402, 248, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 564, 594, 576, 581, 565, 565, 565, 565, 565, 565, 915, 621, 624, 624, 624, 624, 624, 624, 624, 624, 624, 624, 585, 757, 881, 882, 585, 883, 881, 565, 565, 565, 565, 565, 565, 248, 569, 570, 571, 569, 569, 569, 569, 569, 569, 569, 572, 508, 507, 586, 573, 573, 573, 573, 573, 573, 633, 634, 635, 633, 633, 633, 633, 633, 633, 633, 555, 506, 556, 556, 556, 556, 556, 556, 505, 573, 573, 573, 573, 573, 573, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 555, 504, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 555, 248, 556, 556, 556, 556, 556, 556, 556, 556, 556, 556, 640, 503, 502, 115, 614, 616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 402, 248, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 564, 915, 248, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 564, 501, 115, 614, 617, 617, 617, 617, 617, 618, 615, 615, 615, 615, 402, 248, 638, 638, 638, 638, 638, 638, 500, 499, 498, 915, 564, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 497, 496, 591, 477, 115, 621, 591, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 623, 402, 248, 400, 624, 624, 624, 624, 624, 624, 402, 248, 592, 564, 915, 248, 402, 248, 323, 593, 718, 722, 640, 593, 718, 722, 640, 473, 640, 624, 624, 624, 624, 624, 624, 628, 629, 630, 628, 628, 628, 628, 628, 628, 628, 631, 594, 719, 723, 632, 632, 632, 632, 632, 632, 667, 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, 724, 718, 722, 323, 724, 718, 722, 141, 632, 632, 632, 632, 632, 632, 402, 248, 638, 638, 638, 638, 638, 638, 638, 638, 638, 638, 564, 725, 719, 723, 637, 637, 637, 637, 637, 637, 667, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 667, 668, 668, 668, 668, 668, 668, 467, 637, 637, 637, 637, 637, 637, 402, 248, 639, 639, 639, 639, 639, 639, 639, 639, 639, 639, 640, 466, 465, 462, 641, 641, 641, 641, 641, 641, 667, 670, 670, 670, 670, 670, 671, 668, 668, 668, 668, 724, 775, 461, 460, 724, 775, 459, 458, 641, 641, 641, 641, 641, 641, 248, 645, 646, 647, 645, 645, 645, 645, 645, 645, 645, 457, 456, 725, 776, 648, 648, 648, 648, 648, 648, 680, 681, 682, 683, 680, 680, 680, 680, 680, 680, 455, 614, 615, 615, 615, 615, 615, 615, 452, 648, 648, 648, 648, 648, 648, 685, 686, 687, 685, 685, 685, 685, 685, 685, 685, 368, 357, 115, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 115, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 621, 621, 689, 689, 689, 689, 689, 689, 876, 876, 876, 876, 623, 813, 442, 357, 115, 614, 615, 615, 615, 615, 615, 615, 615, 615, 615, 615, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 915, 915, 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 441, 813, 357, 440, 434, 115, 621, 433, 689, 689, 689, 689, 689, 689, 689, 689, 689, 689, 623, 621, 621, 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 691, 813, 432, 431, 692, 692, 692, 692, 692, 692, 701, 430, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 760, 760, 760, 760, 760, 761, 429, 692, 692, 692, 692, 692, 692, 696, 697, 698, 696, 696, 696, 696, 696, 696, 696, 699, 428, 427, 426, 700, 700, 700, 700, 700, 700, 701, 425, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 816, 816, 816, 816, 816, 817, 424, 700, 700, 700, 700, 700, 700, 701, 423, 704, 704, 704, 704, 704, 705, 702, 702, 702, 702, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 402, 248, 708, 708, 708, 708, 708, 708, 708, 708, 708, 708, 640, 418, 417, 135, 707, 707, 707, 707, 707, 707, 402, 248, 708, 708, 708, 708, 708, 708, 323, 400, 323, 701, 640, 702, 702, 702, 702, 702, 702, 707, 707, 707, 707, 707, 707, 402, 248, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 141, 390, 386, 385, 710, 710, 710, 710, 710, 710, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 402, 248, 772, 772, 772, 772, 772, 772, 384, 710, 710, 710, 710, 710, 710, 915, 383, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 734, 735, 736, 737, 734, 734, 734, 734, 734, 734, 667, 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, 667, 668, 668, 668, 668, 668, 668, 668, 668, 668, 668, 742, 382, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 748, 381, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 748, 380, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 379, 378, 377, 115, 742, 376, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 748, 375, 751, 751, 751, 751, 751, 752, 749, 749, 749, 749, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 718, 215, 365, 362, 718, 115, 742, 361, 745, 745, 745, 745, 745, 746, 747, 747, 747, 747, 621, 360, 755, 755, 755, 755, 755, 755, 359, 719, 352, 351, 691, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 350, 349, 348, 347, 115, 742, 344, 747, 747, 747, 743, 743, 743, 743, 743, 743, 743, 915, 343, 758, 758, 758, 758, 758, 758, 758, 758, 758, 758, 767, 768, 769, 767, 767, 767, 767, 767, 767, 767, 881, 882, 342, 883, 881, 115, 621, 341, 755, 755, 755, 755, 755, 755, 755, 755, 755, 755, 691, 621, 340, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 757, 339, 338, 337, 758, 758, 758, 758, 758, 758, 701, 336, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 857, 857, 857, 857, 857, 858, 335, 758, 758, 758, 758, 758, 758, 762, 763, 764, 762, 762, 762, 762, 762, 762, 762, 765, 334, 141, 133, 766, 766, 766, 766, 766, 766, 701, 235, 702, 702, 702, 702, 702, 702, 702, 702, 702, 702, 722, 724, 309, 308, 722, 724, 307, 766, 766, 766, 766, 766, 766, 402, 248, 772, 772, 772, 772, 772, 772, 772, 772, 772, 772, 787, 306, 723, 725, 787, 788, 789, 790, 787, 299, 298, 297, 787, 788, 789, 790, 794, 296, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 794, 295, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 794, 915, 797, 797, 797, 797, 797, 798, 799, 799, 799, 799, 775, 212, 791, 204, 775, 199, 200, 194, 194, 794, 793, 799, 799, 799, 795, 795, 795, 795, 795, 795, 795, 892, 892, 892, 892, 892, 892, 776, 803, 804, 805, 803, 803, 803, 803, 803, 803, 803, 159, 742, 186, 743, 743, 743, 743, 743, 743, 806, 807, 808, 806, 806, 806, 806, 806, 806, 806, 748, 286, 749, 749, 749, 749, 749, 749, 115, 742, 278, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 115, 748, 277, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 748, 276, 749, 749, 749, 749, 749, 749, 749, 749, 749, 749, 275, 274, 115, 742, 271, 743, 743, 743, 743, 743, 743, 743, 743, 743, 743, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 621, 270, 811, 811, 811, 811, 811, 811, 269, 268, 267, 266, 757, 258, 257, 256, 255, 115, 621, 254, 811, 811, 811, 811, 811, 811, 811, 811, 811, 811, 757, 621, 253, 812, 812, 812, 812, 812, 812, 812, 812, 812, 812, 813, 141, 114, 141, 814, 814, 814, 814, 814, 814, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 775, 828, 214, 129, 775, 828, 120, 118, 115, 814, 814, 814, 814, 814, 814, 818, 819, 820, 818, 818, 818, 818, 818, 818, 818, 235, 231, 776, 829, 821, 821, 821, 821, 821, 821, 915, 230, 814, 814, 814, 814, 814, 814, 814, 814, 814, 814, 248, 822, 822, 822, 822, 822, 822, 821, 821, 821, 821, 821, 821, 248, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 248, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 248, 824, 824, 824, 824, 824, 825, 822, 822, 822, 822, 915, 229, 228, 227, 915, 915, 915, 915, 787, 222, 200, 194, 787, 788, 789, 790, 915, 186, 117, 152, 915, 788, 789, 790, 915, 183, 149, 175, 915, 915, 915, 790, 834, 173, 155, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 154, 915, 151, 150, 786, 144, 141, 129, 828, 791, 786, 786, 828, 118, 786, 915, 117, 791, 115, 915, 915, 915, 915, 915, 915, 791, 915, 915, 786, 786, 786, 915, 915, 791, 792, 829, 915, 915, 828, 859, 792, 792, 828, 859, 792, 836, 837, 838, 836, 836, 836, 836, 836, 836, 836, 915, 915, 915, 792, 792, 792, 915, 915, 915, 915, 829, 860, 915, 794, 793, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 794, 915, 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, 794, 915, 795, 795, 795, 795, 795, 795, 841, 915, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 846, 915, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 846, 915, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 915, 915, 915, 115, 841, 915, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 846, 915, 849, 849, 849, 849, 849, 850, 847, 847, 847, 847, 821, 821, 821, 821, 821, 821, 821, 821, 821, 821, 859, 915, 915, 915, 859, 115, 841, 915, 844, 844, 844, 844, 844, 845, 842, 842, 842, 842, 621, 915, 853, 853, 853, 853, 853, 853, 915, 860, 915, 915, 813, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 915, 915, 915, 915, 115, 621, 915, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 813, 621, 915, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 915, 915, 915, 915, 855, 855, 855, 855, 855, 855, 915, 915, 855, 855, 855, 855, 855, 855, 855, 855, 855, 855, 912, 912, 912, 912, 912, 912, 915, 855, 855, 855, 855, 855, 855, 248, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 248, 822, 822, 822, 822, 822, 822, 822, 822, 822, 822, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 863, 915, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 863, 915, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 863, 915, 866, 866, 866, 866, 866, 867, 864, 864, 864, 864, 869, 870, 871, 869, 869, 869, 869, 869, 869, 869, 915, 841, 915, 842, 842, 842, 842, 842, 842, 872, 873, 874, 872, 872, 872, 872, 872, 872, 872, 846, 915, 847, 847, 847, 847, 847, 847, 115, 841, 915, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 115, 846, 915, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 846, 915, 847, 847, 847, 847, 847, 847, 847, 847, 847, 847, 859, 915, 115, 841, 859, 842, 842, 842, 842, 842, 842, 842, 842, 842, 842, 621, 915, 877, 877, 877, 877, 877, 877, 877, 877, 877, 877, 860, 878, 915, 915, 863, 878, 864, 864, 864, 864, 864, 864, 915, 915, 915, 115, 884, 885, 886, 884, 884, 884, 884, 884, 884, 884, 915, 863, 879, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 863, 915, 864, 864, 864, 864, 864, 864, 864, 864, 864, 864, 878, 915, 915, 915, 878, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 878, 915, 879, 887, 878, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 894, 894, 894, 894, 894, 895, 892, 892, 892, 892, 915, 898, 879, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 915, 915, 915, 915, 115, 887, 915, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 898, 915, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 898, 915, 901, 901, 901, 901, 901, 902, 899, 899, 899, 899, 915, 915, 915, 115, 887, 915, 890, 890, 890, 890, 890, 891, 888, 888, 888, 888, 903, 904, 905, 903, 903, 903, 903, 903, 903, 903, 915, 887, 915, 888, 888, 888, 888, 888, 888, 898, 915, 899, 899, 899, 899, 899, 899, 115, 915, 915, 915, 915, 915, 915, 915, 915, 915, 115, 887, 915, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 115, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 892, 915, 915, 915, 915, 915, 915, 115, 887, 915, 888, 888, 888, 888, 888, 888, 888, 888, 888, 888, 906, 907, 908, 906, 906, 906, 906, 906, 906, 906, 898, 915, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 915, 915, 915, 915, 898, 115, 899, 899, 899, 899, 899, 899, 899, 899, 899, 899, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, 910, 910, 910, 910, 910, 911, 909, 909, 909, 909, 915, 915, 915, 915, 915, 915, 915, 115, 915, 915, 915, 915, 915, 915, 915, 915, 915, 115, 915, 915, 915, 915, 915, 915, 915, 915, 915, 115, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 913, 913, 913, 913, 913, 914, 912, 912, 912, 912, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 909, 912, 912, 912, 912, 912, 912, 912, 912, 912, 912, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 115, 915, 915, 915, 915, 915, 915, 915, 915, 915, 115, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 114, 915, 915, 114, 915, 915, 915, 915, 915, 114, 114, 114, 915, 915, 114, 114, 114, 114, 114, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 124, 915, 915, 124, 915, 915, 124, 915, 915, 124, 124, 124, 124, 915, 124, 124, 124, 124, 124, 128, 915, 915, 128, 915, 915, 915, 915, 915, 128, 128, 128, 915, 915, 128, 128, 128, 128, 128, 130, 915, 915, 130, 130, 130, 915, 130, 915, 130, 130, 130, 915, 915, 130, 130, 130, 130, 130, 140, 140, 915, 915, 915, 915, 140, 180, 915, 915, 180, 180, 180, 915, 180, 915, 180, 180, 180, 915, 915, 180, 180, 180, 180, 180, 185, 915, 915, 185, 185, 185, 915, 185, 915, 185, 185, 185, 915, 185, 185, 915, 185, 185, 185, 192, 192, 192, 193, 915, 915, 193, 193, 915, 915, 193, 915, 193, 193, 193, 193, 915, 193, 193, 193, 193, 193, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 199, 199, 915, 199, 199, 915, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 206, 915, 915, 206, 915, 915, 206, 915, 915, 206, 206, 206, 206, 915, 206, 206, 206, 206, 206, 210, 915, 915, 210, 915, 915, 915, 915, 915, 210, 210, 210, 915, 210, 210, 210, 210, 210, 210, 213, 915, 915, 213, 213, 213, 915, 213, 915, 213, 213, 213, 915, 213, 213, 213, 213, 213, 213, 234, 915, 915, 915, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 239, 239, 915, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 131, 915, 915, 131, 131, 131, 915, 131, 915, 131, 131, 131, 915, 915, 131, 131, 131, 131, 131, 140, 140, 915, 915, 915, 915, 140, 247, 247, 915, 915, 915, 915, 247, 249, 249, 249, 915, 915, 915, 915, 249, 180, 915, 915, 180, 180, 180, 915, 180, 915, 180, 180, 180, 915, 915, 180, 180, 180, 180, 180, 181, 915, 915, 181, 181, 181, 915, 181, 915, 181, 181, 181, 915, 915, 181, 181, 181, 181, 181, 185, 915, 915, 185, 185, 185, 915, 185, 915, 185, 185, 185, 915, 185, 185, 915, 185, 185, 185, 192, 192, 192, 193, 915, 915, 193, 193, 915, 915, 193, 915, 193, 193, 193, 193, 915, 193, 193, 193, 193, 193, 199, 199, 915, 199, 199, 915, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 209, 915, 915, 209, 915, 915, 915, 915, 915, 209, 209, 209, 915, 915, 209, 209, 209, 209, 209, 210, 915, 915, 210, 915, 915, 915, 915, 915, 210, 210, 210, 915, 210, 210, 210, 210, 210, 210, 213, 915, 915, 213, 213, 213, 915, 213, 915, 213, 213, 213, 915, 213, 213, 213, 213, 213, 213, 224, 915, 915, 224, 915, 224, 234, 915, 915, 915, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 319, 319, 915, 915, 915, 915, 319, 325, 325, 325, 915, 915, 915, 915, 325, 394, 394, 915, 915, 915, 915, 394, 395, 395, 915, 915, 915, 915, 395, 399, 399, 915, 915, 915, 915, 399, 401, 401, 401, 915, 915, 915, 915, 401, 224, 915, 915, 224, 915, 224, 473, 473, 915, 915, 915, 915, 473, 475, 475, 915, 915, 915, 915, 475, 476, 476, 915, 915, 915, 915, 476, 478, 478, 478, 915, 915, 915, 915, 478, 482, 482, 482, 482, 915, 915, 915, 915, 482, 546, 546, 915, 915, 915, 915, 546, 547, 547, 915, 915, 915, 915, 547, 548, 548, 915, 915, 915, 915, 548, 560, 560, 560, 915, 915, 915, 915, 560, 561, 561, 561, 561, 915, 915, 915, 915, 561, 619, 619, 915, 915, 915, 915, 619, 620, 620, 915, 915, 915, 915, 620, 636, 636, 636, 915, 915, 915, 915, 636, 637, 637, 637, 637, 915, 915, 915, 915, 637, 684, 684, 915, 915, 915, 915, 684, 688, 915, 688, 688, 915, 915, 915, 915, 688, 706, 706, 706, 915, 915, 915, 915, 706, 707, 707, 707, 707, 915, 915, 915, 915, 707, 753, 753, 915, 915, 915, 915, 753, 754, 915, 754, 754, 915, 915, 915, 915, 754, 770, 770, 770, 915, 915, 915, 915, 770, 771, 771, 771, 915, 915, 915, 915, 915, 771, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 786, 786, 915, 786, 786, 786, 786, 915, 915, 786, 786, 786, 915, 915, 786, 786, 786, 786, 786, 792, 792, 915, 792, 792, 792, 792, 915, 915, 792, 792, 792, 915, 915, 792, 792, 792, 792, 792, 809, 809, 915, 915, 915, 915, 809, 810, 915, 810, 810, 915, 915, 915, 915, 810, 826, 826, 915, 915, 915, 915, 915, 826, 851, 851, 915, 915, 915, 915, 851, 852, 915, 852, 852, 915, 915, 915, 915, 852, 875, 875, 915, 915, 915, 915, 875, 876, 915, 876, 915, 915, 915, 915, 915, 876, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 880, 17, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915 } ; static yyconst flex_int16_t yy_chk[6165] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 19, 909, 40, 2, 19, 25, 2, 5, 5, 37, 5, 5, 5, 40, 5, 41, 43, 49, 41, 37, 5, 43, 55, 6, 6, 25, 6, 6, 6, 46, 6, 49, 2, 2, 5, 5, 6, 2, 33, 33, 33, 33, 33, 33, 46, 2, 58, 55, 2, 3, 6, 6, 25, 3, 11, 11, 3, 11, 11, 11, 11, 5, 3, 12, 12, 3, 12, 12, 12, 12, 56, 62, 86, 615, 58, 62, 86, 6, 52, 3, 15, 15, 15, 15, 15, 15, 15, 52, 80, 56, 3, 119, 3, 119, 3, 3, 52, 3, 16, 16, 16, 16, 16, 16, 16, 30, 30, 99, 11, 30, 30, 615, 60, 67, 80, 87, 60, 12, 99, 3, 4, 82, 67, 899, 4, 60, 86, 4, 162, 30, 162, 67, 100, 4, 15, 100, 4, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 82, 163, 109, 4, 53, 16, 163, 30, 53, 76, 76, 109, 76, 76, 4, 160, 4, 87, 4, 4, 51, 4, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 84, 84, 90, 84, 84, 53, 53, 237, 877, 237, 53, 4, 7, 7, 111, 7, 7, 7, 53, 7, 61, 53, 90, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 116, 175, 141, 160, 116, 63, 63, 175, 364, 63, 63, 89, 89, 141, 89, 89, 90, 89, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 177, 63, 111, 364, 177, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 63, 8, 8, 8, 172, 8, 95, 95, 95, 95, 95, 95, 139, 139, 139, 139, 139, 139, 875, 74, 74, 179, 74, 74, 74, 179, 74, 238, 173, 238, 74, 107, 74, 107, 107, 107, 107, 107, 107, 107, 107, 107, 107, 170, 173, 170, 74, 74, 864, 202, 172, 354, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 74, 9, 9, 9, 9, 9, 91, 354, 124, 91, 9, 9, 9, 515, 142, 91, 113, 113, 91, 113, 113, 91, 91, 515, 184, 202, 9, 142, 124, 184, 126, 236, 239, 855, 239, 91, 170, 91, 122, 122, 122, 122, 122, 122, 122, 122, 122, 122, 206, 273, 126, 174, 9, 10, 10, 124, 10, 10, 10, 10, 10, 91, 91, 273, 174, 10, 10, 10, 206, 284, 113, 284, 115, 115, 115, 115, 115, 126, 115, 115, 236, 10, 115, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 151, 151, 206, 115, 115, 115, 151, 151, 265, 265, 151, 854, 151, 151, 10, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 24, 852, 24, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 24, 280, 280, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 31, 355, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 249, 133, 274, 31, 31, 31, 31, 31, 31, 125, 274, 249, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 171, 851, 355, 283, 31, 171, 31, 31, 31, 31, 31, 31, 38, 171, 847, 38, 127, 127, 127, 127, 283, 38, 127, 127, 38, 38, 127, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 127, 127, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 311, 438, 311, 42, 42, 42, 42, 42, 42, 285, 840, 158, 158, 42, 158, 158, 201, 204, 130, 130, 201, 204, 130, 130, 285, 312, 318, 312, 42, 42, 42, 42, 42, 42, 50, 50, 438, 50, 50, 50, 50, 50, 130, 50, 50, 709, 709, 50, 129, 129, 129, 129, 129, 318, 129, 129, 161, 161, 129, 161, 161, 50, 50, 50, 54, 176, 54, 130, 831, 176, 201, 281, 129, 129, 129, 235, 281, 54, 176, 235, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 161, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 187, 187, 387, 187, 187, 387, 54, 75, 235, 75, 251, 180, 180, 288, 251, 180, 180, 288, 203, 203, 75, 203, 203, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 92, 164, 180, 92, 207, 164, 92, 92, 287, 92, 92, 92, 92, 183, 183, 92, 92, 325, 827, 183, 183, 332, 287, 183, 207, 183, 366, 180, 325, 92, 92, 92, 332, 401, 164, 164, 322, 322, 322, 164, 272, 272, 366, 272, 401, 198, 198, 164, 198, 198, 164, 207, 826, 337, 377, 92, 92, 93, 337, 377, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 822, 272, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 198, 435, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 96, 314, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 710, 710, 435, 96, 96, 96, 96, 96, 96, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 220, 220, 220, 220, 220, 220, 403, 403, 314, 96, 96, 96, 96, 96, 96, 97, 520, 773, 403, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 773, 520, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 436, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 279, 436, 279, 101, 101, 101, 101, 101, 101, 308, 308, 356, 308, 101, 194, 444, 810, 356, 194, 334, 194, 194, 363, 334, 363, 437, 444, 194, 101, 101, 101, 101, 101, 101, 132, 414, 809, 132, 132, 132, 132, 132, 194, 132, 132, 802, 334, 132, 367, 208, 208, 208, 208, 414, 367, 208, 208, 279, 437, 208, 801, 132, 132, 132, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 208, 208, 445, 469, 134, 134, 134, 134, 134, 134, 338, 601, 363, 445, 338, 212, 212, 212, 212, 212, 799, 212, 212, 439, 795, 212, 519, 601, 439, 134, 134, 134, 134, 134, 134, 143, 519, 338, 143, 212, 212, 212, 469, 574, 143, 772, 772, 143, 143, 574, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 779, 778, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 600, 771, 600, 144, 144, 144, 144, 144, 144, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 329, 329, 329, 329, 329, 329, 478, 754, 753, 144, 144, 144, 144, 144, 144, 182, 482, 478, 182, 182, 182, 182, 182, 210, 182, 182, 210, 482, 182, 365, 375, 446, 210, 214, 375, 210, 446, 214, 210, 210, 214, 521, 182, 182, 182, 378, 214, 353, 495, 378, 353, 521, 210, 495, 210, 749, 365, 375, 741, 740, 214, 214, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 378, 518, 365, 518, 405, 405, 210, 210, 213, 622, 353, 213, 714, 739, 213, 213, 405, 213, 213, 213, 213, 622, 714, 213, 213, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 229, 229, 213, 213, 213, 731, 229, 229, 596, 599, 229, 599, 229, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 602, 518, 596, 664, 727, 213, 213, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 602, 781, 664, 781, 216, 216, 216, 216, 216, 216, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 372, 721, 372, 372, 372, 372, 372, 372, 599, 216, 216, 216, 216, 216, 216, 221, 443, 720, 443, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 717, 715, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 702, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 443, 688, 684, 222, 222, 222, 222, 222, 222, 289, 676, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 411, 411, 411, 411, 411, 411, 675, 222, 222, 222, 222, 222, 222, 242, 673, 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, 290, 560, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 560, 286, 502, 672, 532, 286, 561, 502, 286, 532, 784, 668, 784, 743, 286, 242, 243, 561, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 286, 286, 291, 747, 291, 291, 291, 291, 291, 291, 291, 291, 291, 291, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 743, 842, 666, 243, 244, 636, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 636, 317, 747, 317, 317, 317, 317, 317, 317, 662, 661, 313, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 321, 730, 842, 730, 660, 244, 245, 624, 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, 317, 624, 659, 655, 245, 245, 245, 245, 245, 245, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 415, 421, 649, 654, 415, 421, 785, 649, 785, 245, 245, 245, 245, 245, 245, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 730, 415, 421, 248, 248, 248, 248, 248, 248, 328, 328, 328, 328, 328, 328, 328, 328, 328, 328, 492, 492, 492, 492, 492, 492, 880, 652, 880, 248, 248, 248, 248, 248, 248, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 651, 650, 785, 250, 250, 250, 250, 250, 250, 331, 620, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 552, 552, 552, 552, 552, 552, 888, 250, 250, 250, 250, 250, 250, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 883, 619, 883, 252, 252, 252, 252, 252, 252, 368, 368, 368, 368, 368, 368, 368, 368, 368, 368, 496, 500, 888, 613, 496, 500, 612, 611, 610, 252, 252, 252, 252, 252, 252, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 609, 496, 500, 292, 292, 292, 292, 292, 292, 370, 608, 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, 571, 571, 571, 571, 571, 571, 607, 292, 292, 292, 292, 292, 292, 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, 637, 606, 598, 597, 294, 294, 294, 294, 294, 294, 371, 637, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 995, 590, 483, 483, 589, 588, 995, 294, 294, 294, 294, 294, 294, 315, 483, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 630, 630, 630, 630, 630, 630, 315, 316, 587, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 404, 404, 404, 404, 404, 404, 404, 404, 404, 404, 408, 408, 408, 408, 408, 408, 408, 408, 584, 583, 729, 729, 408, 729, 729, 582, 579, 316, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 578, 577, 556, 327, 327, 327, 327, 327, 327, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 503, 508, 509, 548, 503, 508, 509, 547, 546, 327, 327, 327, 327, 327, 327, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 503, 508, 509, 330, 330, 330, 330, 330, 330, 413, 542, 413, 413, 413, 413, 413, 413, 413, 413, 413, 413, 647, 647, 647, 647, 647, 647, 535, 330, 330, 330, 330, 330, 330, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 706, 534, 728, 531, 373, 373, 373, 373, 373, 373, 447, 706, 447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 529, 665, 728, 528, 728, 728, 523, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 665, 517, 665, 665, 374, 374, 374, 374, 374, 374, 448, 689, 448, 448, 448, 448, 448, 448, 448, 448, 448, 448, 516, 689, 484, 484, 514, 665, 513, 374, 374, 374, 374, 374, 374, 391, 484, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 449, 512, 449, 449, 449, 449, 449, 449, 449, 449, 449, 449, 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, 782, 782, 511, 782, 782, 391, 392, 707, 392, 392, 392, 392, 392, 392, 392, 392, 392, 392, 707, 472, 510, 472, 472, 472, 472, 472, 472, 468, 479, 507, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 663, 663, 506, 663, 663, 392, 393, 505, 393, 393, 393, 393, 393, 393, 393, 393, 393, 393, 472, 480, 690, 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, 481, 690, 481, 481, 481, 481, 481, 481, 481, 481, 481, 481, 504, 501, 393, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 663, 499, 498, 406, 406, 406, 406, 406, 406, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 526, 497, 526, 526, 526, 526, 526, 526, 476, 406, 406, 406, 406, 406, 406, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 486, 486, 475, 409, 409, 409, 409, 409, 409, 562, 562, 692, 486, 489, 489, 489, 489, 489, 489, 489, 489, 562, 474, 692, 473, 489, 467, 466, 409, 409, 409, 409, 409, 409, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 465, 464, 463, 412, 412, 412, 412, 412, 412, 491, 491, 491, 491, 491, 491, 491, 491, 491, 491, 462, 527, 461, 460, 755, 527, 459, 458, 457, 412, 412, 412, 412, 412, 412, 470, 755, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 494, 527, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 833, 833, 456, 833, 833, 470, 471, 756, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 524, 756, 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, 525, 758, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 455, 758, 454, 471, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 453, 452, 451, 477, 477, 477, 477, 477, 477, 549, 549, 549, 549, 549, 549, 549, 549, 549, 549, 450, 530, 533, 536, 442, 530, 533, 536, 441, 477, 477, 477, 477, 477, 477, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 487, 530, 533, 536, 487, 487, 487, 487, 487, 487, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 440, 537, 575, 580, 434, 537, 575, 580, 433, 487, 487, 487, 487, 487, 487, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, 537, 575, 580, 490, 490, 490, 490, 490, 490, 554, 811, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 585, 811, 862, 862, 585, 862, 862, 490, 490, 490, 490, 490, 490, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 493, 431, 430, 585, 493, 493, 493, 493, 493, 493, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 559, 429, 559, 559, 559, 559, 559, 559, 428, 493, 493, 493, 493, 493, 493, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 557, 427, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 558, 770, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 770, 426, 425, 543, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 563, 563, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 563, 565, 565, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 565, 424, 544, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 545, 568, 568, 568, 568, 568, 568, 568, 568, 423, 420, 419, 573, 568, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 418, 417, 591, 400, 545, 550, 591, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 638, 638, 399, 550, 550, 550, 550, 550, 550, 639, 639, 591, 638, 641, 641, 708, 708, 398, 593, 653, 656, 639, 593, 653, 656, 641, 397, 708, 550, 550, 550, 550, 550, 550, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 593, 653, 656, 553, 553, 553, 553, 553, 553, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 603, 657, 674, 677, 395, 657, 674, 677, 394, 553, 553, 553, 553, 553, 553, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 657, 674, 677, 566, 566, 566, 566, 566, 566, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 604, 671, 671, 671, 671, 671, 671, 671, 390, 566, 566, 566, 566, 566, 566, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 389, 388, 386, 569, 569, 569, 569, 569, 569, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 605, 678, 716, 385, 384, 678, 716, 383, 382, 569, 569, 569, 569, 569, 569, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 381, 380, 678, 716, 572, 572, 572, 572, 572, 572, 614, 614, 614, 614, 614, 614, 614, 614, 614, 614, 379, 618, 618, 618, 618, 618, 618, 618, 376, 572, 572, 572, 572, 572, 572, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 369, 362, 614, 616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 618, 623, 623, 623, 623, 623, 623, 623, 623, 623, 623, 627, 812, 627, 627, 627, 627, 627, 627, 858, 858, 858, 858, 627, 812, 361, 360, 616, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 629, 629, 629, 629, 629, 629, 629, 629, 629, 629, 632, 814, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 359, 814, 358, 357, 351, 617, 625, 350, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 628, 853, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 628, 853, 348, 347, 628, 628, 628, 628, 628, 628, 633, 346, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 698, 698, 698, 698, 698, 698, 345, 628, 628, 628, 628, 628, 628, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 344, 343, 342, 631, 631, 631, 631, 631, 631, 634, 341, 634, 634, 634, 634, 634, 634, 634, 634, 634, 634, 764, 764, 764, 764, 764, 764, 340, 631, 631, 631, 631, 631, 631, 635, 339, 635, 635, 635, 635, 635, 635, 635, 635, 635, 635, 640, 640, 640, 640, 640, 640, 640, 640, 640, 640, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, 336, 335, 333, 642, 642, 642, 642, 642, 642, 644, 644, 644, 644, 644, 644, 644, 644, 324, 323, 320, 705, 644, 705, 705, 705, 705, 705, 705, 642, 642, 642, 642, 642, 642, 645, 645, 645, 645, 645, 645, 645, 645, 645, 645, 645, 645, 319, 309, 307, 306, 645, 645, 645, 645, 645, 645, 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, 713, 713, 713, 713, 713, 713, 713, 713, 305, 645, 645, 645, 645, 645, 645, 648, 304, 648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 670, 680, 303, 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 685, 302, 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 686, 301, 686, 686, 686, 686, 686, 686, 686, 686, 686, 686, 300, 299, 298, 680, 681, 297, 681, 681, 681, 681, 681, 681, 681, 681, 681, 681, 687, 296, 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, 718, 293, 282, 278, 718, 681, 682, 277, 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 695, 276, 695, 695, 695, 695, 695, 695, 275, 718, 271, 270, 695, 697, 697, 697, 697, 697, 697, 697, 697, 697, 697, 269, 268, 267, 266, 682, 683, 264, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 700, 263, 700, 700, 700, 700, 700, 700, 700, 700, 700, 700, 701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 881, 881, 262, 881, 881, 683, 693, 261, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 696, 260, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 259, 258, 257, 696, 696, 696, 696, 696, 696, 703, 256, 703, 703, 703, 703, 703, 703, 703, 703, 703, 703, 820, 820, 820, 820, 820, 820, 255, 696, 696, 696, 696, 696, 696, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 699, 254, 247, 246, 699, 699, 699, 699, 699, 699, 704, 234, 704, 704, 704, 704, 704, 704, 704, 704, 704, 704, 722, 724, 233, 232, 722, 724, 231, 699, 699, 699, 699, 699, 699, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 711, 732, 230, 722, 724, 732, 732, 732, 732, 733, 228, 227, 226, 733, 733, 733, 733, 734, 225, 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, 735, 223, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 736, 217, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 738, 209, 732, 205, 738, 200, 199, 197, 193, 737, 733, 737, 737, 737, 737, 737, 737, 737, 737, 737, 737, 895, 895, 895, 895, 895, 895, 738, 742, 742, 742, 742, 742, 742, 742, 742, 742, 742, 188, 746, 186, 746, 746, 746, 746, 746, 746, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 752, 181, 752, 752, 752, 752, 752, 752, 742, 744, 169, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 746, 750, 168, 750, 750, 750, 750, 750, 750, 750, 750, 750, 750, 751, 167, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 166, 165, 744, 745, 157, 745, 745, 745, 745, 745, 745, 745, 745, 745, 745, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 761, 156, 761, 761, 761, 761, 761, 761, 155, 154, 153, 152, 761, 150, 149, 148, 147, 745, 759, 146, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 762, 145, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 762, 140, 136, 135, 762, 762, 762, 762, 762, 762, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 775, 777, 131, 128, 775, 777, 121, 118, 114, 762, 762, 762, 762, 762, 762, 765, 765, 765, 765, 765, 765, 765, 765, 765, 765, 110, 106, 775, 777, 765, 765, 765, 765, 765, 765, 766, 105, 766, 766, 766, 766, 766, 766, 766, 766, 766, 766, 825, 825, 825, 825, 825, 825, 825, 765, 765, 765, 765, 765, 765, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 767, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 769, 786, 104, 103, 102, 786, 786, 786, 786, 787, 98, 85, 78, 787, 787, 787, 787, 788, 71, 70, 66, 788, 788, 788, 788, 789, 65, 64, 59, 789, 789, 789, 789, 790, 57, 48, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 47, 791, 45, 44, 791, 39, 34, 28, 800, 786, 791, 791, 800, 22, 791, 792, 21, 787, 18, 792, 792, 792, 792, 17, 0, 788, 0, 0, 791, 791, 791, 793, 0, 789, 793, 800, 0, 0, 828, 830, 793, 793, 828, 830, 793, 794, 794, 794, 794, 794, 794, 794, 794, 794, 794, 0, 0, 0, 793, 793, 793, 0, 0, 0, 0, 828, 830, 0, 796, 792, 796, 796, 796, 796, 796, 796, 796, 796, 796, 796, 797, 0, 797, 797, 797, 797, 797, 797, 797, 797, 797, 797, 798, 0, 798, 798, 798, 798, 798, 798, 803, 0, 803, 803, 803, 803, 803, 803, 803, 803, 803, 803, 806, 0, 806, 806, 806, 806, 806, 806, 806, 806, 806, 806, 807, 0, 807, 807, 807, 807, 807, 807, 807, 807, 807, 807, 0, 0, 0, 803, 804, 0, 804, 804, 804, 804, 804, 804, 804, 804, 804, 804, 808, 0, 808, 808, 808, 808, 808, 808, 808, 808, 808, 808, 813, 813, 813, 813, 813, 813, 813, 813, 813, 813, 839, 0, 0, 0, 839, 804, 805, 0, 805, 805, 805, 805, 805, 805, 805, 805, 805, 805, 817, 0, 817, 817, 817, 817, 817, 817, 0, 839, 0, 0, 817, 819, 819, 819, 819, 819, 819, 819, 819, 819, 819, 0, 0, 0, 0, 805, 815, 0, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 815, 818, 0, 818, 818, 818, 818, 818, 818, 818, 818, 818, 818, 0, 0, 0, 0, 818, 818, 818, 818, 818, 818, 821, 0, 821, 821, 821, 821, 821, 821, 821, 821, 821, 821, 914, 914, 914, 914, 914, 914, 0, 818, 818, 818, 818, 818, 818, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 824, 834, 834, 834, 834, 834, 834, 834, 834, 834, 834, 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, 836, 0, 836, 836, 836, 836, 836, 836, 836, 836, 836, 836, 837, 0, 837, 837, 837, 837, 837, 837, 837, 837, 837, 837, 838, 0, 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, 841, 841, 841, 841, 841, 841, 841, 841, 841, 841, 0, 845, 0, 845, 845, 845, 845, 845, 845, 846, 846, 846, 846, 846, 846, 846, 846, 846, 846, 850, 0, 850, 850, 850, 850, 850, 850, 841, 843, 0, 843, 843, 843, 843, 843, 843, 843, 843, 843, 843, 845, 848, 0, 848, 848, 848, 848, 848, 848, 848, 848, 848, 848, 849, 0, 849, 849, 849, 849, 849, 849, 849, 849, 849, 849, 859, 0, 843, 844, 859, 844, 844, 844, 844, 844, 844, 844, 844, 844, 844, 856, 0, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 859, 861, 0, 0, 867, 861, 867, 867, 867, 867, 867, 867, 0, 0, 0, 844, 863, 863, 863, 863, 863, 863, 863, 863, 863, 863, 0, 865, 861, 865, 865, 865, 865, 865, 865, 865, 865, 865, 865, 866, 0, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 868, 0, 0, 0, 868, 872, 872, 872, 872, 872, 872, 872, 872, 872, 872, 873, 873, 873, 873, 873, 873, 873, 873, 873, 873, 878, 0, 868, 869, 878, 869, 869, 869, 869, 869, 869, 869, 869, 869, 869, 874, 874, 874, 874, 874, 874, 874, 874, 874, 874, 0, 884, 878, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 0, 0, 0, 0, 869, 870, 0, 870, 870, 870, 870, 870, 870, 870, 870, 870, 870, 885, 0, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 886, 0, 886, 886, 886, 886, 886, 886, 886, 886, 886, 886, 0, 0, 0, 870, 871, 0, 871, 871, 871, 871, 871, 871, 871, 871, 871, 871, 887, 887, 887, 887, 887, 887, 887, 887, 887, 887, 0, 891, 0, 891, 891, 891, 891, 891, 891, 902, 0, 902, 902, 902, 902, 902, 902, 871, 0, 0, 0, 0, 0, 0, 0, 0, 0, 887, 889, 0, 889, 889, 889, 889, 889, 889, 889, 889, 889, 889, 891, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, 0, 0, 0, 0, 0, 0, 889, 890, 0, 890, 890, 890, 890, 890, 890, 890, 890, 890, 890, 898, 898, 898, 898, 898, 898, 898, 898, 898, 898, 900, 0, 900, 900, 900, 900, 900, 900, 900, 900, 900, 900, 0, 0, 0, 0, 901, 890, 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, 904, 904, 904, 904, 904, 904, 904, 904, 904, 904, 905, 905, 905, 905, 905, 905, 905, 905, 905, 905, 0, 0, 0, 0, 0, 0, 0, 903, 0, 0, 0, 0, 0, 0, 0, 0, 0, 904, 0, 0, 0, 0, 0, 0, 0, 0, 0, 905, 906, 906, 906, 906, 906, 906, 906, 906, 906, 906, 907, 907, 907, 907, 907, 907, 907, 907, 907, 907, 908, 908, 908, 908, 908, 908, 908, 908, 908, 908, 910, 910, 910, 910, 910, 910, 910, 910, 910, 910, 911, 911, 911, 911, 911, 911, 913, 913, 913, 913, 913, 913, 913, 913, 913, 913, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 910, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 916, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 917, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 919, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 920, 921, 0, 0, 921, 0, 0, 0, 0, 0, 921, 921, 921, 0, 0, 921, 921, 921, 921, 921, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 922, 923, 0, 0, 923, 0, 0, 923, 0, 0, 923, 923, 923, 923, 0, 923, 923, 923, 923, 923, 924, 0, 0, 924, 0, 0, 0, 0, 0, 924, 924, 924, 0, 0, 924, 924, 924, 924, 924, 925, 0, 0, 925, 925, 925, 0, 925, 0, 925, 925, 925, 0, 0, 925, 925, 925, 925, 925, 926, 926, 0, 0, 0, 0, 926, 927, 0, 0, 927, 927, 927, 0, 927, 0, 927, 927, 927, 0, 0, 927, 927, 927, 927, 927, 928, 0, 0, 928, 928, 928, 0, 928, 0, 928, 928, 928, 0, 928, 928, 0, 928, 928, 928, 929, 929, 929, 930, 0, 0, 930, 930, 0, 0, 930, 0, 930, 930, 930, 930, 0, 930, 930, 930, 930, 930, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 931, 932, 932, 0, 932, 932, 0, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 932, 933, 0, 0, 933, 0, 0, 933, 0, 0, 933, 933, 933, 933, 0, 933, 933, 933, 933, 933, 934, 0, 0, 934, 0, 0, 0, 0, 0, 934, 934, 934, 0, 934, 934, 934, 934, 934, 934, 935, 0, 0, 935, 935, 935, 0, 935, 0, 935, 935, 935, 0, 935, 935, 935, 935, 935, 935, 936, 0, 0, 0, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 936, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 937, 938, 938, 0, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 938, 939, 0, 0, 939, 939, 939, 0, 939, 0, 939, 939, 939, 0, 0, 939, 939, 939, 939, 939, 940, 940, 0, 0, 0, 0, 940, 941, 941, 0, 0, 0, 0, 941, 942, 942, 942, 0, 0, 0, 0, 942, 943, 0, 0, 943, 943, 943, 0, 943, 0, 943, 943, 943, 0, 0, 943, 943, 943, 943, 943, 944, 0, 0, 944, 944, 944, 0, 944, 0, 944, 944, 944, 0, 0, 944, 944, 944, 944, 944, 945, 0, 0, 945, 945, 945, 0, 945, 0, 945, 945, 945, 0, 945, 945, 0, 945, 945, 945, 946, 946, 946, 947, 0, 0, 947, 947, 0, 0, 947, 0, 947, 947, 947, 947, 0, 947, 947, 947, 947, 947, 948, 948, 0, 948, 948, 0, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 949, 0, 0, 949, 0, 0, 0, 0, 0, 949, 949, 949, 0, 0, 949, 949, 949, 949, 949, 950, 0, 0, 950, 0, 0, 0, 0, 0, 950, 950, 950, 0, 950, 950, 950, 950, 950, 950, 951, 0, 0, 951, 951, 951, 0, 951, 0, 951, 951, 951, 0, 951, 951, 951, 951, 951, 951, 952, 0, 0, 952, 0, 952, 953, 0, 0, 0, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 954, 955, 955, 0, 0, 0, 0, 955, 956, 956, 956, 0, 0, 0, 0, 956, 957, 957, 0, 0, 0, 0, 957, 958, 958, 0, 0, 0, 0, 958, 959, 959, 0, 0, 0, 0, 959, 960, 960, 960, 0, 0, 0, 0, 960, 961, 0, 0, 961, 0, 961, 962, 962, 0, 0, 0, 0, 962, 963, 963, 0, 0, 0, 0, 963, 964, 964, 0, 0, 0, 0, 964, 965, 965, 965, 0, 0, 0, 0, 965, 966, 966, 966, 966, 0, 0, 0, 0, 966, 967, 967, 0, 0, 0, 0, 967, 968, 968, 0, 0, 0, 0, 968, 969, 969, 0, 0, 0, 0, 969, 970, 970, 970, 0, 0, 0, 0, 970, 971, 971, 971, 971, 0, 0, 0, 0, 971, 972, 972, 0, 0, 0, 0, 972, 973, 973, 0, 0, 0, 0, 973, 974, 974, 974, 0, 0, 0, 0, 974, 975, 975, 975, 975, 0, 0, 0, 0, 975, 976, 976, 0, 0, 0, 0, 976, 977, 0, 977, 977, 0, 0, 0, 0, 977, 978, 978, 978, 0, 0, 0, 0, 978, 979, 979, 979, 979, 0, 0, 0, 0, 979, 980, 980, 0, 0, 0, 0, 980, 981, 0, 981, 981, 0, 0, 0, 0, 981, 982, 982, 982, 0, 0, 0, 0, 982, 983, 983, 983, 0, 0, 0, 0, 0, 983, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 984, 985, 985, 0, 985, 985, 985, 985, 0, 0, 985, 985, 985, 0, 0, 985, 985, 985, 985, 985, 986, 986, 0, 986, 986, 986, 986, 0, 0, 986, 986, 986, 0, 0, 986, 986, 986, 986, 986, 987, 987, 0, 0, 0, 0, 987, 988, 0, 988, 988, 0, 0, 0, 0, 988, 989, 989, 0, 0, 0, 0, 0, 989, 990, 990, 0, 0, 0, 0, 990, 991, 0, 991, 991, 0, 0, 0, 0, 991, 992, 992, 0, 0, 0, 0, 992, 993, 0, 993, 0, 0, 0, 0, 0, 993, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 994, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int sudoers_flex_debug; int sudoers_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *sudoerstext; #line 1 "toke.l" #line 2 "toke.l" /* * SPDX-License-Identifier: ISC * * Copyright (c) 1996, 1998-2005, 2007-2020 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Sponsored in part by the Defense Advanced Research Projects * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ #include #include #include #include #include #include #if defined(HAVE_STDINT_H) # include #elif defined(HAVE_INTTYPES_H) # include #endif #include #include #include #include #include "sudoers.h" #include "toke.h" #include #include "sudo_digest.h" #include "sudo_lbuf.h" #if defined(HAVE_STRUCT_DIRENT_D_NAMLEN) && HAVE_STRUCT_DIRENT_D_NAMLEN # define NAMLEN(dirent) (dirent)->d_namlen #else # define NAMLEN(dirent) strlen((dirent)->d_name) #endif int sudolineno; /* current sudoers line number. */ int last_token; /* last token that was parsed. */ char *sudoers; /* sudoers file being parsed. */ /* Default sudoers path, mode and owner (may be set via sudo.conf) */ const char *sudoers_file = _PATH_SUDOERS; mode_t sudoers_mode = SUDOERS_MODE; uid_t sudoers_uid = SUDOERS_UID; gid_t sudoers_gid = SUDOERS_GID; static bool continued, sawspace; static int prev_state; static int digest_type = -1; static bool pop_include(void); int (*trace_print)(const char *msg) = sudoers_trace_print; #define LEXRETURN(n) do { \ last_token = (n); \ return (n); \ } while (0) #define ECHO ignore_result(fwrite(sudoerstext, sudoersleng, 1, sudoersout)) #define YY_NO_INPUT 1 #line 2240 "toke.c" #define INITIAL 0 #define GOTDEFS 1 #define GOTCMND 2 #define STARTDEFS 3 #define INDEFS 4 #define INSTR 5 #define WANTDIGEST 6 #define GOTINC 7 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int sudoerslex_destroy (void ); int sudoersget_debug (void ); void sudoersset_debug (int debug_flag ); YY_EXTRA_TYPE sudoersget_extra (void ); void sudoersset_extra (YY_EXTRA_TYPE user_defined ); FILE *sudoersget_in (void ); void sudoersset_in (FILE * in_str ); FILE *sudoersget_out (void ); void sudoersset_out (FILE * out_str ); yy_size_t sudoersget_leng (void ); char *sudoersget_text (void ); int sudoersget_lineno (void ); void sudoersset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int sudoerswrap (void ); #else extern int sudoerswrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( sudoerstext, sudoersleng, 1, sudoersout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( sudoersin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( sudoersin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, sudoersin))==0 && ferror(sudoersin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(sudoersin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int sudoerslex (void); #define YY_DECL int sudoerslex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after sudoerstext and sudoersleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( sudoersleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (sudoerstext[sudoersleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! sudoersin ) sudoersin = stdin; if ( ! sudoersout ) sudoersout = stdout; if ( ! YY_CURRENT_BUFFER ) { sudoersensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = sudoers_create_buffer(sudoersin,YY_BUF_SIZE ); } sudoers_load_buffer_state( ); } { #line 104 "toke.l" #line 2459 "toke.c" while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of sudoerstext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 916 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 6090 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: YY_RULE_SETUP #line 105 "toke.l" { LEXTRACE(", "); LEXRETURN(','); } /* return ',' */ YY_BREAK case 2: YY_RULE_SETUP #line 110 "toke.l" BEGIN STARTDEFS; YY_BREAK case 3: YY_RULE_SETUP #line 112 "toke.l" { BEGIN INDEFS; LEXTRACE("DEFVAR "); if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXRETURN(DEFVAR); } YY_BREAK case 4: YY_RULE_SETUP #line 121 "toke.l" { BEGIN STARTDEFS; LEXTRACE(", "); LEXRETURN(','); } /* return ',' */ YY_BREAK case 5: YY_RULE_SETUP #line 127 "toke.l" { LEXTRACE("= "); LEXRETURN('='); } /* return '=' */ YY_BREAK case 6: YY_RULE_SETUP #line 132 "toke.l" { LEXTRACE("+= "); LEXRETURN('+'); } /* return '+' */ YY_BREAK case 7: YY_RULE_SETUP #line 137 "toke.l" { LEXTRACE("-= "); LEXRETURN('-'); } /* return '-' */ YY_BREAK case 8: YY_RULE_SETUP #line 142 "toke.l" { LEXTRACE("BEGINSTR "); sudoerslval.string = NULL; prev_state = YY_START; BEGIN INSTR; } YY_BREAK case 9: YY_RULE_SETUP #line 149 "toke.l" { LEXTRACE("WORD(2) "); if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXRETURN(WORD); } YY_BREAK case 10: /* rule 10 can match eol */ YY_RULE_SETUP #line 158 "toke.l" { /* Line continuation char followed by newline. */ sudolineno++; continued = true; } YY_BREAK case 11: YY_RULE_SETUP #line 164 "toke.l" { LEXTRACE("ENDSTR "); BEGIN prev_state; if (sudoerslval.string == NULL) { LEXTRACE("ERROR "); /* empty string */ LEXRETURN(ERROR); } if (prev_state == INITIAL || prev_state == GOTDEFS) { switch (sudoerslval.string[0]) { case '%': if (sudoerslval.string[1] == '\0' || (sudoerslval.string[1] == ':' && sudoerslval.string[2] == '\0')) { LEXTRACE("ERROR "); /* empty group */ LEXRETURN(ERROR); } LEXTRACE("USERGROUP "); LEXRETURN(USERGROUP); case '+': if (sudoerslval.string[1] == '\0') { LEXTRACE("ERROR "); /* empty netgroup */ LEXRETURN(ERROR); } LEXTRACE("NETGROUP "); LEXRETURN(NETGROUP); } } LEXTRACE("WORD(4) "); LEXRETURN(WORD); } YY_BREAK case 12: YY_RULE_SETUP #line 196 "toke.l" { LEXTRACE("BACKSLASH "); if (!append(sudoerstext, sudoersleng)) yyterminate(); } YY_BREAK case 13: YY_RULE_SETUP #line 202 "toke.l" { LEXTRACE("STRBODY "); if (!append(sudoerstext, sudoersleng)) yyterminate(); } YY_BREAK case 14: YY_RULE_SETUP #line 210 "toke.l" { /* quoted fnmatch glob char, pass verbatim */ LEXTRACE("QUOTEDCHAR "); if (!fill_args(sudoerstext, 2, sawspace)) yyterminate(); sawspace = false; } YY_BREAK case 15: YY_RULE_SETUP #line 218 "toke.l" { /* quoted sudoers special char, strip backslash */ LEXTRACE("QUOTEDCHAR "); if (!fill_args(sudoerstext + 1, 1, sawspace)) yyterminate(); sawspace = false; } YY_BREAK case 16: /* rule 16 can match eol */ YY_RULE_SETUP #line 226 "toke.l" { BEGIN INITIAL; yyless(0); LEXRETURN(COMMAND); } /* end of command line args */ YY_BREAK case 17: YY_RULE_SETUP #line 232 "toke.l" { LEXTRACE("ARG "); if (!fill_args(sudoerstext, sudoersleng, sawspace)) yyterminate(); sawspace = false; } /* a command line arg */ YY_BREAK case 18: YY_RULE_SETUP #line 240 "toke.l" { /* Only return DIGEST if the length is correct. */ yy_size_t digest_len = sudo_digest_getlen(digest_type); if ((yy_size_t)sudoersleng == digest_len * 2) { if (!fill(sudoerstext, sudoersleng)) yyterminate(); BEGIN INITIAL; LEXTRACE("DIGEST "); LEXRETURN(DIGEST); } BEGIN INITIAL; yyless(sudoersleng); } /* hex digest */ YY_BREAK case 19: YY_RULE_SETUP #line 255 "toke.l" { /* Only return DIGEST if the length is correct. */ yy_size_t len, digest_len = sudo_digest_getlen(digest_type); if (sudoerstext[sudoersleng - 1] == '=') { /* use padding */ len = 4 * ((digest_len + 2) / 3); } else { /* no padding */ len = (4 * digest_len + 2) / 3; } if ((yy_size_t)sudoersleng == len) { if (!fill(sudoerstext, sudoersleng)) yyterminate(); BEGIN INITIAL; LEXTRACE("DIGEST "); LEXRETURN(DIGEST); } BEGIN INITIAL; yyless(sudoersleng); } /* base64 digest */ YY_BREAK case 20: YY_RULE_SETUP #line 277 "toke.l" { if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } BEGIN GOTINC; LEXTRACE("INCLUDE "); LEXRETURN(INCLUDE); } YY_BREAK case 21: YY_RULE_SETUP #line 288 "toke.l" { if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } BEGIN GOTINC; LEXTRACE("INCLUDEDIR "); LEXRETURN(INCLUDEDIR); } YY_BREAK case 22: /* rule 22 can match eol */ YY_RULE_SETUP #line 299 "toke.l" { if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } /* only consume #include */ yyless(sizeof("#include") - 1); BEGIN GOTINC; LEXTRACE("INCLUDE "); LEXRETURN(INCLUDE); } YY_BREAK case 23: /* rule 23 can match eol */ YY_RULE_SETUP #line 313 "toke.l" { if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } /* only consume #includedir */ yyless(sizeof("#includedir") - 1); BEGIN GOTINC; LEXTRACE("INCLUDEDIR "); LEXRETURN(INCLUDEDIR); } YY_BREAK case 24: YY_RULE_SETUP #line 327 "toke.l" { char deftype; int n; if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } for (n = 0; isblank((unsigned char)sudoerstext[n]); n++) continue; n += sizeof("Defaults") - 1; if ((deftype = sudoerstext[n++]) != '\0') { while (isblank((unsigned char)sudoerstext[n])) n++; } BEGIN GOTDEFS; switch (deftype) { case ':': yyless(n); LEXTRACE("DEFAULTS_USER "); LEXRETURN(DEFAULTS_USER); case '>': yyless(n); LEXTRACE("DEFAULTS_RUNAS "); LEXRETURN(DEFAULTS_RUNAS); case '@': yyless(n); LEXTRACE("DEFAULTS_HOST "); LEXRETURN(DEFAULTS_HOST); case '!': yyless(n); LEXTRACE("DEFAULTS_CMND "); LEXRETURN(DEFAULTS_CMND); default: LEXTRACE("DEFAULTS "); LEXRETURN(DEFAULTS); } } YY_BREAK case 25: YY_RULE_SETUP #line 367 "toke.l" { int n; if (continued) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } for (n = 0; isblank((unsigned char)sudoerstext[n]); n++) continue; switch (sudoerstext[n]) { case 'H': LEXTRACE("HOSTALIAS "); LEXRETURN(HOSTALIAS); case 'C': LEXTRACE("CMNDALIAS "); LEXRETURN(CMNDALIAS); case 'U': LEXTRACE("USERALIAS "); LEXRETURN(USERALIAS); case 'R': LEXTRACE("RUNASALIAS "); LEXRETURN(RUNASALIAS); } } YY_BREAK case 26: YY_RULE_SETUP #line 393 "toke.l" { /* cmnd does not require passwd for this user */ LEXTRACE("NOPASSWD "); LEXRETURN(NOPASSWD); } YY_BREAK case 27: YY_RULE_SETUP #line 399 "toke.l" { /* cmnd requires passwd for this user */ LEXTRACE("PASSWD "); LEXRETURN(PASSWD); } YY_BREAK case 28: YY_RULE_SETUP #line 405 "toke.l" { LEXTRACE("NOEXEC "); LEXRETURN(NOEXEC); } YY_BREAK case 29: YY_RULE_SETUP #line 410 "toke.l" { LEXTRACE("EXEC "); LEXRETURN(EXEC); } YY_BREAK case 30: YY_RULE_SETUP #line 415 "toke.l" { LEXTRACE("SETENV "); LEXRETURN(SETENV); } YY_BREAK case 31: YY_RULE_SETUP #line 420 "toke.l" { LEXTRACE("NOSETENV "); LEXRETURN(NOSETENV); } YY_BREAK case 32: YY_RULE_SETUP #line 425 "toke.l" { LEXTRACE("LOG_OUTPUT "); LEXRETURN(LOG_OUTPUT); } YY_BREAK case 33: YY_RULE_SETUP #line 430 "toke.l" { LEXTRACE("NOLOG_OUTPUT "); LEXRETURN(NOLOG_OUTPUT); } YY_BREAK case 34: YY_RULE_SETUP #line 435 "toke.l" { LEXTRACE("LOG_INPUT "); LEXRETURN(LOG_INPUT); } YY_BREAK case 35: YY_RULE_SETUP #line 440 "toke.l" { LEXTRACE("NOLOG_INPUT "); LEXRETURN(NOLOG_INPUT); } YY_BREAK case 36: YY_RULE_SETUP #line 445 "toke.l" { LEXTRACE("MAIL "); LEXRETURN(MAIL); } YY_BREAK case 37: YY_RULE_SETUP #line 450 "toke.l" { LEXTRACE("NOMAIL "); LEXRETURN(NOMAIL); } YY_BREAK case 38: YY_RULE_SETUP #line 455 "toke.l" { LEXTRACE("FOLLOW "); LEXRETURN(FOLLOWLNK); } YY_BREAK case 39: YY_RULE_SETUP #line 460 "toke.l" { LEXTRACE("NOFOLLOW "); LEXRETURN(NOFOLLOWLNK); } YY_BREAK case 40: YY_RULE_SETUP #line 465 "toke.l" { /* empty group or netgroup */ LEXTRACE("ERROR "); LEXRETURN(ERROR); } YY_BREAK case 41: YY_RULE_SETUP #line 471 "toke.l" { /* netgroup */ if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("NETGROUP "); LEXRETURN(NETGROUP); } YY_BREAK case 42: YY_RULE_SETUP #line 479 "toke.l" { /* group */ if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("USERGROUP "); LEXRETURN(USERGROUP); } YY_BREAK case 43: YY_RULE_SETUP #line 487 "toke.l" { if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("NTWKADDR "); LEXRETURN(NTWKADDR); } YY_BREAK case 44: YY_RULE_SETUP #line 494 "toke.l" { if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("NTWKADDR "); LEXRETURN(NTWKADDR); } YY_BREAK case 45: YY_RULE_SETUP #line 501 "toke.l" { if (!ipv6_valid(sudoerstext)) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("NTWKADDR "); LEXRETURN(NTWKADDR); } YY_BREAK case 46: YY_RULE_SETUP #line 512 "toke.l" { if (!ipv6_valid(sudoerstext)) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("NTWKADDR "); LEXRETURN(NTWKADDR); } YY_BREAK case 47: YY_RULE_SETUP #line 523 "toke.l" { LEXTRACE("ALL "); LEXRETURN(ALL); } YY_BREAK case 48: YY_RULE_SETUP #line 529 "toke.l" { LEXTRACE("CMND_TIMEOUT "); LEXRETURN(CMND_TIMEOUT); } YY_BREAK case 49: YY_RULE_SETUP #line 534 "toke.l" { LEXTRACE("NOTBEFORE "); LEXRETURN(NOTBEFORE); } YY_BREAK case 50: YY_RULE_SETUP #line 539 "toke.l" { LEXTRACE("NOTAFTER "); LEXRETURN(NOTAFTER); } YY_BREAK case 51: YY_RULE_SETUP #line 544 "toke.l" { #ifdef HAVE_SELINUX LEXTRACE("ROLE "); LEXRETURN(ROLE); #else goto got_alias; #endif } YY_BREAK case 52: YY_RULE_SETUP #line 553 "toke.l" { #ifdef HAVE_SELINUX LEXTRACE("TYPE "); LEXRETURN(TYPE); #else goto got_alias; #endif } YY_BREAK case 53: YY_RULE_SETUP #line 561 "toke.l" { #ifdef HAVE_PRIV_SET LEXTRACE("PRIVS "); LEXRETURN(PRIVS); #else goto got_alias; #endif } YY_BREAK case 54: YY_RULE_SETUP #line 570 "toke.l" { #ifdef HAVE_PRIV_SET LEXTRACE("LIMITPRIVS "); LEXRETURN(LIMITPRIVS); #else goto got_alias; #endif } YY_BREAK case 55: YY_RULE_SETUP #line 579 "toke.l" { got_alias: if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("ALIAS "); LEXRETURN(ALIAS); } YY_BREAK case 56: YY_RULE_SETUP #line 587 "toke.l" { /* XXX - no way to specify digest for command */ /* no command args allowed for Defaults!/path */ if (!fill_cmnd(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("COMMAND "); LEXRETURN(COMMAND); } YY_BREAK case 57: YY_RULE_SETUP #line 596 "toke.l" { digest_type = SUDO_DIGEST_SHA224; BEGIN WANTDIGEST; LEXTRACE("SHA224_TOK "); LEXRETURN(SHA224_TOK); } YY_BREAK case 58: YY_RULE_SETUP #line 603 "toke.l" { digest_type = SUDO_DIGEST_SHA256; BEGIN WANTDIGEST; LEXTRACE("SHA256_TOK "); LEXRETURN(SHA256_TOK); } YY_BREAK case 59: YY_RULE_SETUP #line 610 "toke.l" { digest_type = SUDO_DIGEST_SHA384; BEGIN WANTDIGEST; LEXTRACE("SHA384_TOK "); LEXRETURN(SHA384_TOK); } YY_BREAK case 60: YY_RULE_SETUP #line 617 "toke.l" { digest_type = SUDO_DIGEST_SHA512; BEGIN WANTDIGEST; LEXTRACE("SHA512_TOK "); LEXRETURN(SHA512_TOK); } YY_BREAK case 61: YY_RULE_SETUP #line 624 "toke.l" { BEGIN GOTCMND; LEXTRACE("COMMAND "); if (!fill_cmnd(sudoerstext, sudoersleng)) yyterminate(); } /* sudo -e */ YY_BREAK case 62: YY_RULE_SETUP #line 631 "toke.l" { /* directories can't have args... */ if (sudoerstext[sudoersleng - 1] == '/') { LEXTRACE("COMMAND "); if (!fill_cmnd(sudoerstext, sudoersleng)) yyterminate(); LEXRETURN(COMMAND); } else { BEGIN GOTCMND; LEXTRACE("COMMAND "); if (!fill_cmnd(sudoerstext, sudoersleng)) yyterminate(); } } /* a pathname */ YY_BREAK case 63: YY_RULE_SETUP #line 646 "toke.l" { LEXTRACE("BEGINSTR "); sudoerslval.string = NULL; prev_state = YY_START; BEGIN INSTR; } YY_BREAK case 64: YY_RULE_SETUP #line 653 "toke.l" { /* a word */ if (!fill(sudoerstext, sudoersleng)) yyterminate(); LEXTRACE("WORD(5) "); LEXRETURN(WORD); } YY_BREAK case 65: YY_RULE_SETUP #line 662 "toke.l" { /* include file/directory */ if (!fill(sudoerstext, sudoersleng)) yyterminate(); BEGIN INITIAL; LEXTRACE("WORD(6) "); LEXRETURN(WORD); } YY_BREAK case 66: YY_RULE_SETUP #line 671 "toke.l" { LEXTRACE("BEGINSTR "); sudoerslval.string = NULL; prev_state = INITIAL; BEGIN INSTR; } YY_BREAK case 67: YY_RULE_SETUP #line 679 "toke.l" { LEXTRACE("( "); LEXRETURN('('); } YY_BREAK case 68: YY_RULE_SETUP #line 684 "toke.l" { LEXTRACE(") "); LEXRETURN(')'); } YY_BREAK case 69: YY_RULE_SETUP #line 689 "toke.l" { LEXTRACE(", "); LEXRETURN(','); } /* return ',' */ YY_BREAK case 70: YY_RULE_SETUP #line 694 "toke.l" { LEXTRACE("= "); LEXRETURN('='); } /* return '=' */ YY_BREAK case 71: YY_RULE_SETUP #line 699 "toke.l" { LEXTRACE(": "); LEXRETURN(':'); } /* return ':' */ YY_BREAK case 72: YY_RULE_SETUP #line 704 "toke.l" { if (sudoersleng & 1) { LEXTRACE("!"); LEXRETURN('!'); /* return '!' */ } } YY_BREAK case 73: /* rule 73 can match eol */ YY_RULE_SETUP #line 711 "toke.l" { if (YY_START == INSTR) { LEXTRACE("ERROR "); LEXRETURN(ERROR); /* line break in string */ } BEGIN INITIAL; sudolineno++; continued = false; LEXTRACE("\n"); LEXRETURN(COMMENT); } /* return newline */ YY_BREAK case 74: YY_RULE_SETUP #line 723 "toke.l" { /* throw away space/tabs */ sawspace = true; /* but remember for fill_args */ } YY_BREAK case 75: /* rule 75 can match eol */ YY_RULE_SETUP #line 727 "toke.l" { sawspace = true; /* remember for fill_args */ sudolineno++; continued = true; } /* throw away EOL after \ */ YY_BREAK case 76: /* rule 76 can match eol */ YY_RULE_SETUP #line 733 "toke.l" { if (sudoerstext[sudoersleng - 1] == '\n') { /* comment ending in a newline */ BEGIN INITIAL; sudolineno++; continued = false; } else if (!feof(sudoersin)) { LEXTRACE("ERROR "); LEXRETURN(ERROR); } LEXTRACE("#\n"); LEXRETURN(COMMENT); } /* comment, not uid/gid */ YY_BREAK case 77: YY_RULE_SETUP #line 747 "toke.l" { LEXTRACE("ERROR "); LEXRETURN(ERROR); } /* parse error */ YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(GOTDEFS): case YY_STATE_EOF(GOTCMND): case YY_STATE_EOF(STARTDEFS): case YY_STATE_EOF(INDEFS): case YY_STATE_EOF(INSTR): case YY_STATE_EOF(WANTDIGEST): case YY_STATE_EOF(GOTINC): #line 752 "toke.l" { if (YY_START != INITIAL) { BEGIN INITIAL; LEXTRACE("ERROR "); LEXRETURN(ERROR); } if (!pop_include()) yyterminate(); } YY_BREAK case 78: YY_RULE_SETUP #line 762 "toke.l" ECHO; YY_BREAK #line 3427 "toke.c" case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed sudoersin at a new source and called * sudoerslex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = sudoersin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( sudoerswrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * sudoerstext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of user's declarations */ } /* end of sudoerslex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ sudoersrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; sudoersrestart(sudoersin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) sudoersrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); /* "- 2" to take care of EOB's */ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 916 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { int yy_is_jam; char *yy_cp = (yy_c_buf_p); YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 916 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 915); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ sudoersrestart(sudoersin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( sudoerswrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve sudoerstext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void sudoersrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ sudoersensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = sudoers_create_buffer(sudoersin,YY_BUF_SIZE ); } sudoers_init_buffer(YY_CURRENT_BUFFER,input_file ); sudoers_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void sudoers_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * sudoerspop_buffer_state(); * sudoerspush_buffer_state(new_buffer); */ sudoersensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; sudoers_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (sudoerswrap()) processing, but the only time this flag * is looked at is after sudoerswrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void sudoers_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; sudoersin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE sudoers_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) sudoersalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in sudoers_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) sudoersalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in sudoers_create_buffer()" ); b->yy_is_our_buffer = 1; sudoers_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with sudoers_create_buffer() * */ void sudoers_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) sudoersfree((void *) b->yy_ch_buf ); sudoersfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a sudoersrestart() or at EOF. */ static void sudoers_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; sudoers_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then sudoers_init_buffer was _probably_ * called from sudoersrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void sudoers_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) sudoers_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void sudoerspush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; sudoersensure_buffer_stack(); /* This block is copied from sudoers_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from sudoers_switch_to_buffer. */ sudoers_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void sudoerspop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; sudoers_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { sudoers_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void sudoersensure_buffer_stack (void) { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)sudoersalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in sudoersensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)sudoersrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in sudoersensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE sudoers_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) sudoersalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in sudoers_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; sudoers_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to sudoerslex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * sudoers_scan_bytes() instead. */ YY_BUFFER_STATE sudoers_scan_string (yyconst char * yystr ) { return sudoers_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to sudoerslex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE sudoers_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) sudoersalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in sudoers_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = sudoers_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in sudoers_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up sudoerstext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ sudoerstext[sudoersleng] = (yy_hold_char); \ (yy_c_buf_p) = sudoerstext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ sudoersleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int sudoersget_lineno (void) { return sudoerslineno; } /** Get the input stream. * */ FILE *sudoersget_in (void) { return sudoersin; } /** Get the output stream. * */ FILE *sudoersget_out (void) { return sudoersout; } /** Get the length of the current token. * */ yy_size_t sudoersget_leng (void) { return sudoersleng; } /** Get the current token. * */ char *sudoersget_text (void) { return sudoerstext; } /** Set the current line number. * @param line_number * */ void sudoersset_lineno (int line_number ) { sudoerslineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see sudoers_switch_to_buffer */ void sudoersset_in (FILE * in_str ) { sudoersin = in_str ; } void sudoersset_out (FILE * out_str ) { sudoersout = out_str ; } int sudoersget_debug (void) { return sudoers_flex_debug; } void sudoersset_debug (int bdebug ) { sudoers_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from sudoerslex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT sudoersin = stdin; sudoersout = stdout; #else sudoersin = (FILE *) 0; sudoersout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * sudoerslex_init() */ return 0; } /* sudoerslex_destroy is for both reentrant and non-reentrant scanners. */ int sudoerslex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ sudoers_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; sudoerspop_buffer_state(); } /* Destroy the stack itself. */ sudoersfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * sudoerslex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *sudoersalloc (yy_size_t size ) { return (void *) malloc( size ); } void *sudoersrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void sudoersfree (void * ptr ) { free( (char *) ptr ); /* see sudoersrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 762 "toke.l" struct path_list { SLIST_ENTRY(path_list) entries; char *path; }; SLIST_HEAD(path_list_head, path_list); struct include_stack { YY_BUFFER_STATE bs; char *path; struct path_list_head more; /* more files in case of includedir */ int lineno; bool keepopen; }; /* * Compare two struct path_list structs in reverse order. */ static int pl_compare(const void *v1, const void *v2) { const struct path_list * const *p1 = v1; const struct path_list * const *p2 = v2; return strcmp((*p2)->path, (*p1)->path); } /* * Open dirpath and fill in pathsp with an array of regular files * that do not end in '~' or contain a '.'. * Returns the number of files or -1 on error. * If zero files are found, NULL is stored in pathsp. */ static int read_dir_files(const char *dirpath, struct path_list ***pathsp) { DIR *dir; int i, count = 0; int max_paths = 32; struct dirent *dent; struct path_list **paths = NULL; debug_decl(read_dir_files, SUDOERS_DEBUG_PARSER); dir = opendir(dirpath); if (dir == NULL) { if (errno == ENOENT) goto done; sudo_warn("%s", dirpath); goto bad; } paths = reallocarray(NULL, max_paths, sizeof(*paths)); if (paths == NULL) goto oom; while ((dent = readdir(dir)) != NULL) { struct path_list *pl; struct stat sb; size_t len; char *path; /* Ignore files that end in '~' or have a '.' in them. */ if (dent->d_name[0] == '\0' || dent->d_name[NAMLEN(dent) - 1] == '~' || strchr(dent->d_name, '.') != NULL) { continue; } len = strlen(dirpath) + 1 + NAMLEN(dent); if ((path = rcstr_alloc(len)) == NULL) goto oom; (void)snprintf(path, len + 1, "%s/%s", dirpath, dent->d_name); if (stat(path, &sb) != 0 || !S_ISREG(sb.st_mode)) { rcstr_delref(path); continue; } pl = malloc(sizeof(*pl)); if (pl == NULL) { rcstr_delref(path); goto oom; } pl->path = path; if (count >= max_paths) { struct path_list **tmp; max_paths <<= 1; tmp = reallocarray(paths, max_paths, sizeof(*paths)); if (tmp == NULL) { rcstr_delref(path); free(pl); goto oom; } paths = tmp; } paths[count++] = pl; } closedir(dir); if (count == 0) { free(paths); paths = NULL; } done: *pathsp = paths; debug_return_int(count); oom: sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); bad: sudoerserror(NULL); if (dir != NULL) closedir(dir); for (i = 0; i < count; i++) { rcstr_delref(paths[i]->path); free(paths[i]); } free(paths); debug_return_int(-1); } /* * Push a list of all files in dirpath onto stack. * Returns the number of files or -1 on error. */ static int switch_dir(struct include_stack *stack, char *dirpath) { struct path_list **paths = NULL; int count, i; debug_decl(switch_dir, SUDOERS_DEBUG_PARSER); count = read_dir_files(dirpath, &paths); if (count > 0) { /* Sort the list as an array in reverse order. */ qsort(paths, count, sizeof(*paths), pl_compare); /* Build up the list in sorted order. */ for (i = 0; i < count; i++) { SLIST_INSERT_HEAD(&stack->more, paths[i], entries); } free(paths); } debug_return_int(count); } #define MAX_SUDOERS_DEPTH 128 #define SUDOERS_STACK_INCREMENT 16 static size_t istacksize, idepth; static struct include_stack *istack; static bool keepopen; void init_lexer(void) { struct path_list *pl; debug_decl(init_lexer, SUDOERS_DEBUG_PARSER); while (idepth) { idepth--; while ((pl = SLIST_FIRST(&istack[idepth].more)) != NULL) { SLIST_REMOVE_HEAD(&istack[idepth].more, entries); rcstr_delref(pl->path); free(pl); } rcstr_delref(istack[idepth].path); if (idepth && !istack[idepth].keepopen) fclose(istack[idepth].bs->yy_input_file); sudoers_delete_buffer(istack[idepth].bs); } free(istack); istack = NULL; istacksize = idepth = 0; sudolineno = 1; keepopen = false; sawspace = false; continued = false; digest_type = -1; prev_state = INITIAL; debug_return; } /* * Expand any embedded %h (host) escapes in the given path and makes * a relative path fully-qualified based on the current sudoers file. * Returns a reference-counted string. */ static char * expand_include(const char *opath, size_t olen) { const char *cp, *ep; char *path, *pp; int dirlen = 0, len; size_t shost_len = 0; bool subst = false; debug_decl(expand_include, SUDOERS_DEBUG_PARSER); /* Strip double quotes if present. */ if (*opath == '"') { opath++; olen -= 2; } /* Relative paths are located in the same dir as the sudoers file. */ if (*opath != '/') { char *dirend = strrchr(sudoers, '/'); if (dirend != NULL) dirlen = (int)(dirend - sudoers) + 1; } len = olen; for (cp = opath, ep = opath + olen; cp < ep; cp++) { if (cp[0] == '%' && cp[1] == 'h') { shost_len = strlen(user_shost); len += shost_len - 2; subst = true; } } /* Make a copy of the fully-qualified path and return it. */ path = pp = rcstr_alloc(len + dirlen); if (path == NULL) { sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); sudoerserror(NULL); debug_return_str(NULL); } if (dirlen) { memcpy(path, sudoers, dirlen); pp += dirlen; } if (subst) { /* substitute for %h */ cp = opath; while (cp < ep) { if (cp[0] == '%' && cp[1] == 'h') { memcpy(pp, user_shost, shost_len); pp += shost_len; cp += 2; continue; } *pp++ = *cp++; } *pp = '\0'; } else { memcpy(pp, opath, len); pp[len] = '\0'; } debug_return_str(path); } /* * Open an include file (or file from a directory), push the old * sudoers file buffer and switch to the new one. * A missing or insecure include dir is simply ignored. * Returns false on error, else true. */ bool push_include(const char *opath, bool isdir) { struct path_list *pl; char *path; FILE *fp; debug_decl(push_include, SUDOERS_DEBUG_PARSER); if ((path = expand_include(opath, strlen(opath))) == NULL) debug_return_bool(false); /* push current state onto stack */ if (idepth >= istacksize) { struct include_stack *new_istack; if (idepth > MAX_SUDOERS_DEPTH) { sudoerserror(N_("too many levels of includes")); rcstr_delref(path); debug_return_bool(false); } istacksize += SUDOERS_STACK_INCREMENT; new_istack = reallocarray(istack, istacksize, sizeof(*istack)); if (new_istack == NULL) { sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); sudoerserror(NULL); rcstr_delref(path); debug_return_bool(false); } istack = new_istack; } SLIST_INIT(&istack[idepth].more); if (isdir) { struct stat sb; int count, status; status = sudo_secure_dir(path, sudoers_uid, sudoers_gid, &sb); if (status != SUDO_PATH_SECURE) { if (sudoers_warnings) { switch (status) { case SUDO_PATH_BAD_TYPE: errno = ENOTDIR; sudo_warn("%s", path); break; case SUDO_PATH_WRONG_OWNER: sudo_warnx(U_("%s is owned by uid %u, should be %u"), path, (unsigned int) sb.st_uid, (unsigned int) sudoers_uid); break; case SUDO_PATH_WORLD_WRITABLE: sudo_warnx(U_("%s is world writable"), path); break; case SUDO_PATH_GROUP_WRITABLE: sudo_warnx(U_("%s is owned by gid %u, should be %u"), path, (unsigned int) sb.st_gid, (unsigned int) sudoers_gid); break; default: break; } } /* A missing or insecure include dir is not a fatal error. */ rcstr_delref(path); debug_return_bool(true); } count = switch_dir(&istack[idepth], path); if (count <= 0) { /* switch_dir() called sudoerserror() for us */ rcstr_delref(path); debug_return_bool(count ? false : true); } /* Parse the first dir entry we can open, leave the rest for later. */ do { rcstr_delref(path); if ((pl = SLIST_FIRST(&istack[idepth].more)) == NULL) { /* Unable to open any files in include dir, not an error. */ debug_return_bool(true); } SLIST_REMOVE_HEAD(&istack[idepth].more, entries); path = pl->path; free(pl); } while ((fp = open_sudoers(path, false, &keepopen)) == NULL); } else { if ((fp = open_sudoers(path, true, &keepopen)) == NULL) { /* The error was already printed by open_sudoers() */ sudoerserror(NULL); rcstr_delref(path); debug_return_bool(false); } } /* Push the old (current) file and open the new one. */ istack[idepth].path = sudoers; /* push old path (and its ref) */ istack[idepth].bs = YY_CURRENT_BUFFER; istack[idepth].lineno = sudolineno; istack[idepth].keepopen = keepopen; idepth++; sudolineno = 1; sudoers = path; sudoers_switch_to_buffer(sudoers_create_buffer(fp, YY_BUF_SIZE)); debug_return_bool(true); } /* * Restore the previous sudoers file and buffer, or, in the case * of an includedir, switch to the next file in the dir. * Returns false if there is nothing to pop, else true. */ static bool pop_include(void) { struct path_list *pl; FILE *fp; debug_decl(pop_include, SUDOERS_DEBUG_PARSER); if (idepth == 0 || YY_CURRENT_BUFFER == NULL) debug_return_bool(false); if (!keepopen) fclose(YY_CURRENT_BUFFER->yy_input_file); sudoers_delete_buffer(YY_CURRENT_BUFFER); /* If we are in an include dir, move to the next file. */ while ((pl = SLIST_FIRST(&istack[idepth - 1].more)) != NULL) { SLIST_REMOVE_HEAD(&istack[idepth - 1].more, entries); fp = open_sudoers(pl->path, false, &keepopen); if (fp != NULL) { rcstr_delref(sudoers); sudoers = pl->path; sudolineno = 1; sudoers_switch_to_buffer(sudoers_create_buffer(fp, YY_BUF_SIZE)); free(pl); break; } /* Unable to open path in include dir, go to next one. */ rcstr_delref(pl->path); free(pl); } /* If no path list, just pop the last dir on the stack. */ if (pl == NULL) { idepth--; sudoers_switch_to_buffer(istack[idepth].bs); rcstr_delref(sudoers); sudoers = istack[idepth].path; sudolineno = istack[idepth].lineno; keepopen = istack[idepth].keepopen; } debug_return_bool(true); } #ifdef TRACELEXER int sudoers_trace_print(const char *msg) { return fputs(msg, stderr); } #else int sudoers_trace_print(const char *msg) { static bool initialized; static struct sudo_lbuf lbuf; if (!initialized) { initialized = true; sudo_lbuf_init(&lbuf, NULL, 0, NULL, 0); } sudo_lbuf_append(&lbuf, "%s", msg); /* XXX - assumes a final newline */ if (strchr(msg, '\n') != NULL) { sudo_debug_printf2(NULL, NULL, 0, SUDOERS_DEBUG_PARSER|SUDO_DEBUG_DEBUG, "%s:%d %s", sudoers, sudolineno, lbuf.buf); lbuf.len = 0; } return 0; } #endif /* TRACELEXER */