code
stringlengths
1
2.06M
language
stringclasses
1 value
/********************************************************************** * File: blobbox.h (Formerly blobnbox.h) * Description: Code for the textord blob class. * Author: Ray Smith * Created: Thu Jul 30 09:08:51 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef BLOBBOX_H #define BLOBBOX_H #include "clst.h" #include "elst2.h" #include "werd.h" #include "ocrblock.h" #include "statistc.h" enum PITCH_TYPE { PITCH_DUNNO, // insufficient data PITCH_DEF_FIXED, // definitely fixed PITCH_MAYBE_FIXED, // could be PITCH_DEF_PROP, PITCH_MAYBE_PROP, PITCH_CORR_FIXED, PITCH_CORR_PROP }; // The possible tab-stop types of each side of a BLOBNBOX. // The ordering is important, as it is used for deleting dead-ends in the // search. ALIGNED, CONFIRMED and VLINE should remain greater than the // non-aligned, unset, or deleted members. enum TabType { TT_NONE, // Not a tab. TT_DELETED, // Not a tab after detailed analysis. TT_MAYBE_RAGGED, // Initial designation of a tab-stop candidate. TT_MAYBE_ALIGNED, // Initial designation of a tab-stop candidate. TT_CONFIRMED, // Aligned with neighbours. TT_VLINE // Detected as a vertical line. }; // The possible region types of a BLOBNBOX. // Note: keep all the text types > BRT_UNKNOWN and all the image types less. // Keep in sync with kBlobTypes in colpartition.cpp and BoxColor, and the // *Type static functions below. enum BlobRegionType { BRT_NOISE, // Neither text nor image. BRT_HLINE, // Horizontal separator line. BRT_VLINE, // Vertical separator line. BRT_RECTIMAGE, // Rectangular image. BRT_POLYIMAGE, // Non-rectangular image. BRT_UNKNOWN, // Not determined yet. BRT_VERT_TEXT, // Vertical alignment, not necessarily vertically oriented. BRT_TEXT, // Convincing text. BRT_COUNT // Number of possibilities. }; // enum for elements of arrays that refer to neighbours. // NOTE: keep in this order, so ^2 can be used to flip direction. enum BlobNeighbourDir { BND_LEFT, BND_BELOW, BND_RIGHT, BND_ABOVE, BND_COUNT }; // enum for special type of text characters, such as math symbol or italic. enum BlobSpecialTextType { BSTT_NONE, // No special. BSTT_ITALIC, // Italic style. BSTT_DIGIT, // Digit symbols. BSTT_MATH, // Mathmatical symobls (not including digit). BSTT_UNCLEAR, // Characters with low recognition rate. BSTT_SKIP, // Characters that we skip labeling (usually too small). BSTT_COUNT }; inline BlobNeighbourDir DirOtherWay(BlobNeighbourDir dir) { return static_cast<BlobNeighbourDir>(dir ^ 2); } // BlobTextFlowType indicates the quality of neighbouring information // related to a chain of connected components, either horizontally or // vertically. Also used by ColPartition for the collection of blobs // within, which should all have the same value in most cases. enum BlobTextFlowType { BTFT_NONE, // No text flow set yet. BTFT_NONTEXT, // Flow too poor to be likely text. BTFT_NEIGHBOURS, // Neighbours support flow in this direction. BTFT_CHAIN, // There is a weak chain of text in this direction. BTFT_STRONG_CHAIN, // There is a strong chain of text in this direction. BTFT_TEXT_ON_IMAGE, // There is a strong chain of text on an image. BTFT_LEADER, // Leader dots/dashes etc. BTFT_COUNT }; // Returns true if type1 dominates type2 in a merge. Mostly determined by the // ordering of the enum, LEADER is weak and dominates nothing. // The function is anti-symmetric (t1 > t2) === !(t2 > t1), except that // this cannot be true if t1 == t2, so the result is undefined. inline bool DominatesInMerge(BlobTextFlowType type1, BlobTextFlowType type2) { // LEADER always loses. if (type1 == BTFT_LEADER) return false; if (type2 == BTFT_LEADER) return true; // With those out of the way, the ordering of the enum determines the result. return type1 >= type2; } namespace tesseract { class ColPartition; } class BLOBNBOX; ELISTIZEH (BLOBNBOX) class BLOBNBOX:public ELIST_LINK { public: BLOBNBOX() { ConstructionInit(); } explicit BLOBNBOX(C_BLOB *srcblob) { box = srcblob->bounding_box(); ConstructionInit(); cblob_ptr = srcblob; area = static_cast<int>(srcblob->area()); } static BLOBNBOX* RealBlob(C_OUTLINE* outline) { C_BLOB* blob = new C_BLOB(outline); return new BLOBNBOX(blob); } // Rotates the box and the underlying blob. void rotate(FCOORD rotation); // Methods that act on the box without touching the underlying blob. // Reflect the box in the y-axis, leaving the underlying blob untouched. void reflect_box_in_y_axis(); // Rotates the box by the angle given by rotation. // If the blob is a diacritic, then only small rotations for skew // correction can be applied. void rotate_box(FCOORD rotation); // Moves just the box by the given vector. void translate_box(ICOORD v) { if (IsDiacritic()) { box.move(v); base_char_top_ += v.y(); base_char_bottom_ += v.y(); } else { box.move(v); set_diacritic_box(box); } } void merge(BLOBNBOX *nextblob); void really_merge(BLOBNBOX* other); void chop( // fake chop blob BLOBNBOX_IT *start_it, // location of this BLOBNBOX_IT *blob_it, // iterator FCOORD rotation, // for landscape float xheight); // line height void NeighbourGaps(int gaps[BND_COUNT]) const; void MinMaxGapsClipped(int* h_min, int* h_max, int* v_min, int* v_max) const; void CleanNeighbours(); // Returns positive if there is at least one side neighbour that has a // similar stroke width and is not on the other side of a rule line. int GoodTextBlob() const; // Returns the number of side neighbours that are of type BRT_NOISE. int NoisyNeighbours() const; // Returns true if the blob is noise and has no owner. bool DeletableNoise() const { return owner() == NULL && region_type() == BRT_NOISE; } // Returns true, and sets vert_possible/horz_possible if the blob has some // feature that makes it individually appear to flow one way. // eg if it has a high aspect ratio, yet has a complex shape, such as a // joined word in Latin, Arabic, or Hindi, rather than being a -, I, l, 1. bool DefiniteIndividualFlow(); // Returns true if there is no tabstop violation in merging this and other. bool ConfirmNoTabViolation(const BLOBNBOX& other) const; // Returns true if other has a similar stroke width to this. bool MatchingStrokeWidth(const BLOBNBOX& other, double fractional_tolerance, double constant_tolerance) const; // Returns a bounding box of the outline contained within the // given horizontal range. TBOX BoundsWithinLimits(int left, int right); // Estimates and stores the baseline position based on the shape of the // outline. void EstimateBaselinePosition(); // Simple accessors. const TBOX& bounding_box() const { return box; } // Set the bounding box. Use with caution. // Normally use compute_bounding_box instead. void set_bounding_box(const TBOX& new_box) { box = new_box; base_char_top_ = box.top(); base_char_bottom_ = box.bottom(); } void compute_bounding_box() { box = cblob_ptr->bounding_box(); base_char_top_ = box.top(); base_char_bottom_ = box.bottom(); baseline_y_ = box.bottom(); } const TBOX& reduced_box() const { return red_box; } void set_reduced_box(TBOX new_box) { red_box = new_box; reduced = TRUE; } inT32 enclosed_area() const { return area; } bool joined_to_prev() const { return joined != 0; } bool red_box_set() const { return reduced != 0; } int repeated_set() const { return repeated_set_; } void set_repeated_set(int set_id) { repeated_set_ = set_id; } C_BLOB *cblob() const { return cblob_ptr; } TabType left_tab_type() const { return left_tab_type_; } void set_left_tab_type(TabType new_type) { left_tab_type_ = new_type; } TabType right_tab_type() const { return right_tab_type_; } void set_right_tab_type(TabType new_type) { right_tab_type_ = new_type; } BlobRegionType region_type() const { return region_type_; } void set_region_type(BlobRegionType new_type) { region_type_ = new_type; } BlobSpecialTextType special_text_type() const { return spt_type_; } void set_special_text_type(BlobSpecialTextType new_type) { spt_type_ = new_type; } BlobTextFlowType flow() const { return flow_; } void set_flow(BlobTextFlowType value) { flow_ = value; } bool vert_possible() const { return vert_possible_; } void set_vert_possible(bool value) { vert_possible_ = value; } bool horz_possible() const { return horz_possible_; } void set_horz_possible(bool value) { horz_possible_ = value; } int left_rule() const { return left_rule_; } void set_left_rule(int new_left) { left_rule_ = new_left; } int right_rule() const { return right_rule_; } void set_right_rule(int new_right) { right_rule_ = new_right; } int left_crossing_rule() const { return left_crossing_rule_; } void set_left_crossing_rule(int new_left) { left_crossing_rule_ = new_left; } int right_crossing_rule() const { return right_crossing_rule_; } void set_right_crossing_rule(int new_right) { right_crossing_rule_ = new_right; } float horz_stroke_width() const { return horz_stroke_width_; } void set_horz_stroke_width(float width) { horz_stroke_width_ = width; } float vert_stroke_width() const { return vert_stroke_width_; } void set_vert_stroke_width(float width) { vert_stroke_width_ = width; } float area_stroke_width() const { return area_stroke_width_; } tesseract::ColPartition* owner() const { return owner_; } void set_owner(tesseract::ColPartition* new_owner) { owner_ = new_owner; } bool leader_on_left() const { return leader_on_left_; } void set_leader_on_left(bool flag) { leader_on_left_ = flag; } bool leader_on_right() const { return leader_on_right_; } void set_leader_on_right(bool flag) { leader_on_right_ = flag; } BLOBNBOX* neighbour(BlobNeighbourDir n) const { return neighbours_[n]; } bool good_stroke_neighbour(BlobNeighbourDir n) const { return good_stroke_neighbours_[n]; } void set_neighbour(BlobNeighbourDir n, BLOBNBOX* neighbour, bool good) { neighbours_[n] = neighbour; good_stroke_neighbours_[n] = good; } bool IsDiacritic() const { return base_char_top_ != box.top() || base_char_bottom_ != box.bottom(); } int base_char_top() const { return base_char_top_; } int base_char_bottom() const { return base_char_bottom_; } int baseline_position() const { return baseline_y_; } int line_crossings() const { return line_crossings_; } void set_line_crossings(int value) { line_crossings_ = value; } void set_diacritic_box(const TBOX& diacritic_box) { base_char_top_ = diacritic_box.top(); base_char_bottom_ = diacritic_box.bottom(); } BLOBNBOX* base_char_blob() const { return base_char_blob_; } void set_base_char_blob(BLOBNBOX* blob) { base_char_blob_ = blob; } bool UniquelyVertical() const { return vert_possible_ && !horz_possible_; } bool UniquelyHorizontal() const { return horz_possible_ && !vert_possible_; } // Returns true if the region type is text. static bool IsTextType(BlobRegionType type) { return type == BRT_TEXT || type == BRT_VERT_TEXT; } // Returns true if the region type is image. static bool IsImageType(BlobRegionType type) { return type == BRT_RECTIMAGE || type == BRT_POLYIMAGE; } // Returns true if the region type is line. static bool IsLineType(BlobRegionType type) { return type == BRT_HLINE || type == BRT_VLINE; } // Returns true if the region type cannot be merged. static bool UnMergeableType(BlobRegionType type) { return IsLineType(type) || IsImageType(type); } // Helper to call CleanNeighbours on all blobs on the list. static void CleanNeighbours(BLOBNBOX_LIST* blobs); // Helper to delete all the deletable blobs on the list. static void DeleteNoiseBlobs(BLOBNBOX_LIST* blobs); // Helper to compute edge offsets for all the blobs on the list. // See coutln.h for an explanation of edge offsets. static void ComputeEdgeOffsets(Pix* thresholds, Pix* grey, BLOBNBOX_LIST* blobs); #ifndef GRAPHICS_DISABLED // Helper to draw all the blobs on the list in the given body_colour, // with child outlines in the child_colour. static void PlotBlobs(BLOBNBOX_LIST* list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView* win); // Helper to draw only DeletableNoise blobs (unowned, BRT_NOISE) on the // given list in the given body_colour, with child outlines in the // child_colour. static void PlotNoiseBlobs(BLOBNBOX_LIST* list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView* win); static ScrollView::Color TextlineColor(BlobRegionType region_type, BlobTextFlowType flow_type); // Keep in sync with BlobRegionType. ScrollView::Color BoxColor() const; void plot(ScrollView* window, // window to draw in ScrollView::Color blob_colour, // for outer bits ScrollView::Color child_colour); // for holes #endif // Initializes the bulk of the members to default values for use at // construction time. void ConstructionInit() { cblob_ptr = NULL; area = 0; area_stroke_width_ = 0.0f; horz_stroke_width_ = 0.0f; vert_stroke_width_ = 0.0f; ReInit(); } // Initializes members set by StrokeWidth and beyond, without discarding // stored area and strokewidth values, which are expensive to calculate. void ReInit() { joined = false; reduced = false; repeated_set_ = 0; left_tab_type_ = TT_NONE; right_tab_type_ = TT_NONE; region_type_ = BRT_UNKNOWN; flow_ = BTFT_NONE; spt_type_ = BSTT_SKIP; left_rule_ = 0; right_rule_ = 0; left_crossing_rule_ = 0; right_crossing_rule_ = 0; if (area_stroke_width_ == 0.0f && area > 0 && cblob() != NULL) area_stroke_width_ = 2.0f * area / cblob()->perimeter(); owner_ = NULL; base_char_top_ = box.top(); base_char_bottom_ = box.bottom(); baseline_y_ = box.bottom(); line_crossings_ = 0; base_char_blob_ = NULL; horz_possible_ = false; vert_possible_ = false; leader_on_left_ = false; leader_on_right_ = false; ClearNeighbours(); } void ClearNeighbours() { for (int n = 0; n < BND_COUNT; ++n) { neighbours_[n] = NULL; good_stroke_neighbours_[n] = false; } } private: C_BLOB *cblob_ptr; // edgestep blob TBOX box; // bounding box TBOX red_box; // bounding box int area:30; // enclosed area int joined:1; // joined to prev int reduced:1; // reduced box set int repeated_set_; // id of the set of repeated blobs TabType left_tab_type_; // Indicates tab-stop assessment TabType right_tab_type_; // Indicates tab-stop assessment BlobRegionType region_type_; // Type of region this blob belongs to BlobTextFlowType flow_; // Quality of text flow. inT16 left_rule_; // x-coord of nearest but not crossing rule line inT16 right_rule_; // x-coord of nearest but not crossing rule line inT16 left_crossing_rule_; // x-coord of nearest or crossing rule line inT16 right_crossing_rule_; // x-coord of nearest or crossing rule line inT16 base_char_top_; // y-coord of top/bottom of diacritic base, inT16 base_char_bottom_; // if it exists else top/bottom of this blob. inT16 baseline_y_; // Estimate of baseline position. int line_crossings_; // Number of line intersections touched. BLOBNBOX* base_char_blob_; // The blob that was the base char. float horz_stroke_width_; // Median horizontal stroke width float vert_stroke_width_; // Median vertical stroke width float area_stroke_width_; // Stroke width from area/perimeter ratio. tesseract::ColPartition* owner_; // Who will delete me when I am not needed BlobSpecialTextType spt_type_; // Special text type. BLOBNBOX* neighbours_[BND_COUNT]; bool good_stroke_neighbours_[BND_COUNT]; bool horz_possible_; // Could be part of horizontal flow. bool vert_possible_; // Could be part of vertical flow. bool leader_on_left_; // There is a leader to the left. bool leader_on_right_; // There is a leader to the right. }; class TO_ROW: public ELIST2_LINK { public: static const int kErrorWeight = 3; TO_ROW() { clear(); } //empty TO_ROW( //constructor BLOBNBOX *blob, //from first blob float top, //of row //target height float bottom, float row_size); void print() const; float max_y() const { //access function return y_max; } float min_y() const { return y_min; } float mean_y() const { return (y_min + y_max) / 2.0f; } float initial_min_y() const { return initial_y_min; } float line_m() const { //access to line fit return m; } float line_c() const { return c; } float line_error() const { return error; } float parallel_c() const { return para_c; } float parallel_error() const { return para_error; } float believability() const { //baseline goodness return credibility; } float intercept() const { //real parallel_c return y_origin; } void add_blob( //put in row BLOBNBOX *blob, //blob to add float top, //of row //target height float bottom, float row_size); void insert_blob( //put in row in order BLOBNBOX *blob); BLOBNBOX_LIST *blob_list() { //get list return &blobs; } void set_line( //set line spec float new_m, //line to set float new_c, float new_error) { m = new_m; c = new_c; error = new_error; } void set_parallel_line( //set fixed gradient line float gradient, //page gradient float new_c, float new_error) { para_c = new_c; para_error = new_error; credibility = (float) (blobs.length () - kErrorWeight * new_error); y_origin = (float) (new_c / sqrt (1 + gradient * gradient)); //real intercept } void set_limits( //set min,max float new_min, //bottom and float new_max) { //top of row y_min = new_min; y_max = new_max; } void compute_vertical_projection(); //get projection bool rep_chars_marked() const { return num_repeated_sets_ != -1; } void clear_rep_chars_marked() { num_repeated_sets_ = -1; } int num_repeated_sets() const { return num_repeated_sets_; } void set_num_repeated_sets(int num_sets) { num_repeated_sets_ = num_sets; } // true when dead BOOL8 merged; BOOL8 all_caps; // had no ascenders BOOL8 used_dm_model; // in guessing pitch inT16 projection_left; // start of projection inT16 projection_right; // start of projection PITCH_TYPE pitch_decision; // how strong is decision float fixed_pitch; // pitch or 0 float fp_space; // sp if fixed pitch float fp_nonsp; // nonsp if fixed pitch float pr_space; // sp if prop float pr_nonsp; // non sp if prop float spacing; // to "next" row float xheight; // of line int xheight_evidence; // number of blobs of height xheight float ascrise; // ascenders float descdrop; // descenders float body_size; // of CJK characters. Assumed to be // xheight+ascrise for non-CJK text. inT32 min_space; // min size for real space inT32 max_nonspace; // max size of non-space inT32 space_threshold; // space vs nonspace float kern_size; // average non-space float space_size; // average space WERD_LIST rep_words; // repeated chars ICOORDELT_LIST char_cells; // fixed pitch cells QSPLINE baseline; // curved baseline STATS projection; // vertical projection private: void clear(); // clear all values to reasonable defaults BLOBNBOX_LIST blobs; //blobs in row float y_min; //coords float y_max; float initial_y_min; float m, c; //line spec float error; //line error float para_c; //constrained fit float para_error; float y_origin; //rotated para_c; float credibility; //baseline believability int num_repeated_sets_; // number of sets of repeated blobs // set to -1 if we have not searched // for repeated blobs in this row yet }; ELIST2IZEH (TO_ROW) class TO_BLOCK:public ELIST_LINK { public: TO_BLOCK() : pitch_decision(PITCH_DUNNO) { clear(); } //empty TO_BLOCK( //constructor BLOCK *src_block); //real block ~TO_BLOCK(); void clear(); // clear all scalar members. TO_ROW_LIST *get_rows() { //access function return &row_list; } // Rotate all the blobnbox lists and the underlying block. Then update the // median size statistic from the blobs list. void rotate(const FCOORD& rotation) { BLOBNBOX_LIST* blobnbox_list[] = {&blobs, &underlines, &noise_blobs, &small_blobs, &large_blobs, NULL}; for (BLOBNBOX_LIST** list = blobnbox_list; *list != NULL; ++list) { BLOBNBOX_IT it(*list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->rotate(rotation); } } // Rotate the block ASSERT_HOST(block->poly_block() != NULL); block->rotate(rotation); // Update the median size statistic from the blobs list. STATS widths(0, block->bounding_box().width()); STATS heights(0, block->bounding_box().height()); BLOBNBOX_IT blob_it(&blobs); for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) { widths.add(blob_it.data()->bounding_box().width(), 1); heights.add(blob_it.data()->bounding_box().height(), 1); } block->set_median_size(static_cast<int>(widths.median() + 0.5), static_cast<int>(heights.median() + 0.5)); } void print_rows() { //debug info TO_ROW_IT row_it = &row_list; TO_ROW *row; for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { row = row_it.data(); tprintf("Row range (%g,%g), para_c=%g, blobcount=" INT32FORMAT "\n", row->min_y(), row->max_y(), row->parallel_c(), row->blob_list()->length()); } } // Reorganizes the blob lists with a different definition of small, medium // and large, compared to the original definition. // Height is still the primary filter key, but medium width blobs of small // height become medium, and very wide blobs of small height stay small. void ReSetAndReFilterBlobs(); // Deletes noise blobs from all lists where not owned by a ColPartition. void DeleteUnownedNoise(); // Computes and stores the edge offsets on each blob for use in feature // extraction, using greyscale if the supplied grey and thresholds pixes // are 8-bit or otherwise (if NULL or not 8 bit) the original binary // edge step outlines. // Thresholds must either be the same size as grey or an integer down-scale // of grey. // See coutln.h for an explanation of edge offsets. void ComputeEdgeOffsets(Pix* thresholds, Pix* grey); #ifndef GRAPHICS_DISABLED // Draw the noise blobs from all lists in red. void plot_noise_blobs(ScrollView* to_win); // Draw the blobs on on the various lists in the block in different colors. void plot_graded_blobs(ScrollView* to_win); #endif BLOBNBOX_LIST blobs; //medium size BLOBNBOX_LIST underlines; //underline blobs BLOBNBOX_LIST noise_blobs; //very small BLOBNBOX_LIST small_blobs; //fairly small BLOBNBOX_LIST large_blobs; //big blobs BLOCK *block; //real block PITCH_TYPE pitch_decision; //how strong is decision float line_spacing; //estimate // line_size is a lower-bound estimate of the font size in pixels of // the text in the block (with ascenders and descenders), being a small // (1.25) multiple of the median height of filtered blobs. // In most cases the font size will be bigger, but it will be closer // if the text is allcaps, or in a no-x-height script. float line_size; //estimate float max_blob_size; //line assignment limit float baseline_offset; //phase shift float xheight; //median blob size float fixed_pitch; //pitch or 0 float kern_size; //average non-space float space_size; //average space inT32 min_space; //min definite space inT32 max_nonspace; //max definite float fp_space; //sp if fixed pitch float fp_nonsp; //nonsp if fixed pitch float pr_space; //sp if prop float pr_nonsp; //non sp if prop TO_ROW *key_row; //starting row private: TO_ROW_LIST row_list; //temporary rows }; ELISTIZEH (TO_BLOCK) extern double_VAR_H (textord_error_weight, 3, "Weighting for error in believability"); void find_cblob_limits( //get y limits C_BLOB *blob, //blob to search float leftx, //x limits float rightx, FCOORD rotation, //for landscape float &ymin, //output y limits float &ymax); void find_cblob_vlimits( //get y limits C_BLOB *blob, //blob to search float leftx, //x limits float rightx, float &ymin, //output y limits float &ymax); void find_cblob_hlimits( //get x limits C_BLOB *blob, //blob to search float bottomy, //y limits float topy, float &xmin, //output x limits float &xymax); C_BLOB *crotate_cblob( //rotate it C_BLOB *blob, //blob to search FCOORD rotation //for landscape ); TBOX box_next( //get bounding box BLOBNBOX_IT *it //iterator to blobds ); TBOX box_next_pre_chopped( //get bounding box BLOBNBOX_IT *it //iterator to blobds ); void vertical_cblob_projection( //project outlines C_BLOB *blob, //blob to project STATS *stats //output ); void vertical_coutline_projection( //project outlines C_OUTLINE *outline, //outline to project STATS *stats //output ); #ifndef GRAPHICS_DISABLED void plot_blob_list(ScrollView* win, // window to draw in BLOBNBOX_LIST *list, // blob list ScrollView::Color body_colour, // colour to draw ScrollView::Color child_colour); // colour of child #endif // GRAPHICS_DISABLED #endif
C++
/********************************************************************** * File: polyblk.h (Formerly poly_block.h) * Description: Polygonal blocks * Author: Sheelagh Lloyd? * Created: * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef POLYBLK_H #define POLYBLK_H #include "publictypes.h" #include "elst.h" #include "points.h" #include "rect.h" #include "scrollview.h" class DLLSYM POLY_BLOCK { public: POLY_BLOCK() { } // Initialize from box coordinates. POLY_BLOCK(const TBOX& box, PolyBlockType type); POLY_BLOCK(ICOORDELT_LIST *points, PolyBlockType type); ~POLY_BLOCK () { } TBOX *bounding_box() { // access function return &box; } ICOORDELT_LIST *points() { // access function return &vertices; } void compute_bb(); PolyBlockType isA() const { return type; } bool IsText() const { return PTIsTextType(type); } // Rotate about the origin by the given rotation. (Analogous to // multiplying by a complex number. void rotate(FCOORD rotation); // Reflect the coords of the polygon in the y-axis. (Flip the sign of x.) void reflect_in_y_axis(); // Move by adding shift to all coordinates. void move(ICOORD shift); void plot(ScrollView* window, inT32 num); #ifndef GRAPHICS_DISABLED void fill(ScrollView* window, ScrollView::Color colour); #endif // GRAPHICS_DISABLED // Returns true if other is inside this. bool contains(POLY_BLOCK *other); // Returns true if the polygons of other and this overlap. bool overlap(POLY_BLOCK *other); // Returns the winding number of this around the test_pt. // Positive for anticlockwise, negative for clockwise, and zero for // test_pt outside this. inT16 winding_number(const ICOORD &test_pt); #ifndef GRAPHICS_DISABLED // Static utility functions to handle the PolyBlockType. // Returns a color to draw the given type. static ScrollView::Color ColorForPolyBlockType(PolyBlockType type); #endif // GRAPHICS_DISABLED private: ICOORDELT_LIST vertices; // vertices TBOX box; // bounding box PolyBlockType type; // Type of this region. }; // Class to iterate the scanlines of a polygon. class DLLSYM PB_LINE_IT { public: PB_LINE_IT(POLY_BLOCK *blkptr) { block = blkptr; } void set_to_block(POLY_BLOCK * blkptr) { block = blkptr; } // Returns a list of runs of pixels for the given y coord. // Each element of the returned list is the start (x) and extent(y) of // a run inside the region. // Delete the returned list after use. ICOORDELT_LIST *get_line(inT16 y); private: POLY_BLOCK * block; }; #endif
C++
/////////////////////////////////////////////////////////////////////// // File: imagedata.h // Description: Class to hold information about a single image and its // corresponding boxes or text file. // Author: Ray Smith // Created: Mon Jul 22 14:17:06 PDT 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_IMAGE_IMAGEDATA_H_ #define TESSERACT_IMAGE_IMAGEDATA_H_ #include "genericvector.h" #include "normalis.h" #include "rect.h" #include "strngs.h" struct Pix; namespace tesseract { // Amount of padding to apply in output pixels in feature mode. const int kFeaturePadding = 2; // Number of pixels to pad around text boxes. const int kImagePadding = 4; // Number of training images to combine into a mini-batch for training. const int kNumPagesPerMiniBatch = 100; class WordFeature { public: WordFeature(); WordFeature(const FCOORD& fcoord, uinT8 dir); // Computes the maximum x and y value in the features. static void ComputeSize(const GenericVector<WordFeature>& features, int* max_x, int* max_y); // Draws the features in the given window. static void Draw(const GenericVector<WordFeature>& features, ScrollView* window); // Accessors. int x() const { return x_; } int y() const { return y_; } int dir() const { return dir_; } // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); private: inT16 x_; uinT8 y_; uinT8 dir_; }; // A floating-point version of WordFeature, used as an intermediate during // scaling. struct FloatWordFeature { static void FromWordFeatures(const GenericVector<WordFeature>& word_features, GenericVector<FloatWordFeature>* float_features); // Sort function to sort first by x-bucket, then by y. static int SortByXBucket(const void*, const void*); float x; float y; float dir; int x_bucket; }; // Class to hold information on a single image: // Filename, cached image as a Pix*, character boxes, text transcription. // The text transcription is the ground truth UTF-8 text for the image. // Character boxes are optional and indicate the desired segmentation of // the text into recognition units. class ImageData { public: ImageData(); // Takes ownership of the pix. ImageData(bool vertical, Pix* pix); ~ImageData(); // Builds and returns an ImageData from the basic data. Note that imagedata, // truth_text, and box_text are all the actual file data, NOT filenames. static ImageData* Build(const char* name, int page_number, const char* lang, const char* imagedata, int imagedatasize, const char* truth_text, const char* box_text); // Writes to the given file. Returns false in case of error. bool Serialize(TFile* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, TFile* fp); // Other accessors. const STRING& imagefilename() const { return imagefilename_; } void set_imagefilename(const STRING& name) { imagefilename_ = name; } int page_number() const { return page_number_; } void set_page_number(int num) { page_number_ = num; } const GenericVector<char>& image_data() const { return image_data_; } const STRING& language() const { return language_; } void set_language(const STRING& lang) { language_ = lang; } const STRING& transcription() const { return transcription_; } const GenericVector<TBOX>& boxes() const { return boxes_; } const GenericVector<STRING>& box_texts() const { return box_texts_; } const STRING& box_text(int index) const { return box_texts_[index]; } // Saves the given Pix as a PNG-encoded string and destroys it. void SetPix(Pix* pix); // Returns the Pix image for *this. Must be pixDestroyed after use. Pix* GetPix() const; // Gets anything and everything with a non-NULL pointer, prescaled to a // given target_height (if 0, then the original image height), and aligned. // Also returns (if not NULL) the width and height of the scaled image. // The return value is the scale factor that was applied to the image to // achieve the target_height. float PreScale(int target_height, Pix** pix, int* scaled_width, int* scaled_height, GenericVector<TBOX>* boxes) const; int MemoryUsed() const; // Draws the data in a new window. void Display() const; // Adds the supplied boxes and transcriptions that correspond to the correct // page number. void AddBoxes(const GenericVector<TBOX>& boxes, const GenericVector<STRING>& texts, const GenericVector<int>& box_pages); private: // Saves the given Pix as a PNG-encoded string and destroys it. static void SetPixInternal(Pix* pix, GenericVector<char>* image_data); // Returns the Pix image for the image_data. Must be pixDestroyed after use. static Pix* GetPixInternal(const GenericVector<char>& image_data); // Parses the text string as a box file and adds any discovered boxes that // match the page number. Returns false on error. bool AddBoxes(const char* box_text); private: STRING imagefilename_; // File to read image from. inT32 page_number_; // Page number if multi-page tif or -1. GenericVector<char> image_data_; // PNG file data. STRING language_; // Language code for image. STRING transcription_; // UTF-8 ground truth of image. GenericVector<TBOX> boxes_; // If non-empty boxes of the image. GenericVector<STRING> box_texts_; // String for text in each box. bool vertical_text_; // Image has been rotated from vertical. }; // A collection of ImageData that knows roughly how much memory it is using. class DocumentData { public: explicit DocumentData(const STRING& name); ~DocumentData(); // Reads all the pages in the given lstmf filename to the cache. The reader // is used to read the file. bool LoadDocument(const char* filename, const char* lang, int start_page, inT64 max_memory, FileReader reader); // Writes all the pages to the given filename. Returns false on error. bool SaveDocument(const char* filename, FileWriter writer); bool SaveToBuffer(GenericVector<char>* buffer); // Adds the given page data to this document, counting up memory. void AddPageToDocument(ImageData* page); const STRING& document_name() const { return document_name_; } int NumPages() const { return total_pages_; } inT64 memory_used() const { return memory_used_; } // Returns a pointer to the page with the given index, modulo the total // number of pages, recaching if needed. const ImageData* GetPage(int index); // Takes ownership of the given page index. The page is made NULL in *this. ImageData* TakePage(int index) { ImageData* page = pages_[index]; pages_[index] = NULL; return page; } private: // Loads as many pages can fit in max_memory_ starting at index pages_offset_. bool ReCachePages(); private: // A name for this document. STRING document_name_; // The language of this document. STRING lang_; // A group of pages that corresponds in some loose way to a document. PointerVector<ImageData> pages_; // Page number of the first index in pages_. int pages_offset_; // Total number of pages in document (may exceed size of pages_.) int total_pages_; // Total of all pix sizes in the document. inT64 memory_used_; // Max memory to use at any time. inT64 max_memory_; // Saved reader from LoadDocument to allow re-caching. FileReader reader_; }; // A collection of DocumentData that knows roughly how much memory it is using. class DocumentCache { public: explicit DocumentCache(inT64 max_memory); ~DocumentCache(); // Adds all the documents in the list of filenames, counting memory. // The reader is used to read the files. bool LoadDocuments(const GenericVector<STRING>& filenames, const char* lang, FileReader reader); // Adds document to the cache, throwing out other documents if needed. bool AddToCache(DocumentData* data); // Finds and returns a document by name. DocumentData* FindDocument(const STRING& document_name) const; // Returns a page by serial number, selecting them in a round-robin fashion // from all the documents. const ImageData* GetPageBySerial(int serial); const PointerVector<DocumentData>& documents() const { return documents_; } int total_pages() const { return total_pages_; } private: // A group of pages that corresponds in some loose way to a document. PointerVector<DocumentData> documents_; // Total of all pages. int total_pages_; // Total of all memory used by the cache. inT64 memory_used_; // Max memory allowed in this cache. inT64 max_memory_; }; } // namespace tesseract #endif // TESSERACT_IMAGE_IMAGEDATA_H_
C++
/********************************************************************** * File: statistc.h (Formerly stats.h) * Description: Class description for STATS class. * Author: Ray Smith * Created: Mon Feb 04 16:19:07 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef TESSERACT_CCSTRUCT_STATISTC_H_ #define TESSERACT_CCSTRUCT_STATISTC_H_ #include <stdio.h> #include "host.h" #include "kdpair.h" #include "scrollview.h" template <typename T> class GenericVector; // Simple histogram-based statistics for integer values in a known // range, such that the range is small compared to the number of samples. class STATS { public: // The histogram buckets are in the range // [min_bucket_value, max_bucket_value_plus_1 - 1] i.e. // [min_bucket_value, max_bucket_value]. // Any data under min_bucket value is silently mapped to min_bucket_value, // and likewise, any data over max_bucket_value is silently mapped to // max_bucket_value. // In the internal array, min_bucket_value maps to 0 and // max_bucket_value_plus_1 - min_bucket_value to the array size. // TODO(rays) This is ugly. Convert the second argument to // max_bucket_value and all the code that uses it. STATS(inT32 min_bucket_value, inT32 max_bucket_value_plus_1); STATS(); // empty for arrays ~STATS(); // (Re)Sets the range and clears the counts. // See the constructor for info on max and min values. bool set_range(inT32 min_bucket_value, inT32 max_bucket_value_plus_1); void clear(); // empty buckets void add(inT32 value, inT32 count); // "Accessors" return various statistics on the data. inT32 mode() const; // get mode of samples double mean() const; // get mean of samples double sd() const; // standard deviation // Returns the fractile value such that frac fraction (in [0,1]) of samples // has a value less than the return value. double ile(double frac) const; // Returns the minimum used entry in the histogram (ie the minimum of the // data, NOT the minimum of the supplied range, nor is it an index.) // Would normally be called min(), but that is a reserved word in VC++. inT32 min_bucket() const; // Find min // Returns the maximum used entry in the histogram (ie the maximum of the // data, NOT the maximum of the supplied range, nor is it an index.) inT32 max_bucket() const; // Find max // Finds a more useful estimate of median than ile(0.5). // Overcomes a problem with ile() - if the samples are, for example, // 6,6,13,14 ile(0.5) return 7.0 - when a more useful value would be midway // between 6 and 13 = 9.5 double median() const; // get median of samples // Returns the count of the given value. inT32 pile_count(inT32 value ) const { if (value <= rangemin_) return buckets_[0]; if (value >= rangemax_ - 1) return buckets_[rangemax_ - rangemin_ - 1]; return buckets_[value - rangemin_]; } // Returns the total count of all buckets. inT32 get_total() const { return total_count_; // total of all piles } // Returns true if x is a local min. bool local_min(inT32 x) const; // Apply a triangular smoothing filter to the stats. // This makes the modes a bit more useful. // The factor gives the height of the triangle, i.e. the weight of the // centre. void smooth(inT32 factor); // Cluster the samples into max_cluster clusters. // Each call runs one iteration. The array of clusters must be // max_clusters+1 in size as cluster 0 is used to indicate which samples // have been used. // The return value is the current number of clusters. inT32 cluster(float lower, // thresholds float upper, float multiple, // distance threshold inT32 max_clusters, // max no to make STATS *clusters); // array of clusters // Finds (at most) the top max_modes modes, well actually the whole peak around // each mode, returning them in the given modes vector as a <mean of peak, // total count of peak> pair in order of decreasing total count. // Since the mean is the key and the count the data in the pair, a single call // to sort on the output will re-sort by increasing mean of peak if that is // more useful than decreasing total count. // Returns the actual number of modes found. int top_n_modes( int max_modes, GenericVector<tesseract::KDPairInc<float, int> >* modes) const; // Prints a summary and table of the histogram. void print() const; // Prints summary stats only of the histogram. void print_summary() const; #ifndef GRAPHICS_DISABLED // Draws the histogram as a series of rectangles. void plot(ScrollView* window, // window to draw in float xorigin, // origin of histo float yorigin, // gram float xscale, // size of one unit float yscale, // size of one uint ScrollView::Color colour) const; // colour to draw in // Draws a line graph of the histogram. void plotline(ScrollView* window, // window to draw in float xorigin, // origin of histo float yorigin, // gram float xscale, // size of one unit float yscale, // size of one uint ScrollView::Color colour) const; // colour to draw in #endif // GRAPHICS_DISABLED private: inT32 rangemin_; // min of range // rangemax_ is not well named as it is really one past the max. inT32 rangemax_; // max of range inT32 total_count_; // no of samples inT32* buckets_; // array of cells }; // Returns the nth ordered item from the array, as if they were // ordered, but without ordering them, in linear time. // The array does get shuffled! inT32 choose_nth_item(inT32 index, // index to choose float *array, // array of items inT32 count); // no of items // Generic version uses a defined comparator (with qsort semantics). inT32 choose_nth_item(inT32 index, // index to choose void *array, // array of items inT32 count, // no of items size_t size, // element size int (*compar)(const void*, const void*)); // comparator // Swaps 2 entries in an array in-place. void swap_entries(void *array, // array of entries size_t size, // size of entry inT32 index1, // entries to swap inT32 index2); #endif // TESSERACT_CCSTRUCT_STATISTC_H_
C++
/********************************************************************** * File: coutln.c (Formerly: coutline.c) * Description: Code for the C_OUTLINE class. * Author: Ray Smith * Created: Mon Oct 07 16:01:57 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef COUTLN_H #define COUTLN_H #include "crakedge.h" #include "mod128.h" #include "bits16.h" #include "rect.h" #include "blckerr.h" #include "scrollview.h" class DENORM; #define INTERSECTING MAX_INT16//no winding number //mask to get step #define STEP_MASK 3 enum C_OUTLINE_FLAGS { COUT_INVERSE //White on black blob }; // Simple struct to hold the 3 values needed to compute a more precise edge // position and direction. The offset_numerator is the difference between the // grey threshold and the mean pixel value. pixel_diff is the difference between // the pixels in the edge. Consider the following row of pixels: p1 p2 p3 p4 p5 // Say the image was thresholded at threshold t, making p1, p2, p3 black // and p4, p5 white (p1, p2, p3 < t, and p4, p5 >= t), but suppose that // max(p[i+1] - p[i]) is p3 - p2. Then the extrapolated position of the edge, // based on the maximum gradient, is at the crack between p2 and p3 plus the // offset (t - (p2+p3)/2)/(p3 - p2). We store the pixel difference p3-p2 // denominator in pixel_diff and the offset numerator, relative to the original // binary edge (t - (p2+p3)/2) - (p3 -p2) in offset_numerator. // The sign of offset_numerator and pixel_diff are manipulated to ensure // that the pixel_diff, which will be used as a weight, is always positive. // The direction stores the quantized feature direction for the given step // computed from the edge gradient. (Using binary_angle_plus_pi.) // If the pixel_diff is zero, it means that the direction of the gradient // is in conflict with the step direction, so this step is to be ignored. struct EdgeOffset { inT8 offset_numerator; uinT8 pixel_diff; uinT8 direction; }; class DLLSYM C_OUTLINE; //forward declaration struct Pix; ELISTIZEH (C_OUTLINE) class DLLSYM C_OUTLINE:public ELIST_LINK { public: C_OUTLINE() { //empty constructor steps = NULL; offsets = NULL; } C_OUTLINE( //constructor CRACKEDGE *startpt, //from edge detector ICOORD bot_left, //bounding box //length of loop ICOORD top_right, inT16 length); C_OUTLINE(ICOORD startpt, //start of loop DIR128 *new_steps, //steps in loop inT16 length); //length of loop //outline to copy C_OUTLINE(C_OUTLINE *srcline, FCOORD rotation); //and rotate // Build a fake outline, given just a bounding box and append to the list. static void FakeOutline(const TBOX& box, C_OUTLINE_LIST* outlines); ~C_OUTLINE () { //destructor if (steps != NULL) free_mem(steps); steps = NULL; delete [] offsets; } BOOL8 flag( //test flag C_OUTLINE_FLAGS mask) const { //flag to test return flags.bit (mask); } void set_flag( //set flag value C_OUTLINE_FLAGS mask, //flag to test BOOL8 value) { //value to set flags.set_bit (mask, value); } C_OUTLINE_LIST *child() { //get child list return &children; } //access function const TBOX &bounding_box() const { return box; } void set_step( //set a step inT16 stepindex, //index of step inT8 stepdir) { //chain code int shift = stepindex%4 * 2; uinT8 mask = 3 << shift; steps[stepindex/4] = ((stepdir << shift) & mask) | (steps[stepindex/4] & ~mask); //squeeze 4 into byte } void set_step( //set a step inT16 stepindex, //index of step DIR128 stepdir) { //direction //clean it inT8 chaindir = stepdir.get_dir() >> (DIRBITS - 2); //difference set_step(stepindex, chaindir); //squeeze 4 into byte } inT32 pathlength() const { //get path length return stepcount; } // Return step at a given index as a DIR128. DIR128 step_dir(int index) const { return DIR128((inT16)(((steps[index/4] >> (index%4 * 2)) & STEP_MASK) << (DIRBITS - 2))); } // Return the step vector for the given outline position. ICOORD step(int index) const { // index of step return step_coords[chain_code(index)]; } // get start position const ICOORD &start_pos() const { return start; } // Returns the position at the given index on the outline. // NOT to be used lightly, as it has to iterate the outline to find out. ICOORD position_at_index(int index) const { ICOORD pos = start; for (int i = 0; i < index; ++i) pos += step(i); return pos; } // Returns the sub-pixel accurate position given the integer position pos // at the given index on the outline. pos may be a return value of // position_at_index, or computed by repeatedly adding step to the // start_pos() in the usual way. FCOORD sub_pixel_pos_at_index(const ICOORD& pos, int index) const { const ICOORD& step_to_next(step(index)); FCOORD f_pos(pos.x() + step_to_next.x() / 2.0f, pos.y() + step_to_next.y() / 2.0f); if (offsets != NULL && offsets[index].pixel_diff > 0) { float offset = offsets[index].offset_numerator; offset /= offsets[index].pixel_diff; if (step_to_next.x() != 0) f_pos.set_y(f_pos.y() + offset); else f_pos.set_x(f_pos.x() + offset); } return f_pos; } // Returns the step direction for the given index or -1 if there is none. int direction_at_index(int index) const { if (offsets != NULL && offsets[index].pixel_diff > 0) return offsets[index].direction; return -1; } // Returns the edge strength for the given index. // If there are no recorded edge strengths, returns 1 (assuming the image // is binary). Returns 0 if the gradient direction conflicts with the // step direction, indicating that this position could be skipped. int edge_strength_at_index(int index) const { if (offsets != NULL) return offsets[index].pixel_diff; return 1; } // Return the step as a chain code (0-3) related to the standard feature // direction of binary_angle_plus_pi by: // chain_code * 64 = feature direction. int chain_code(int index) const { // index of step return (steps[index / 4] >> (index % 4 * 2)) & STEP_MASK; } inT32 area() const; // Returns area of self and 1st level children. inT32 perimeter() const; // Total perimeter of self and 1st level children. inT32 outer_area() const; // Returns area of self only. inT32 count_transitions( //count maxima inT32 threshold); //size threshold BOOL8 operator< ( //containment test const C_OUTLINE & other) const; BOOL8 operator> ( //containment test C_OUTLINE & other) const { return other < *this; //use the < to do it } inT16 winding_number( //get winding number ICOORD testpt) const; //around this point //get direction inT16 turn_direction() const; void reverse(); //reverse direction void move( // reposition outline const ICOORD vec); // by vector // Returns true if *this and its children are legally nested. // The outer area of a child should have the opposite sign to the // parent. If not, it means we have discarded an outline in between // (probably due to excessive length). bool IsLegallyNested() const; // If this outline is smaller than the given min_size, delete this and // remove from its list, via *it, after checking that *it points to this. // Otherwise, if any children of this are too small, delete them. // On entry, *it must be an iterator pointing to this. If this gets deleted // then this is extracted from *it, so an iteration can continue. void RemoveSmallRecursive(int min_size, C_OUTLINE_IT* it); // Adds sub-pixel resolution EdgeOffsets for the outline if the supplied // pix is 8-bit. Does nothing otherwise. void ComputeEdgeOffsets(int threshold, Pix* pix); // Adds sub-pixel resolution EdgeOffsets for the outline using only // a binary image source. void ComputeBinaryOffsets(); // Renders the outline to the given pix, with left and top being // the coords of the upper-left corner of the pix. void render(int left, int top, Pix* pix) const; // Renders just the outline to the given pix (no fill), with left and top // being the coords of the upper-left corner of the pix. void render_outline(int left, int top, Pix* pix) const; #ifndef GRAPHICS_DISABLED void plot( //draw one ScrollView* window, //window to draw in ScrollView::Color colour) const; //colour to draw it // Draws the outline in the given colour, normalized using the given denorm, // making use of sub-pixel accurate information if available. void plot_normed(const DENORM& denorm, ScrollView::Color colour, ScrollView* window) const; #endif // GRAPHICS_DISABLED C_OUTLINE& operator=(const C_OUTLINE& source); static C_OUTLINE* deep_copy(const C_OUTLINE* src) { C_OUTLINE* outline = new C_OUTLINE; *outline = *src; return outline; } static ICOORD chain_step(int chaindir); // The maximum length of any outline. The stepcount is stored as 16 bits, // but it is probably not a good idea to increase this constant by much // and switch to 32 bits, as it plays an important role in keeping huge // outlines invisible, which prevents bad speed behavior. static const int kMaxOutlineLength = 16000; private: // Helper for ComputeBinaryOffsets. Increments pos, dir_counts, pos_totals // by the step, increment, and vertical step ? x : y position * increment // at step s Mod stepcount respectively. Used to add or subtract the // direction and position to/from accumulators of a small neighbourhood. void increment_step(int s, int increment, ICOORD* pos, int* dir_counts, int* pos_totals) const; int step_mem() const { return (stepcount+3) / 4; } TBOX box; // bounding box ICOORD start; // start coord inT16 stepcount; // no of steps BITS16 flags; // flags about outline uinT8 *steps; // step array EdgeOffset* offsets; // Higher precision edge. C_OUTLINE_LIST children; // child elements static ICOORD step_coords[4]; }; #endif
C++
/********************************************************************** * File: werd.cpp (Formerly word.c) * Description: Code for the WERD class. * Author: Ray Smith * Created: Tue Oct 08 14:32:12 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "blckerr.h" #include "helpers.h" #include "linlsq.h" #include "werd.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #define FIRST_COLOUR ScrollView::RED //< first rainbow colour #define LAST_COLOUR ScrollView::AQUAMARINE //< last rainbow colour #define CHILD_COLOUR ScrollView::BROWN //< colour of children const ERRCODE CANT_SCALE_EDGESTEPS = "Attempted to scale an edgestep format word"; ELIST2IZE(WERD) /** * WERD::WERD * * Constructor to build a WERD from a list of C_BLOBs. * blob_list The C_BLOBs (in word order) are not copied; * we take its elements and put them in our lists. * blank_count blanks in front of the word * text correct text, outlives this WERD */ WERD::WERD(C_BLOB_LIST *blob_list, uinT8 blank_count, const char *text) : blanks(blank_count), flags(0), script_id_(0), correct(text) { C_BLOB_IT start_it = blob_list; C_BLOB_IT end_it = blob_list; C_BLOB_IT rej_cblob_it = &rej_cblobs; C_OUTLINE_IT c_outline_it; inT16 inverted_vote = 0; inT16 non_inverted_vote = 0; // Move blob_list's elements into cblobs. while (!end_it.at_last()) end_it.forward(); cblobs.assign_to_sublist(&start_it, &end_it); /* Set white on black flag for the WERD, moving any duff blobs onto the rej_cblobs list. First, walk the cblobs checking the inverse flag for each outline of each cblob. If a cblob has inconsistent flag settings for its different outlines, move the blob to the reject list. Otherwise, increment the appropriate w-on-b or b-on-w vote for the word. Now set the inversion flag for the WERD by maximum vote. Walk the blobs again, moving any blob whose inversion flag does not agree with the concencus onto the reject list. */ start_it.set_to_list(&cblobs); if (start_it.empty()) return; for (start_it.mark_cycle_pt(); !start_it.cycled_list(); start_it.forward()) { BOOL8 reject_blob = FALSE; BOOL8 blob_inverted; c_outline_it.set_to_list(start_it.data()->out_list()); blob_inverted = c_outline_it.data()->flag(COUT_INVERSE); for (c_outline_it.mark_cycle_pt(); !c_outline_it.cycled_list() && !reject_blob; c_outline_it.forward()) { reject_blob = c_outline_it.data()->flag(COUT_INVERSE) != blob_inverted; } if (reject_blob) { rej_cblob_it.add_after_then_move(start_it.extract()); } else { if (blob_inverted) inverted_vote++; else non_inverted_vote++; } } flags.set_bit(W_INVERSE, (inverted_vote > non_inverted_vote)); start_it.set_to_list(&cblobs); if (start_it.empty()) return; for (start_it.mark_cycle_pt(); !start_it.cycled_list(); start_it.forward()) { c_outline_it.set_to_list(start_it.data()->out_list()); if (c_outline_it.data()->flag(COUT_INVERSE) != flags.bit(W_INVERSE)) rej_cblob_it.add_after_then_move(start_it.extract()); } } /** * WERD::WERD * * Constructor to build a WERD from a list of C_BLOBs. * The C_BLOBs are not copied so the source list is emptied. */ WERD::WERD(C_BLOB_LIST * blob_list, //< In word order WERD * clone) //< Source of flags : flags(clone->flags), script_id_(clone->script_id_), correct(clone->correct) { C_BLOB_IT start_it = blob_list; // iterator C_BLOB_IT end_it = blob_list; // another while (!end_it.at_last ()) end_it.forward (); //move to last ((C_BLOB_LIST *) (&cblobs))->assign_to_sublist (&start_it, &end_it); //move to our list blanks = clone->blanks; // fprintf(stderr,"Wrong constructor!!!!\n"); } // Construct a WERD from a single_blob and clone the flags from this. // W_BOL and W_EOL flags are set according to the given values. WERD* WERD::ConstructFromSingleBlob(bool bol, bool eol, C_BLOB* blob) { C_BLOB_LIST temp_blobs; C_BLOB_IT temp_it(&temp_blobs); temp_it.add_after_then_move(blob); WERD* blob_word = new WERD(&temp_blobs, this); blob_word->set_flag(W_BOL, bol); blob_word->set_flag(W_EOL, eol); return blob_word; } /** * WERD::bounding_box * * Return the bounding box of the WERD. * This is quite a mess to compute! * ORIGINALLY, REJECT CBLOBS WERE EXCLUDED, however, this led to bugs when the * words on the row were re-sorted. The original words were built with reject * blobs included. The FUZZY SPACE flags were set accordingly. If ALL the * blobs in a word are rejected the BB for the word is NULL, causing the sort * to screw up, leading to the erroneous possibility of the first word in a * row being marked as FUZZY space. */ TBOX WERD::bounding_box() { TBOX box; // box being built C_BLOB_IT rej_cblob_it = &rej_cblobs; // rejected blobs for (rej_cblob_it.mark_cycle_pt(); !rej_cblob_it.cycled_list(); rej_cblob_it.forward()) { box += rej_cblob_it.data()->bounding_box(); } C_BLOB_IT it = &cblobs; // blobs of WERD for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { box += it.data()->bounding_box(); } return box; } /** * WERD::move * * Reposition WERD by vector * NOTE!! REJECT CBLOBS ARE NOT MOVED */ void WERD::move(const ICOORD vec) { C_BLOB_IT cblob_it(&cblobs); // cblob iterator for (cblob_it.mark_cycle_pt(); !cblob_it.cycled_list(); cblob_it.forward()) cblob_it.data()->move(vec); } /** * WERD::join_on * * Join other word onto this one. Delete the old word. */ void WERD::join_on(WERD* other) { C_BLOB_IT blob_it(&cblobs); C_BLOB_IT src_it(&other->cblobs); C_BLOB_IT rej_cblob_it(&rej_cblobs); C_BLOB_IT src_rej_it(&other->rej_cblobs); while (!src_it.empty()) { blob_it.add_to_end(src_it.extract()); src_it.forward(); } while (!src_rej_it.empty()) { rej_cblob_it.add_to_end(src_rej_it.extract()); src_rej_it.forward(); } } /** * WERD::copy_on * * Copy blobs from other word onto this one. */ void WERD::copy_on(WERD* other) { bool reversed = other->bounding_box().left() < bounding_box().left(); C_BLOB_IT c_blob_it(&cblobs); C_BLOB_LIST c_blobs; c_blobs.deep_copy(&other->cblobs, &C_BLOB::deep_copy); if (reversed) { c_blob_it.add_list_before(&c_blobs); } else { c_blob_it.move_to_last(); c_blob_it.add_list_after(&c_blobs); } if (!other->rej_cblobs.empty()) { C_BLOB_IT rej_c_blob_it(&rej_cblobs); C_BLOB_LIST new_rej_c_blobs; new_rej_c_blobs.deep_copy(&other->rej_cblobs, &C_BLOB::deep_copy); if (reversed) { rej_c_blob_it.add_list_before(&new_rej_c_blobs); } else { rej_c_blob_it.move_to_last(); rej_c_blob_it.add_list_after(&new_rej_c_blobs); } } } /** * WERD::print * * Display members */ void WERD::print() { tprintf("Blanks= %d\n", blanks); bounding_box().print(); tprintf("Flags = %d = 0%o\n", flags.val, flags.val); tprintf(" W_SEGMENTED = %s\n", flags.bit(W_SEGMENTED) ? "TRUE" : "FALSE "); tprintf(" W_ITALIC = %s\n", flags.bit(W_ITALIC) ? "TRUE" : "FALSE "); tprintf(" W_BOL = %s\n", flags.bit(W_BOL) ? "TRUE" : "FALSE "); tprintf(" W_EOL = %s\n", flags.bit(W_EOL) ? "TRUE" : "FALSE "); tprintf(" W_NORMALIZED = %s\n", flags.bit(W_NORMALIZED) ? "TRUE" : "FALSE "); tprintf(" W_SCRIPT_HAS_XHEIGHT = %s\n", flags.bit(W_SCRIPT_HAS_XHEIGHT) ? "TRUE" : "FALSE "); tprintf(" W_SCRIPT_IS_LATIN = %s\n", flags.bit(W_SCRIPT_IS_LATIN) ? "TRUE" : "FALSE "); tprintf(" W_DONT_CHOP = %s\n", flags.bit(W_DONT_CHOP) ? "TRUE" : "FALSE "); tprintf(" W_REP_CHAR = %s\n", flags.bit(W_REP_CHAR) ? "TRUE" : "FALSE "); tprintf(" W_FUZZY_SP = %s\n", flags.bit(W_FUZZY_SP) ? "TRUE" : "FALSE "); tprintf(" W_FUZZY_NON = %s\n", flags.bit(W_FUZZY_NON) ? "TRUE" : "FALSE "); tprintf("Correct= %s\n", correct.string()); tprintf("Rejected cblob count = %d\n", rej_cblobs.length()); tprintf("Script = %d\n", script_id_); } /** * WERD::plot * * Draw the WERD in the given colour. */ #ifndef GRAPHICS_DISABLED void WERD::plot(ScrollView *window, ScrollView::Color colour) { C_BLOB_IT it = &cblobs; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->plot(window, colour, colour); } plot_rej_blobs(window); } // Get the next color in the (looping) rainbow. ScrollView::Color WERD::NextColor(ScrollView::Color colour) { ScrollView::Color next = static_cast<ScrollView::Color>(colour + 1); if (next >= LAST_COLOUR || next < FIRST_COLOUR) next = FIRST_COLOUR; return next; } /** * WERD::plot * * Draw the WERD in rainbow colours in window. */ void WERD::plot(ScrollView* window) { ScrollView::Color colour = FIRST_COLOUR; C_BLOB_IT it = &cblobs; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->plot(window, colour, CHILD_COLOUR); colour = NextColor(colour); } plot_rej_blobs(window); } /** * WERD::plot_rej_blobs * * Draw the WERD rejected blobs in window - ALWAYS GREY */ void WERD::plot_rej_blobs(ScrollView *window) { C_BLOB_IT it = &rej_cblobs; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->plot(window, ScrollView::GREY, ScrollView::GREY); } } #endif // GRAPHICS_DISABLED /** * WERD::shallow_copy() * * Make a shallow copy of a word */ WERD *WERD::shallow_copy() { WERD *new_word = new WERD; new_word->blanks = blanks; new_word->flags = flags; new_word->dummy = dummy; new_word->correct = correct; return new_word; } /** * WERD::operator= * * Assign a word, DEEP copying the blob list */ WERD & WERD::operator= (const WERD & source) { this->ELIST2_LINK::operator= (source); blanks = source.blanks; flags = source.flags; script_id_ = source.script_id_; dummy = source.dummy; correct = source.correct; if (!cblobs.empty()) cblobs.clear(); cblobs.deep_copy(&source.cblobs, &C_BLOB::deep_copy); if (!rej_cblobs.empty()) rej_cblobs.clear(); rej_cblobs.deep_copy(&source.rej_cblobs, &C_BLOB::deep_copy); return *this; } /** * word_comparator() * * word comparator used to sort a word list so that words are in increasing * order of left edge. */ int word_comparator(const void *word1p, const void *word2p) { WERD *word1 = *(WERD **)word1p; WERD *word2 = *(WERD **)word2p; return word1->bounding_box().left() - word2->bounding_box().left(); } /** * WERD::ConstructWerdWithNewBlobs() * * This method returns a new werd constructed using the blobs in the input * all_blobs list, which correspond to the blobs in this werd object. The * blobs used to construct the new word are consumed and removed from the * input all_blobs list. * Returns NULL if the word couldn't be constructed. * Returns original blobs for which no matches were found in the output list * orphan_blobs (appends). */ WERD* WERD::ConstructWerdWithNewBlobs(C_BLOB_LIST* all_blobs, C_BLOB_LIST* orphan_blobs) { C_BLOB_LIST current_blob_list; C_BLOB_IT werd_blobs_it(&current_blob_list); // Add the word's c_blobs. werd_blobs_it.add_list_after(cblob_list()); // New blob list. These contain the blobs which will form the new word. C_BLOB_LIST new_werd_blobs; C_BLOB_IT new_blobs_it(&new_werd_blobs); // not_found_blobs contains the list of current word's blobs for which a // corresponding blob wasn't found in the input all_blobs list. C_BLOB_LIST not_found_blobs; C_BLOB_IT not_found_it(&not_found_blobs); not_found_it.move_to_last(); werd_blobs_it.move_to_first(); for (werd_blobs_it.mark_cycle_pt(); !werd_blobs_it.cycled_list(); werd_blobs_it.forward()) { C_BLOB* werd_blob = werd_blobs_it.extract(); TBOX werd_blob_box = werd_blob->bounding_box(); bool found = false; // Now find the corresponding blob for this blob in the all_blobs // list. For now, follow the inefficient method of pairwise // comparisons. Ideally, one can pre-bucket the blobs by row. C_BLOB_IT all_blobs_it(all_blobs); for (all_blobs_it.mark_cycle_pt(); !all_blobs_it.cycled_list(); all_blobs_it.forward()) { C_BLOB* a_blob = all_blobs_it.data(); // Compute the overlap of the two blobs. If major, a_blob should // be added to the new blobs list. TBOX a_blob_box = a_blob->bounding_box(); if (a_blob_box.null_box()) { tprintf("Bounding box couldn't be ascertained\n"); } if (werd_blob_box.contains(a_blob_box) || werd_blob_box.major_overlap(a_blob_box)) { // Old blobs are from minimal splits, therefore are expected to be // bigger. The new small blobs should cover a significant portion. // This is it. all_blobs_it.extract(); new_blobs_it.add_after_then_move(a_blob); found = true; } } if (!found) { not_found_it.add_after_then_move(werd_blob); } else { delete werd_blob; } } // Iterate over all not found blobs. Some of them may be due to // under-segmentation (which is OK, since the corresponding blob is already // in the list in that case. not_found_it.move_to_first(); for (not_found_it.mark_cycle_pt(); !not_found_it.cycled_list(); not_found_it.forward()) { C_BLOB* not_found = not_found_it.data(); TBOX not_found_box = not_found->bounding_box(); C_BLOB_IT existing_blobs_it(new_blobs_it); for (existing_blobs_it.mark_cycle_pt(); !existing_blobs_it.cycled_list(); existing_blobs_it.forward()) { C_BLOB* a_blob = existing_blobs_it.data(); TBOX a_blob_box = a_blob->bounding_box(); if ((not_found_box.major_overlap(a_blob_box) || a_blob_box.major_overlap(not_found_box)) && not_found_box.y_overlap_fraction(a_blob_box) > 0.8) { // Already taken care of. delete not_found_it.extract(); break; } } } if (orphan_blobs) { C_BLOB_IT orphan_blobs_it(orphan_blobs); orphan_blobs_it.move_to_last(); orphan_blobs_it.add_list_after(&not_found_blobs); } // New blobs are ready. Create a new werd object with these. WERD* new_werd = NULL; if (!new_werd_blobs.empty()) { new_werd = new WERD(&new_werd_blobs, this); } else { // Add the blobs back to this word so that it can be reused. C_BLOB_IT this_list_it(cblob_list()); this_list_it.add_list_after(&not_found_blobs); } return new_werd; }
C++
/********************************************************************** * File: quadlsq.h (Formerly qlsq.h) * Description: Code for least squares approximation of quadratics. * Author: Ray Smith * Created: Wed Oct 6 15:14:23 BST 1993 * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef QUADLSQ_H #define QUADLSQ_H #include "points.h" class QLSQ { public: QLSQ() { //constructor clear(); //set to zeros } void clear(); //initialize void add( //add element double x, //coords to add double y); void remove( //delete element double x, //coords to delete double y); inT32 count() { //no of elements return n; } void fit( //fit the given int degree); //return actual double get_a() { //get x squard return a; } double get_b() { //get x squard return b; } double get_c() { //get x squard return c; } private: inT32 n; //no of elements double a, b, c; //result double sigx; //sum of x double sigy; //sum of y double sigxx; //sum x squared double sigxy; //sum of xy double sigyy; //sum y squared long double sigxxx; //sum x cubed long double sigxxy; //sum xsquared y long double sigxxxx; //sum x fourth }; #endif
C++
/////////////////////////////////////////////////////////////////////// // File: fontinfo.h // Description: Font information classes abstracted from intproto.h/cpp. // Author: rays@google.com (Ray Smith) // Created: Tue May 17 17:08:01 PDT 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCSTRUCT_FONTINFO_H_ #define TESSERACT_CCSTRUCT_FONTINFO_H_ #include "genericvector.h" #include "host.h" #include "unichar.h" template <typename T> class UnicityTable; namespace tesseract { class BitVector; // Struct for information about spacing between characters in a particular font. struct FontSpacingInfo { inT16 x_gap_before; inT16 x_gap_after; GenericVector<UNICHAR_ID> kerned_unichar_ids; GenericVector<inT16> kerned_x_gaps; }; /* * font_properties contains properties about boldness, italicness, fixed pitch, * serif, fraktur */ struct FontInfo { FontInfo() : name(NULL), properties(0), universal_id(0), spacing_vec(NULL) {} ~FontInfo() {} // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); // Reserves unicharset_size spots in spacing_vec. void init_spacing(int unicharset_size) { spacing_vec = new GenericVector<FontSpacingInfo *>(); spacing_vec->init_to_size(unicharset_size, NULL); } // Adds the given pointer to FontSpacingInfo to spacing_vec member // (FontInfo class takes ownership of the pointer). // Note: init_spacing should be called before calling this function. void add_spacing(UNICHAR_ID uch_id, FontSpacingInfo *spacing_info) { ASSERT_HOST(spacing_vec != NULL && spacing_vec->size() > uch_id); (*spacing_vec)[uch_id] = spacing_info; } // Returns the pointer to FontSpacingInfo for the given UNICHAR_ID. const FontSpacingInfo *get_spacing(UNICHAR_ID uch_id) const { return (spacing_vec == NULL || spacing_vec->size() <= uch_id) ? NULL : (*spacing_vec)[uch_id]; } // Fills spacing with the value of the x gap expected between the two given // UNICHAR_IDs. Returns true on success. bool get_spacing(UNICHAR_ID prev_uch_id, UNICHAR_ID uch_id, int *spacing) const { const FontSpacingInfo *prev_fsi = this->get_spacing(prev_uch_id); const FontSpacingInfo *fsi = this->get_spacing(uch_id); if (prev_fsi == NULL || fsi == NULL) return false; int i = 0; for (; i < prev_fsi->kerned_unichar_ids.size(); ++i) { if (prev_fsi->kerned_unichar_ids[i] == uch_id) break; } if (i < prev_fsi->kerned_unichar_ids.size()) { *spacing = prev_fsi->kerned_x_gaps[i]; } else { *spacing = prev_fsi->x_gap_after + fsi->x_gap_before; } return true; } bool is_italic() const { return properties & 1; } bool is_bold() const { return (properties & 2) != 0; } bool is_fixed_pitch() const { return (properties & 4) != 0; } bool is_serif() const { return (properties & 8) != 0; } bool is_fraktur() const { return (properties & 16) != 0; } char* name; uinT32 properties; // The universal_id is a field reserved for the initialization process // to assign a unique id number to all fonts loaded for the current // combination of languages. This id will then be returned by // ResultIterator::WordFontAttributes. inT32 universal_id; // Horizontal spacing between characters (indexed by UNICHAR_ID). GenericVector<FontSpacingInfo *> *spacing_vec; }; // Every class (character) owns a FontSet that represents all the fonts that can // render this character. // Since almost all the characters from the same script share the same set of // fonts, the sets are shared over multiple classes (see // Classify::fontset_table_). Thus, a class only store an id to a set. // Because some fonts cannot render just one character of a set, there are a // lot of FontSet that differ only by one font. Rather than storing directly // the FontInfo in the FontSet structure, it's better to share FontInfos among // FontSets (Classify::fontinfo_table_). struct FontSet { int size; int* configs; // FontInfo ids }; // Class that adds a bit of functionality on top of GenericVector to // implement a table of FontInfo that replaces UniCityTable<FontInfo>. // TODO(rays) change all references once all existing traineddata files // are replaced. class FontInfoTable : public GenericVector<FontInfo> { public: FontInfoTable(); ~FontInfoTable(); // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); // Returns true if the given set of fonts includes one with the same // properties as font_id. bool SetContainsFontProperties(int font_id, const GenericVector<int>& font_set) const; // Returns true if the given set of fonts includes multiple properties. bool SetContainsMultipleFontProperties( const GenericVector<int>& font_set) const; // Moves any non-empty FontSpacingInfo entries from other to this. void MoveSpacingInfoFrom(FontInfoTable* other); // Moves this to the target unicity table. void MoveTo(UnicityTable<FontInfo>* target); }; // Compare FontInfo structures. bool CompareFontInfo(const FontInfo& fi1, const FontInfo& fi2); // Compare FontSet structures. bool CompareFontSet(const FontSet& fs1, const FontSet& fs2); // Deletion callbacks for GenericVector. void FontInfoDeleteCallback(FontInfo f); void FontSetDeleteCallback(FontSet fs); // Callbacks used by UnicityTable to read/write FontInfo/FontSet structures. bool read_info(FILE* f, FontInfo* fi, bool swap); bool write_info(FILE* f, const FontInfo& fi); bool read_spacing_info(FILE *f, FontInfo* fi, bool swap); bool write_spacing_info(FILE* f, const FontInfo& fi); bool read_set(FILE* f, FontSet* fs, bool swap); bool write_set(FILE* f, const FontSet& fs); } // namespace tesseract. #endif /* THIRD_PARTY_TESSERACT_CCSTRUCT_FONTINFO_H_ */
C++
/********************************************************************** * File: quadratc.h (Formerly quadrtic.h) * Description: Code for the QUAD_COEFFS class. * Author: Ray Smith * Created: Tue Oct 08 17:24:40 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef QUADRATC_H #define QUADRATC_H #include "points.h" class QUAD_COEFFS { public: QUAD_COEFFS() { } //empty constructor QUAD_COEFFS( //constructor double xsq, //coefficients float x, float constant) { a = xsq; b = x; c = constant; } float y( //evaluate float x) const { //at x return (float) ((a * x + b) * x + c); } void move( // reposition word ICOORD vec) { // by vector /************************************************************ y - q = a (x - p)^2 + b (x - p) + c y - q = ax^2 - 2apx + ap^2 + bx - bp + c y = ax^2 + (b - 2ap)x + (c - bp + ap^2 + q) ************************************************************/ inT16 p = vec.x (); inT16 q = vec.y (); c = (float) (c - b * p + a * p * p + q); b = (float) (b - 2 * a * p); } double a; //x squared float b; //x float c; //constant private: }; #endif
C++
/********************************************************************** * File: pageres.h (Formerly page_res.h) * Description: Results classes used by control.c * Author: Phil Cheatle * Created: Tue Sep 22 08:42:49 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef PAGERES_H #define PAGERES_H #include "blamer.h" #include "blobs.h" #include "boxword.h" #include "elst.h" #include "genericvector.h" #include "normalis.h" #include "ocrblock.h" #include "ocrrow.h" #include "params_training_featdef.h" #include "ratngs.h" #include "rejctmap.h" #include "seam.h" #include "werd.h" namespace tesseract { struct FontInfo; class Tesseract; } using tesseract::FontInfo; /* Forward declarations */ class BLOCK_RES; ELISTIZEH (BLOCK_RES) CLISTIZEH (BLOCK_RES) class ROW_RES; ELISTIZEH (ROW_RES) class WERD_RES; ELISTIZEH (WERD_RES) /************************************************************************* * PAGE_RES - Page results *************************************************************************/ class PAGE_RES { // page result public: inT32 char_count; inT32 rej_count; BLOCK_RES_LIST block_res_list; BOOL8 rejected; // Updated every time PAGE_RES_IT iterating on this PAGE_RES moves to // the next word. This pointer is not owned by PAGE_RES class. WERD_CHOICE **prev_word_best_choice; // Sums of blame reasons computed by the blamer. GenericVector<int> blame_reasons; // Debug information about all the misadaptions on this page. // Each BlamerBundle contains an index into this vector, so that words that // caused misadaption could be marked. However, since words could be // deleted/split/merged, the log is stored on the PAGE_RES level. GenericVector<STRING> misadaption_log; inline void Init() { char_count = 0; rej_count = 0; rejected = FALSE; prev_word_best_choice = NULL; blame_reasons.init_to_size(IRR_NUM_REASONS, 0); } PAGE_RES() { Init(); } // empty constructor PAGE_RES(bool merge_similar_words, BLOCK_LIST *block_list, // real blocks WERD_CHOICE **prev_word_best_choice_ptr); ~PAGE_RES () { // destructor } }; /************************************************************************* * BLOCK_RES - Block results *************************************************************************/ class BLOCK_RES:public ELIST_LINK { public: BLOCK * block; // real block inT32 char_count; // chars in block inT32 rej_count; // rejected chars inT16 font_class; // inT16 row_count; float x_height; BOOL8 font_assigned; // block already // processed BOOL8 bold; // all bold BOOL8 italic; // all italic ROW_RES_LIST row_res_list; BLOCK_RES() { } // empty constructor BLOCK_RES(bool merge_similar_words, BLOCK *the_block); // real block ~BLOCK_RES () { // destructor } }; /************************************************************************* * ROW_RES - Row results *************************************************************************/ class ROW_RES:public ELIST_LINK { public: ROW * row; // real row inT32 char_count; // chars in block inT32 rej_count; // rejected chars inT32 whole_word_rej_count; // rejs in total rej wds WERD_RES_LIST word_res_list; ROW_RES() { } // empty constructor ROW_RES(bool merge_similar_words, ROW *the_row); // real row ~ROW_RES() { // destructor } }; /************************************************************************* * WERD_RES - Word results *************************************************************************/ enum CRUNCH_MODE { CR_NONE, CR_KEEP_SPACE, CR_LOOSE_SPACE, CR_DELETE }; // WERD_RES is a collection of publicly accessible members that gathers // information about a word result. class WERD_RES : public ELIST_LINK { public: // Which word is which? // There are 3 coordinate spaces in use here: a possibly rotated pixel space, // the original image coordinate space, and the BLN space in which the // baseline of a word is at kBlnBaselineOffset, the xheight is kBlnXHeight, // and the x-middle of the word is at 0. // In the rotated pixel space, coordinates correspond to the input image, // but may be rotated about the origin by a multiple of 90 degrees, // and may therefore be negative. // In any case a rotation by denorm.block()->re_rotation() will take them // back to the original image. // The other differences between words all represent different stages of // processing during recognition. // ---------------------------INPUT------------------------------------- // The word is the input C_BLOBs in the rotated pixel space. // word is NOT owned by the WERD_RES unless combination is true. // All the other word pointers ARE owned by the WERD_RES. WERD* word; // Input C_BLOB word. // -------------SETUP BY SetupFor*Recognition---READONLY-INPUT------------ // The bln_boxes contains the bounding boxes (only) of the input word, in the // BLN space. The lengths of word and bln_boxes // match as they are both before any chopping. // TODO(rays) determine if docqual does anything useful and delete bln_boxes // if it doesn't. tesseract::BoxWord* bln_boxes; // BLN input bounding boxes. // The ROW that this word sits in. NOT owned by the WERD_RES. ROW* blob_row; // The denorm provides the transformation to get back to the rotated image // coords from the chopped_word/rebuild_word BLN coords, but each blob also // has its own denorm. DENORM denorm; // For use on chopped_word. // Unicharset used by the classifier output in best_choice and raw_choice. const UNICHARSET* uch_set; // For converting back to utf8. // ----Initialized by SetupFor*Recognition---BUT OUTPUT FROM RECOGNITION---- // ----Setup to a (different!) state expected by the various classifiers---- // TODO(rays) Tidy and make more consistent. // The chopped_word is also in BLN space, and represents the fully chopped // character fragments that make up the word. // The length of chopped_word matches length of seam_array + 1 (if set). TWERD* chopped_word; // BLN chopped fragments output. // Vector of SEAM* holding chopping points matching chopped_word. GenericVector<SEAM*> seam_array; // Widths of blobs in chopped_word. GenericVector<int> blob_widths; // Gaps between blobs in chopped_word. blob_gaps[i] is the gap between // blob i and blob i+1. GenericVector<int> blob_gaps; // Ratings matrix contains classifier choices for each classified combination // of blobs. The dimension is the same as the number of blobs in chopped_word // and the leading diagonal corresponds to classifier results of the blobs // in chopped_word. The state_ members of best_choice, raw_choice and // best_choices all correspond to this ratings matrix and allow extraction // of the blob choices for any given WERD_CHOICE. MATRIX* ratings; // Owned pointer. // Pointer to the first WERD_CHOICE in best_choices. This is the result that // will be output from Tesseract. Note that this is now a borrowed pointer // and should NOT be deleted. WERD_CHOICE* best_choice; // Borrowed pointer. // The best raw_choice found during segmentation search. Differs from the // best_choice by being the best result according to just the character // classifier, not taking any language model information into account. // Unlike best_choice, the pointer IS owned by this WERD_RES. WERD_CHOICE* raw_choice; // Owned pointer. // Alternative results found during chopping/segmentation search stages. // Note that being an ELIST, best_choices owns the WERD_CHOICEs. WERD_CHOICE_LIST best_choices; // Truth bounding boxes, text and incorrect choice reason. BlamerBundle *blamer_bundle; // --------------OUTPUT FROM RECOGNITION------------------------------- // --------------Not all fields are necessarily set.------------------- // ---best_choice, raw_choice *must* end up set, with a box_word------- // ---In complete output, the number of blobs in rebuild_word matches--- // ---the number of boxes in box_word, the number of unichar_ids in--- // ---best_choice, the number of ints in best_state, and the number--- // ---of strings in correct_text-------------------------------------- // ---SetupFake Sets everything to appropriate values if the word is--- // ---known to be bad before recognition.------------------------------ // The rebuild_word is also in BLN space, but represents the final best // segmentation of the word. Its length is therefore the same as box_word. TWERD* rebuild_word; // BLN best segmented word. // The box_word is in the original image coordinate space. It is the // bounding boxes of the rebuild_word, after denormalization. // The length of box_word matches rebuild_word, best_state (if set) and // correct_text (if set), as well as best_choice and represents the // number of classified units in the output. tesseract::BoxWord* box_word; // Denormalized output boxes. // The best_state stores the relationship between chopped_word and // rebuild_word. Each blob[i] in rebuild_word is composed of best_state[i] // adjacent blobs in chopped_word. The seams in seam_array are hidden // within a rebuild_word blob and revealed between them. GenericVector<int> best_state; // Number of blobs in each best blob. // The correct_text is used during training and adaption to carry the // text to the training system without the need for a unicharset. There // is one entry in the vector for each blob in rebuild_word and box_word. GenericVector<STRING> correct_text; // The Tesseract that was used to recognize this word. Just a borrowed // pointer. Note: Tesseract's class definition is in a higher-level library. // We avoid introducing a cyclic dependency by not using the Tesseract // within WERD_RES. We are just storing it to provide access to it // for the top-level multi-language controller, and maybe for output of // the recognized language. tesseract::Tesseract* tesseract; // Less-well documented members. // TODO(rays) Add more documentation here. WERD_CHOICE *ep_choice; // ep text TODO(rays) delete this. REJMAP reject_map; // best_choice rejects BOOL8 tess_failed; /* If tess_failed is TRUE, one of the following tests failed when Tess returned: - The outword blob list was not the same length as the best_choice string; - The best_choice string contained ALL blanks; - The best_choice string was zero length */ BOOL8 tess_accepted; // Tess thinks its ok? BOOL8 tess_would_adapt; // Tess would adapt? BOOL8 done; // ready for output? bool small_caps; // word appears to be small caps bool odd_size; // word is bigger than line or leader dots. inT8 italic; inT8 bold; // The fontinfos are pointers to data owned by the classifier. const FontInfo* fontinfo; const FontInfo* fontinfo2; inT8 fontinfo_id_count; // number of votes inT8 fontinfo_id2_count; // number of votes BOOL8 guessed_x_ht; BOOL8 guessed_caps_ht; CRUNCH_MODE unlv_crunch_mode; float x_height; // post match estimate float caps_height; // post match estimate /* To deal with fuzzy spaces we need to be able to combine "words" to form combinations when we suspect that the gap is a non-space. The (new) text ord code generates separate words for EVERY fuzzy gap - flags in the word indicate whether the gap is below the threshold (fuzzy kern) and is thus NOT a real word break by default, or above the threshold (fuzzy space) and this is a real word break by default. The WERD_RES list contains all these words PLUS "combination" words built out of (copies of) the words split by fuzzy kerns. The separate parts have their "part_of_combo" flag set true and should be IGNORED on a default reading of the list. Combination words are FOLLOWED by the sequence of part_of_combo words which they combine. */ BOOL8 combination; //of two fuzzy gap wds BOOL8 part_of_combo; //part of a combo BOOL8 reject_spaces; //Reject spacing? // FontInfo ids for each unichar in best_choice. GenericVector<inT8> best_choice_fontinfo_ids; WERD_RES() { InitNonPointers(); InitPointers(); } WERD_RES(WERD *the_word) { InitNonPointers(); InitPointers(); word = the_word; } // Deep copies everything except the ratings MATRIX. // To get that use deep_copy below. WERD_RES(const WERD_RES &source) { InitPointers(); *this = source; // see operator= } ~WERD_RES(); // Returns the UTF-8 string for the given blob index in the best_choice word, // given that we know whether we are in a right-to-left reading context. // This matters for mirrorable characters such as parentheses. We recognize // characters purely based on their shape on the page, and by default produce // the corresponding unicode for a left-to-right context. const char* const BestUTF8(int blob_index, bool in_rtl_context) const { if (blob_index < 0 || best_choice == NULL || blob_index >= best_choice->length()) return NULL; UNICHAR_ID id = best_choice->unichar_id(blob_index); if (id < 0 || id >= uch_set->size() || id == INVALID_UNICHAR_ID) return NULL; UNICHAR_ID mirrored = uch_set->get_mirror(id); if (in_rtl_context && mirrored > 0 && mirrored != INVALID_UNICHAR_ID) id = mirrored; return uch_set->id_to_unichar_ext(id); } // Returns the UTF-8 string for the given blob index in the raw_choice word. const char* const RawUTF8(int blob_index) const { if (blob_index < 0 || blob_index >= raw_choice->length()) return NULL; UNICHAR_ID id = raw_choice->unichar_id(blob_index); if (id < 0 || id >= uch_set->size() || id == INVALID_UNICHAR_ID) return NULL; return uch_set->id_to_unichar(id); } UNICHARSET::Direction SymbolDirection(int blob_index) const { if (best_choice == NULL || blob_index >= best_choice->length() || blob_index < 0) return UNICHARSET::U_OTHER_NEUTRAL; return uch_set->get_direction(best_choice->unichar_id(blob_index)); } bool AnyRtlCharsInWord() const { if (uch_set == NULL || best_choice == NULL || best_choice->length() < 1) return false; for (int id = 0; id < best_choice->length(); id++) { int unichar_id = best_choice->unichar_id(id); if (unichar_id < 0 || unichar_id >= uch_set->size()) continue; // Ignore illegal chars. UNICHARSET::Direction dir = uch_set->get_direction(unichar_id); if (dir == UNICHARSET::U_RIGHT_TO_LEFT || dir == UNICHARSET::U_RIGHT_TO_LEFT_ARABIC || dir == UNICHARSET::U_ARABIC_NUMBER) return true; } return false; } bool AnyLtrCharsInWord() const { if (uch_set == NULL || best_choice == NULL || best_choice->length() < 1) return false; for (int id = 0; id < best_choice->length(); id++) { int unichar_id = best_choice->unichar_id(id); if (unichar_id < 0 || unichar_id >= uch_set->size()) continue; // Ignore illegal chars. UNICHARSET::Direction dir = uch_set->get_direction(unichar_id); if (dir == UNICHARSET::U_LEFT_TO_RIGHT) return true; } return false; } // Return whether the blobs in this WERD_RES 0, 1,... come from an engine // that gave us the unichars in reading order (as opposed to strict left // to right). bool UnicharsInReadingOrder() const { return best_choice->unichars_in_script_order(); } void InitNonPointers(); void InitPointers(); void Clear(); void ClearResults(); void ClearWordChoices(); void ClearRatings(); // Deep copies everything except the ratings MATRIX. // To get that use deep_copy below. WERD_RES& operator=(const WERD_RES& source); //from this void CopySimpleFields(const WERD_RES& source); // Initializes a blank (default constructed) WERD_RES from one that has // already been recognized. // Use SetupFor*Recognition afterwards to complete the setup and make // it ready for a retry recognition. void InitForRetryRecognition(const WERD_RES& source); // Sets up the members used in recognition: bln_boxes, chopped_word, // seam_array, denorm. Returns false if // the word is empty and sets up fake results. If use_body_size is // true and row->body_size is set, then body_size will be used for // blob normalization instead of xheight + ascrise. This flag is for // those languages that are using CJK pitch model and thus it has to // be true if and only if tesseract->textord_use_cjk_fp_model is // true. // If allow_detailed_fx is true, the feature extractor will receive fine // precision outline information, allowing smoother features and better // features on low resolution images. // The norm_mode sets the default mode for normalization in absence // of any of the above flags. It should really be a tesseract::OcrEngineMode // but is declared as int for ease of use with tessedit_ocr_engine_mode. // Returns false if the word is empty and sets up fake results. bool SetupForRecognition(const UNICHARSET& unicharset_in, tesseract::Tesseract* tesseract, Pix* pix, int norm_mode, const TBOX* norm_box, bool numeric_mode, bool use_body_size, bool allow_detailed_fx, ROW *row, const BLOCK* block); // Set up the seam array, bln_boxes, best_choice, and raw_choice to empty // accumulators from a made chopped word. We presume the fields are already // empty. void SetupBasicsFromChoppedWord(const UNICHARSET &unicharset_in); // Sets up the members used in recognition for an empty recognition result: // bln_boxes, chopped_word, seam_array, denorm, best_choice, raw_choice. void SetupFake(const UNICHARSET& uch); // Set the word as having the script of the input unicharset. void SetupWordScript(const UNICHARSET& unicharset_in); // Sets up the blamer_bundle if it is not null, using the initialized denorm. void SetupBlamerBundle(); // Computes the blob_widths and blob_gaps from the chopped_word. void SetupBlobWidthsAndGaps(); // Updates internal data to account for a new SEAM (chop) at the given // blob_number. Fixes the ratings matrix and states in the choices, as well // as the blob widths and gaps. void InsertSeam(int blob_number, SEAM* seam); // Returns true if all the word choices except the first have adjust_factors // worse than the given threshold. bool AlternativeChoiceAdjustmentsWorseThan(float threshold) const; // Returns true if the current word is ambiguous (by number of answers or // by dangerous ambigs.) bool IsAmbiguous(); // Returns true if the ratings matrix size matches the sum of each of the // segmentation states. bool StatesAllValid(); // Prints a list of words found if debug is true or the word result matches // the word_to_debug. void DebugWordChoices(bool debug, const char* word_to_debug); // Prints the top choice along with the accepted/done flags. void DebugTopChoice(const char* msg) const; // Removes from best_choices all choices which are not within a reasonable // range of the best choice. void FilterWordChoices(int debug_level); // Computes a set of distance thresholds used to control adaption. // Compares the best choice for the current word to the best raw choice // to determine which characters were classified incorrectly by the // classifier. Then places a separate threshold into thresholds for each // character in the word. If the classifier was correct, max_rating is placed // into thresholds. If the classifier was incorrect, the mean match rating // (error percentage) of the classifier's incorrect choice minus some margin // is placed into thresholds. This can then be used by the caller to try to // create a new template for the desired class that will classify the // character with a rating better than the threshold value. The match rating // placed into thresholds is never allowed to be below min_rating in order to // prevent trying to make overly tight templates. // min_rating limits how tight to make a template. // max_rating limits how loose to make a template. // rating_margin denotes the amount of margin to put in template. void ComputeAdaptionThresholds(float certainty_scale, float min_rating, float max_rating, float rating_margin, float* thresholds); // Saves a copy of the word_choice if it has the best unadjusted rating. // Returns true if the word_choice was the new best. bool LogNewRawChoice(WERD_CHOICE* word_choice); // Consumes word_choice by adding it to best_choices, (taking ownership) if // the certainty for word_choice is some distance of the best choice in // best_choices, or by deleting the word_choice and returning false. // The best_choices list is kept in sorted order by rating. Duplicates are // removed, and the list is kept no longer than max_num_choices in length. // Returns true if the word_choice is still a valid pointer. bool LogNewCookedChoice(int max_num_choices, bool debug, WERD_CHOICE* word_choice); // Prints a brief list of all the best choices. void PrintBestChoices() const; // Returns the sum of the widths of the blob between start_blob and last_blob // inclusive. int GetBlobsWidth(int start_blob, int last_blob); // Returns the width of a gap between the specified blob and the next one. int GetBlobsGap(int blob_index); // Returns the BLOB_CHOICE corresponding to the given index in the // best choice word taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. May return NULL if there is no // BLOB_CHOICE matching the unichar_id at the given index. BLOB_CHOICE* GetBlobChoice(int index) const; // Returns the BLOB_CHOICE_LIST corresponding to the given index in the // best choice word taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. BLOB_CHOICE_LIST* GetBlobChoices(int index) const; // Moves the results fields from word to this. This takes ownership of all // the data, so src can be destructed. // word1.ConsumeWordResult(word); // delete word; // is simpler and faster than: // word1 = *word; // delete word; // as it doesn't need to copy and reallocate anything. void ConsumeWordResults(WERD_RES* word); // Replace the best choice and rebuild box word. // choice must be from the current best_choices list. void ReplaceBestChoice(WERD_CHOICE* choice); // Builds the rebuild_word and sets the best_state from the chopped_word and // the best_choice->state. void RebuildBestState(); // Copies the chopped_word to the rebuild_word, faking a best_state as well. // Also sets up the output box_word. void CloneChoppedToRebuild(); // Sets/replaces the box_word with one made from the rebuild_word. void SetupBoxWord(); // Sets up the script positions in the best_choice using the best_choice // to get the unichars, and the unicharset to get the target positions. void SetScriptPositions(); // Sets all the blobs in all the words (best choice and alternates) to be // the given position. (When a sub/superscript is recognized as a separate // word, it falls victim to the rule that a whole word cannot be sub or // superscript, so this function overrides that problem.) void SetAllScriptPositions(tesseract::ScriptPos position); // Classifies the word with some already-calculated BLOB_CHOICEs. // The choices are an array of blob_count pointers to BLOB_CHOICE, // providing a single classifier result for each blob. // The BLOB_CHOICEs are consumed and the word takes ownership. // The number of blobs in the box_word must match blob_count. void FakeClassifyWord(int blob_count, BLOB_CHOICE** choices); // Creates a WERD_CHOICE for the word using the top choices from the leading // diagonal of the ratings matrix. void FakeWordFromRatings(); // Copies the best_choice strings to the correct_text for adaption/training. void BestChoiceToCorrectText(); // Merges 2 adjacent blobs in the result if the permanent callback // class_cb returns other than INVALID_UNICHAR_ID, AND the permanent // callback box_cb is NULL or returns true, setting the merged blob // result to the class returned from class_cb. // Returns true if anything was merged. bool ConditionalBlobMerge( TessResultCallback2<UNICHAR_ID, UNICHAR_ID, UNICHAR_ID>* class_cb, TessResultCallback2<bool, const TBOX&, const TBOX&>* box_cb); // Merges 2 adjacent blobs in the result (index and index+1) and corrects // all the data to account for the change. void MergeAdjacentBlobs(int index); // Callback helper for fix_quotes returns a double quote if both // arguments are quote, otherwise INVALID_UNICHAR_ID. UNICHAR_ID BothQuotes(UNICHAR_ID id1, UNICHAR_ID id2); void fix_quotes(); // Callback helper for fix_hyphens returns UNICHAR_ID of - if both // arguments are hyphen, otherwise INVALID_UNICHAR_ID. UNICHAR_ID BothHyphens(UNICHAR_ID id1, UNICHAR_ID id2); // Callback helper for fix_hyphens returns true if box1 and box2 overlap // (assuming both on the same textline, are in order and a chopped em dash.) bool HyphenBoxesOverlap(const TBOX& box1, const TBOX& box2); void fix_hyphens(); // Callback helper for merge_tess_fails returns a space if both // arguments are space, otherwise INVALID_UNICHAR_ID. UNICHAR_ID BothSpaces(UNICHAR_ID id1, UNICHAR_ID id2); void merge_tess_fails(); // Returns a really deep copy of *src, including the ratings MATRIX. static WERD_RES* deep_copy(const WERD_RES* src) { WERD_RES* result = new WERD_RES(*src); // That didn't copy the ratings, but we want a copy if there is one to // begin width. if (src->ratings != NULL) result->ratings = src->ratings->DeepCopy(); return result; } // Copy blobs from word_res onto this word (eliminating spaces between). // Since this may be called bidirectionally OR both the BOL and EOL flags. void copy_on(WERD_RES *word_res) { //from this word word->set_flag(W_BOL, word->flag(W_BOL) || word_res->word->flag(W_BOL)); word->set_flag(W_EOL, word->flag(W_EOL) || word_res->word->flag(W_EOL)); word->copy_on(word_res->word); } // Returns true if the collection of count pieces, starting at start, are all // natural connected components, ie there are no real chops involved. bool PiecesAllNatural(int start, int count) const; }; /************************************************************************* * PAGE_RES_IT - Page results iterator *************************************************************************/ class PAGE_RES_IT { public: PAGE_RES * page_res; // page being iterated PAGE_RES_IT() { } // empty contructor PAGE_RES_IT(PAGE_RES *the_page_res) { // page result page_res = the_page_res; restart_page(); // ready to scan } // Do two PAGE_RES_ITs point at the same word? // This is much cheaper than cmp(). bool operator ==(const PAGE_RES_IT &other) const; bool operator !=(const PAGE_RES_IT &other) const {return !(*this == other); } // Given another PAGE_RES_IT to the same page, // this before other: -1 // this equal to other: 0 // this later than other: 1 int cmp(const PAGE_RES_IT &other) const; WERD_RES *restart_page() { return start_page(false); // Skip empty blocks. } WERD_RES *restart_page_with_empties() { return start_page(true); // Allow empty blocks. } WERD_RES *start_page(bool empty_ok); WERD_RES *restart_row(); // ============ Methods that mutate the underling structures =========== // Note that these methods will potentially invalidate other PAGE_RES_ITs // and are intended to be used only while a single PAGE_RES_IT is active. // This problem needs to be taken into account if these mutation operators // are ever provided to PageIterator or its subclasses. // Inserts the new_word and a corresponding WERD_RES before the current // position. The simple fields of the WERD_RES are copied from clone_res and // the resulting WERD_RES is returned for further setup with best_choice etc. WERD_RES* InsertSimpleCloneWord(const WERD_RES& clone_res, WERD* new_word); // Replaces the current WERD/WERD_RES with the given words. The given words // contain fake blobs that indicate the position of the characters. These are // replaced with real blobs from the current word as much as possible. void ReplaceCurrentWord(tesseract::PointerVector<WERD_RES>* words); // Deletes the current WERD_RES and its underlying WERD. void DeleteCurrentWord(); WERD_RES *forward() { // Get next word. return internal_forward(false, false); } // Move forward, but allow empty blocks to show as single NULL words. WERD_RES *forward_with_empties() { return internal_forward(false, true); } WERD_RES *forward_paragraph(); // get first word in next non-empty paragraph WERD_RES *forward_block(); // get first word in next non-empty block WERD_RES *prev_word() const { // previous word return prev_word_res; } ROW_RES *prev_row() const { // row of prev word return prev_row_res; } BLOCK_RES *prev_block() const { // block of prev word return prev_block_res; } WERD_RES *word() const { // current word return word_res; } ROW_RES *row() const { // row of current word return row_res; } BLOCK_RES *block() const { // block of cur. word return block_res; } WERD_RES *next_word() const { // next word return next_word_res; } ROW_RES *next_row() const { // row of next word return next_row_res; } BLOCK_RES *next_block() const { // block of next word return next_block_res; } void rej_stat_word(); // for page/block/row private: void ResetWordIterator(); WERD_RES *internal_forward(bool new_block, bool empty_ok); WERD_RES * prev_word_res; // previous word ROW_RES *prev_row_res; // row of prev word BLOCK_RES *prev_block_res; // block of prev word WERD_RES *word_res; // current word ROW_RES *row_res; // row of current word BLOCK_RES *block_res; // block of cur. word WERD_RES *next_word_res; // next word ROW_RES *next_row_res; // row of next word BLOCK_RES *next_block_res; // block of next word BLOCK_RES_IT block_res_it; // iterators ROW_RES_IT row_res_it; WERD_RES_IT word_res_it; }; #endif
C++
/********************************************************************** * File: ocrrow.h (Formerly row.h) * Description: Code for the ROW class. * Author: Ray Smith * Created: Tue Oct 08 15:58:04 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef OCRROW_H #define OCRROW_H #include <stdio.h> #include "quspline.h" #include "werd.h" class TO_ROW; struct PARA; class ROW:public ELIST_LINK { friend void tweak_row_baseline(ROW *, double, double); public: ROW() { } //empty constructor ROW( //constructor inT32 spline_size, //no of segments inT32 *xstarts, //segment boundaries double *coeffs, //coefficients //ascender size float x_height, float ascenders, float descenders, //descender size inT16 kern, //char gap inT16 space); //word gap ROW( //constructor TO_ROW *row, //textord row inT16 kern, //char gap inT16 space); //word gap WERD_LIST *word_list() { //get words return &words; } float base_line( //compute baseline float xpos) const { //at the position //get spline value return (float) baseline.y (xpos); } float x_height() const { //return x height return xheight; } void set_x_height(float new_xheight) { // set x height xheight = new_xheight; } inT32 kern() const { //return kerning return kerning; } float body_size() const { //return body size return bodysize; } void set_body_size(float new_size) { // set body size bodysize = new_size; } inT32 space() const { //return spacing return spacing; } float ascenders() const { //return size return ascrise; } float descenders() const { //return size return descdrop; } TBOX bounding_box() const { //return bounding box return bound_box; } void set_lmargin(inT16 lmargin) { lmargin_ = lmargin; } void set_rmargin(inT16 rmargin) { rmargin_ = rmargin; } inT16 lmargin() const { return lmargin_; } inT16 rmargin() const { return rmargin_; } void set_has_drop_cap(bool has) { has_drop_cap_ = has; } bool has_drop_cap() const { return has_drop_cap_; } void set_para(PARA *p) { para_ = p; } PARA *para() const { return para_; } void recalc_bounding_box(); //recalculate BB void move( // reposition row const ICOORD vec); // by vector void print( //print FILE *fp); //file to print on #ifndef GRAPHICS_DISABLED void plot( //draw one ScrollView* window, //window to draw in ScrollView::Color colour); //uniform colour void plot( //draw one ScrollView* window); //in rainbow colours void plot_baseline( //draw the baseline ScrollView* window, //window to draw in ScrollView::Color colour) { //colour to draw //draw it baseline.plot (window, colour); } #endif // GRAPHICS_DISABLED ROW& operator= (const ROW & source); private: inT32 kerning; //inter char gap inT32 spacing; //inter word gap TBOX bound_box; //bounding box float xheight; //height of line float ascrise; //size of ascenders float descdrop; //-size of descenders float bodysize; //CJK character size. (equals to //xheight+ascrise by default) WERD_LIST words; //words QSPLINE baseline; //baseline spline // These get set after blocks have been determined. bool has_drop_cap_; inT16 lmargin_; // Distance to left polyblock margin. inT16 rmargin_; // Distance to right polyblock margin. // This gets set during paragraph analysis. PARA *para_; // Paragraph of which this row is part. }; ELISTIZEH (ROW) #endif
C++
/********************************************************************** * File: pageres.cpp (Formerly page_res.c) * Description: Results classes used by control.c * Author: Phil Cheatle * Created: Tue Sep 22 08:42:49 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdlib.h> #ifdef __UNIX__ #include <assert.h> #endif #include "blamer.h" #include "pageres.h" #include "blobs.h" ELISTIZE (BLOCK_RES) CLISTIZE (BLOCK_RES) ELISTIZE (ROW_RES) ELISTIZE (WERD_RES) // Gain factor for computing thresholds that determine the ambiguity of a word. static const double kStopperAmbiguityThresholdGain = 8.0; // Constant offset for computing thresholds that determine the ambiguity of a // word. static const double kStopperAmbiguityThresholdOffset = 1.5; // Max number of broken pieces to associate. const int kWordrecMaxNumJoinChunks = 4; // Max ratio of word box height to line size to allow it to be processed as // a line with other words. const double kMaxWordSizeRatio = 1.25; // Max ratio of line box height to line size to allow a new word to be added. const double kMaxLineSizeRatio = 1.25; // Max ratio of word gap to line size to allow a new word to be added. const double kMaxWordGapRatio = 2.0; // Computes and returns a threshold of certainty difference used to determine // which words to keep, based on the adjustment factors of the two words. // TODO(rays) This is horrible. Replace with an enhance params training model. static double StopperAmbigThreshold(double f1, double f2) { return (f2 - f1) * kStopperAmbiguityThresholdGain - kStopperAmbiguityThresholdOffset; } /************************************************************************* * PAGE_RES::PAGE_RES * * Constructor for page results *************************************************************************/ PAGE_RES::PAGE_RES( bool merge_similar_words, BLOCK_LIST *the_block_list, WERD_CHOICE **prev_word_best_choice_ptr) { Init(); BLOCK_IT block_it(the_block_list); BLOCK_RES_IT block_res_it(&block_res_list); for (block_it.mark_cycle_pt(); !block_it.cycled_list(); block_it.forward()) { block_res_it.add_to_end(new BLOCK_RES(merge_similar_words, block_it.data())); } prev_word_best_choice = prev_word_best_choice_ptr; } /************************************************************************* * BLOCK_RES::BLOCK_RES * * Constructor for BLOCK results *************************************************************************/ BLOCK_RES::BLOCK_RES(bool merge_similar_words, BLOCK *the_block) { ROW_IT row_it (the_block->row_list ()); ROW_RES_IT row_res_it(&row_res_list); char_count = 0; rej_count = 0; font_class = -1; //not assigned x_height = -1.0; font_assigned = FALSE; bold = FALSE; italic = FALSE; row_count = 0; block = the_block; for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { row_res_it.add_to_end(new ROW_RES(merge_similar_words, row_it.data())); } } /************************************************************************* * ROW_RES::ROW_RES * * Constructor for ROW results *************************************************************************/ ROW_RES::ROW_RES(bool merge_similar_words, ROW *the_row) { WERD_IT word_it(the_row->word_list()); WERD_RES_IT word_res_it(&word_res_list); WERD_RES *combo = NULL; // current combination of fuzzies WERD *copy_word; char_count = 0; rej_count = 0; whole_word_rej_count = 0; row = the_row; bool add_next_word = false; TBOX union_box; float line_height = the_row->x_height() + the_row->ascenders() - the_row->descenders(); for (word_it.mark_cycle_pt(); !word_it.cycled_list(); word_it.forward()) { WERD_RES* word_res = new WERD_RES(word_it.data()); word_res->x_height = the_row->x_height(); if (add_next_word) { ASSERT_HOST(combo != NULL); // We are adding this word to the combination. word_res->part_of_combo = TRUE; combo->copy_on(word_res); } else if (merge_similar_words) { union_box = word_res->word->bounding_box(); add_next_word = !word_res->word->flag(W_REP_CHAR) && union_box.height() <= line_height * kMaxWordSizeRatio; word_res->odd_size = !add_next_word; } WERD* next_word = word_it.data_relative(1); if (merge_similar_words) { if (add_next_word && !next_word->flag(W_REP_CHAR)) { // Next word will be added on if all of the following are true: // Not a rep char. // Box height small enough. // Union box height small enough. // Horizontal gap small enough. TBOX next_box = next_word->bounding_box(); int prev_right = union_box.right(); union_box += next_box; if (next_box.height() > line_height * kMaxWordSizeRatio || union_box.height() > line_height * kMaxLineSizeRatio || next_box.left() > prev_right + line_height * kMaxWordGapRatio) { add_next_word = false; } } } else { add_next_word = next_word->flag(W_FUZZY_NON); } if (add_next_word) { if (combo == NULL) { copy_word = new WERD; *copy_word = *(word_it.data()); // deep copy combo = new WERD_RES(copy_word); combo->x_height = the_row->x_height(); combo->combination = TRUE; word_res_it.add_to_end(combo); } word_res->part_of_combo = TRUE; } else { combo = NULL; } word_res_it.add_to_end(word_res); } } WERD_RES& WERD_RES::operator=(const WERD_RES & source) { this->ELIST_LINK::operator=(source); Clear(); if (source.combination) { word = new WERD; *word = *(source.word); // deep copy } else { word = source.word; // pt to same word } if (source.bln_boxes != NULL) bln_boxes = new tesseract::BoxWord(*source.bln_boxes); if (source.chopped_word != NULL) chopped_word = new TWERD(*source.chopped_word); if (source.rebuild_word != NULL) rebuild_word = new TWERD(*source.rebuild_word); // TODO(rays) Do we ever need to copy the seam_array? blob_row = source.blob_row; denorm = source.denorm; if (source.box_word != NULL) box_word = new tesseract::BoxWord(*source.box_word); best_state = source.best_state; correct_text = source.correct_text; blob_widths = source.blob_widths; blob_gaps = source.blob_gaps; // None of the uses of operator= require the ratings matrix to be copied, // so don't as it would be really slow. // Copy the cooked choices. WERD_CHOICE_IT wc_it(const_cast<WERD_CHOICE_LIST*>(&source.best_choices)); WERD_CHOICE_IT wc_dest_it(&best_choices); for (wc_it.mark_cycle_pt(); !wc_it.cycled_list(); wc_it.forward()) { const WERD_CHOICE *choice = wc_it.data(); wc_dest_it.add_after_then_move(new WERD_CHOICE(*choice)); } if (!wc_dest_it.empty()) { wc_dest_it.move_to_first(); best_choice = wc_dest_it.data(); best_choice_fontinfo_ids = source.best_choice_fontinfo_ids; } else { best_choice = NULL; if (!best_choice_fontinfo_ids.empty()) { best_choice_fontinfo_ids.clear(); } } if (source.raw_choice != NULL) { raw_choice = new WERD_CHOICE(*source.raw_choice); } else { raw_choice = NULL; } if (source.ep_choice != NULL) { ep_choice = new WERD_CHOICE(*source.ep_choice); } else { ep_choice = NULL; } reject_map = source.reject_map; combination = source.combination; part_of_combo = source.part_of_combo; CopySimpleFields(source); if (source.blamer_bundle != NULL) { blamer_bundle = new BlamerBundle(*(source.blamer_bundle)); } return *this; } // Copies basic fields that don't involve pointers that might be useful // to copy when making one WERD_RES from another. void WERD_RES::CopySimpleFields(const WERD_RES& source) { tess_failed = source.tess_failed; tess_accepted = source.tess_accepted; tess_would_adapt = source.tess_would_adapt; done = source.done; unlv_crunch_mode = source.unlv_crunch_mode; small_caps = source.small_caps; odd_size = source.odd_size; italic = source.italic; bold = source.bold; fontinfo = source.fontinfo; fontinfo2 = source.fontinfo2; fontinfo_id_count = source.fontinfo_id_count; fontinfo_id2_count = source.fontinfo_id2_count; x_height = source.x_height; caps_height = source.caps_height; guessed_x_ht = source.guessed_x_ht; guessed_caps_ht = source.guessed_caps_ht; reject_spaces = source.reject_spaces; uch_set = source.uch_set; tesseract = source.tesseract; } // Initializes a blank (default constructed) WERD_RES from one that has // already been recognized. // Use SetupFor*Recognition afterwards to complete the setup and make // it ready for a retry recognition. void WERD_RES::InitForRetryRecognition(const WERD_RES& source) { word = source.word; CopySimpleFields(source); if (source.blamer_bundle != NULL) { blamer_bundle = new BlamerBundle(); blamer_bundle->CopyTruth(*source.blamer_bundle); } } // Sets up the members used in recognition: bln_boxes, chopped_word, // seam_array, denorm. Returns false if // the word is empty and sets up fake results. If use_body_size is // true and row->body_size is set, then body_size will be used for // blob normalization instead of xheight + ascrise. This flag is for // those languages that are using CJK pitch model and thus it has to // be true if and only if tesseract->textord_use_cjk_fp_model is // true. // If allow_detailed_fx is true, the feature extractor will receive fine // precision outline information, allowing smoother features and better // features on low resolution images. // The norm_mode_hint sets the default mode for normalization in absence // of any of the above flags. // norm_box is used to override the word bounding box to determine the // normalization scale and offset. // Returns false if the word is empty and sets up fake results. bool WERD_RES::SetupForRecognition(const UNICHARSET& unicharset_in, tesseract::Tesseract* tess, Pix* pix, int norm_mode, const TBOX* norm_box, bool numeric_mode, bool use_body_size, bool allow_detailed_fx, ROW *row, const BLOCK* block) { tesseract::OcrEngineMode norm_mode_hint = static_cast<tesseract::OcrEngineMode>(norm_mode); tesseract = tess; POLY_BLOCK* pb = block != NULL ? block->poly_block() : NULL; if ((norm_mode_hint != tesseract::OEM_CUBE_ONLY && word->cblob_list()->empty()) || (pb != NULL && !pb->IsText())) { // Empty words occur when all the blobs have been moved to the rej_blobs // list, which seems to occur frequently in junk. SetupFake(unicharset_in); word->set_flag(W_REP_CHAR, false); return false; } ClearResults(); SetupWordScript(unicharset_in); chopped_word = TWERD::PolygonalCopy(allow_detailed_fx, word); float word_xheight = use_body_size && row != NULL && row->body_size() > 0.0f ? row->body_size() : x_height; chopped_word->BLNormalize(block, row, pix, word->flag(W_INVERSE), word_xheight, numeric_mode, norm_mode_hint, norm_box, &denorm); blob_row = row; SetupBasicsFromChoppedWord(unicharset_in); SetupBlamerBundle(); int num_blobs = chopped_word->NumBlobs(); ratings = new MATRIX(num_blobs, kWordrecMaxNumJoinChunks); tess_failed = false; return true; } // Set up the seam array, bln_boxes, best_choice, and raw_choice to empty // accumulators from a made chopped word. We presume the fields are already // empty. void WERD_RES::SetupBasicsFromChoppedWord(const UNICHARSET &unicharset_in) { bln_boxes = tesseract::BoxWord::CopyFromNormalized(chopped_word); start_seam_list(chopped_word, &seam_array); SetupBlobWidthsAndGaps(); ClearWordChoices(); } // Sets up the members used in recognition for an empty recognition result: // bln_boxes, chopped_word, seam_array, denorm, best_choice, raw_choice. void WERD_RES::SetupFake(const UNICHARSET& unicharset_in) { ClearResults(); SetupWordScript(unicharset_in); chopped_word = new TWERD; rebuild_word = new TWERD; bln_boxes = new tesseract::BoxWord; box_word = new tesseract::BoxWord; int blob_count = word->cblob_list()->length(); if (blob_count > 0) { BLOB_CHOICE** fake_choices = new BLOB_CHOICE*[blob_count]; // For non-text blocks, just pass any blobs through to the box_word // and call the word failed with a fake classification. C_BLOB_IT b_it(word->cblob_list()); int blob_id = 0; for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) { TBOX box = b_it.data()->bounding_box(); box_word->InsertBox(box_word->length(), box); fake_choices[blob_id++] = new BLOB_CHOICE; } FakeClassifyWord(blob_count, fake_choices); delete [] fake_choices; } else { WERD_CHOICE* word = new WERD_CHOICE(&unicharset_in); word->make_bad(); LogNewRawChoice(word); // Ownership of word is taken by *this WERD_RES in LogNewCookedChoice. LogNewCookedChoice(1, false, word); } tess_failed = true; } void WERD_RES::SetupWordScript(const UNICHARSET& uch) { uch_set = &uch; int script = uch.default_sid(); word->set_script_id(script); word->set_flag(W_SCRIPT_HAS_XHEIGHT, uch.script_has_xheight()); word->set_flag(W_SCRIPT_IS_LATIN, script == uch.latin_sid()); } // Sets up the blamer_bundle if it is not null, using the initialized denorm. void WERD_RES::SetupBlamerBundle() { if (blamer_bundle != NULL) { blamer_bundle->SetupNormTruthWord(denorm); } } // Computes the blob_widths and blob_gaps from the chopped_word. void WERD_RES::SetupBlobWidthsAndGaps() { blob_widths.truncate(0); blob_gaps.truncate(0); int num_blobs = chopped_word->NumBlobs(); for (int b = 0; b < num_blobs; ++b) { TBLOB *blob = chopped_word->blobs[b]; TBOX box = blob->bounding_box(); blob_widths.push_back(box.width()); if (b + 1 < num_blobs) { blob_gaps.push_back( chopped_word->blobs[b + 1]->bounding_box().left() - box.right()); } } } // Updates internal data to account for a new SEAM (chop) at the given // blob_number. Fixes the ratings matrix and states in the choices, as well // as the blob widths and gaps. void WERD_RES::InsertSeam(int blob_number, SEAM* seam) { // Insert the seam into the SEAMS array. insert_seam(chopped_word, blob_number, seam, &seam_array); if (ratings != NULL) { // Expand the ratings matrix. ratings = ratings->ConsumeAndMakeBigger(blob_number); // Fix all the segmentation states. if (raw_choice != NULL) raw_choice->UpdateStateForSplit(blob_number); WERD_CHOICE_IT wc_it(&best_choices); for (wc_it.mark_cycle_pt(); !wc_it.cycled_list(); wc_it.forward()) { WERD_CHOICE* choice = wc_it.data(); choice->UpdateStateForSplit(blob_number); } SetupBlobWidthsAndGaps(); } } // Returns true if all the word choices except the first have adjust_factors // worse than the given threshold. bool WERD_RES::AlternativeChoiceAdjustmentsWorseThan(float threshold) const { // The choices are not changed by this iteration. WERD_CHOICE_IT wc_it(const_cast<WERD_CHOICE_LIST*>(&best_choices)); for (wc_it.forward(); !wc_it.at_first(); wc_it.forward()) { WERD_CHOICE* choice = wc_it.data(); if (choice->adjust_factor() <= threshold) return false; } return true; } // Returns true if the current word is ambiguous (by number of answers or // by dangerous ambigs.) bool WERD_RES::IsAmbiguous() { return !best_choices.singleton() || best_choice->dangerous_ambig_found(); } // Returns true if the ratings matrix size matches the sum of each of the // segmentation states. bool WERD_RES::StatesAllValid() { int ratings_dim = ratings->dimension(); if (raw_choice->TotalOfStates() != ratings_dim) { tprintf("raw_choice has total of states = %d vs ratings dim of %d\n", raw_choice->TotalOfStates(), ratings_dim); return false; } WERD_CHOICE_IT it(&best_choices); int index = 0; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward(), ++index) { WERD_CHOICE* choice = it.data(); if (choice->TotalOfStates() != ratings_dim) { tprintf("Cooked #%d has total of states = %d vs ratings dim of %d\n", choice->TotalOfStates(), ratings_dim); return false; } } return true; } // Prints a list of words found if debug is true or the word result matches // the word_to_debug. void WERD_RES::DebugWordChoices(bool debug, const char* word_to_debug) { if (debug || (word_to_debug != NULL && *word_to_debug != '\0' && best_choice != NULL && best_choice->unichar_string() == STRING(word_to_debug))) { if (raw_choice != NULL) raw_choice->print("\nBest Raw Choice"); WERD_CHOICE_IT it(&best_choices); int index = 0; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward(), ++index) { WERD_CHOICE* choice = it.data(); STRING label; label.add_str_int("\nCooked Choice #", index); choice->print(label.string()); } } } // Prints the top choice along with the accepted/done flags. void WERD_RES::DebugTopChoice(const char* msg) const { tprintf("Best choice: accepted=%d, adaptable=%d, done=%d : ", tess_accepted, tess_would_adapt, done); if (best_choice == NULL) tprintf("<Null choice>\n"); else best_choice->print(msg); } // Removes from best_choices all choices which are not within a reasonable // range of the best choice. // TODO(rays) incorporate the information used here into the params training // re-ranker, in place of this heuristic that is based on the previous // adjustment factor. void WERD_RES::FilterWordChoices(int debug_level) { if (best_choice == NULL || best_choices.singleton()) return; if (debug_level >= 2) best_choice->print("\nFiltering against best choice"); WERD_CHOICE_IT it(&best_choices); int index = 0; for (it.forward(); !it.at_first(); it.forward(), ++index) { WERD_CHOICE* choice = it.data(); float threshold = StopperAmbigThreshold(best_choice->adjust_factor(), choice->adjust_factor()); // i, j index the blob choice in choice, best_choice. // chunk is an index into the chopped_word blobs (AKA chunks). // Since the two words may use different segmentations of the chunks, we // iterate over the chunks to find out whether a comparable blob // classification is much worse than the best result. int i = 0, j = 0, chunk = 0; // Each iteration of the while deals with 1 chunk. On entry choice_chunk // and best_chunk are the indices of the first chunk in the NEXT blob, // i.e. we don't have to increment i, j while chunk < choice_chunk and // best_chunk respectively. int choice_chunk = choice->state(0), best_chunk = best_choice->state(0); while (i < choice->length() && j < best_choice->length()) { if (choice->unichar_id(i) != best_choice->unichar_id(j) && choice->certainty(i) - best_choice->certainty(j) < threshold) { if (debug_level >= 2) { STRING label; label.add_str_int("\nDiscarding bad choice #", index); choice->print(label.string()); tprintf("i %d j %d Chunk %d Choice->Blob[i].Certainty %.4g" " BestChoice->ChunkCertainty[Chunk] %g Threshold %g\n", i, j, chunk, choice->certainty(i), best_choice->certainty(j), threshold); } delete it.extract(); break; } ++chunk; // If needed, advance choice_chunk to keep up with chunk. while (choice_chunk < chunk && ++i < choice->length()) choice_chunk += choice->state(i); // If needed, advance best_chunk to keep up with chunk. while (best_chunk < chunk && ++j < best_choice->length()) best_chunk += best_choice->state(j); } } } void WERD_RES::ComputeAdaptionThresholds(float certainty_scale, float min_rating, float max_rating, float rating_margin, float* thresholds) { int chunk = 0; int end_chunk = best_choice->state(0); int end_raw_chunk = raw_choice->state(0); int raw_blob = 0; for (int i = 0; i < best_choice->length(); i++, thresholds++) { float avg_rating = 0.0f; int num_error_chunks = 0; // For each chunk in best choice blob i, count non-matching raw results. while (chunk < end_chunk) { if (chunk >= end_raw_chunk) { ++raw_blob; end_raw_chunk += raw_choice->state(raw_blob); } if (best_choice->unichar_id(i) != raw_choice->unichar_id(raw_blob)) { avg_rating += raw_choice->certainty(raw_blob); ++num_error_chunks; } ++chunk; } if (num_error_chunks > 0) { avg_rating /= num_error_chunks; *thresholds = (avg_rating / -certainty_scale) * (1.0 - rating_margin); } else { *thresholds = max_rating; } if (*thresholds > max_rating) *thresholds = max_rating; if (*thresholds < min_rating) *thresholds = min_rating; } } // Saves a copy of the word_choice if it has the best unadjusted rating. // Returns true if the word_choice was the new best. bool WERD_RES::LogNewRawChoice(WERD_CHOICE* word_choice) { if (raw_choice == NULL || word_choice->rating() < raw_choice->rating()) { delete raw_choice; raw_choice = new WERD_CHOICE(*word_choice); raw_choice->set_permuter(TOP_CHOICE_PERM); return true; } return false; } // Consumes word_choice by adding it to best_choices, (taking ownership) if // the certainty for word_choice is some distance of the best choice in // best_choices, or by deleting the word_choice and returning false. // The best_choices list is kept in sorted order by rating. Duplicates are // removed, and the list is kept no longer than max_num_choices in length. // Returns true if the word_choice is still a valid pointer. bool WERD_RES::LogNewCookedChoice(int max_num_choices, bool debug, WERD_CHOICE* word_choice) { if (best_choice != NULL) { // Throw out obviously bad choices to save some work. // TODO(rays) Get rid of this! This piece of code produces different // results according to the order in which words are found, which is an // undesirable behavior. It would be better to keep all the choices and // prune them later when more information is available. float max_certainty_delta = StopperAmbigThreshold(best_choice->adjust_factor(), word_choice->adjust_factor()); if (max_certainty_delta > -kStopperAmbiguityThresholdOffset) max_certainty_delta = -kStopperAmbiguityThresholdOffset; if (word_choice->certainty() - best_choice->certainty() < max_certainty_delta) { if (debug) { STRING bad_string; word_choice->string_and_lengths(&bad_string, NULL); tprintf("Discarding choice \"%s\" with an overly low certainty" " %.3f vs best choice certainty %.3f (Threshold: %.3f)\n", bad_string.string(), word_choice->certainty(), best_choice->certainty(), max_certainty_delta + best_choice->certainty()); } delete word_choice; return false; } } // Insert in the list in order of increasing rating, but knock out worse // string duplicates. WERD_CHOICE_IT it(&best_choices); const STRING& new_str = word_choice->unichar_string(); bool inserted = false; int num_choices = 0; if (!it.empty()) { do { WERD_CHOICE* choice = it.data(); if (choice->rating() > word_choice->rating() && !inserted) { // Time to insert. it.add_before_stay_put(word_choice); inserted = true; if (num_choices == 0) best_choice = word_choice; // This is the new best. ++num_choices; } if (choice->unichar_string() == new_str) { if (inserted) { // New is better. delete it.extract(); } else { // Old is better. if (debug) { tprintf("Discarding duplicate choice \"%s\", rating %g vs %g\n", new_str.string(), word_choice->rating(), choice->rating()); } delete word_choice; return false; } } else { ++num_choices; if (num_choices > max_num_choices) delete it.extract(); } it.forward(); } while (!it.at_first()); } if (!inserted && num_choices < max_num_choices) { it.add_to_end(word_choice); inserted = true; if (num_choices == 0) best_choice = word_choice; // This is the new best. } if (debug) { if (inserted) tprintf("New %s", best_choice == word_choice ? "Best" : "Secondary"); else tprintf("Poor"); word_choice->print(" Word Choice"); } if (!inserted) { delete word_choice; return false; } return true; } // Simple helper moves the ownership of the pointer data from src to dest, // first deleting anything in dest, and nulling out src afterwards. template<class T> static void MovePointerData(T** dest, T**src) { delete *dest; *dest = *src; *src = NULL; } // Prints a brief list of all the best choices. void WERD_RES::PrintBestChoices() const { STRING alternates_str; WERD_CHOICE_IT it(const_cast<WERD_CHOICE_LIST*>(&best_choices)); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { if (!it.at_first()) alternates_str += "\", \""; alternates_str += it.data()->unichar_string(); } tprintf("Alternates for \"%s\": {\"%s\"}\n", best_choice->unichar_string().string(), alternates_str.string()); } // Returns the sum of the widths of the blob between start_blob and last_blob // inclusive. int WERD_RES::GetBlobsWidth(int start_blob, int last_blob) { int result = 0; for (int b = start_blob; b <= last_blob; ++b) { result += blob_widths[b]; if (b < last_blob) result += blob_gaps[b]; } return result; } // Returns the width of a gap between the specified blob and the next one. int WERD_RES::GetBlobsGap(int blob_index) { if (blob_index < 0 || blob_index >= blob_gaps.size()) return 0; return blob_gaps[blob_index]; } // Returns the BLOB_CHOICE corresponding to the given index in the // best choice word taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. May return NULL if there is no // BLOB_CHOICE matching the unichar_id at the given index. BLOB_CHOICE* WERD_RES::GetBlobChoice(int index) const { if (index < 0 || index >= best_choice->length()) return NULL; BLOB_CHOICE_LIST* choices = GetBlobChoices(index); return FindMatchingChoice(best_choice->unichar_id(index), choices); } // Returns the BLOB_CHOICE_LIST corresponding to the given index in the // best choice word taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. BLOB_CHOICE_LIST* WERD_RES::GetBlobChoices(int index) const { return best_choice->blob_choices(index, ratings); } // Moves the results fields from word to this. This takes ownership of all // the data, so src can be destructed. void WERD_RES::ConsumeWordResults(WERD_RES* word) { denorm = word->denorm; blob_row = word->blob_row; MovePointerData(&chopped_word, &word->chopped_word); MovePointerData(&rebuild_word, &word->rebuild_word); MovePointerData(&box_word, &word->box_word); seam_array.delete_data_pointers(); seam_array = word->seam_array; word->seam_array.clear(); best_state.move(&word->best_state); correct_text.move(&word->correct_text); blob_widths.move(&word->blob_widths); blob_gaps.move(&word->blob_gaps); if (ratings != NULL) ratings->delete_matrix_pointers(); MovePointerData(&ratings, &word->ratings); best_choice = word->best_choice; MovePointerData(&raw_choice, &word->raw_choice); best_choices.clear(); WERD_CHOICE_IT wc_it(&best_choices); wc_it.add_list_after(&word->best_choices); reject_map = word->reject_map; if (word->blamer_bundle != NULL) { assert(blamer_bundle != NULL); blamer_bundle->CopyResults(*(word->blamer_bundle)); } CopySimpleFields(*word); } // Replace the best choice and rebuild box word. // choice must be from the current best_choices list. void WERD_RES::ReplaceBestChoice(WERD_CHOICE* choice) { best_choice = choice; RebuildBestState(); SetupBoxWord(); // Make up a fake reject map of the right length to keep the // rejection pass happy. reject_map.initialise(best_state.length()); done = tess_accepted = tess_would_adapt = true; SetScriptPositions(); } // Builds the rebuild_word and sets the best_state from the chopped_word and // the best_choice->state. void WERD_RES::RebuildBestState() { ASSERT_HOST(best_choice != NULL); if (rebuild_word != NULL) delete rebuild_word; rebuild_word = new TWERD; if (seam_array.empty()) start_seam_list(chopped_word, &seam_array); best_state.truncate(0); int start = 0; for (int i = 0; i < best_choice->length(); ++i) { int length = best_choice->state(i); best_state.push_back(length); if (length > 1) join_pieces(seam_array, start, start + length - 1, chopped_word); TBLOB* blob = chopped_word->blobs[start]; rebuild_word->blobs.push_back(new TBLOB(*blob)); if (length > 1) break_pieces(seam_array, start, start + length - 1, chopped_word); start += length; } } // Copies the chopped_word to the rebuild_word, faking a best_state as well. // Also sets up the output box_word. void WERD_RES::CloneChoppedToRebuild() { if (rebuild_word != NULL) delete rebuild_word; rebuild_word = new TWERD(*chopped_word); SetupBoxWord(); int word_len = box_word->length(); best_state.reserve(word_len); correct_text.reserve(word_len); for (int i = 0; i < word_len; ++i) { best_state.push_back(1); correct_text.push_back(STRING("")); } } // Sets/replaces the box_word with one made from the rebuild_word. void WERD_RES::SetupBoxWord() { if (box_word != NULL) delete box_word; rebuild_word->ComputeBoundingBoxes(); box_word = tesseract::BoxWord::CopyFromNormalized(rebuild_word); box_word->ClipToOriginalWord(denorm.block(), word); } // Sets up the script positions in the output best_choice using the best_choice // to get the unichars, and the unicharset to get the target positions. void WERD_RES::SetScriptPositions() { best_choice->SetScriptPositions(small_caps, chopped_word); } // Sets all the blobs in all the words (raw choice and best choices) to be // the given position. (When a sub/superscript is recognized as a separate // word, it falls victim to the rule that a whole word cannot be sub or // superscript, so this function overrides that problem.) void WERD_RES::SetAllScriptPositions(tesseract::ScriptPos position) { raw_choice->SetAllScriptPositions(position); WERD_CHOICE_IT wc_it(&best_choices); for (wc_it.mark_cycle_pt(); !wc_it.cycled_list(); wc_it.forward()) wc_it.data()->SetAllScriptPositions(position); } // Classifies the word with some already-calculated BLOB_CHOICEs. // The choices are an array of blob_count pointers to BLOB_CHOICE, // providing a single classifier result for each blob. // The BLOB_CHOICEs are consumed and the word takes ownership. // The number of blobs in the box_word must match blob_count. void WERD_RES::FakeClassifyWord(int blob_count, BLOB_CHOICE** choices) { // Setup the WERD_RES. ASSERT_HOST(box_word != NULL); ASSERT_HOST(blob_count == box_word->length()); ClearWordChoices(); ClearRatings(); ratings = new MATRIX(blob_count, 1); for (int c = 0; c < blob_count; ++c) { BLOB_CHOICE_LIST* choice_list = new BLOB_CHOICE_LIST; BLOB_CHOICE_IT choice_it(choice_list); choice_it.add_after_then_move(choices[c]); ratings->put(c, c, choice_list); } FakeWordFromRatings(); reject_map.initialise(blob_count); done = true; } // Creates a WERD_CHOICE for the word using the top choices from the leading // diagonal of the ratings matrix. void WERD_RES::FakeWordFromRatings() { int num_blobs = ratings->dimension(); WERD_CHOICE* word_choice = new WERD_CHOICE(uch_set, num_blobs); word_choice->set_permuter(TOP_CHOICE_PERM); for (int b = 0; b < num_blobs; ++b) { UNICHAR_ID unichar_id = UNICHAR_SPACE; float rating = MAX_INT32; float certainty = -MAX_INT32; BLOB_CHOICE_LIST* choices = ratings->get(b, b); if (choices != NULL && !choices->empty()) { BLOB_CHOICE_IT bc_it(choices); BLOB_CHOICE* choice = bc_it.data(); unichar_id = choice->unichar_id(); rating = choice->rating(); certainty = choice->certainty(); } word_choice->append_unichar_id_space_allocated(unichar_id, 1, rating, certainty); } LogNewRawChoice(word_choice); // Ownership of word_choice taken by word here. LogNewCookedChoice(1, false, word_choice); } // Copies the best_choice strings to the correct_text for adaption/training. void WERD_RES::BestChoiceToCorrectText() { correct_text.clear(); ASSERT_HOST(best_choice != NULL); for (int i = 0; i < best_choice->length(); ++i) { UNICHAR_ID choice_id = best_choice->unichar_id(i); const char* blob_choice = uch_set->id_to_unichar(choice_id); correct_text.push_back(STRING(blob_choice)); } } // Merges 2 adjacent blobs in the result if the permanent callback // class_cb returns other than INVALID_UNICHAR_ID, AND the permanent // callback box_cb is NULL or returns true, setting the merged blob // result to the class returned from class_cb. // Returns true if anything was merged. bool WERD_RES::ConditionalBlobMerge( TessResultCallback2<UNICHAR_ID, UNICHAR_ID, UNICHAR_ID>* class_cb, TessResultCallback2<bool, const TBOX&, const TBOX&>* box_cb) { ASSERT_HOST(best_choice->length() == 0 || ratings != NULL); bool modified = false; for (int i = 0; i + 1 < best_choice->length(); ++i) { UNICHAR_ID new_id = class_cb->Run(best_choice->unichar_id(i), best_choice->unichar_id(i+1)); if (new_id != INVALID_UNICHAR_ID && (box_cb == NULL || box_cb->Run(box_word->BlobBox(i), box_word->BlobBox(i + 1)))) { // Raw choice should not be fixed. best_choice->set_unichar_id(new_id, i); modified = true; MergeAdjacentBlobs(i); const MATRIX_COORD& coord = best_choice->MatrixCoord(i); if (!coord.Valid(*ratings)) { ratings->IncreaseBandSize(coord.row + 1 - coord.col); } BLOB_CHOICE_LIST* blob_choices = GetBlobChoices(i); if (FindMatchingChoice(new_id, blob_choices) == NULL) { // Insert a fake result. BLOB_CHOICE* blob_choice = new BLOB_CHOICE; blob_choice->set_unichar_id(new_id); BLOB_CHOICE_IT bc_it(blob_choices); bc_it.add_before_then_move(blob_choice); } } } delete class_cb; delete box_cb; return modified; } // Merges 2 adjacent blobs in the result (index and index+1) and corrects // all the data to account for the change. void WERD_RES::MergeAdjacentBlobs(int index) { if (reject_map.length() == best_choice->length()) reject_map.remove_pos(index); best_choice->remove_unichar_id(index + 1); rebuild_word->MergeBlobs(index, index + 2); box_word->MergeBoxes(index, index + 2); if (index + 1 < best_state.length()) { best_state[index] += best_state[index + 1]; best_state.remove(index + 1); } } // TODO(tkielbus) Decide between keeping this behavior here or modifying the // training data. // Utility function for fix_quotes // Return true if the next character in the string (given the UTF8 length in // bytes) is a quote character. static int is_simple_quote(const char* signed_str, int length) { const unsigned char* str = reinterpret_cast<const unsigned char*>(signed_str); // Standard 1 byte quotes. return (length == 1 && (*str == '\'' || *str == '`')) || // UTF-8 3 bytes curved quotes. (length == 3 && ((*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x98) || (*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x99))); } // Callback helper for fix_quotes returns a double quote if both // arguments are quote, otherwise INVALID_UNICHAR_ID. UNICHAR_ID WERD_RES::BothQuotes(UNICHAR_ID id1, UNICHAR_ID id2) { const char *ch = uch_set->id_to_unichar(id1); const char *next_ch = uch_set->id_to_unichar(id2); if (is_simple_quote(ch, strlen(ch)) && is_simple_quote(next_ch, strlen(next_ch))) return uch_set->unichar_to_id("\""); return INVALID_UNICHAR_ID; } // Change pairs of quotes to double quotes. void WERD_RES::fix_quotes() { if (!uch_set->contains_unichar("\"") || !uch_set->get_enabled(uch_set->unichar_to_id("\""))) return; // Don't create it if it is disallowed. ConditionalBlobMerge( NewPermanentTessCallback(this, &WERD_RES::BothQuotes), NULL); } // Callback helper for fix_hyphens returns UNICHAR_ID of - if both // arguments are hyphen, otherwise INVALID_UNICHAR_ID. UNICHAR_ID WERD_RES::BothHyphens(UNICHAR_ID id1, UNICHAR_ID id2) { const char *ch = uch_set->id_to_unichar(id1); const char *next_ch = uch_set->id_to_unichar(id2); if (strlen(ch) == 1 && strlen(next_ch) == 1 && (*ch == '-' || *ch == '~') && (*next_ch == '-' || *next_ch == '~')) return uch_set->unichar_to_id("-"); return INVALID_UNICHAR_ID; } // Callback helper for fix_hyphens returns true if box1 and box2 overlap // (assuming both on the same textline, are in order and a chopped em dash.) bool WERD_RES::HyphenBoxesOverlap(const TBOX& box1, const TBOX& box2) { return box1.right() >= box2.left(); } // Change pairs of hyphens to a single hyphen if the bounding boxes touch // Typically a long dash which has been segmented. void WERD_RES::fix_hyphens() { if (!uch_set->contains_unichar("-") || !uch_set->get_enabled(uch_set->unichar_to_id("-"))) return; // Don't create it if it is disallowed. ConditionalBlobMerge( NewPermanentTessCallback(this, &WERD_RES::BothHyphens), NewPermanentTessCallback(this, &WERD_RES::HyphenBoxesOverlap)); } // Callback helper for merge_tess_fails returns a space if both // arguments are space, otherwise INVALID_UNICHAR_ID. UNICHAR_ID WERD_RES::BothSpaces(UNICHAR_ID id1, UNICHAR_ID id2) { if (id1 == id2 && id1 == uch_set->unichar_to_id(" ")) return id1; else return INVALID_UNICHAR_ID; } // Change pairs of tess failures to a single one void WERD_RES::merge_tess_fails() { if (ConditionalBlobMerge( NewPermanentTessCallback(this, &WERD_RES::BothSpaces), NULL)) { int len = best_choice->length(); ASSERT_HOST(reject_map.length() == len); ASSERT_HOST(box_word->length() == len); } } // Returns true if the collection of count pieces, starting at start, are all // natural connected components, ie there are no real chops involved. bool WERD_RES::PiecesAllNatural(int start, int count) const { // all seams must have no splits. for (int index = start; index < start + count - 1; ++index) { if (index >= 0 && index < seam_array.size()) { SEAM* seam = seam_array[index]; if (seam != NULL && seam->split1 != NULL) return false; } } return true; } WERD_RES::~WERD_RES () { Clear(); } void WERD_RES::InitNonPointers() { tess_failed = FALSE; tess_accepted = FALSE; tess_would_adapt = FALSE; done = FALSE; unlv_crunch_mode = CR_NONE; small_caps = false; odd_size = false; italic = FALSE; bold = FALSE; // The fontinfos and tesseract count as non-pointers as they point to // data owned elsewhere. fontinfo = NULL; fontinfo2 = NULL; tesseract = NULL; fontinfo_id_count = 0; fontinfo_id2_count = 0; x_height = 0.0; caps_height = 0.0; guessed_x_ht = TRUE; guessed_caps_ht = TRUE; combination = FALSE; part_of_combo = FALSE; reject_spaces = FALSE; } void WERD_RES::InitPointers() { word = NULL; bln_boxes = NULL; blob_row = NULL; uch_set = NULL; chopped_word = NULL; rebuild_word = NULL; box_word = NULL; ratings = NULL; best_choice = NULL; raw_choice = NULL; ep_choice = NULL; blamer_bundle = NULL; } void WERD_RES::Clear() { if (word != NULL && combination) { delete word; } word = NULL; delete blamer_bundle; blamer_bundle = NULL; ClearResults(); } void WERD_RES::ClearResults() { done = false; fontinfo = NULL; fontinfo2 = NULL; fontinfo_id_count = 0; fontinfo_id2_count = 0; if (bln_boxes != NULL) { delete bln_boxes; bln_boxes = NULL; } blob_row = NULL; if (chopped_word != NULL) { delete chopped_word; chopped_word = NULL; } if (rebuild_word != NULL) { delete rebuild_word; rebuild_word = NULL; } if (box_word != NULL) { delete box_word; box_word = NULL; } best_state.clear(); correct_text.clear(); seam_array.delete_data_pointers(); seam_array.clear(); blob_widths.clear(); blob_gaps.clear(); ClearRatings(); ClearWordChoices(); if (blamer_bundle != NULL) blamer_bundle->ClearResults(); } void WERD_RES::ClearWordChoices() { best_choice = NULL; if (raw_choice != NULL) { delete raw_choice; raw_choice = NULL; } best_choices.clear(); if (ep_choice != NULL) { delete ep_choice; ep_choice = NULL; } } void WERD_RES::ClearRatings() { if (ratings != NULL) { ratings->delete_matrix_pointers(); delete ratings; ratings = NULL; } } bool PAGE_RES_IT::operator ==(const PAGE_RES_IT &other) const { return word_res == other.word_res && row_res == other.row_res && block_res == other.block_res; } int PAGE_RES_IT::cmp(const PAGE_RES_IT &other) const { ASSERT_HOST(page_res == other.page_res); if (other.block_res == NULL) { // other points to the end of the page. if (block_res == NULL) return 0; return -1; } if (block_res == NULL) { return 1; // we point to the end of the page. } if (block_res == other.block_res) { if (other.row_res == NULL || row_res == NULL) { // this should only happen if we hit an image block. return 0; } if (row_res == other.row_res) { // we point to the same block and row. ASSERT_HOST(other.word_res != NULL && word_res != NULL); if (word_res == other.word_res) { // we point to the same word! return 0; } WERD_RES_IT word_res_it(&row_res->word_res_list); for (word_res_it.mark_cycle_pt(); !word_res_it.cycled_list(); word_res_it.forward()) { if (word_res_it.data() == word_res) { return -1; } else if (word_res_it.data() == other.word_res) { return 1; } } ASSERT_HOST("Error: Incomparable PAGE_RES_ITs" == NULL); } // we both point to the same block, but different rows. ROW_RES_IT row_res_it(&block_res->row_res_list); for (row_res_it.mark_cycle_pt(); !row_res_it.cycled_list(); row_res_it.forward()) { if (row_res_it.data() == row_res) { return -1; } else if (row_res_it.data() == other.row_res) { return 1; } } ASSERT_HOST("Error: Incomparable PAGE_RES_ITs" == NULL); } // We point to different blocks. BLOCK_RES_IT block_res_it(&page_res->block_res_list); for (block_res_it.mark_cycle_pt(); !block_res_it.cycled_list(); block_res_it.forward()) { if (block_res_it.data() == block_res) { return -1; } else if (block_res_it.data() == other.block_res) { return 1; } } // Shouldn't happen... ASSERT_HOST("Error: Incomparable PAGE_RES_ITs" == NULL); return 0; } // Inserts the new_word and a corresponding WERD_RES before the current // position. The simple fields of the WERD_RES are copied from clone_res and // the resulting WERD_RES is returned for further setup with best_choice etc. WERD_RES* PAGE_RES_IT::InsertSimpleCloneWord(const WERD_RES& clone_res, WERD* new_word) { // Insert new_word into the ROW. WERD_IT w_it(row()->row->word_list()); for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) { WERD* word = w_it.data(); if (word == word_res->word) break; } ASSERT_HOST(!w_it.cycled_list()); w_it.add_before_then_move(new_word); // Make a WERD_RES for the new_word. WERD_RES* new_res = new WERD_RES(new_word); new_res->CopySimpleFields(clone_res); // Insert into the appropriate place in the ROW_RES. WERD_RES_IT wr_it(&row()->word_res_list); for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) { WERD_RES* word = wr_it.data(); if (word == word_res) break; } ASSERT_HOST(!wr_it.cycled_list()); wr_it.add_before_then_move(new_res); if (wr_it.at_first()) { // This is the new first word, so reset the member iterator so it // detects the cycled_list state correctly. ResetWordIterator(); } return new_res; } // Helper computes the boundaries between blobs in the word. The blob bounds // are likely very poor, if they come from LSTM, where it only outputs the // character at one pixel within it, so we find the midpoints between them. static void ComputeBlobEnds(const WERD_RES& word, C_BLOB_LIST* next_word_blobs, GenericVector<int>* blob_ends) { C_BLOB_IT blob_it(word.word->cblob_list()); for (int i = 0; i < word.best_state.size(); ++i) { int length = word.best_state[i]; // Get the bounding box of the fake blobs TBOX blob_box = blob_it.data()->bounding_box(); blob_it.forward(); for (int b = 1; b < length; ++b) { blob_box += blob_it.data()->bounding_box(); blob_it.forward(); } // This blob_box is crap, so for now we are only looking for the // boundaries between them. int blob_end = MAX_INT32; if (!blob_it.at_first() || next_word_blobs != NULL) { if (blob_it.at_first()) blob_it.set_to_list(next_word_blobs); blob_end = (blob_box.right() + blob_it.data()->bounding_box().left()) / 2; } blob_ends->push_back(blob_end); } } // Replaces the current WERD/WERD_RES with the given words. The given words // contain fake blobs that indicate the position of the characters. These are // replaced with real blobs from the current word as much as possible. void PAGE_RES_IT::ReplaceCurrentWord( tesseract::PointerVector<WERD_RES>* words) { WERD_RES* input_word = word(); // Set the BOL/EOL flags on the words from the input word. if (input_word->word->flag(W_BOL)) { (*words)[0]->word->set_flag(W_BOL, true); } else { (*words)[0]->word->set_blanks(1); } words->back()->word->set_flag(W_EOL, input_word->word->flag(W_EOL)); // Move the blobs from the input word to the new set of words. // If the input word_res is a combination, then the replacements will also be // combinations, and will own their own words. If the input word_res is not a // combination, then the final replacements will not be either, (although it // is allowed for the input words to be combinations) and their words // will get put on the row list. This maintains the ownership rules. WERD_IT w_it(row()->row->word_list()); if (!input_word->combination) { for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) { WERD* word = w_it.data(); if (word == input_word->word) break; } // w_it is now set to the input_word's word. ASSERT_HOST(!w_it.cycled_list()); } // Insert into the appropriate place in the ROW_RES. WERD_RES_IT wr_it(&row()->word_res_list); for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) { WERD_RES* word = wr_it.data(); if (word == input_word) break; } ASSERT_HOST(!wr_it.cycled_list()); // Since we only have an estimate of the bounds between blobs, use the blob // x-middle as the determiner of where to put the blobs C_BLOB_IT src_b_it(input_word->word->cblob_list()); src_b_it.sort(&C_BLOB::SortByXMiddle); C_BLOB_IT rej_b_it(input_word->word->rej_cblob_list()); rej_b_it.sort(&C_BLOB::SortByXMiddle); for (int w = 0; w < words->size(); ++w) { WERD_RES* word_w = (*words)[w]; // Compute blob boundaries. GenericVector<int> blob_ends; C_BLOB_LIST* next_word_blobs = w + 1 < words->size() ? (*words)[w + 1]->word->cblob_list() : NULL; ComputeBlobEnds(*word_w, next_word_blobs, &blob_ends); // Delete the fake blobs on the current word. word_w->word->cblob_list()->clear(); C_BLOB_IT dest_it(word_w->word->cblob_list()); // Build the box word as we move the blobs. tesseract::BoxWord* box_word = new tesseract::BoxWord; for (int i = 0; i < blob_ends.size(); ++i) { int end_x = blob_ends[i]; TBOX blob_box; // Add the blobs up to end_x. while (!src_b_it.empty() && src_b_it.data()->bounding_box().x_middle() < end_x) { blob_box += src_b_it.data()->bounding_box(); dest_it.add_after_then_move(src_b_it.extract()); src_b_it.forward(); } while (!rej_b_it.empty() && rej_b_it.data()->bounding_box().x_middle() < end_x) { blob_box += rej_b_it.data()->bounding_box(); dest_it.add_after_then_move(rej_b_it.extract()); rej_b_it.forward(); } // Clip to the previously computed bounds. Although imperfectly accurate, // it is good enough, and much more complicated to determine where else // to clip. if (i > 0 && blob_box.left() < blob_ends[i - 1]) blob_box.set_left(blob_ends[i - 1]); if (blob_box.right() > end_x) blob_box.set_right(end_x); box_word->InsertBox(i, blob_box); } // Fix empty boxes. If a very joined blob sits over multiple characters, // then we will have some empty boxes from using the middle, so look for // overlaps. for (int i = 0; i < box_word->length(); ++i) { TBOX box = box_word->BlobBox(i); if (box.null_box()) { // Nothing has its middle in the bounds of this blob, so use anything // that overlaps. for (dest_it.mark_cycle_pt(); !dest_it.cycled_list(); dest_it.forward()) { TBOX blob_box = dest_it.data()->bounding_box(); if (blob_box.left() < blob_ends[i] && (i == 0 || blob_box.right() >= blob_ends[i - 1])) { if (i > 0 && blob_box.left() < blob_ends[i - 1]) blob_box.set_left(blob_ends[i - 1]); if (blob_box.right() > blob_ends[i]) blob_box.set_right(blob_ends[i]); box_word->ChangeBox(i, blob_box); break; } } } } delete word_w->box_word; word_w->box_word = box_word; if (!input_word->combination) { // Insert word_w->word into the ROW. It doesn't own its word, so the // ROW needs to own it. w_it.add_before_stay_put(word_w->word); word_w->combination = false; } (*words)[w] = NULL; // We are taking ownership. wr_it.add_before_stay_put(word_w); } // We have taken ownership of the words. words->clear(); // Delete the current word, which has been replaced. We could just call // DeleteCurrentWord, but that would iterate both lists again, and we know // we are already in the right place. if (!input_word->combination) delete w_it.extract(); delete wr_it.extract(); ResetWordIterator(); } // Deletes the current WERD_RES and its underlying WERD. void PAGE_RES_IT::DeleteCurrentWord() { // Check that this word is as we expect. part_of_combos are NEVER iterated // by the normal iterator, so we should never be trying to delete them. ASSERT_HOST(!word_res->part_of_combo); if (!word_res->combination) { // Combinations own their own word, so we won't find the word on the // row's word_list, but it is legitimate to try to delete them. // Delete word from the ROW when not a combination. WERD_IT w_it(row()->row->word_list()); for (w_it.mark_cycle_pt(); !w_it.cycled_list(); w_it.forward()) { if (w_it.data() == word_res->word) { break; } } ASSERT_HOST(!w_it.cycled_list()); delete w_it.extract(); } // Remove the WERD_RES for the new_word. // Remove the WORD_RES from the ROW_RES. WERD_RES_IT wr_it(&row()->word_res_list); for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) { if (wr_it.data() == word_res) { word_res = NULL; break; } } ASSERT_HOST(!wr_it.cycled_list()); delete wr_it.extract(); ResetWordIterator(); } /************************************************************************* * PAGE_RES_IT::restart_page * * Set things up at the start of the page *************************************************************************/ WERD_RES *PAGE_RES_IT::start_page(bool empty_ok) { block_res_it.set_to_list(&page_res->block_res_list); block_res_it.mark_cycle_pt(); prev_block_res = NULL; prev_row_res = NULL; prev_word_res = NULL; block_res = NULL; row_res = NULL; word_res = NULL; next_block_res = NULL; next_row_res = NULL; next_word_res = NULL; internal_forward(true, empty_ok); return internal_forward(false, empty_ok); } // Recovers from operations on the current word, such as in InsertCloneWord // and DeleteCurrentWord. // Resets the word_res_it so that it is one past the next_word_res, as // it should be after internal_forward. If next_row_res != row_res, // then the next_word_res is in the next row, so there is no need to do // anything to word_res_it, but it is still a good idea to reset the pointers // word_res and prev_word_res, which are still in the current row. void PAGE_RES_IT::ResetWordIterator() { if (row_res == next_row_res) { // Reset the member iterator so it can move forward and detect the // cycled_list state correctly. word_res_it.move_to_first(); word_res_it.mark_cycle_pt(); while (!word_res_it.cycled_list() && word_res_it.data() != next_word_res) { if (prev_row_res == row_res) prev_word_res = word_res; word_res = word_res_it.data(); word_res_it.forward(); } ASSERT_HOST(!word_res_it.cycled_list()); word_res_it.forward(); } else { // word_res_it is OK, but reset word_res and prev_word_res if needed. WERD_RES_IT wr_it(&row_res->word_res_list); for (wr_it.mark_cycle_pt(); !wr_it.cycled_list(); wr_it.forward()) { if (prev_row_res == row_res) prev_word_res = word_res; word_res = wr_it.data(); } } } /************************************************************************* * PAGE_RES_IT::internal_forward * * Find the next word on the page. If empty_ok is true, then non-text blocks * and text blocks with no text are visited as if they contain a single * imaginary word in a single imaginary row. (word() and row() both return NULL * in such a block and the return value is NULL.) * If empty_ok is false, the old behaviour is maintained. Each real word * is visited and empty and non-text blocks and rows are skipped. * new_block is used to initialize the iterators for a new block. * The iterator maintains pointers to block, row and word for the previous, * current and next words. These are correct, regardless of block/row * boundaries. NULL values denote start and end of the page. *************************************************************************/ WERD_RES *PAGE_RES_IT::internal_forward(bool new_block, bool empty_ok) { bool new_row = false; prev_block_res = block_res; prev_row_res = row_res; prev_word_res = word_res; block_res = next_block_res; row_res = next_row_res; word_res = next_word_res; next_block_res = NULL; next_row_res = NULL; next_word_res = NULL; while (!block_res_it.cycled_list()) { if (new_block) { new_block = false; row_res_it.set_to_list(&block_res_it.data()->row_res_list); row_res_it.mark_cycle_pt(); if (row_res_it.empty() && empty_ok) { next_block_res = block_res_it.data(); break; } new_row = true; } while (!row_res_it.cycled_list()) { if (new_row) { new_row = false; word_res_it.set_to_list(&row_res_it.data()->word_res_list); word_res_it.mark_cycle_pt(); } // Skip any part_of_combo words. while (!word_res_it.cycled_list() && word_res_it.data()->part_of_combo) word_res_it.forward(); if (!word_res_it.cycled_list()) { next_block_res = block_res_it.data(); next_row_res = row_res_it.data(); next_word_res = word_res_it.data(); word_res_it.forward(); goto foundword; } // end of row reached row_res_it.forward(); new_row = true; } // end of block reached block_res_it.forward(); new_block = true; } foundword: // Update prev_word_best_choice pointer. if (page_res != NULL && page_res->prev_word_best_choice != NULL) { *page_res->prev_word_best_choice = (new_block || prev_word_res == NULL) ? NULL : prev_word_res->best_choice; } return word_res; } /************************************************************************* * PAGE_RES_IT::restart_row() * * Move to the beginning (leftmost word) of the current row. *************************************************************************/ WERD_RES *PAGE_RES_IT::restart_row() { ROW_RES *row = this->row(); if (!row) return NULL; for (restart_page(); this->row() != row; forward()) { // pass } return word(); } /************************************************************************* * PAGE_RES_IT::forward_paragraph * * Move to the beginning of the next paragraph, allowing empty blocks. *************************************************************************/ WERD_RES *PAGE_RES_IT::forward_paragraph() { while (block_res == next_block_res && (next_row_res != NULL && next_row_res->row != NULL && row_res->row->para() == next_row_res->row->para())) { internal_forward(false, true); } return internal_forward(false, true); } /************************************************************************* * PAGE_RES_IT::forward_block * * Move to the beginning of the next block, allowing empty blocks. *************************************************************************/ WERD_RES *PAGE_RES_IT::forward_block() { while (block_res == next_block_res) { internal_forward(false, true); } return internal_forward(false, true); } void PAGE_RES_IT::rej_stat_word() { inT16 chars_in_word; inT16 rejects_in_word = 0; chars_in_word = word_res->reject_map.length (); page_res->char_count += chars_in_word; block_res->char_count += chars_in_word; row_res->char_count += chars_in_word; rejects_in_word = word_res->reject_map.reject_count (); page_res->rej_count += rejects_in_word; block_res->rej_count += rejects_in_word; row_res->rej_count += rejects_in_word; if (chars_in_word == rejects_in_word) row_res->whole_word_rej_count += rejects_in_word; }
C++
/********************************************************************** * File: statistc.c (Formerly stats.c) * Description: Simple statistical package for integer values. * Author: Ray Smith * Created: Mon Feb 04 16:56:05 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #include "statistc.h" #include <string.h> #include <math.h> #include <stdlib.h> #include "helpers.h" #include "scrollview.h" #include "tprintf.h" using tesseract::KDPairInc; /********************************************************************** * STATS::STATS * * Construct a new stats element by allocating and zeroing the memory. **********************************************************************/ STATS::STATS(inT32 min_bucket_value, inT32 max_bucket_value_plus_1) { if (max_bucket_value_plus_1 <= min_bucket_value) { min_bucket_value = 0; max_bucket_value_plus_1 = 1; } rangemin_ = min_bucket_value; // setup rangemax_ = max_bucket_value_plus_1; buckets_ = new inT32[rangemax_ - rangemin_]; clear(); } STATS::STATS() { rangemax_ = 0; rangemin_ = 0; buckets_ = NULL; } /********************************************************************** * STATS::set_range * * Alter the range on an existing stats element. **********************************************************************/ bool STATS::set_range(inT32 min_bucket_value, inT32 max_bucket_value_plus_1) { if (max_bucket_value_plus_1 <= min_bucket_value) { return false; } if (rangemax_ - rangemin_ != max_bucket_value_plus_1 - min_bucket_value) { delete [] buckets_; buckets_ = new inT32[max_bucket_value_plus_1 - min_bucket_value]; } rangemin_ = min_bucket_value; // setup rangemax_ = max_bucket_value_plus_1; clear(); // zero it return true; } /********************************************************************** * STATS::clear * * Clear out the STATS class by zeroing all the buckets. **********************************************************************/ void STATS::clear() { // clear out buckets total_count_ = 0; if (buckets_ != NULL) memset(buckets_, 0, (rangemax_ - rangemin_) * sizeof(buckets_[0])); } /********************************************************************** * STATS::~STATS * * Destructor for a stats class. **********************************************************************/ STATS::~STATS () { if (buckets_ != NULL) { delete [] buckets_; buckets_ = NULL; } } /********************************************************************** * STATS::add * * Add a set of samples to (or delete from) a pile. **********************************************************************/ void STATS::add(inT32 value, inT32 count) { if (buckets_ == NULL) { return; } value = ClipToRange(value, rangemin_, rangemax_ - 1); buckets_[value - rangemin_] += count; total_count_ += count; // keep count of total } /********************************************************************** * STATS::mode * * Find the mode of a stats class. **********************************************************************/ inT32 STATS::mode() const { // get mode of samples if (buckets_ == NULL) { return rangemin_; } inT32 max = buckets_[0]; // max cell count inT32 maxindex = 0; // index of max for (int index = rangemax_ - rangemin_ - 1; index > 0; --index) { if (buckets_[index] > max) { max = buckets_[index]; // find biggest maxindex = index; } } return maxindex + rangemin_; // index of biggest } /********************************************************************** * STATS::mean * * Find the mean of a stats class. **********************************************************************/ double STATS::mean() const { //get mean of samples if (buckets_ == NULL || total_count_ <= 0) { return static_cast<double>(rangemin_); } inT64 sum = 0; for (int index = rangemax_ - rangemin_ - 1; index >= 0; --index) { sum += static_cast<inT64>(index) * buckets_[index]; } return static_cast<double>(sum) / total_count_ + rangemin_; } /********************************************************************** * STATS::sd * * Find the standard deviation of a stats class. **********************************************************************/ double STATS::sd() const { //standard deviation if (buckets_ == NULL || total_count_ <= 0) { return 0.0; } inT64 sum = 0; double sqsum = 0.0; for (int index = rangemax_ - rangemin_ - 1; index >= 0; --index) { sum += static_cast<inT64>(index) * buckets_[index]; sqsum += static_cast<double>(index) * index * buckets_[index]; } double variance = static_cast<double>(sum) / total_count_; variance = sqsum / total_count_ - variance * variance; if (variance > 0.0) return sqrt(variance); return 0.0; } /********************************************************************** * STATS::ile * * Returns the fractile value such that frac fraction (in [0,1]) of samples * has a value less than the return value. **********************************************************************/ double STATS::ile(double frac) const { if (buckets_ == NULL || total_count_ == 0) { return static_cast<double>(rangemin_); } #if 0 // TODO(rays) The existing code doesn't seem to be doing the right thing // with target a double but this substitute crashes the code that uses it. // Investigate and fix properly. int target = IntCastRounded(frac * total_count_); target = ClipToRange(target, 1, total_count_); #else double target = frac * total_count_; target = ClipToRange(target, 1.0, static_cast<double>(total_count_)); #endif int sum = 0; int index = 0; for (index = 0; index < rangemax_ - rangemin_ && sum < target; sum += buckets_[index++]); if (index > 0) { ASSERT_HOST(buckets_[index - 1] > 0); return rangemin_ + index - static_cast<double>(sum - target) / buckets_[index - 1]; } else { return static_cast<double>(rangemin_); } } /********************************************************************** * STATS::min_bucket * * Find REAL minimum bucket - ile(0.0) isnt necessarily correct **********************************************************************/ inT32 STATS::min_bucket() const { // Find min if (buckets_ == NULL || total_count_ == 0) { return rangemin_; } inT32 min = 0; for (min = 0; (min < rangemax_ - rangemin_) && (buckets_[min] == 0); min++); return rangemin_ + min; } /********************************************************************** * STATS::max_bucket * * Find REAL maximum bucket - ile(1.0) isnt necessarily correct **********************************************************************/ inT32 STATS::max_bucket() const { // Find max if (buckets_ == NULL || total_count_ == 0) { return rangemin_; } inT32 max; for (max = rangemax_ - rangemin_ - 1; max > 0 && buckets_[max] == 0; max--); return rangemin_ + max; } /********************************************************************** * STATS::median * * Finds a more useful estimate of median than ile(0.5). * * Overcomes a problem with ile() - if the samples are, for example, * 6,6,13,14 ile(0.5) return 7.0 - when a more useful value would be midway * between 6 and 13 = 9.5 **********************************************************************/ double STATS::median() const { //get median if (buckets_ == NULL) { return static_cast<double>(rangemin_); } double median = ile(0.5); int median_pile = static_cast<int>(floor(median)); if ((total_count_ > 1) && (pile_count(median_pile) == 0)) { inT32 min_pile; inT32 max_pile; /* Find preceeding non zero pile */ for (min_pile = median_pile; pile_count(min_pile) == 0; min_pile--); /* Find following non zero pile */ for (max_pile = median_pile; pile_count(max_pile) == 0; max_pile++); median = (min_pile + max_pile) / 2.0; } return median; } /********************************************************************** * STATS::local_min * * Return TRUE if this point is a local min. **********************************************************************/ bool STATS::local_min(inT32 x) const { if (buckets_ == NULL) { return false; } x = ClipToRange(x, rangemin_, rangemax_ - 1) - rangemin_; if (buckets_[x] == 0) return true; inT32 index; // table index for (index = x - 1; index >= 0 && buckets_[index] == buckets_[x]; --index); if (index >= 0 && buckets_[index] < buckets_[x]) return false; for (index = x + 1; index < rangemax_ - rangemin_ && buckets_[index] == buckets_[x]; ++index); if (index < rangemax_ - rangemin_ && buckets_[index] < buckets_[x]) return false; else return true; } /********************************************************************** * STATS::smooth * * Apply a triangular smoothing filter to the stats. * This makes the modes a bit more useful. * The factor gives the height of the triangle, i.e. the weight of the * centre. **********************************************************************/ void STATS::smooth(inT32 factor) { if (buckets_ == NULL || factor < 2) { return; } STATS result(rangemin_, rangemax_); int entrycount = rangemax_ - rangemin_; for (int entry = 0; entry < entrycount; entry++) { //centre weight int count = buckets_[entry] * factor; for (int offset = 1; offset < factor; offset++) { if (entry - offset >= 0) count += buckets_[entry - offset] * (factor - offset); if (entry + offset < entrycount) count += buckets_[entry + offset] * (factor - offset); } result.add(entry + rangemin_, count); } total_count_ = result.total_count_; memcpy(buckets_, result.buckets_, entrycount * sizeof(buckets_[0])); } /********************************************************************** * STATS::cluster * * Cluster the samples into max_cluster clusters. * Each call runs one iteration. The array of clusters must be * max_clusters+1 in size as cluster 0 is used to indicate which samples * have been used. * The return value is the current number of clusters. **********************************************************************/ inT32 STATS::cluster(float lower, // thresholds float upper, float multiple, // distance threshold inT32 max_clusters, // max no to make STATS *clusters) { // array of clusters BOOL8 new_cluster; // added one float *centres; // cluster centres inT32 entry; // bucket index inT32 cluster; // cluster index inT32 best_cluster; // one to assign to inT32 new_centre = 0; // residual mode inT32 new_mode; // pile count of new_centre inT32 count; // pile to place float dist; // from cluster float min_dist; // from best_cluster inT32 cluster_count; // no of clusters if (buckets_ == NULL || max_clusters < 1) return 0; centres = new float[max_clusters + 1]; for (cluster_count = 1; cluster_count <= max_clusters && clusters[cluster_count].buckets_ != NULL && clusters[cluster_count].total_count_ > 0; cluster_count++) { centres[cluster_count] = static_cast<float>(clusters[cluster_count].ile(0.5)); new_centre = clusters[cluster_count].mode(); for (entry = new_centre - 1; centres[cluster_count] - entry < lower && entry >= rangemin_ && pile_count(entry) <= pile_count(entry + 1); entry--) { count = pile_count(entry) - clusters[0].pile_count(entry); if (count > 0) { clusters[cluster_count].add(entry, count); clusters[0].add (entry, count); } } for (entry = new_centre + 1; entry - centres[cluster_count] < lower && entry < rangemax_ && pile_count(entry) <= pile_count(entry - 1); entry++) { count = pile_count(entry) - clusters[0].pile_count(entry); if (count > 0) { clusters[cluster_count].add(entry, count); clusters[0].add(entry, count); } } } cluster_count--; if (cluster_count == 0) { clusters[0].set_range(rangemin_, rangemax_); } do { new_cluster = FALSE; new_mode = 0; for (entry = 0; entry < rangemax_ - rangemin_; entry++) { count = buckets_[entry] - clusters[0].buckets_[entry]; //remaining pile if (count > 0) { //any to handle min_dist = static_cast<float>(MAX_INT32); best_cluster = 0; for (cluster = 1; cluster <= cluster_count; cluster++) { dist = entry + rangemin_ - centres[cluster]; //find distance if (dist < 0) dist = -dist; if (dist < min_dist) { min_dist = dist; //find least best_cluster = cluster; } } if (min_dist > upper //far enough for new && (best_cluster == 0 || entry + rangemin_ > centres[best_cluster] * multiple || entry + rangemin_ < centres[best_cluster] / multiple)) { if (count > new_mode) { new_mode = count; new_centre = entry + rangemin_; } } } } // need new and room if (new_mode > 0 && cluster_count < max_clusters) { cluster_count++; new_cluster = TRUE; if (!clusters[cluster_count].set_range(rangemin_, rangemax_)) { delete [] centres; return 0; } centres[cluster_count] = static_cast<float>(new_centre); clusters[cluster_count].add(new_centre, new_mode); clusters[0].add(new_centre, new_mode); for (entry = new_centre - 1; centres[cluster_count] - entry < lower && entry >= rangemin_ && pile_count (entry) <= pile_count(entry + 1); entry--) { count = pile_count(entry) - clusters[0].pile_count(entry); if (count > 0) { clusters[cluster_count].add(entry, count); clusters[0].add(entry, count); } } for (entry = new_centre + 1; entry - centres[cluster_count] < lower && entry < rangemax_ && pile_count (entry) <= pile_count(entry - 1); entry++) { count = pile_count(entry) - clusters[0].pile_count(entry); if (count > 0) { clusters[cluster_count].add(entry, count); clusters[0].add (entry, count); } } centres[cluster_count] = static_cast<float>(clusters[cluster_count].ile(0.5)); } } while (new_cluster && cluster_count < max_clusters); delete [] centres; return cluster_count; } // Helper tests that the current index is still part of the peak and gathers // the data into the peak, returning false when the peak is ended. // src_buckets[index] - used_buckets[index] is the unused part of the histogram. // prev_count is the histogram count of the previous index on entry and is // updated to the current index on return. // total_count and total_value are accumulating the mean of the peak. static bool GatherPeak(int index, const int* src_buckets, int* used_buckets, int* prev_count, int* total_count, double* total_value) { int pile_count = src_buckets[index] - used_buckets[index]; if (pile_count <= *prev_count && pile_count > 0) { // Accumulate count and index.count product. *total_count += pile_count; *total_value += index * pile_count; // Mark this index as used used_buckets[index] = src_buckets[index]; *prev_count = pile_count; return true; } else { return false; } } // Finds (at most) the top max_modes modes, well actually the whole peak around // each mode, returning them in the given modes vector as a <mean of peak, // total count of peak> pair in order of decreasing total count. // Since the mean is the key and the count the data in the pair, a single call // to sort on the output will re-sort by increasing mean of peak if that is // more useful than decreasing total count. // Returns the actual number of modes found. int STATS::top_n_modes(int max_modes, GenericVector<KDPairInc<float, int> >* modes) const { if (max_modes <= 0) return 0; int src_count = rangemax_ - rangemin_; // Used copies the counts in buckets_ as they get used. STATS used(rangemin_, rangemax_); modes->truncate(0); // Total count of the smallest peak found so far. int least_count = 1; // Mode that is used as a seed for each peak int max_count = 0; do { // Find an unused mode. max_count = 0; int max_index = 0; for (int src_index = 0; src_index < src_count; src_index++) { int pile_count = buckets_[src_index] - used.buckets_[src_index]; if (pile_count > max_count) { max_count = pile_count; max_index = src_index; } } if (max_count > 0) { // Copy the bucket count to used so it doesn't get found again. used.buckets_[max_index] = max_count; // Get the entire peak. double total_value = max_index * max_count; int total_count = max_count; int prev_pile = max_count; for (int offset = 1; max_index + offset < src_count; ++offset) { if (!GatherPeak(max_index + offset, buckets_, used.buckets_, &prev_pile, &total_count, &total_value)) break; } prev_pile = buckets_[max_index]; for (int offset = 1; max_index - offset >= 0; ++offset) { if (!GatherPeak(max_index - offset, buckets_, used.buckets_, &prev_pile, &total_count, &total_value)) break; } if (total_count > least_count || modes->size() < max_modes) { // We definitely want this mode, so if we have enough discard the least. if (modes->size() == max_modes) modes->truncate(max_modes - 1); int target_index = 0; // Linear search for the target insertion point. while (target_index < modes->size() && (*modes)[target_index].data >= total_count) ++target_index; float peak_mean = static_cast<float>(total_value / total_count + rangemin_); modes->insert(KDPairInc<float, int>(peak_mean, total_count), target_index); least_count = modes->back().data; } } } while (max_count > 0); return modes->size(); } /********************************************************************** * STATS::print * * Prints a summary and table of the histogram. **********************************************************************/ void STATS::print() const { if (buckets_ == NULL) { return; } inT32 min = min_bucket() - rangemin_; inT32 max = max_bucket() - rangemin_; int num_printed = 0; for (int index = min; index <= max; index++) { if (buckets_[index] != 0) { tprintf("%4d:%-3d ", rangemin_ + index, buckets_[index]); if (++num_printed % 8 == 0) tprintf ("\n"); } } tprintf ("\n"); print_summary(); } /********************************************************************** * STATS::print_summary * * Print a summary of the stats. **********************************************************************/ void STATS::print_summary() const { if (buckets_ == NULL) { return; } inT32 min = min_bucket(); inT32 max = max_bucket(); tprintf("Total count=%d\n", total_count_); tprintf("Min=%.2f Really=%d\n", ile(0.0), min); tprintf("Lower quartile=%.2f\n", ile(0.25)); tprintf("Median=%.2f, ile(0.5)=%.2f\n", median(), ile(0.5)); tprintf("Upper quartile=%.2f\n", ile(0.75)); tprintf("Max=%.2f Really=%d\n", ile(1.0), max); tprintf("Range=%d\n", max + 1 - min); tprintf("Mean= %.2f\n", mean()); tprintf("SD= %.2f\n", sd()); } /********************************************************************** * STATS::plot * * Draw a histogram of the stats table. **********************************************************************/ #ifndef GRAPHICS_DISABLED void STATS::plot(ScrollView* window, // to draw in float xorigin, // bottom left float yorigin, float xscale, // one x unit float yscale, // one y unit ScrollView::Color colour) const { // colour to draw in if (buckets_ == NULL) { return; } window->Pen(colour); for (int index = 0; index < rangemax_ - rangemin_; index++) { window->Rectangle( xorigin + xscale * index, yorigin, xorigin + xscale * (index + 1), yorigin + yscale * buckets_[index]); } } #endif /********************************************************************** * STATS::plotline * * Draw a histogram of the stats table. (Line only) **********************************************************************/ #ifndef GRAPHICS_DISABLED void STATS::plotline(ScrollView* window, // to draw in float xorigin, // bottom left float yorigin, float xscale, // one x unit float yscale, // one y unit ScrollView::Color colour) const { // colour to draw in if (buckets_ == NULL) { return; } window->Pen(colour); window->SetCursor(xorigin, yorigin + yscale * buckets_[0]); for (int index = 0; index < rangemax_ - rangemin_; index++) { window->DrawTo(xorigin + xscale * index, yorigin + yscale * buckets_[index]); } } #endif /********************************************************************** * choose_nth_item * * Returns the index of what would b the nth item in the array * if the members were sorted, without actually sorting. **********************************************************************/ inT32 choose_nth_item(inT32 index, float *array, inT32 count) { inT32 next_sample; // next one to do inT32 next_lesser; // space for new inT32 prev_greater; // last one saved inT32 equal_count; // no of equal ones float pivot; // proposed median float sample; // current sample if (count <= 1) return 0; if (count == 2) { if (array[0] < array[1]) { return index >= 1 ? 1 : 0; } else { return index >= 1 ? 0 : 1; } } else { if (index < 0) index = 0; // ensure legal else if (index >= count) index = count - 1; equal_count = (inT32) (rand() % count); pivot = array[equal_count]; // fill gap array[equal_count] = array[0]; next_lesser = 0; prev_greater = count; equal_count = 1; for (next_sample = 1; next_sample < prev_greater;) { sample = array[next_sample]; if (sample < pivot) { // shuffle array[next_lesser++] = sample; next_sample++; } else if (sample > pivot) { prev_greater--; // juggle array[next_sample] = array[prev_greater]; array[prev_greater] = sample; } else { equal_count++; next_sample++; } } for (next_sample = next_lesser; next_sample < prev_greater;) array[next_sample++] = pivot; if (index < next_lesser) return choose_nth_item (index, array, next_lesser); else if (index < prev_greater) return next_lesser; // in equal bracket else return choose_nth_item (index - prev_greater, array + prev_greater, count - prev_greater) + prev_greater; } } /********************************************************************** * choose_nth_item * * Returns the index of what would be the nth item in the array * if the members were sorted, without actually sorting. **********************************************************************/ inT32 choose_nth_item(inT32 index, void *array, inT32 count, size_t size, int (*compar)(const void*, const void*)) { int result; // of compar inT32 next_sample; // next one to do inT32 next_lesser; // space for new inT32 prev_greater; // last one saved inT32 equal_count; // no of equal ones inT32 pivot; // proposed median if (count <= 1) return 0; if (count == 2) { if (compar (array, (char *) array + size) < 0) { return index >= 1 ? 1 : 0; } else { return index >= 1 ? 0 : 1; } } if (index < 0) index = 0; // ensure legal else if (index >= count) index = count - 1; pivot = (inT32) (rand () % count); swap_entries (array, size, pivot, 0); next_lesser = 0; prev_greater = count; equal_count = 1; for (next_sample = 1; next_sample < prev_greater;) { result = compar ((char *) array + size * next_sample, (char *) array + size * next_lesser); if (result < 0) { swap_entries (array, size, next_lesser++, next_sample++); // shuffle } else if (result > 0) { prev_greater--; swap_entries(array, size, prev_greater, next_sample); } else { equal_count++; next_sample++; } } if (index < next_lesser) return choose_nth_item (index, array, next_lesser, size, compar); else if (index < prev_greater) return next_lesser; // in equal bracket else return choose_nth_item (index - prev_greater, (char *) array + size * prev_greater, count - prev_greater, size, compar) + prev_greater; } /********************************************************************** * swap_entries * * Swap 2 entries of arbitrary size in-place in a table. **********************************************************************/ void swap_entries(void *array, // array of entries size_t size, // size of entry inT32 index1, // entries to swap inT32 index2) { char tmp; char *ptr1; // to entries char *ptr2; size_t count; // of bytes ptr1 = reinterpret_cast<char*>(array) + index1 * size; ptr2 = reinterpret_cast<char*>(array) + index2 * size; for (count = 0; count < size; count++) { tmp = *ptr1; *ptr1++ = *ptr2; *ptr2++ = tmp; // tedious! } }
C++
/********************************************************************** * File: rejctmap.h (Formerly rejmap.h) * Description: REJ and REJMAP class functions. * Author: Phil Cheatle * Created: Thu Jun 9 13:46:38 BST 1994 * * (C) Copyright 1994, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * This module may look unneccessarily verbose, but here's the philosophy... ALL processing of the reject map is done in this module. There are lots of separate calls to set reject/accept flags. These have DELIBERATELY been kept distinct so that this module can decide what to do. Basically, there is a flag for each sort of rejection or acceptance. This provides a history of what has happened to EACH character. Determining whether a character is CURRENTLY rejected depends on implicit understanding of the SEQUENCE of possible calls. The flags are defined and grouped in the REJ_FLAGS enum. These groupings are used in determining a characters CURRENT rejection status. Basically, a character is ACCEPTED if none of the permanent rej flags are set AND ( the character has never been rejected OR an accept flag is set which is LATER than the latest reject flag ) IT IS FUNDAMENTAL THAT ANYONE HACKING THIS CODE UNDERSTANDS THE SIGNIFICANCE OF THIS IMPLIED TEMPORAL ORDERING OF THE FLAGS!!!! **********************************************************************/ #ifndef REJCTMAP_H #define REJCTMAP_H #ifdef __UNIX__ #include <assert.h> #endif #include "memry.h" #include "bits16.h" #include "params.h" enum REJ_FLAGS { /* Reject modes which are NEVER overridden */ R_TESS_FAILURE, // PERM Tess didnt classify R_SMALL_XHT, // PERM Xht too small R_EDGE_CHAR, // PERM Too close to edge of image R_1IL_CONFLICT, // PERM 1Il confusion R_POSTNN_1IL, // PERM 1Il unrejected by NN R_REJ_CBLOB, // PERM Odd blob R_MM_REJECT, // PERM Matrix match rejection (m's) R_BAD_REPETITION, // TEMP Repeated char which doesn't match trend /* Initial reject modes (pre NN_ACCEPT) */ R_POOR_MATCH, // TEMP Ray's original heuristic (Not used) R_NOT_TESS_ACCEPTED, // TEMP Tess didnt accept WERD R_CONTAINS_BLANKS, // TEMP Tess failed on other chs in WERD R_BAD_PERMUTER, // POTENTIAL Bad permuter for WERD /* Reject modes generated after NN_ACCEPT but before MM_ACCEPT */ R_HYPHEN, // TEMP Post NN dodgy hyphen or full stop R_DUBIOUS, // TEMP Post NN dodgy chars R_NO_ALPHANUMS, // TEMP No alphanumerics in word after NN R_MOSTLY_REJ, // TEMP Most of word rejected so rej the rest R_XHT_FIXUP, // TEMP Xht tests unsure /* Reject modes generated after MM_ACCEPT but before QUALITY_ACCEPT */ R_BAD_QUALITY, // TEMP Quality metrics bad for WERD /* Reject modes generated after QUALITY_ACCEPT but before MINIMAL_REJ accep*/ R_DOC_REJ, // TEMP Document rejection R_BLOCK_REJ, // TEMP Block rejection R_ROW_REJ, // TEMP Row rejection R_UNLV_REJ, // TEMP ~ turned to - or ^ turned to space /* Accept modes which occur inbetween the above rejection groups */ R_NN_ACCEPT, //NN acceptance R_HYPHEN_ACCEPT, //Hyphen acceptance R_MM_ACCEPT, //Matrix match acceptance R_QUALITY_ACCEPT, //Accept word in good quality doc R_MINIMAL_REJ_ACCEPT //Accept EVERYTHING except tess failures }; /* REJECT MAP VALUES */ #define MAP_ACCEPT '1' #define MAP_REJECT_PERM '0' #define MAP_REJECT_TEMP '2' #define MAP_REJECT_POTENTIAL '3' class REJ { BITS16 flags1; BITS16 flags2; void set_flag(REJ_FLAGS rej_flag) { if (rej_flag < 16) flags1.turn_on_bit (rej_flag); else flags2.turn_on_bit (rej_flag - 16); } BOOL8 rej_before_nn_accept(); BOOL8 rej_between_nn_and_mm(); BOOL8 rej_between_mm_and_quality_accept(); BOOL8 rej_between_quality_and_minimal_rej_accept(); BOOL8 rej_before_mm_accept(); BOOL8 rej_before_quality_accept(); public: REJ() { //constructor } REJ( //classwise copy const REJ &source) { flags1 = source.flags1; flags2 = source.flags2; } REJ & operator= ( //assign REJ const REJ & source) { //from this flags1 = source.flags1; flags2 = source.flags2; return *this; } BOOL8 flag(REJ_FLAGS rej_flag) { if (rej_flag < 16) return flags1.bit (rej_flag); else return flags2.bit (rej_flag - 16); } char display_char() { if (perm_rejected ()) return MAP_REJECT_PERM; else if (accept_if_good_quality ()) return MAP_REJECT_POTENTIAL; else if (rejected ()) return MAP_REJECT_TEMP; else return MAP_ACCEPT; } BOOL8 perm_rejected(); //Is char perm reject? BOOL8 rejected(); //Is char rejected? BOOL8 accepted() { //Is char accepted? return !rejected (); } //potential rej? BOOL8 accept_if_good_quality(); BOOL8 recoverable() { return (rejected () && !perm_rejected ()); } void setrej_tess_failure(); //Tess generated blank void setrej_small_xht(); //Small xht char/wd void setrej_edge_char(); //Close to image edge void setrej_1Il_conflict(); //Initial reject map void setrej_postNN_1Il(); //1Il after NN void setrej_rej_cblob(); //Insert duff blob void setrej_mm_reject(); //Matrix matcher //Odd repeated char void setrej_bad_repetition(); void setrej_poor_match(); //Failed Rays heuristic //TEMP reject_word void setrej_not_tess_accepted(); //TEMP reject_word void setrej_contains_blanks(); void setrej_bad_permuter(); //POTENTIAL reject_word void setrej_hyphen(); //PostNN dubious hyph or . void setrej_dubious(); //PostNN dubious limit void setrej_no_alphanums(); //TEMP reject_word void setrej_mostly_rej(); //TEMP reject_word void setrej_xht_fixup(); //xht fixup void setrej_bad_quality(); //TEMP reject_word void setrej_doc_rej(); //TEMP reject_word void setrej_block_rej(); //TEMP reject_word void setrej_row_rej(); //TEMP reject_word void setrej_unlv_rej(); //TEMP reject_word void setrej_nn_accept(); //NN Flipped a char void setrej_hyphen_accept(); //Good aspect ratio void setrej_mm_accept(); //Matrix matcher //Quality flip a char void setrej_quality_accept(); //Accept all except blank void setrej_minimal_rej_accept(); void full_print(FILE *fp); }; class REJMAP { REJ *ptr; //ptr to the chars inT16 len; //Number of chars public: REJMAP() { //constructor ptr = NULL; len = 0; } REJMAP( //classwise copy const REJMAP &rejmap); REJMAP & operator= ( //assign REJMAP const REJMAP & source); //from this ~REJMAP () { //destructor if (ptr != NULL) free_struct (ptr, len * sizeof (REJ), "REJ"); } void initialise( //Redefine map inT16 length); REJ & operator[]( //access function inT16 index) const //map index { ASSERT_HOST (index < len); return ptr[index]; //no bounds checks } inT32 length() const { //map length return len; } inT16 accept_count(); //How many accepted? inT16 reject_count() { //How many rejects? return len - accept_count (); } void remove_pos( //Cut out an element inT16 pos); //element to remove void print(FILE *fp); void full_print(FILE *fp); BOOL8 recoverable_rejects(); //Any non perm rejs? BOOL8 quality_recoverable_rejects(); //Any potential rejs? void rej_word_small_xht(); //Reject whole word //Reject whole word void rej_word_tess_failure(); void rej_word_not_tess_accepted(); //Reject whole word //Reject whole word void rej_word_contains_blanks(); //Reject whole word void rej_word_bad_permuter(); void rej_word_xht_fixup(); //Reject whole word //Reject whole word void rej_word_no_alphanums(); void rej_word_mostly_rej(); //Reject whole word void rej_word_bad_quality(); //Reject whole word void rej_word_doc_rej(); //Reject whole word void rej_word_block_rej(); //Reject whole word void rej_word_row_rej(); //Reject whole word }; #endif
C++
/********************************************************************** * File: ratngs.cpp (Formerly ratings.c) * Description: Code to manipulate the BLOB_CHOICE and WERD_CHOICE classes. * Author: Ray Smith * Created: Thu Apr 23 13:23:29 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #include "ratngs.h" #include "blobs.h" #include "callcpp.h" #include "genericvector.h" #include "matrix.h" #include "normalis.h" // kBlnBaselineOffset. #include "unicharset.h" using tesseract::ScriptPos; ELISTIZE(BLOB_CHOICE); ELISTIZE(WERD_CHOICE); const float WERD_CHOICE::kBadRating = 100000.0; // Min offset in baseline-normalized coords to make a character a subscript. const int kMinSubscriptOffset = 20; // Min offset in baseline-normalized coords to make a character a superscript. const int kMinSuperscriptOffset = 20; // Max y of bottom of a drop-cap blob. const int kMaxDropCapBottom = -128; // Max fraction of x-height to use as denominator in measuring x-height overlap. const double kMaxOverlapDenominator = 0.125; // Min fraction of x-height range that should be in agreement for matching // x-heights. const double kMinXHeightMatch = 0.5; // Max tolerance on baseline position as a fraction of x-height for matching // baselines. const double kMaxBaselineDrift = 0.0625; static const char kPermuterTypeNoPerm[] = "None"; static const char kPermuterTypePuncPerm[] = "Punctuation"; static const char kPermuterTypeTopPerm[] = "Top Choice"; static const char kPermuterTypeLowerPerm[] = "Top Lower Case"; static const char kPermuterTypeUpperPerm[] = "Top Upper Case"; static const char kPermuterTypeNgramPerm[] = "Ngram"; static const char kPermuterTypeNumberPerm[] = "Number"; static const char kPermuterTypeUserPatPerm[] = "User Pattern"; static const char kPermuterTypeSysDawgPerm[] = "System Dictionary"; static const char kPermuterTypeDocDawgPerm[] = "Document Dictionary"; static const char kPermuterTypeUserDawgPerm[] = "User Dictionary"; static const char kPermuterTypeFreqDawgPerm[] = "Frequent Words Dictionary"; static const char kPermuterTypeCompoundPerm[] = "Compound"; static const char * const kPermuterTypeNames[] = { kPermuterTypeNoPerm, // 0 kPermuterTypePuncPerm, // 1 kPermuterTypeTopPerm, // 2 kPermuterTypeLowerPerm, // 3 kPermuterTypeUpperPerm, // 4 kPermuterTypeNgramPerm, // 5 kPermuterTypeNumberPerm, // 6 kPermuterTypeUserPatPerm, // 7 kPermuterTypeSysDawgPerm, // 8 kPermuterTypeDocDawgPerm, // 9 kPermuterTypeUserDawgPerm, // 10 kPermuterTypeFreqDawgPerm, // 11 kPermuterTypeCompoundPerm // 12 }; /** * BLOB_CHOICE::BLOB_CHOICE * * Constructor to build a BLOB_CHOICE from a char, rating and certainty. */ BLOB_CHOICE::BLOB_CHOICE(UNICHAR_ID src_unichar_id, // character id float src_rating, // rating float src_cert, // certainty inT16 src_fontinfo_id, // font inT16 src_fontinfo_id2, // 2nd choice font int src_script_id, // script float min_xheight, // min xheight allowed float max_xheight, // max xheight by this char float yshift, // yshift out of position BlobChoiceClassifier c) { // adapted match or other unichar_id_ = src_unichar_id; rating_ = src_rating; certainty_ = src_cert; fontinfo_id_ = src_fontinfo_id; fontinfo_id2_ = src_fontinfo_id2; script_id_ = src_script_id; min_xheight_ = min_xheight; max_xheight_ = max_xheight; yshift_ = yshift; classifier_ = c; } /** * BLOB_CHOICE::BLOB_CHOICE * * Constructor to build a BLOB_CHOICE from another BLOB_CHOICE. */ BLOB_CHOICE::BLOB_CHOICE(const BLOB_CHOICE &other) { unichar_id_ = other.unichar_id(); rating_ = other.rating(); certainty_ = other.certainty(); fontinfo_id_ = other.fontinfo_id(); fontinfo_id2_ = other.fontinfo_id2(); script_id_ = other.script_id(); matrix_cell_ = other.matrix_cell_; min_xheight_ = other.min_xheight_; max_xheight_ = other.max_xheight_; yshift_ = other.yshift(); classifier_ = other.classifier_; } // Returns true if *this and other agree on the baseline and x-height // to within some tolerance based on a given estimate of the x-height. bool BLOB_CHOICE::PosAndSizeAgree(const BLOB_CHOICE& other, float x_height, bool debug) const { double baseline_diff = fabs(yshift() - other.yshift()); if (baseline_diff > kMaxBaselineDrift * x_height) { if (debug) { tprintf("Baseline diff %g for %d v %d\n", baseline_diff, unichar_id_, other.unichar_id_); } return false; } double this_range = max_xheight() - min_xheight(); double other_range = other.max_xheight() - other.min_xheight(); double denominator = ClipToRange(MIN(this_range, other_range), 1.0, kMaxOverlapDenominator * x_height); double overlap = MIN(max_xheight(), other.max_xheight()) - MAX(min_xheight(), other.min_xheight()); overlap /= denominator; if (debug) { tprintf("PosAndSize for %d v %d: bl diff = %g, ranges %g, %g / %g ->%g\n", unichar_id_, other.unichar_id_, baseline_diff, this_range, other_range, denominator, overlap); } return overlap >= kMinXHeightMatch; } // Helper to find the BLOB_CHOICE in the bc_list that matches the given // unichar_id, or NULL if there is no match. BLOB_CHOICE* FindMatchingChoice(UNICHAR_ID char_id, BLOB_CHOICE_LIST* bc_list) { // Find the corresponding best BLOB_CHOICE. BLOB_CHOICE_IT choice_it(bc_list); for (choice_it.mark_cycle_pt(); !choice_it.cycled_list(); choice_it.forward()) { BLOB_CHOICE* choice = choice_it.data(); if (choice->unichar_id() == char_id) { return choice; } } return NULL; } const char *WERD_CHOICE::permuter_name(uinT8 permuter) { return kPermuterTypeNames[permuter]; } namespace tesseract { const char *ScriptPosToString(enum ScriptPos script_pos) { switch (script_pos) { case SP_NORMAL: return "NORM"; case SP_SUBSCRIPT: return "SUB"; case SP_SUPERSCRIPT: return "SUPER"; case SP_DROPCAP: return "DROPC"; } return "SP_UNKNOWN"; } } // namespace tesseract. /** * WERD_CHOICE::WERD_CHOICE * * Constructor to build a WERD_CHOICE from the given string. * The function assumes that src_string is not NULL. */ WERD_CHOICE::WERD_CHOICE(const char *src_string, const UNICHARSET &unicharset) : unicharset_(&unicharset){ GenericVector<UNICHAR_ID> encoding; GenericVector<char> lengths; if (unicharset.encode_string(src_string, true, &encoding, &lengths, NULL)) { lengths.push_back('\0'); STRING src_lengths = &lengths[0]; this->init(src_string, src_lengths.string(), 0.0, 0.0, NO_PERM); } else { // There must have been an invalid unichar in the string. this->init(8); this->make_bad(); } } /** * WERD_CHOICE::init * * Helper function to build a WERD_CHOICE from the given string, * fragment lengths, rating, certainty and permuter. * * The function assumes that src_string is not NULL. * src_lengths argument could be NULL, in which case the unichars * in src_string are assumed to all be of length 1. */ void WERD_CHOICE::init(const char *src_string, const char *src_lengths, float src_rating, float src_certainty, uinT8 src_permuter) { int src_string_len = strlen(src_string); if (src_string_len == 0) { this->init(8); } else { this->init(src_lengths ? strlen(src_lengths): src_string_len); length_ = reserved_; int offset = 0; for (int i = 0; i < length_; ++i) { int unichar_length = src_lengths ? src_lengths[i] : 1; unichar_ids_[i] = unicharset_->unichar_to_id(src_string+offset, unichar_length); state_[i] = 1; certainties_[i] = src_certainty; offset += unichar_length; } } adjust_factor_ = 1.0f; rating_ = src_rating; certainty_ = src_certainty; permuter_ = src_permuter; dangerous_ambig_found_ = false; } /** * WERD_CHOICE::~WERD_CHOICE */ WERD_CHOICE::~WERD_CHOICE() { delete[] unichar_ids_; delete[] script_pos_; delete[] state_; delete[] certainties_; } const char *WERD_CHOICE::permuter_name() const { return kPermuterTypeNames[permuter_]; } // Returns the BLOB_CHOICE_LIST corresponding to the given index in the word, // taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. BLOB_CHOICE_LIST* WERD_CHOICE::blob_choices(int index, MATRIX* ratings) const { MATRIX_COORD coord = MatrixCoord(index); BLOB_CHOICE_LIST* result = ratings->get(coord.col, coord.row); if (result == NULL) { result = new BLOB_CHOICE_LIST; ratings->put(coord.col, coord.row, result); } return result; } // Returns the MATRIX_COORD corresponding to the location in the ratings // MATRIX for the given index into the word. MATRIX_COORD WERD_CHOICE::MatrixCoord(int index) const { int col = 0; for (int i = 0; i < index; ++i) col += state_[i]; int row = col + state_[index] - 1; return MATRIX_COORD(col, row); } // Sets the entries for the given index from the BLOB_CHOICE, assuming // unit fragment lengths, but setting the state for this index to blob_count. void WERD_CHOICE::set_blob_choice(int index, int blob_count, const BLOB_CHOICE* blob_choice) { unichar_ids_[index] = blob_choice->unichar_id(); script_pos_[index] = tesseract::SP_NORMAL; state_[index] = blob_count; certainties_[index] = blob_choice->certainty(); } /** * contains_unichar_id * * Returns true if unichar_ids_ contain the given unichar_id, false otherwise. */ bool WERD_CHOICE::contains_unichar_id(UNICHAR_ID unichar_id) const { for (int i = 0; i < length_; ++i) { if (unichar_ids_[i] == unichar_id) { return true; } } return false; } /** * remove_unichar_ids * * Removes num unichar ids starting from index start from unichar_ids_ * and updates length_ and fragment_lengths_ to reflect this change. * Note: this function does not modify rating_ and certainty_. */ void WERD_CHOICE::remove_unichar_ids(int start, int num) { ASSERT_HOST(start >= 0 && start + num <= length_); // Accumulate the states to account for the merged blobs. for (int i = 0; i < num; ++i) { if (start > 0) state_[start - 1] += state_[start + i]; else if (start + num < length_) state_[start + num] += state_[start + i]; } for (int i = start; i + num < length_; ++i) { unichar_ids_[i] = unichar_ids_[i + num]; script_pos_[i] = script_pos_[i + num]; state_[i] = state_[i + num]; certainties_[i] = certainties_[i + num]; } length_ -= num; } /** * reverse_and_mirror_unichar_ids * * Reverses and mirrors unichars in unichar_ids. */ void WERD_CHOICE::reverse_and_mirror_unichar_ids() { for (int i = 0; i < length_ / 2; ++i) { UNICHAR_ID tmp_id = unichar_ids_[i]; unichar_ids_[i] = unicharset_->get_mirror(unichar_ids_[length_-1-i]); unichar_ids_[length_-1-i] = unicharset_->get_mirror(tmp_id); } if (length_ % 2 != 0) { unichar_ids_[length_/2] = unicharset_->get_mirror(unichar_ids_[length_/2]); } } /** * punct_stripped * * Returns the half-open interval of unichar_id indices [start, end) which * enclose the core portion of this word -- the part after stripping * punctuation from the left and right. */ void WERD_CHOICE::punct_stripped(int *start, int *end) const { *start = 0; *end = length() - 1; while (*start < length() && unicharset()->get_ispunctuation(unichar_id(*start))) { (*start)++; } while (*end > -1 && unicharset()->get_ispunctuation(unichar_id(*end))) { (*end)--; } (*end)++; } void WERD_CHOICE::GetNonSuperscriptSpan(int *pstart, int *pend) const { int end = length(); while (end > 0 && unicharset_->get_isdigit(unichar_ids_[end - 1]) && BlobPosition(end - 1) == tesseract::SP_SUPERSCRIPT) { end--; } int start = 0; while (start < end && unicharset_->get_isdigit(unichar_ids_[start]) && BlobPosition(start) == tesseract::SP_SUPERSCRIPT) { start++; } *pstart = start; *pend = end; } WERD_CHOICE WERD_CHOICE::shallow_copy(int start, int end) const { ASSERT_HOST(start >= 0 && start <= length_); ASSERT_HOST(end >= 0 && end <= length_); if (end < start) { end = start; } WERD_CHOICE retval(unicharset_, end - start); for (int i = start; i < end; i++) { retval.append_unichar_id_space_allocated( unichar_ids_[i], state_[i], 0.0f, certainties_[i]); } return retval; } /** * has_rtl_unichar_id * * Returns true if unichar_ids contain at least one "strongly" RTL unichar. */ bool WERD_CHOICE::has_rtl_unichar_id() const { int i; for (i = 0; i < length_; ++i) { UNICHARSET::Direction dir = unicharset_->get_direction(unichar_ids_[i]); if (dir == UNICHARSET::U_RIGHT_TO_LEFT || dir == UNICHARSET::U_RIGHT_TO_LEFT_ARABIC) { return true; } } return false; } /** * string_and_lengths * * Populates the given word_str with unichars from unichar_ids and * and word_lengths_str with the corresponding unichar lengths. */ void WERD_CHOICE::string_and_lengths(STRING *word_str, STRING *word_lengths_str) const { *word_str = ""; if (word_lengths_str != NULL) *word_lengths_str = ""; for (int i = 0; i < length_; ++i) { const char *ch = unicharset_->id_to_unichar_ext(unichar_ids_[i]); *word_str += ch; if (word_lengths_str != NULL) { *word_lengths_str += strlen(ch); } } } /** * append_unichar_id * * Make sure there is enough space in the word for the new unichar id * and call append_unichar_id_space_allocated(). */ void WERD_CHOICE::append_unichar_id( UNICHAR_ID unichar_id, int blob_count, float rating, float certainty) { if (length_ == reserved_) { this->double_the_size(); } this->append_unichar_id_space_allocated(unichar_id, blob_count, rating, certainty); } /** * WERD_CHOICE::operator+= * * Cat a second word rating on the end of this current one. * The ratings are added and the confidence is the min. * If the permuters are NOT the same the permuter is set to COMPOUND_PERM */ WERD_CHOICE & WERD_CHOICE::operator+= (const WERD_CHOICE & second) { ASSERT_HOST(unicharset_ == second.unicharset_); while (reserved_ < length_ + second.length()) { this->double_the_size(); } const UNICHAR_ID *other_unichar_ids = second.unichar_ids(); for (int i = 0; i < second.length(); ++i) { unichar_ids_[length_ + i] = other_unichar_ids[i]; state_[length_ + i] = second.state_[i]; certainties_[length_ + i] = second.certainties_[i]; script_pos_[length_ + i] = second.BlobPosition(i); } length_ += second.length(); if (second.adjust_factor_ > adjust_factor_) adjust_factor_ = second.adjust_factor_; rating_ += second.rating(); // add ratings if (second.certainty() < certainty_) // take min certainty_ = second.certainty(); if (second.dangerous_ambig_found_) dangerous_ambig_found_ = true; if (permuter_ == NO_PERM) { permuter_ = second.permuter(); } else if (second.permuter() != NO_PERM && second.permuter() != permuter_) { permuter_ = COMPOUND_PERM; } return *this; } /** * WERD_CHOICE::operator= * * Allocate enough memory to hold a copy of source and copy over * all the information from source to this WERD_CHOICE. */ WERD_CHOICE& WERD_CHOICE::operator=(const WERD_CHOICE& source) { while (reserved_ < source.length()) { this->double_the_size(); } unicharset_ = source.unicharset_; const UNICHAR_ID *other_unichar_ids = source.unichar_ids(); for (int i = 0; i < source.length(); ++i) { unichar_ids_[i] = other_unichar_ids[i]; state_[i] = source.state_[i]; certainties_[i] = source.certainties_[i]; script_pos_[i] = source.BlobPosition(i); } length_ = source.length(); adjust_factor_ = source.adjust_factor_; rating_ = source.rating(); certainty_ = source.certainty(); min_x_height_ = source.min_x_height(); max_x_height_ = source.max_x_height(); permuter_ = source.permuter(); dangerous_ambig_found_ = source.dangerous_ambig_found_; return *this; } // Sets up the script_pos_ member using the blobs_list to get the bln // bounding boxes, *this to get the unichars, and this->unicharset // to get the target positions. If small_caps is true, sub/super are not // considered, but dropcaps are. // NOTE: blobs_list should be the chopped_word blobs. (Fully segemented.) void WERD_CHOICE::SetScriptPositions(bool small_caps, TWERD* word) { // Since WERD_CHOICE isn't supposed to depend on a Tesseract, // we don't have easy access to the flags Tesseract stores. Therefore, debug // for this module is hard compiled in. int debug = 0; // Initialize to normal. for (int i = 0; i < length_; ++i) script_pos_[i] = tesseract::SP_NORMAL; if (word->blobs.empty() || word->NumBlobs() != TotalOfStates()) { return; } int position_counts[4]; for (int i = 0; i < 4; i++) { position_counts[i] = 0; } int chunk_index = 0; for (int blob_index = 0; blob_index < length_; ++blob_index, ++chunk_index) { TBLOB* tblob = word->blobs[chunk_index]; int uni_id = unichar_id(blob_index); TBOX blob_box = tblob->bounding_box(); if (state_ != NULL) { for (int i = 1; i < state_[blob_index]; ++i) { ++chunk_index; tblob = word->blobs[chunk_index]; blob_box += tblob->bounding_box(); } } script_pos_[blob_index] = ScriptPositionOf(false, *unicharset_, blob_box, uni_id); if (small_caps && script_pos_[blob_index] != tesseract::SP_DROPCAP) { script_pos_[blob_index] = tesseract::SP_NORMAL; } position_counts[script_pos_[blob_index]]++; } // If almost everything looks like a superscript or subscript, // we most likely just got the baseline wrong. if (position_counts[tesseract::SP_SUBSCRIPT] > 0.75 * length_ || position_counts[tesseract::SP_SUPERSCRIPT] > 0.75 * length_) { if (debug >= 2) { tprintf("Most characters of %s are subscript or superscript.\n" "That seems wrong, so I'll assume we got the baseline wrong\n", unichar_string().string()); } for (int i = 0; i < length_; i++) { ScriptPos sp = script_pos_[i]; if (sp == tesseract::SP_SUBSCRIPT || sp == tesseract::SP_SUPERSCRIPT) { position_counts[sp]--; position_counts[tesseract::SP_NORMAL]++; script_pos_[i] = tesseract::SP_NORMAL; } } } if ((debug >= 1 && position_counts[tesseract::SP_NORMAL] < length_) || debug >= 2) { tprintf("SetScriptPosition on %s\n", unichar_string().string()); int chunk_index = 0; for (int blob_index = 0; blob_index < length_; ++blob_index) { if (debug >= 2 || script_pos_[blob_index] != tesseract::SP_NORMAL) { TBLOB* tblob = word->blobs[chunk_index]; ScriptPositionOf(true, *unicharset_, tblob->bounding_box(), unichar_id(blob_index)); } chunk_index += state_ != NULL ? state_[blob_index] : 1; } } } // Sets the script_pos_ member from some source positions with a given length. void WERD_CHOICE::SetScriptPositions(const tesseract::ScriptPos* positions, int length) { ASSERT_HOST(length == length_); if (positions != script_pos_) { delete [] script_pos_; script_pos_ = new ScriptPos[length]; memcpy(script_pos_, positions, sizeof(positions[0]) * length); } } // Sets all the script_pos_ positions to the given position. void WERD_CHOICE::SetAllScriptPositions(tesseract::ScriptPos position) { for (int i = 0; i < length_; ++i) script_pos_[i] = position; } /* static */ ScriptPos WERD_CHOICE::ScriptPositionOf(bool print_debug, const UNICHARSET& unicharset, const TBOX& blob_box, UNICHAR_ID unichar_id) { ScriptPos retval = tesseract::SP_NORMAL; int top = blob_box.top(); int bottom = blob_box.bottom(); int min_bottom, max_bottom, min_top, max_top; unicharset.get_top_bottom(unichar_id, &min_bottom, &max_bottom, &min_top, &max_top); int sub_thresh_top = min_top - kMinSubscriptOffset; int sub_thresh_bot = kBlnBaselineOffset - kMinSubscriptOffset; int sup_thresh_bot = max_bottom + kMinSuperscriptOffset; if (bottom <= kMaxDropCapBottom) { retval = tesseract::SP_DROPCAP; } else if (top < sub_thresh_top && bottom < sub_thresh_bot) { retval = tesseract::SP_SUBSCRIPT; } else if (bottom > sup_thresh_bot) { retval = tesseract::SP_SUPERSCRIPT; } if (print_debug) { const char *pos = ScriptPosToString(retval); tprintf("%s Character %s[bot:%d top: %d] " "bot_range[%d,%d] top_range[%d, %d] " "sub_thresh[bot:%d top:%d] sup_thresh_bot %d\n", pos, unicharset.id_to_unichar(unichar_id), bottom, top, min_bottom, max_bottom, min_top, max_top, sub_thresh_bot, sub_thresh_top, sup_thresh_bot); } return retval; } // Returns the script-id (eg Han) of the dominant script in the word. int WERD_CHOICE::GetTopScriptID() const { int max_script = unicharset_->get_script_table_size(); int *sid = new int[max_script]; int x; for (x = 0; x < max_script; x++) sid[x] = 0; for (x = 0; x < length_; ++x) { int script_id = unicharset_->get_script(unichar_id(x)); sid[script_id]++; } if (unicharset_->han_sid() != unicharset_->null_sid()) { // Add the Hiragana & Katakana counts to Han and zero them out. if (unicharset_->hiragana_sid() != unicharset_->null_sid()) { sid[unicharset_->han_sid()] += sid[unicharset_->hiragana_sid()]; sid[unicharset_->hiragana_sid()] = 0; } if (unicharset_->katakana_sid() != unicharset_->null_sid()) { sid[unicharset_->han_sid()] += sid[unicharset_->katakana_sid()]; sid[unicharset_->katakana_sid()] = 0; } } // Note that high script ID overrides lower one on a tie, thus biasing // towards non-Common script (if sorted that way in unicharset file). int max_sid = 0; for (x = 1; x < max_script; x++) if (sid[x] >= sid[max_sid]) max_sid = x; if (sid[max_sid] < length_ / 2) max_sid = unicharset_->null_sid(); delete[] sid; return max_sid; } // Fixes the state_ for a chop at the given blob_posiiton. void WERD_CHOICE::UpdateStateForSplit(int blob_position) { int total_chunks = 0; for (int i = 0; i < length_; ++i) { total_chunks += state_[i]; if (total_chunks > blob_position) { ++state_[i]; return; } } } // Returns the sum of all the state elements, being the total number of blobs. int WERD_CHOICE::TotalOfStates() const { int total_chunks = 0; for (int i = 0; i < length_; ++i) { total_chunks += state_[i]; } return total_chunks; } /** * WERD_CHOICE::print * * Print WERD_CHOICE to stdout. */ void WERD_CHOICE::print(const char *msg) const { tprintf("%s : ", msg); for (int i = 0; i < length_; ++i) { tprintf("%s", unicharset_->id_to_unichar(unichar_ids_[i])); } tprintf(" : R=%g, C=%g, F=%g, Perm=%d, xht=[%g,%g], ambig=%d\n", rating_, certainty_, adjust_factor_, permuter_, min_x_height_, max_x_height_, dangerous_ambig_found_); tprintf("pos"); for (int i = 0; i < length_; ++i) { tprintf("\t%s", ScriptPosToString(script_pos_[i])); } tprintf("\nstr"); for (int i = 0; i < length_; ++i) { tprintf("\t%s", unicharset_->id_to_unichar(unichar_ids_[i])); } tprintf("\nstate:"); for (int i = 0; i < length_; ++i) { tprintf("\t%d ", state_[i]); } tprintf("\nC"); for (int i = 0; i < length_; ++i) { tprintf("\t%.3f", certainties_[i]); } tprintf("\n"); } // Prints the segmentation state with an introductory message. void WERD_CHOICE::print_state(const char *msg) const { tprintf("%s", msg); for (int i = 0; i < length_; ++i) tprintf(" %d", state_[i]); tprintf("\n"); } // Displays the segmentation state of *this (if not the same as the last // one displayed) and waits for a click in the window. void WERD_CHOICE::DisplaySegmentation(TWERD* word) { #ifndef GRAPHICS_DISABLED // Number of different colors to draw with. const int kNumColors = 6; static ScrollView *segm_window = NULL; // Check the state against the static prev_drawn_state. static GenericVector<int> prev_drawn_state; bool already_done = prev_drawn_state.size() == length_; if (!already_done) prev_drawn_state.init_to_size(length_, 0); for (int i = 0; i < length_; ++i) { if (prev_drawn_state[i] != state_[i]) { already_done = false; } prev_drawn_state[i] = state_[i]; } if (already_done || word->blobs.empty()) return; // Create the window if needed. if (segm_window == NULL) { segm_window = new ScrollView("Segmentation", 5, 10, 500, 256, 2000.0, 256.0, true); } else { segm_window->Clear(); } TBOX bbox; int blob_index = 0; for (int c = 0; c < length_; ++c) { ScrollView::Color color = static_cast<ScrollView::Color>(c % kNumColors + 3); for (int i = 0; i < state_[c]; ++i, ++blob_index) { TBLOB* blob = word->blobs[blob_index]; bbox += blob->bounding_box(); blob->plot(segm_window, color, color); } } segm_window->ZoomToRectangle(bbox.left(), bbox.top(), bbox.right(), bbox.bottom()); segm_window->Update(); window_wait(segm_window); #endif } bool EqualIgnoringCaseAndTerminalPunct(const WERD_CHOICE &word1, const WERD_CHOICE &word2) { const UNICHARSET *uchset = word1.unicharset(); if (word2.unicharset() != uchset) return false; int w1start, w1end; word1.punct_stripped(&w1start, &w1end); int w2start, w2end; word2.punct_stripped(&w2start, &w2end); if (w1end - w1start != w2end - w2start) return false; for (int i = 0; i < w1end - w1start; i++) { if (uchset->to_lower(word1.unichar_id(w1start + i)) != uchset->to_lower(word2.unichar_id(w2start + i))) { return false; } } return true; } /** * print_ratings_list * * Send all the ratings out to the logfile. * * @param msg intro message * @param ratings list of ratings * @param current_unicharset unicharset that can be used * for id-to-unichar conversion */ void print_ratings_list(const char *msg, BLOB_CHOICE_LIST *ratings, const UNICHARSET &current_unicharset) { if (ratings->length() == 0) { tprintf("%s:<none>\n", msg); return; } if (*msg != '\0') { tprintf("%s\n", msg); } BLOB_CHOICE_IT c_it; c_it.set_to_list(ratings); for (c_it.mark_cycle_pt(); !c_it.cycled_list(); c_it.forward()) { c_it.data()->print(&current_unicharset); if (!c_it.at_last()) tprintf("\n"); } tprintf("\n"); fflush(stdout); }
C++
/********************************************************************** * File: rect.h (Formerly box.h) * Description: Bounding box class definition. * Author: Phil Cheatle * Created: Wed Oct 16 15:18:45 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef RECT_H #define RECT_H #include <math.h> #include "points.h" #include "ndminx.h" #include "scrollview.h" #include "strngs.h" #include "tprintf.h" class DLLSYM TBOX { // bounding box public: TBOX (): // empty constructor making a null box bot_left (MAX_INT16, MAX_INT16), top_right (-MAX_INT16, -MAX_INT16) { } TBOX( // constructor const ICOORD pt1, // one corner const ICOORD pt2); // the other corner TBOX( // constructor inT16 left, inT16 bottom, inT16 right, inT16 top); TBOX( // box around FCOORD const FCOORD pt); bool null_box() const { // Is box null return ((left () >= right ()) || (top () <= bottom ())); } bool operator==(const TBOX& other) const { return bot_left == other.bot_left && top_right == other.top_right; } inT16 top() const { // coord of top return top_right.y (); } void set_top(int y) { top_right.set_y(y); } inT16 bottom() const { // coord of bottom return bot_left.y (); } void set_bottom(int y) { bot_left.set_y(y); } inT16 left() const { // coord of left return bot_left.x (); } void set_left(int x) { bot_left.set_x(x); } inT16 right() const { // coord of right return top_right.x (); } void set_right(int x) { top_right.set_x(x); } int x_middle() const { return (bot_left.x() + top_right.x()) / 2; } int y_middle() const { return (bot_left.y() + top_right.y()) / 2; } const ICOORD &botleft() const { // access function return bot_left; } ICOORD botright() const { // ~ access function return ICOORD (top_right.x (), bot_left.y ()); } ICOORD topleft() const { // ~ access function return ICOORD (bot_left.x (), top_right.y ()); } const ICOORD &topright() const { // access function return top_right; } inT16 height() const { // how high is it? if (!null_box ()) return top_right.y () - bot_left.y (); else return 0; } inT16 width() const { // how high is it? if (!null_box ()) return top_right.x () - bot_left.x (); else return 0; } inT32 area() const { // what is the area? if (!null_box ()) return width () * height (); else return 0; } // Pads the box on either side by the supplied x,y pad amounts. // NO checks for exceeding any bounds like 0 or an image size. void pad(int xpad, int ypad) { ICOORD pad(xpad, ypad); bot_left -= pad; top_right += pad; } void move_bottom_edge( // move one edge const inT16 y) { // by +/- y bot_left += ICOORD (0, y); } void move_left_edge( // move one edge const inT16 x) { // by +/- x bot_left += ICOORD (x, 0); } void move_right_edge( // move one edge const inT16 x) { // by +/- x top_right += ICOORD (x, 0); } void move_top_edge( // move one edge const inT16 y) { // by +/- y top_right += ICOORD (0, y); } void move( // move box const ICOORD vec) { // by vector bot_left += vec; top_right += vec; } void move( // move box const FCOORD vec) { // by float vector bot_left.set_x ((inT16) floor (bot_left.x () + vec.x ())); // round left bot_left.set_y ((inT16) floor (bot_left.y () + vec.y ())); // round down top_right.set_x ((inT16) ceil (top_right.x () + vec.x ())); // round right top_right.set_y ((inT16) ceil (top_right.y () + vec.y ())); // round up } void scale( // scale box const float f) { // by multiplier bot_left.set_x ((inT16) floor (bot_left.x () * f)); // round left bot_left.set_y ((inT16) floor (bot_left.y () * f)); // round down top_right.set_x ((inT16) ceil (top_right.x () * f)); // round right top_right.set_y ((inT16) ceil (top_right.y () * f)); // round up } void scale( // scale box const FCOORD vec) { // by float vector bot_left.set_x ((inT16) floor (bot_left.x () * vec.x ())); bot_left.set_y ((inT16) floor (bot_left.y () * vec.y ())); top_right.set_x ((inT16) ceil (top_right.x () * vec.x ())); top_right.set_y ((inT16) ceil (top_right.y () * vec.y ())); } // rotate doesn't enlarge the box - it just rotates the bottom-left // and top-right corners. Use rotate_large if you want to guarantee // that all content is contained within the rotated box. void rotate(const FCOORD& vec) { // by vector bot_left.rotate (vec); top_right.rotate (vec); *this = TBOX (bot_left, top_right); } // rotate_large constructs the containing bounding box of all 4 // corners after rotating them. It therefore guarantees that all // original content is contained within, but also slightly enlarges the box. void rotate_large(const FCOORD& vec); bool contains( // is pt inside box const FCOORD pt) const; bool contains( // is box inside box const TBOX &box) const; bool overlap( // do boxes overlap const TBOX &box) const; bool major_overlap( // do boxes overlap more than half const TBOX &box) const; // Do boxes overlap on x axis. bool x_overlap(const TBOX &box) const; // Return the horizontal gap between the boxes. If the boxes // overlap horizontally then the return value is negative, indicating // the amount of the overlap. int x_gap(const TBOX& box) const { return MAX(bot_left.x(), box.bot_left.x()) - MIN(top_right.x(), box.top_right.x()); } // Return the vertical gap between the boxes. If the boxes // overlap vertically then the return value is negative, indicating // the amount of the overlap. int y_gap(const TBOX& box) const { return MAX(bot_left.y(), box.bot_left.y()) - MIN(top_right.y(), box.top_right.y()); } // Do boxes overlap on x axis by more than // half of the width of the narrower box. bool major_x_overlap(const TBOX &box) const; // Do boxes overlap on y axis. bool y_overlap(const TBOX &box) const; // Do boxes overlap on y axis by more than // half of the height of the shorter box. bool major_y_overlap(const TBOX &box) const; // fraction of current box's area covered by other double overlap_fraction(const TBOX &box) const; // fraction of the current box's projected area covered by the other's double x_overlap_fraction(const TBOX& box) const; // fraction of the current box's projected area covered by the other's double y_overlap_fraction(const TBOX& box) const; // Returns true if the boxes are almost equal on x axis. bool x_almost_equal(const TBOX &box, int tolerance) const; // Returns true if the boxes are almost equal bool almost_equal(const TBOX &box, int tolerance) const; TBOX intersection( // shared area box const TBOX &box) const; TBOX bounding_union( // box enclosing both const TBOX &box) const; // Sets the box boundaries to the given coordinates. void set_to_given_coords(int x_min, int y_min, int x_max, int y_max) { bot_left.set_x(x_min); bot_left.set_y(y_min); top_right.set_x(x_max); top_right.set_y(y_max); } void print() const { // print tprintf("Bounding box=(%d,%d)->(%d,%d)\n", left(), bottom(), right(), top()); } // Appends the bounding box as (%d,%d)->(%d,%d) to a STRING. void print_to_str(STRING *str) const; #ifndef GRAPHICS_DISABLED void plot( // use current settings ScrollView* fd) const { // where to paint fd->Rectangle(bot_left.x (), bot_left.y (), top_right.x (), top_right.y ()); } void plot( // paint box ScrollView* fd, // where to paint ScrollView::Color fill_colour, // colour for inside ScrollView::Color border_colour) const; // colour for border #endif // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); friend TBOX& operator+=(TBOX&, const TBOX&); // in place union friend TBOX& operator&=(TBOX&, const TBOX&); // in place intersection private: ICOORD bot_left; // bottom left corner ICOORD top_right; // top right corner }; /********************************************************************** * TBOX::TBOX() Constructor from 1 FCOORD * **********************************************************************/ inline TBOX::TBOX( // construtor const FCOORD pt // floating centre ) { bot_left = ICOORD ((inT16) floor (pt.x ()), (inT16) floor (pt.y ())); top_right = ICOORD ((inT16) ceil (pt.x ()), (inT16) ceil (pt.y ())); } /********************************************************************** * TBOX::contains() Is point within box * **********************************************************************/ inline bool TBOX::contains(const FCOORD pt) const { return ((pt.x () >= bot_left.x ()) && (pt.x () <= top_right.x ()) && (pt.y () >= bot_left.y ()) && (pt.y () <= top_right.y ())); } /********************************************************************** * TBOX::contains() Is box within box * **********************************************************************/ inline bool TBOX::contains(const TBOX &box) const { return (contains (box.bot_left) && contains (box.top_right)); } /********************************************************************** * TBOX::overlap() Do two boxes overlap? * **********************************************************************/ inline bool TBOX::overlap( // do boxes overlap const TBOX &box) const { return ((box.bot_left.x () <= top_right.x ()) && (box.top_right.x () >= bot_left.x ()) && (box.bot_left.y () <= top_right.y ()) && (box.top_right.y () >= bot_left.y ())); } /********************************************************************** * TBOX::major_overlap() Do two boxes overlap by at least half of the smallest? * **********************************************************************/ inline bool TBOX::major_overlap( // Do boxes overlap more that half. const TBOX &box) const { int overlap = MIN(box.top_right.x(), top_right.x()); overlap -= MAX(box.bot_left.x(), bot_left.x()); overlap += overlap; if (overlap < MIN(box.width(), width())) return false; overlap = MIN(box.top_right.y(), top_right.y()); overlap -= MAX(box.bot_left.y(), bot_left.y()); overlap += overlap; if (overlap < MIN(box.height(), height())) return false; return true; } /********************************************************************** * TBOX::overlap_fraction() Fraction of area covered by the other box * **********************************************************************/ inline double TBOX::overlap_fraction(const TBOX &box) const { double fraction = 0.0; if (this->area()) { fraction = this->intersection(box).area() * 1.0 / this->area(); } return fraction; } /********************************************************************** * TBOX::x_overlap() Do two boxes overlap on x-axis * **********************************************************************/ inline bool TBOX::x_overlap(const TBOX &box) const { return ((box.bot_left.x() <= top_right.x()) && (box.top_right.x() >= bot_left.x())); } /********************************************************************** * TBOX::major_x_overlap() Do two boxes overlap by more than half the * width of the narrower box on the x-axis * **********************************************************************/ inline bool TBOX::major_x_overlap(const TBOX &box) const { inT16 overlap = box.width(); if (this->left() > box.left()) { overlap -= this->left() - box.left(); } if (this->right() < box.right()) { overlap -= box.right() - this->right(); } return (overlap >= box.width() / 2 || overlap >= this->width() / 2); } /********************************************************************** * TBOX::y_overlap() Do two boxes overlap on y-axis * **********************************************************************/ inline bool TBOX::y_overlap(const TBOX &box) const { return ((box.bot_left.y() <= top_right.y()) && (box.top_right.y() >= bot_left.y())); } /********************************************************************** * TBOX::major_y_overlap() Do two boxes overlap by more than half the * height of the shorter box on the y-axis * **********************************************************************/ inline bool TBOX::major_y_overlap(const TBOX &box) const { inT16 overlap = box.height(); if (this->bottom() > box.bottom()) { overlap -= this->bottom() - box.bottom(); } if (this->top() < box.top()) { overlap -= box.top() - this->top(); } return (overlap >= box.height() / 2 || overlap >= this->height() / 2); } /********************************************************************** * TBOX::x_overlap_fraction() Calculates the horizontal overlap of the * given boxes as a fraction of this boxes * width. * **********************************************************************/ inline double TBOX::x_overlap_fraction(const TBOX& other) const { int low = MAX(left(), other.left()); int high = MIN(right(), other.right()); int width = right() - left(); if (width == 0) { int x = left(); if (other.left() <= x && x <= other.right()) return 1.0; else return 0.0; } else { return MAX(0, static_cast<double>(high - low) / width); } } /********************************************************************** * TBOX::y_overlap_fraction() Calculates the vertical overlap of the * given boxes as a fraction of this boxes * height. * **********************************************************************/ inline double TBOX::y_overlap_fraction(const TBOX& other) const { int low = MAX(bottom(), other.bottom()); int high = MIN(top(), other.top()); int height = top() - bottom(); if (height == 0) { int y = bottom(); if (other.bottom() <= y && y <= other.top()) return 1.0; else return 0.0; } else { return MAX(0, static_cast<double>(high - low) / height); } } #endif
C++
/********************************************************************** * File: pdblock.h (Formerly pdblk.h) * Description: Page block class definition. * Author: Ray Smith * Created: Thu Mar 14 17:32:01 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef PDBLOCK_H #define PDBLOCK_H #include "clst.h" #include "strngs.h" #include "polyblk.h" class DLLSYM PDBLK; //forward decl struct Pix; CLISTIZEH (PDBLK) ///page block class PDBLK { friend class BLOCK_RECT_IT; //< block iterator public: ///empty constructor PDBLK() { hand_poly = NULL; index_ = 0; } ///simple constructor PDBLK(inT16 xmin, //< bottom left inT16 ymin, inT16 xmax, //< top right inT16 ymax); ///set vertex lists ///@param left list of left vertices ///@param right list of right vertices void set_sides(ICOORDELT_LIST *left, ICOORDELT_LIST *right); ///destructor ~PDBLK () { if (hand_poly) delete hand_poly; } POLY_BLOCK *poly_block() const { return hand_poly; } ///set the poly block void set_poly_block(POLY_BLOCK *blk) { hand_poly = blk; } ///get box void bounding_box(ICOORD &bottom_left, //bottom left ICOORD &top_right) const { //topright bottom_left = box.botleft (); top_right = box.topright (); } ///get real box const TBOX &bounding_box() const { return box; } int index() const { return index_; } void set_index(int value) { index_ = value; } ///is pt inside block BOOL8 contains(ICOORD pt); /// reposition block void move(const ICOORD vec); // by vector // Returns a binary Pix mask with a 1 pixel for every pixel within the // block. Rotates the coordinate system by rerotation prior to rendering. Pix* render_mask(const FCOORD& rerotation); #ifndef GRAPHICS_DISABLED ///draw histogram ///@param window window to draw in ///@param serial serial number ///@param colour colour to draw in void plot(ScrollView* window, inT32 serial, ScrollView::Color colour); #endif // GRAPHICS_DISABLED ///assignment ///@param source from this PDBLK & operator= (const PDBLK & source); protected: POLY_BLOCK *hand_poly; //< wierd as well ICOORDELT_LIST leftside; //< left side vertices ICOORDELT_LIST rightside; //< right side vertices TBOX box; //< bounding box int index_; //< Serial number of this block. }; class DLLSYM BLOCK_RECT_IT //rectangle iterator { public: ///constructor ///@param blkptr block to iterate BLOCK_RECT_IT(PDBLK *blkptr); ///start (new) block void set_to_block ( PDBLK * blkptr); //block to iterate ///start iteration void start_block(); ///next rectangle void forward(); ///test end BOOL8 cycled_rects() { return left_it.cycled_list () && right_it.cycled_list (); } ///current rectangle ///@param bleft bottom left ///@param tright top right void bounding_box(ICOORD &bleft, ICOORD &tright) { //bottom left bleft = ICOORD (left_it.data ()->x (), ymin); //top right tright = ICOORD (right_it.data ()->x (), ymax); } private: inT16 ymin; //< bottom of rectangle inT16 ymax; //< top of rectangle PDBLK *block; //< block to iterate ICOORDELT_IT left_it; //< boundary iterators ICOORDELT_IT right_it; }; ///rectangle iterator class DLLSYM BLOCK_LINE_IT { public: ///constructor ///@param blkptr from block BLOCK_LINE_IT (PDBLK * blkptr) :rect_it (blkptr) { block = blkptr; //remember block } ///start (new) block ///@param blkptr block to start void set_to_block (PDBLK * blkptr) { block = blkptr; //remember block //set iterator rect_it.set_to_block (blkptr); } ///get a line ///@param y line to get ///@param xext output extent inT16 get_line(inT16 y, inT16 &xext); private: PDBLK * block; //< block to iterate BLOCK_RECT_IT rect_it; //< rectangle iterator }; int decreasing_top_order(const void *row1, const void *row2); #endif
C++
/********************************************************************** * File: normalis.h (Formerly denorm.h) * Description: Code for the DENORM class. * Author: Ray Smith * Created: Thu Apr 23 09:22:43 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef NORMALIS_H #define NORMALIS_H #include <stdio.h> #include "genericvector.h" #include "host.h" const int kBlnCellHeight = 256; // Full-height for baseline normalization. const int kBlnXHeight = 128; // x-height for baseline normalization. const int kBlnBaselineOffset = 64; // offset for baseline normalization. struct Pix; class ROW; // Forward decl class BLOCK; class FCOORD; struct TBLOB; class TBOX; struct TPOINT; class UNICHARSET; namespace tesseract { // Possible normalization methods. Use NEGATIVE values as these also // double up as markers for the last sub-classifier. enum NormalizationMode { NM_BASELINE = -3, // The original BL normalization mode. NM_CHAR_ISOTROPIC = -2, // Character normalization but isotropic. NM_CHAR_ANISOTROPIC = -1 // The original CN normalization mode. }; } // namespace tesseract. class DENORM { public: DENORM(); // Copying a DENORM is allowed. DENORM(const DENORM &); DENORM& operator=(const DENORM&); ~DENORM(); // Setup the normalization transformation parameters. // The normalizations applied to a blob are as follows: // 1. An optional block layout rotation that was applied during layout // analysis to make the textlines horizontal. // 2. A normalization transformation (LocalNormTransform): // Subtract the "origin" // Apply an x,y scaling. // Apply an optional rotation. // Add back a final translation. // The origin is in the block-rotated space, and is usually something like // the x-middle of the word at the baseline. // 3. Zero or more further normalization transformations that are applied // in sequence, with a similar pattern to the first normalization transform. // // A DENORM holds the parameters of a single normalization, and can execute // both the LocalNormTransform (a forwards normalization), and the // LocalDenormTransform which is an inverse transform or de-normalization. // A DENORM may point to a predecessor DENORM, which is actually the earlier // normalization, so the full normalization sequence involves executing all // predecessors first and then the transform in "this". // Let x be image co-ordinates and that we have normalization classes A, B, C // where we first apply A then B then C to get normalized x': // x' = CBAx // Then the backwards (to original coordinates) would be: // x = A^-1 B^-1 C^-1 x' // and A = B->predecessor_ and B = C->predecessor_ // NormTransform executes all predecessors recursively, and then this. // NormTransform would be used to transform an image-based feature to // normalized space for use in a classifier // DenormTransform inverts this and then all predecessors. It can be // used to get back to the original image coordinates from normalized space. // The LocalNormTransform member executes just the transformation // in "this" without the layout rotation or any predecessors. It would be // used to run each successive normalization, eg the word normalization, // and later the character normalization. // Arguments: // block: if not NULL, then this is the first transformation, and // block->re_rotation() needs to be used after the Denorm // transformation to get back to the image coords. // rotation: if not NULL, apply this rotation after translation to the // origin and scaling. (Usually a classify rotation.) // predecessor: if not NULL, then predecessor has been applied to the // input space and needs to be undone to complete the inverse. // The above pointers are not owned by this DENORM and are assumed to live // longer than this denorm, except rotation, which is deep copied on input. // // x_origin: The x origin which will be mapped to final_xshift in the result. // y_origin: The y origin which will be mapped to final_yshift in the result. // Added to result of row->baseline(x) if not NULL. // // x_scale: scale factor for the x-coordinate. // y_scale: scale factor for the y-coordinate. Ignored if segs is given. // Note that these scale factors apply to the same x and y system as the // x-origin and y-origin apply, ie after any block rotation, but before // the rotation argument is applied. // // final_xshift: The x component of the final translation. // final_yshift: The y component of the final translation. // // In theory, any of the commonly used normalizations can be setup here: // * Traditional baseline normalization on a word: // SetupNormalization(block, NULL, NULL, // box.x_middle(), baseline, // kBlnXHeight / x_height, kBlnXHeight / x_height, // 0, kBlnBaselineOffset); // * "Numeric mode" baseline normalization on a word, in which the blobs // are positioned with the bottom as the baseline is achieved by making // a separate DENORM for each blob. // SetupNormalization(block, NULL, NULL, // box.x_middle(), box.bottom(), // kBlnXHeight / x_height, kBlnXHeight / x_height, // 0, kBlnBaselineOffset); // * Anisotropic character normalization used by IntFx. // SetupNormalization(NULL, NULL, denorm, // centroid_x, centroid_y, // 51.2 / ry, 51.2 / rx, 128, 128); // * Normalize blob height to x-height (current OSD): // SetupNormalization(NULL, &rotation, NULL, // box.rotational_x_middle(rotation), // box.rotational_y_middle(rotation), // kBlnXHeight / box.rotational_height(rotation), // kBlnXHeight / box.rotational_height(rotation), // 0, kBlnBaselineOffset); // * Secondary normalization for classification rotation (current): // FCOORD rotation = block->classify_rotation(); // float target_height = kBlnXHeight / CCStruct::kXHeightCapRatio; // SetupNormalization(NULL, &rotation, denorm, // box.rotational_x_middle(rotation), // box.rotational_y_middle(rotation), // target_height / box.rotational_height(rotation), // target_height / box.rotational_height(rotation), // 0, kBlnBaselineOffset); // * Proposed new normalizations for CJK: Between them there is then // no need for further normalization at all, and the character fills the cell. // ** Replacement for baseline normalization on a word: // Scales height and width independently so that modal height and pitch // fill the cell respectively. // float cap_height = x_height / CCStruct::kXHeightCapRatio; // SetupNormalization(block, NULL, NULL, // box.x_middle(), cap_height / 2.0f, // kBlnCellHeight / fixed_pitch, // kBlnCellHeight / cap_height, // 0, 0); // ** Secondary normalization for classification (with rotation) (proposed): // Requires a simple translation to the center of the appropriate character // cell, no further scaling and a simple rotation (or nothing) about the // cell center. // FCOORD rotation = block->classify_rotation(); // SetupNormalization(NULL, &rotation, denorm, // fixed_pitch_cell_center, // 0.0f, // 1.0f, // 1.0f, // 0, 0); void SetupNormalization(const BLOCK* block, const FCOORD* rotation, const DENORM* predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift); // Sets up the DENORM to execute a non-linear transformation based on // preserving an even distribution of stroke edges. The transformation // operates only within the given box, scaling input coords within the box // non-linearly to a box of target_width by target_height, with all other // coords being clipped to the box edge. As with SetupNormalization above, // final_xshift and final_yshift are applied after scaling, and the bottom- // left of box is used as a pre-scaling origin. // x_coords is a collection of the x-coords of vertical edges for each // y-coord starting at box.bottom(). // y_coords is a collection of the y-coords of horizontal edges for each // x-coord starting at box.left(). // Eg x_coords[0] is a collection of the x-coords of edges at y=bottom. // Eg x_coords[1] is a collection of the x-coords of edges at y=bottom + 1. // The second-level vectors must all be sorted in ascending order. void SetupNonLinear(const DENORM* predecessor, const TBOX& box, float target_width, float target_height, float final_xshift, float final_yshift, const GenericVector<GenericVector<int> >& x_coords, const GenericVector<GenericVector<int> >& y_coords); // Transforms the given coords one step forward to normalized space, without // using any block rotation or predecessor. void LocalNormTransform(const TPOINT& pt, TPOINT* transformed) const; void LocalNormTransform(const FCOORD& pt, FCOORD* transformed) const; // Transforms the given coords forward to normalized space using the // full transformation sequence defined by the block rotation, the // predecessors, deepest first, and finally this. If first_norm is not NULL, // then the first and deepest transformation used is first_norm, ending // with this, and the block rotation will not be applied. void NormTransform(const DENORM* first_norm, const TPOINT& pt, TPOINT* transformed) const; void NormTransform(const DENORM* first_norm, const FCOORD& pt, FCOORD* transformed) const; // Transforms the given coords one step back to source space, without // using to any block rotation or predecessor. void LocalDenormTransform(const TPOINT& pt, TPOINT* original) const; void LocalDenormTransform(const FCOORD& pt, FCOORD* original) const; // Transforms the given coords all the way back to source image space using // the full transformation sequence defined by this and its predecesors // recursively, shallowest first, and finally any block re_rotation. // If last_denorm is not NULL, then the last transformation used will // be last_denorm, and the block re_rotation will never be executed. void DenormTransform(const DENORM* last_denorm, const TPOINT& pt, TPOINT* original) const; void DenormTransform(const DENORM* last_denorm, const FCOORD& pt, FCOORD* original) const; // Normalize a blob using blob transformations. Less accurate, but // more accurately copies the old way. void LocalNormBlob(TBLOB* blob) const; // Fills in the x-height range accepted by the given unichar_id in blob // coordinates, given its bounding box in the usual baseline-normalized // coordinates, with some initial crude x-height estimate (such as word // size) and this denoting the transformation that was used. // Also returns the amount the character must have shifted up or down. void XHeightRange(int unichar_id, const UNICHARSET& unicharset, const TBOX& bbox, float* min_xht, float* max_xht, float* yshift) const; // Prints the content of the DENORM for debug purposes. void Print() const; Pix* pix() const { return pix_; } void set_pix(Pix* pix) { pix_ = pix; } bool inverse() const { return inverse_; } void set_inverse(bool value) { inverse_ = value; } const DENORM* RootDenorm() const { if (predecessor_ != NULL) return predecessor_->RootDenorm(); return this; } const DENORM* predecessor() const { return predecessor_; } // Accessors - perhaps should not be needed. float x_scale() const { return x_scale_; } float y_scale() const { return y_scale_; } const BLOCK* block() const { return block_; } void set_block(const BLOCK* block) { block_ = block; } private: // Free allocated memory and clear pointers. void Clear(); // Setup default values. void Init(); // Best available image. Pix* pix_; // True if the source image is white-on-black. bool inverse_; // Block the word came from. If not null, block->re_rotation() takes the // "untransformed" coordinates even further back to the original image. // Used only on the first DENORM in a chain. const BLOCK* block_; // Rotation to apply between translation to the origin and scaling. const FCOORD* rotation_; // Previous transformation in a chain. const DENORM* predecessor_; // Non-linear transformation maps directly from each integer offset from the // origin to the corresponding x-coord. Owned by the DENORM. GenericVector<float>* x_map_; // Non-linear transformation maps directly from each integer offset from the // origin to the corresponding y-coord. Owned by the DENORM. GenericVector<float>* y_map_; // x-coordinate to be mapped to final_xshift_ in the result. float x_origin_; // y-coordinate to be mapped to final_yshift_ in the result. float y_origin_; // Scale factors for x and y coords. Applied to pre-rotation system. float x_scale_; float y_scale_; // Destination coords of the x_origin_ and y_origin_. float final_xshift_; float final_yshift_; }; #endif
C++
///////////////////////////////////////////////////////////////////// // File: ocrpara.h // Description: OCR Paragraph Output Type // Author: David Eger // Created: 2010-11-15 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include <stdio.h> #include "ocrpara.h" #include "host.h" // For NearlyEqual() ELISTIZE(PARA) using tesseract::JUSTIFICATION_LEFT; using tesseract::JUSTIFICATION_RIGHT; using tesseract::JUSTIFICATION_CENTER; using tesseract::JUSTIFICATION_UNKNOWN; static STRING ParagraphJustificationToString( tesseract::ParagraphJustification justification) { switch (justification) { case JUSTIFICATION_LEFT: return "LEFT"; case JUSTIFICATION_RIGHT: return "RIGHT"; case JUSTIFICATION_CENTER: return "CENTER"; default: return "UNKNOWN"; } } bool ParagraphModel::ValidFirstLine(int lmargin, int lindent, int rindent, int rmargin) const { switch (justification_) { case JUSTIFICATION_LEFT: return NearlyEqual(lmargin + lindent, margin_ + first_indent_, tolerance_); case JUSTIFICATION_RIGHT: return NearlyEqual(rmargin + rindent, margin_ + first_indent_, tolerance_); case JUSTIFICATION_CENTER: return NearlyEqual(lindent, rindent, tolerance_ * 2); default: // shouldn't happen return false; } } bool ParagraphModel::ValidBodyLine(int lmargin, int lindent, int rindent, int rmargin) const { switch (justification_) { case JUSTIFICATION_LEFT: return NearlyEqual(lmargin + lindent, margin_ + body_indent_, tolerance_); case JUSTIFICATION_RIGHT: return NearlyEqual(rmargin + rindent, margin_ + body_indent_, tolerance_); case JUSTIFICATION_CENTER: return NearlyEqual(lindent, rindent, tolerance_ * 2); default: // shouldn't happen return false; } } bool ParagraphModel::Comparable(const ParagraphModel &other) const { if (justification_ != other.justification_) return false; if (justification_ == JUSTIFICATION_CENTER || justification_ == JUSTIFICATION_UNKNOWN) return true; int tolerance = (tolerance_ + other.tolerance_) / 4; return NearlyEqual(margin_ + first_indent_, other.margin_ + other.first_indent_, tolerance) && NearlyEqual(margin_ + body_indent_, other.margin_ + other.body_indent_, tolerance); } STRING ParagraphModel::ToString() const { char buffer[200]; const STRING &alignment = ParagraphJustificationToString(justification_); snprintf(buffer, sizeof(buffer), "margin: %d, first_indent: %d, body_indent: %d, alignment: %s", margin_, first_indent_, body_indent_, alignment.string()); return STRING(buffer); }
C++
/********************************************************************** * File: crakedge.h (Formerly: crkedge.h) * Description: Sturctures for the Crack following edge detector. * Author: Ray Smith * Created: Fri Mar 22 16:06:38 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef CRAKEDGE_H #define CRAKEDGE_H #include "points.h" #include "mod128.h" class CRACKEDGE { public: CRACKEDGE() {} ICOORD pos; /*position of crack */ inT8 stepx; //edge step inT8 stepy; inT8 stepdir; //chaincode CRACKEDGE *prev; /*previous point */ CRACKEDGE *next; /*next point */ }; #endif
C++
/********************************************************************** * File: mod128.h (Formerly dir128.h) * Description: Header for class which implements modulo arithmetic. * Author: Ray Smith * Created: Tue Mar 26 17:48:13 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef MOD128_H #define MOD128_H #include "points.h" #define MODULUS 128 /*range of directions */ #define DIRBITS 7 //no of bits used #define DIRSCALE 1000 //length of vector class DLLSYM DIR128 { public: DIR128() { } //empty constructor DIR128( //constructor inT16 value) { //value to assign value %= MODULUS; //modulo arithmetic if (value < 0) value += MODULUS; //done properly dir = (inT8) value; } DIR128(const FCOORD fc); //quantize vector DIR128 & operator= ( //assign of inT16 inT16 value) { //value to assign value %= MODULUS; //modulo arithmetic if (value < 0) value += MODULUS; //done properly dir = (inT8) value; return *this; } inT8 operator- ( //subtraction const DIR128 & minus) const//for signed result { //result inT16 result = dir - minus.dir; if (result > MODULUS / 2) result -= MODULUS; //get in range else if (result < -MODULUS / 2) result += MODULUS; return (inT8) result; } DIR128 operator+ ( //addition const DIR128 & add) const //of itself { DIR128 result; //sum result = dir + add.dir; //let = do the work return result; } DIR128 & operator+= ( //same as + const DIR128 & add) { *this = dir + add.dir; //let = do the work return *this; } inT8 get_dir() const { //access function return dir; } ICOORD vector() const; //turn to vector private: inT8 dir; //a direction }; #endif
C++
/////////////////////////////////////////////////////////////////////// // File: fontinfo.cpp // Description: Font information classes abstracted from intproto.h/cpp. // Author: rays@google.com (Ray Smith) // Created: Wed May 18 10:39:01 PDT 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "fontinfo.h" #include "bitvector.h" #include "unicity_table.h" namespace tesseract { // Writes to the given file. Returns false in case of error. bool FontInfo::Serialize(FILE* fp) const { if (!write_info(fp, *this)) return false; if (!write_spacing_info(fp, *this)) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool FontInfo::DeSerialize(bool swap, FILE* fp) { if (!read_info(fp, this, swap)) return false; if (!read_spacing_info(fp, this, swap)) return false; return true; } FontInfoTable::FontInfoTable() { set_compare_callback(NewPermanentTessCallback(CompareFontInfo)); set_clear_callback(NewPermanentTessCallback(FontInfoDeleteCallback)); } FontInfoTable::~FontInfoTable() { } // Writes to the given file. Returns false in case of error. bool FontInfoTable::Serialize(FILE* fp) const { return this->SerializeClasses(fp); } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool FontInfoTable::DeSerialize(bool swap, FILE* fp) { truncate(0); return this->DeSerializeClasses(swap, fp); } // Returns true if the given set of fonts includes one with the same // properties as font_id. bool FontInfoTable::SetContainsFontProperties( int font_id, const GenericVector<int>& font_set) const { uinT32 properties = get(font_id).properties; for (int f = 0; f < font_set.size(); ++f) { if (get(font_set[f]).properties == properties) return true; } return false; } // Returns true if the given set of fonts includes multiple properties. bool FontInfoTable::SetContainsMultipleFontProperties( const GenericVector<int>& font_set) const { if (font_set.empty()) return false; int first_font = font_set[0]; uinT32 properties = get(first_font).properties; for (int f = 1; f < font_set.size(); ++f) { if (get(font_set[f]).properties != properties) return true; } return false; } // Moves any non-empty FontSpacingInfo entries from other to this. void FontInfoTable::MoveSpacingInfoFrom(FontInfoTable* other) { set_compare_callback(NewPermanentTessCallback(CompareFontInfo)); set_clear_callback(NewPermanentTessCallback(FontInfoDeleteCallback)); for (int i = 0; i < other->size(); ++i) { GenericVector<FontSpacingInfo*>* spacing_vec = other->get(i).spacing_vec; if (spacing_vec != NULL) { int target_index = get_index(other->get(i)); if (target_index < 0) { // Bit copy the FontInfo and steal all the pointers. push_back(other->get(i)); other->get(i).name = NULL; } else { delete [] get(target_index).spacing_vec; get(target_index).spacing_vec = other->get(i).spacing_vec; } other->get(i).spacing_vec = NULL; } } } // Moves this to the target unicity table. void FontInfoTable::MoveTo(UnicityTable<FontInfo>* target) { target->clear(); target->set_compare_callback(NewPermanentTessCallback(CompareFontInfo)); target->set_clear_callback(NewPermanentTessCallback(FontInfoDeleteCallback)); for (int i = 0; i < size(); ++i) { // Bit copy the FontInfo and steal all the pointers. target->push_back(get(i)); get(i).name = NULL; get(i).spacing_vec = NULL; } } // Compare FontInfo structures. bool CompareFontInfo(const FontInfo& fi1, const FontInfo& fi2) { // The font properties are required to be the same for two font with the same // name, so there is no need to test them. // Consequently, querying the table with only its font name as information is // enough to retrieve its properties. return strcmp(fi1.name, fi2.name) == 0; } // Compare FontSet structures. bool CompareFontSet(const FontSet& fs1, const FontSet& fs2) { if (fs1.size != fs2.size) return false; for (int i = 0; i < fs1.size; ++i) { if (fs1.configs[i] != fs2.configs[i]) return false; } return true; } // Callbacks for GenericVector. void FontInfoDeleteCallback(FontInfo f) { if (f.spacing_vec != NULL) { f.spacing_vec->delete_data_pointers(); delete f.spacing_vec; } delete[] f.name; } void FontSetDeleteCallback(FontSet fs) { delete[] fs.configs; } /*---------------------------------------------------------------------------*/ // Callbacks used by UnicityTable to read/write FontInfo/FontSet structures. bool read_info(FILE* f, FontInfo* fi, bool swap) { inT32 size; if (fread(&size, sizeof(size), 1, f) != 1) return false; if (swap) Reverse32(&size); char* font_name = new char[size + 1]; fi->name = font_name; if (static_cast<int>(fread(font_name, sizeof(*font_name), size, f)) != size) return false; font_name[size] = '\0'; if (fread(&fi->properties, sizeof(fi->properties), 1, f) != 1) return false; if (swap) Reverse32(&fi->properties); return true; } bool write_info(FILE* f, const FontInfo& fi) { inT32 size = strlen(fi.name); if (fwrite(&size, sizeof(size), 1, f) != 1) return false; if (static_cast<int>(fwrite(fi.name, sizeof(*fi.name), size, f)) != size) return false; if (fwrite(&fi.properties, sizeof(fi.properties), 1, f) != 1) return false; return true; } bool read_spacing_info(FILE *f, FontInfo* fi, bool swap) { inT32 vec_size, kern_size; if (fread(&vec_size, sizeof(vec_size), 1, f) != 1) return false; if (swap) Reverse32(&vec_size); ASSERT_HOST(vec_size >= 0); if (vec_size == 0) return true; fi->init_spacing(vec_size); for (int i = 0; i < vec_size; ++i) { FontSpacingInfo *fs = new FontSpacingInfo(); if (fread(&fs->x_gap_before, sizeof(fs->x_gap_before), 1, f) != 1 || fread(&fs->x_gap_after, sizeof(fs->x_gap_after), 1, f) != 1 || fread(&kern_size, sizeof(kern_size), 1, f) != 1) { delete fs; return false; } if (swap) { ReverseN(&(fs->x_gap_before), sizeof(fs->x_gap_before)); ReverseN(&(fs->x_gap_after), sizeof(fs->x_gap_after)); Reverse32(&kern_size); } if (kern_size < 0) { // indication of a NULL entry in fi->spacing_vec delete fs; continue; } if (kern_size > 0 && (!fs->kerned_unichar_ids.DeSerialize(swap, f) || !fs->kerned_x_gaps.DeSerialize(swap, f))) { delete fs; return false; } fi->add_spacing(i, fs); } return true; } bool write_spacing_info(FILE* f, const FontInfo& fi) { inT32 vec_size = (fi.spacing_vec == NULL) ? 0 : fi.spacing_vec->size(); if (fwrite(&vec_size, sizeof(vec_size), 1, f) != 1) return false; inT16 x_gap_invalid = -1; for (int i = 0; i < vec_size; ++i) { FontSpacingInfo *fs = fi.spacing_vec->get(i); inT32 kern_size = (fs == NULL) ? -1 : fs->kerned_x_gaps.size(); if (fs == NULL) { // Valid to have the identical fwrites. Writing invalid x-gaps. if (fwrite(&(x_gap_invalid), sizeof(x_gap_invalid), 1, f) != 1 || fwrite(&(x_gap_invalid), sizeof(x_gap_invalid), 1, f) != 1 || fwrite(&kern_size, sizeof(kern_size), 1, f) != 1) { return false; } } else { if (fwrite(&(fs->x_gap_before), sizeof(fs->x_gap_before), 1, f) != 1 || fwrite(&(fs->x_gap_after), sizeof(fs->x_gap_after), 1, f) != 1 || fwrite(&kern_size, sizeof(kern_size), 1, f) != 1) { return false; } } if (kern_size > 0 && (!fs->kerned_unichar_ids.Serialize(f) || !fs->kerned_x_gaps.Serialize(f))) { return false; } } return true; } bool read_set(FILE* f, FontSet* fs, bool swap) { if (fread(&fs->size, sizeof(fs->size), 1, f) != 1) return false; if (swap) Reverse32(&fs->size); fs->configs = new int[fs->size]; for (int i = 0; i < fs->size; ++i) { if (fread(&fs->configs[i], sizeof(fs->configs[i]), 1, f) != 1) return false; if (swap) Reverse32(&fs->configs[i]); } return true; } bool write_set(FILE* f, const FontSet& fs) { if (fwrite(&fs.size, sizeof(fs.size), 1, f) != 1) return false; for (int i = 0; i < fs.size; ++i) { if (fwrite(&fs.configs[i], sizeof(fs.configs[i]), 1, f) != 1) return false; } return true; } } // namespace tesseract.
C++
/********************************************************************** * File: rect.c (Formerly box.c) * Description: Bounding box class definition. * Author: Phil Cheatle * Created: Wed Oct 16 15:18:45 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "rect.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif /********************************************************************** * TBOX::TBOX() Constructor from 2 ICOORDS * **********************************************************************/ TBOX::TBOX( //construtor const ICOORD pt1, //one corner const ICOORD pt2 //the other corner ) { if (pt1.x () <= pt2.x ()) { if (pt1.y () <= pt2.y ()) { bot_left = pt1; top_right = pt2; } else { bot_left = ICOORD (pt1.x (), pt2.y ()); top_right = ICOORD (pt2.x (), pt1.y ()); } } else { if (pt1.y () <= pt2.y ()) { bot_left = ICOORD (pt2.x (), pt1.y ()); top_right = ICOORD (pt1.x (), pt2.y ()); } else { bot_left = pt2; top_right = pt1; } } } /********************************************************************** * TBOX::TBOX() Constructor from 4 integer values. * Note: It is caller's responsibility to provide values in the right * order. **********************************************************************/ TBOX::TBOX( //constructor inT16 left, inT16 bottom, inT16 right, inT16 top) : bot_left(left, bottom), top_right(right, top) { } // rotate_large constructs the containing bounding box of all 4 // corners after rotating them. It therefore guarantees that all // original content is contained within, but also slightly enlarges the box. void TBOX::rotate_large(const FCOORD& vec) { ICOORD top_left(bot_left.x(), top_right.y()); ICOORD bottom_right(top_right.x(), bot_left.y()); top_left.rotate(vec); bottom_right.rotate(vec); rotate(vec); TBOX box2(top_left, bottom_right); *this += box2; } /********************************************************************** * TBOX::intersection() Build the largest box contained in both boxes * **********************************************************************/ TBOX TBOX::intersection( //shared area box const TBOX &box) const { inT16 left; inT16 bottom; inT16 right; inT16 top; if (overlap (box)) { if (box.bot_left.x () > bot_left.x ()) left = box.bot_left.x (); else left = bot_left.x (); if (box.top_right.x () < top_right.x ()) right = box.top_right.x (); else right = top_right.x (); if (box.bot_left.y () > bot_left.y ()) bottom = box.bot_left.y (); else bottom = bot_left.y (); if (box.top_right.y () < top_right.y ()) top = box.top_right.y (); else top = top_right.y (); } else { left = MAX_INT16; bottom = MAX_INT16; top = -MAX_INT16; right = -MAX_INT16; } return TBOX (left, bottom, right, top); } /********************************************************************** * TBOX::bounding_union() Build the smallest box containing both boxes * **********************************************************************/ TBOX TBOX::bounding_union( //box enclosing both const TBOX &box) const { ICOORD bl; //bottom left ICOORD tr; //top right if (box.bot_left.x () < bot_left.x ()) bl.set_x (box.bot_left.x ()); else bl.set_x (bot_left.x ()); if (box.top_right.x () > top_right.x ()) tr.set_x (box.top_right.x ()); else tr.set_x (top_right.x ()); if (box.bot_left.y () < bot_left.y ()) bl.set_y (box.bot_left.y ()); else bl.set_y (bot_left.y ()); if (box.top_right.y () > top_right.y ()) tr.set_y (box.top_right.y ()); else tr.set_y (top_right.y ()); return TBOX (bl, tr); } /********************************************************************** * TBOX::plot() Paint a box using specified settings * **********************************************************************/ #ifndef GRAPHICS_DISABLED void TBOX::plot( //paint box ScrollView* fd, //where to paint ScrollView::Color fill_colour, //colour for inside ScrollView::Color border_colour //colour for border ) const { fd->Brush(fill_colour); fd->Pen(border_colour); plot(fd); } #endif // Appends the bounding box as (%d,%d)->(%d,%d) to a STRING. void TBOX::print_to_str(STRING *str) const { // "(%d,%d)->(%d,%d)", left(), bottom(), right(), top() str->add_str_int("(", left()); str->add_str_int(",", bottom()); str->add_str_int(")->(", right()); str->add_str_int(",", top()); *str += ')'; } // Writes to the given file. Returns false in case of error. bool TBOX::Serialize(FILE* fp) const { if (!bot_left.Serialize(fp)) return false; if (!top_right.Serialize(fp)) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool TBOX::DeSerialize(bool swap, FILE* fp) { if (!bot_left.DeSerialize(swap, fp)) return false; if (!top_right.DeSerialize(swap, fp)) return false; return true; } /********************************************************************** * operator+= * * Extend one box to include the other (In place union) **********************************************************************/ DLLSYM TBOX & operator+= ( //bounding bounding bx TBOX & op1, //operands const TBOX & op2) { if (op2.bot_left.x () < op1.bot_left.x ()) op1.bot_left.set_x (op2.bot_left.x ()); if (op2.top_right.x () > op1.top_right.x ()) op1.top_right.set_x (op2.top_right.x ()); if (op2.bot_left.y () < op1.bot_left.y ()) op1.bot_left.set_y (op2.bot_left.y ()); if (op2.top_right.y () > op1.top_right.y ()) op1.top_right.set_y (op2.top_right.y ()); return op1; } /********************************************************************** * operator&= * * Reduce one box to intersection with the other (In place intersection) **********************************************************************/ TBOX& operator&=(TBOX& op1, const TBOX& op2) { if (op1.overlap (op2)) { if (op2.bot_left.x () > op1.bot_left.x ()) op1.bot_left.set_x (op2.bot_left.x ()); if (op2.top_right.x () < op1.top_right.x ()) op1.top_right.set_x (op2.top_right.x ()); if (op2.bot_left.y () > op1.bot_left.y ()) op1.bot_left.set_y (op2.bot_left.y ()); if (op2.top_right.y () < op1.top_right.y ()) op1.top_right.set_y (op2.top_right.y ()); } else { op1.bot_left.set_x (MAX_INT16); op1.bot_left.set_y (MAX_INT16); op1.top_right.set_x (-MAX_INT16); op1.top_right.set_y (-MAX_INT16); } return op1; } bool TBOX::x_almost_equal(const TBOX &box, int tolerance) const { return (abs(left() - box.left()) <= tolerance && abs(right() - box.right()) <= tolerance); } bool TBOX::almost_equal(const TBOX &box, int tolerance) const { return (abs(left() - box.left()) <= tolerance && abs(right() - box.right()) <= tolerance && abs(top() - box.top()) <= tolerance && abs(bottom() - box.bottom()) <= tolerance); }
C++
/////////////////////////////////////////////////////////////////////// // File: blamer.cpp // Description: Module allowing precise error causes to be allocated. // Author: Rike Antonova // Refactored: Ray Smith // Created: Mon Feb 04 14:37:01 PST 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "blamer.h" #include "blobs.h" #include "matrix.h" #include "normalis.h" #include "pageres.h" // Names for each value of IncorrectResultReason enum. Keep in sync. const char kBlameCorrect[] = "corr"; const char kBlameClassifier[] = "cl"; const char kBlameChopper[] = "chop"; const char kBlameClassLMTradeoff[] = "cl/LM"; const char kBlamePageLayout[] = "pglt"; const char kBlameSegsearchHeur[] = "ss_heur"; const char kBlameSegsearchPP[] = "ss_pp"; const char kBlameClassOldLMTradeoff[] = "cl/old_LM"; const char kBlameAdaption[] = "adapt"; const char kBlameNoTruthSplit[] = "no_tr_spl"; const char kBlameNoTruth[] = "no_tr"; const char kBlameUnknown[] = "unkn"; const char * const kIncorrectResultReasonNames[] = { kBlameCorrect, kBlameClassifier, kBlameChopper, kBlameClassLMTradeoff, kBlamePageLayout, kBlameSegsearchHeur, kBlameSegsearchPP, kBlameClassOldLMTradeoff, kBlameAdaption, kBlameNoTruthSplit, kBlameNoTruth, kBlameUnknown }; const char *BlamerBundle::IncorrectReasonName(IncorrectResultReason irr) { return kIncorrectResultReasonNames[irr]; } const char *BlamerBundle::IncorrectReason() const { return kIncorrectResultReasonNames[incorrect_result_reason_]; } // Functions to setup the blamer. // Whole word string, whole word bounding box. void BlamerBundle::SetWordTruth(const UNICHARSET& unicharset, const char* truth_str, const TBOX& word_box) { truth_word_.InsertBox(0, word_box); truth_has_char_boxes_ = false; // Encode the string as UNICHAR_IDs. GenericVector<UNICHAR_ID> encoding; GenericVector<char> lengths; unicharset.encode_string(truth_str, false, &encoding, &lengths, NULL); int total_length = 0; for (int i = 0; i < encoding.size(); total_length += lengths[i++]) { STRING uch(truth_str + total_length); uch.truncate_at(lengths[i] - total_length); UNICHAR_ID id = encoding[i]; if (id != INVALID_UNICHAR_ID) uch = unicharset.get_normed_unichar(id); truth_text_.push_back(uch); } } // Single "character" string, "character" bounding box. // May be called multiple times to indicate the characters in a word. void BlamerBundle::SetSymbolTruth(const UNICHARSET& unicharset, const char* char_str, const TBOX& char_box) { STRING symbol_str(char_str); UNICHAR_ID id = unicharset.unichar_to_id(char_str); if (id != INVALID_UNICHAR_ID) { STRING normed_uch(unicharset.get_normed_unichar(id)); if (normed_uch.length() > 0) symbol_str = normed_uch; } int length = truth_word_.length(); truth_text_.push_back(symbol_str); truth_word_.InsertBox(length, char_box); if (length == 0) truth_has_char_boxes_ = true; else if (truth_word_.BlobBox(length - 1) == char_box) truth_has_char_boxes_ = false; } // Marks that there is something wrong with the truth text, like it contains // reject characters. void BlamerBundle::SetRejectedTruth() { incorrect_result_reason_ = IRR_NO_TRUTH; truth_has_char_boxes_ = false; } // Returns true if the provided word_choice is correct. bool BlamerBundle::ChoiceIsCorrect(const WERD_CHOICE* word_choice) const { if (word_choice == NULL) return false; const UNICHARSET* uni_set = word_choice->unicharset(); STRING normed_choice_str; for (int i = 0; i < word_choice->length(); ++i) { normed_choice_str += uni_set->get_normed_unichar(word_choice->unichar_id(i)); } STRING truth_str = TruthString(); return truth_str == normed_choice_str; } void BlamerBundle::FillDebugString(const STRING &msg, const WERD_CHOICE *choice, STRING *debug) { (*debug) += "Truth "; for (int i = 0; i < this->truth_text_.length(); ++i) { (*debug) += this->truth_text_[i]; } if (!this->truth_has_char_boxes_) (*debug) += " (no char boxes)"; if (choice != NULL) { (*debug) += " Choice "; STRING choice_str; choice->string_and_lengths(&choice_str, NULL); (*debug) += choice_str; } if (msg.length() > 0) { (*debug) += "\n"; (*debug) += msg; } (*debug) += "\n"; } // Sets up the norm_truth_word from truth_word using the given DENORM. void BlamerBundle::SetupNormTruthWord(const DENORM& denorm) { // TODO(rays) Is this the last use of denorm in WERD_RES and can it go? norm_box_tolerance_ = kBlamerBoxTolerance * denorm.x_scale(); TPOINT topleft; TPOINT botright; TPOINT norm_topleft; TPOINT norm_botright; for (int b = 0; b < truth_word_.length(); ++b) { const TBOX &box = truth_word_.BlobBox(b); topleft.x = box.left(); topleft.y = box.top(); botright.x = box.right(); botright.y = box.bottom(); denorm.NormTransform(NULL, topleft, &norm_topleft); denorm.NormTransform(NULL, botright, &norm_botright); TBOX norm_box(norm_topleft.x, norm_botright.y, norm_botright.x, norm_topleft.y); norm_truth_word_.InsertBox(b, norm_box); } } // Splits *this into two pieces in bundle1 and bundle2 (preallocated, empty // bundles) where the right edge/ of the left-hand word is word1_right, // and the left edge of the right-hand word is word2_left. void BlamerBundle::SplitBundle(int word1_right, int word2_left, bool debug, BlamerBundle* bundle1, BlamerBundle* bundle2) const { STRING debug_str; // Find truth boxes that correspond to the split in the blobs. int b; int begin2_truth_index = -1; if (incorrect_result_reason_ != IRR_NO_TRUTH && truth_has_char_boxes_) { debug_str = "Looking for truth split at"; debug_str.add_str_int(" end1_x ", word1_right); debug_str.add_str_int(" begin2_x ", word2_left); debug_str += "\nnorm_truth_word boxes:\n"; if (norm_truth_word_.length() > 1) { norm_truth_word_.BlobBox(0).print_to_str(&debug_str); for (b = 1; b < norm_truth_word_.length(); ++b) { norm_truth_word_.BlobBox(b).print_to_str(&debug_str); if ((abs(word1_right - norm_truth_word_.BlobBox(b - 1).right()) < norm_box_tolerance_) && (abs(word2_left - norm_truth_word_.BlobBox(b).left()) < norm_box_tolerance_)) { begin2_truth_index = b; debug_str += "Split found"; break; } } debug_str += '\n'; } } // Populate truth information in word and word2 with the first and second // part of the original truth. if (begin2_truth_index > 0) { bundle1->truth_has_char_boxes_ = true; bundle1->norm_box_tolerance_ = norm_box_tolerance_; bundle2->truth_has_char_boxes_ = true; bundle2->norm_box_tolerance_ = norm_box_tolerance_; BlamerBundle *curr_bb = bundle1; for (b = 0; b < norm_truth_word_.length(); ++b) { if (b == begin2_truth_index) curr_bb = bundle2; curr_bb->norm_truth_word_.InsertBox(b, norm_truth_word_.BlobBox(b)); curr_bb->truth_word_.InsertBox(b, truth_word_.BlobBox(b)); curr_bb->truth_text_.push_back(truth_text_[b]); } } else if (incorrect_result_reason_ == IRR_NO_TRUTH) { bundle1->incorrect_result_reason_ = IRR_NO_TRUTH; bundle2->incorrect_result_reason_ = IRR_NO_TRUTH; } else { debug_str += "Truth split not found"; debug_str += truth_has_char_boxes_ ? "\n" : " (no truth char boxes)\n"; bundle1->SetBlame(IRR_NO_TRUTH_SPLIT, debug_str, NULL, debug); bundle2->SetBlame(IRR_NO_TRUTH_SPLIT, debug_str, NULL, debug); } } // "Joins" the blames from bundle1 and bundle2 into *this. void BlamerBundle::JoinBlames(const BlamerBundle& bundle1, const BlamerBundle& bundle2, bool debug) { STRING debug_str; IncorrectResultReason irr = incorrect_result_reason_; if (irr != IRR_NO_TRUTH_SPLIT) debug_str = ""; if (bundle1.incorrect_result_reason_ != IRR_CORRECT && bundle1.incorrect_result_reason_ != IRR_NO_TRUTH && bundle1.incorrect_result_reason_ != IRR_NO_TRUTH_SPLIT) { debug_str += "Blame from part 1: "; debug_str += bundle1.debug_; irr = bundle1.incorrect_result_reason_; } if (bundle2.incorrect_result_reason_ != IRR_CORRECT && bundle2.incorrect_result_reason_ != IRR_NO_TRUTH && bundle2.incorrect_result_reason_ != IRR_NO_TRUTH_SPLIT) { debug_str += "Blame from part 2: "; debug_str += bundle2.debug_; if (irr == IRR_CORRECT) { irr = bundle2.incorrect_result_reason_; } else if (irr != bundle2.incorrect_result_reason_) { irr = IRR_UNKNOWN; } } incorrect_result_reason_ = irr; if (irr != IRR_CORRECT && irr != IRR_NO_TRUTH) { SetBlame(irr, debug_str, NULL, debug); } } // If a blob with the same bounding box as one of the truth character // bounding boxes is not classified as the corresponding truth character // blames character classifier for incorrect answer. void BlamerBundle::BlameClassifier(const UNICHARSET& unicharset, const TBOX& blob_box, const BLOB_CHOICE_LIST& choices, bool debug) { if (!truth_has_char_boxes_ || incorrect_result_reason_ != IRR_CORRECT) return; // Nothing to do here. for (int b = 0; b < norm_truth_word_.length(); ++b) { const TBOX &truth_box = norm_truth_word_.BlobBox(b); // Note that we are more strict on the bounding box boundaries here // than in other places (chopper, segmentation search), since we do // not have the ability to check the previous and next bounding box. if (blob_box.x_almost_equal(truth_box, norm_box_tolerance_/2)) { bool found = false; bool incorrect_adapted = false; UNICHAR_ID incorrect_adapted_id = INVALID_UNICHAR_ID; const char *truth_str = truth_text_[b].string(); // We promise not to modify the list or its contents, using a // const BLOB_CHOICE* below. BLOB_CHOICE_IT choices_it(const_cast<BLOB_CHOICE_LIST*>(&choices)); for (choices_it.mark_cycle_pt(); !choices_it.cycled_list(); choices_it.forward()) { const BLOB_CHOICE* choice = choices_it.data(); if (strcmp(truth_str, unicharset.get_normed_unichar( choice->unichar_id())) == 0) { found = true; break; } else if (choice->IsAdapted()) { incorrect_adapted = true; incorrect_adapted_id = choice->unichar_id(); } } // end choices_it for loop if (!found) { STRING debug_str = "unichar "; debug_str += truth_str; debug_str += " not found in classification list"; SetBlame(IRR_CLASSIFIER, debug_str, NULL, debug); } else if (incorrect_adapted) { STRING debug_str = "better rating for adapted "; debug_str += unicharset.id_to_unichar(incorrect_adapted_id); debug_str += " than for correct "; debug_str += truth_str; SetBlame(IRR_ADAPTION, debug_str, NULL, debug); } break; } } // end iterating over blamer_bundle->norm_truth_word } // Checks whether chops were made at all the character bounding box // boundaries in word->truth_word. If not - blames the chopper for an // incorrect answer. void BlamerBundle::SetChopperBlame(const WERD_RES* word, bool debug) { if (NoTruth() || !truth_has_char_boxes_ || word->chopped_word->blobs.empty()) { return; } STRING debug_str; bool missing_chop = false; int num_blobs = word->chopped_word->blobs.size(); int box_index = 0; int blob_index = 0; inT16 truth_x; while (box_index < truth_word_.length() && blob_index < num_blobs) { truth_x = norm_truth_word_.BlobBox(box_index).right(); TBLOB * curr_blob = word->chopped_word->blobs[blob_index]; if (curr_blob->bounding_box().right() < truth_x - norm_box_tolerance_) { ++blob_index; continue; // encountered an extra chop, keep looking } else if (curr_blob->bounding_box().right() > truth_x + norm_box_tolerance_) { missing_chop = true; break; } else { ++blob_index; } } if (missing_chop || box_index < norm_truth_word_.length()) { STRING debug_str; if (missing_chop) { debug_str.add_str_int("Detected missing chop (tolerance=", norm_box_tolerance_); debug_str += ") at Bounding Box="; TBLOB * curr_blob = word->chopped_word->blobs[blob_index]; curr_blob->bounding_box().print_to_str(&debug_str); debug_str.add_str_int("\nNo chop for truth at x=", truth_x); } else { debug_str.add_str_int("Missing chops for last ", norm_truth_word_.length() - box_index); debug_str += " truth box(es)"; } debug_str += "\nMaximally chopped word boxes:\n"; for (blob_index = 0; blob_index < num_blobs; ++blob_index) { TBLOB * curr_blob = word->chopped_word->blobs[blob_index]; curr_blob->bounding_box().print_to_str(&debug_str); debug_str += '\n'; } debug_str += "Truth bounding boxes:\n"; for (box_index = 0; box_index < norm_truth_word_.length(); ++box_index) { norm_truth_word_.BlobBox(box_index).print_to_str(&debug_str); debug_str += '\n'; } SetBlame(IRR_CHOPPER, debug_str, word->best_choice, debug); } } // Blames the classifier or the language model if, after running only the // chopper, best_choice is incorrect and no blame has been yet set. // Blames the classifier if best_choice is classifier's top choice and is a // dictionary word (i.e. language model could not have helped). // Otherwise, blames the language model (formerly permuter word adjustment). void BlamerBundle::BlameClassifierOrLangModel( const WERD_RES* word, const UNICHARSET& unicharset, bool valid_permuter, bool debug) { if (valid_permuter) { // Find out whether best choice is a top choice. best_choice_is_dict_and_top_choice_ = true; for (int i = 0; i < word->best_choice->length(); ++i) { BLOB_CHOICE_IT blob_choice_it(word->GetBlobChoices(i)); ASSERT_HOST(!blob_choice_it.empty()); BLOB_CHOICE *first_choice = NULL; for (blob_choice_it.mark_cycle_pt(); !blob_choice_it.cycled_list(); blob_choice_it.forward()) { // find first non-fragment choice if (!(unicharset.get_fragment(blob_choice_it.data()->unichar_id()))) { first_choice = blob_choice_it.data(); break; } } ASSERT_HOST(first_choice != NULL); if (first_choice->unichar_id() != word->best_choice->unichar_id(i)) { best_choice_is_dict_and_top_choice_ = false; break; } } } STRING debug_str; if (best_choice_is_dict_and_top_choice_) { debug_str = "Best choice is: incorrect, top choice, dictionary word"; debug_str += " with permuter "; debug_str += word->best_choice->permuter_name(); } else { debug_str = "Classifier/Old LM tradeoff is to blame"; } SetBlame(best_choice_is_dict_and_top_choice_ ? IRR_CLASSIFIER : IRR_CLASS_OLD_LM_TRADEOFF, debug_str, word->best_choice, debug); } // Sets up the correct_segmentation_* to mark the correct bounding boxes. void BlamerBundle::SetupCorrectSegmentation(const TWERD* word, bool debug) { params_training_bundle_.StartHypothesisList(); if (incorrect_result_reason_ != IRR_CORRECT || !truth_has_char_boxes_) return; // Nothing to do here. STRING debug_str; debug_str += "Blamer computing correct_segmentation_cols\n"; int curr_box_col = 0; int next_box_col = 0; int num_blobs = word->NumBlobs(); if (num_blobs == 0) return; // No blobs to play with. int blob_index = 0; inT16 next_box_x = word->blobs[blob_index]->bounding_box().right(); for (int truth_idx = 0; blob_index < num_blobs && truth_idx < norm_truth_word_.length(); ++blob_index) { ++next_box_col; inT16 curr_box_x = next_box_x; if (blob_index + 1 < num_blobs) next_box_x = word->blobs[blob_index + 1]->bounding_box().right(); inT16 truth_x = norm_truth_word_.BlobBox(truth_idx).right(); debug_str.add_str_int("Box x coord vs. truth: ", curr_box_x); debug_str.add_str_int(" ", truth_x); debug_str += "\n"; if (curr_box_x > (truth_x + norm_box_tolerance_)) { break; // failed to find a matching box } else if (curr_box_x >= truth_x - norm_box_tolerance_ && // matched (blob_index + 1 >= num_blobs || // next box can't be included next_box_x > truth_x + norm_box_tolerance_)) { correct_segmentation_cols_.push_back(curr_box_col); correct_segmentation_rows_.push_back(next_box_col-1); ++truth_idx; debug_str.add_str_int("col=", curr_box_col); debug_str.add_str_int(" row=", next_box_col-1); debug_str += "\n"; curr_box_col = next_box_col; } } if (blob_index < num_blobs || // trailing blobs correct_segmentation_cols_.length() != norm_truth_word_.length()) { debug_str.add_str_int("Blamer failed to find correct segmentation" " (tolerance=", norm_box_tolerance_); if (blob_index >= num_blobs) debug_str += " blob == NULL"; debug_str += ")\n"; debug_str.add_str_int(" path length ", correct_segmentation_cols_.length()); debug_str.add_str_int(" vs. truth ", norm_truth_word_.length()); debug_str += "\n"; SetBlame(IRR_UNKNOWN, debug_str, NULL, debug); correct_segmentation_cols_.clear(); correct_segmentation_rows_.clear(); } } // Returns true if a guided segmentation search is needed. bool BlamerBundle::GuidedSegsearchNeeded(const WERD_CHOICE *best_choice) const { return incorrect_result_reason_ == IRR_CORRECT && !segsearch_is_looking_for_blame_ && truth_has_char_boxes_ && !ChoiceIsCorrect(best_choice); } // Setup ready to guide the segmentation search to the correct segmentation. // The callback pp_cb is used to avoid a cyclic dependency. // It calls into LMPainPoints::GenerateForBlamer by pre-binding the // WERD_RES, and the LMPainPoints itself. // pp_cb must be a permanent callback, and should be deleted by the caller. void BlamerBundle::InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX* ratings, UNICHAR_ID wildcard_id, bool debug, STRING *debug_str, TessResultCallback2<bool, int, int>* cb) { segsearch_is_looking_for_blame_ = true; if (debug) { tprintf("segsearch starting to look for blame\n"); } // Fill pain points for any unclassifed blob corresponding to the // correct segmentation state. *debug_str += "Correct segmentation:\n"; for (int idx = 0; idx < correct_segmentation_cols_.length(); ++idx) { debug_str->add_str_int("col=", correct_segmentation_cols_[idx]); debug_str->add_str_int(" row=", correct_segmentation_rows_[idx]); *debug_str += "\n"; if (!ratings->Classified(correct_segmentation_cols_[idx], correct_segmentation_rows_[idx], wildcard_id) && !cb->Run(correct_segmentation_cols_[idx], correct_segmentation_rows_[idx])) { segsearch_is_looking_for_blame_ = false; *debug_str += "\nFailed to insert pain point\n"; SetBlame(IRR_SEGSEARCH_HEUR, *debug_str, best_choice, debug); break; } } // end for blamer_bundle->correct_segmentation_cols/rows } // Returns true if the guided segsearch is in progress. bool BlamerBundle::GuidedSegsearchStillGoing() const { return segsearch_is_looking_for_blame_; } // The segmentation search has ended. Sets the blame appropriately. void BlamerBundle::FinishSegSearch(const WERD_CHOICE *best_choice, bool debug, STRING *debug_str) { // If we are still looking for blame (i.e. best_choice is incorrect, but a // path representing the correct segmentation could be constructed), we can // blame segmentation search pain point prioritization if the rating of the // path corresponding to the correct segmentation is better than that of // best_choice (i.e. language model would have done the correct thing, but // because of poor pain point prioritization the correct segmentation was // never explored). Otherwise we blame the tradeoff between the language model // and the classifier, since even after exploring the path corresponding to // the correct segmentation incorrect best_choice would have been chosen. // One special case when we blame the classifier instead is when best choice // is incorrect, but it is a dictionary word and it classifier's top choice. if (segsearch_is_looking_for_blame_) { segsearch_is_looking_for_blame_ = false; if (best_choice_is_dict_and_top_choice_) { *debug_str = "Best choice is: incorrect, top choice, dictionary word"; *debug_str += " with permuter "; *debug_str += best_choice->permuter_name(); SetBlame(IRR_CLASSIFIER, *debug_str, best_choice, debug); } else if (best_correctly_segmented_rating_ < best_choice->rating()) { *debug_str += "Correct segmentation state was not explored"; SetBlame(IRR_SEGSEARCH_PP, *debug_str, best_choice, debug); } else { if (best_correctly_segmented_rating_ >= WERD_CHOICE::kBadRating) { *debug_str += "Correct segmentation paths were pruned by LM\n"; } else { debug_str->add_str_double("Best correct segmentation rating ", best_correctly_segmented_rating_); debug_str->add_str_double(" vs. best choice rating ", best_choice->rating()); } SetBlame(IRR_CLASS_LM_TRADEOFF, *debug_str, best_choice, debug); } } } // If the bundle is null or still does not indicate the correct result, // fix it and use some backup reason for the blame. void BlamerBundle::LastChanceBlame(bool debug, WERD_RES* word) { if (word->blamer_bundle == NULL) { word->blamer_bundle = new BlamerBundle(); word->blamer_bundle->SetBlame(IRR_PAGE_LAYOUT, "LastChanceBlame", word->best_choice, debug); } else if (word->blamer_bundle->incorrect_result_reason_ == IRR_NO_TRUTH) { word->blamer_bundle->SetBlame(IRR_NO_TRUTH, "Rejected truth", word->best_choice, debug); } else { bool correct = word->blamer_bundle->ChoiceIsCorrect(word->best_choice); IncorrectResultReason irr = word->blamer_bundle->incorrect_result_reason_; if (irr == IRR_CORRECT && !correct) { STRING debug_str = "Choice is incorrect after recognition"; word->blamer_bundle->SetBlame(IRR_UNKNOWN, debug_str, word->best_choice, debug); } else if (irr != IRR_CORRECT && correct) { if (debug) { tprintf("Corrected %s\n", word->blamer_bundle->debug_.string()); } word->blamer_bundle->incorrect_result_reason_ = IRR_CORRECT; word->blamer_bundle->debug_ = ""; } } } // Sets the misadaption debug if this word is incorrect, as this word is // being adapted to. void BlamerBundle::SetMisAdaptionDebug(const WERD_CHOICE *best_choice, bool debug) { if (incorrect_result_reason_ != IRR_NO_TRUTH && !ChoiceIsCorrect(best_choice)) { misadaption_debug_ ="misadapt to word ("; misadaption_debug_ += best_choice->permuter_name(); misadaption_debug_ += "): "; FillDebugString("", best_choice, &misadaption_debug_); if (debug) { tprintf("%s\n", misadaption_debug_.string()); } } }
C++
/////////////////////////////////////////////////////////////////////// // File: detlinefit.cpp // Description: Deterministic least median squares line fitting. // Author: Ray Smith // Created: Thu Feb 28 14:45:01 PDT 2008 // // (C) Copyright 2008, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "detlinefit.h" #include "statistc.h" #include "ndminx.h" #include "tprintf.h" namespace tesseract { // The number of points to consider at each end. const int kNumEndPoints = 3; // The minimum number of points at which to switch to number of points // for badly fitted lines. // To ensure a sensible error metric, kMinPointsForErrorCount should be at // least kMaxRealDistance / (1 - %ile) where %ile is the fractile used in // ComputeUpperQuartileError. const int kMinPointsForErrorCount = 16; // The maximum real distance to use before switching to number of // mis-fitted points, which will get square-rooted for true distance. const int kMaxRealDistance = 2.0; DetLineFit::DetLineFit() : square_length_(0.0) { } DetLineFit::~DetLineFit() { } // Delete all Added points. void DetLineFit::Clear() { pts_.clear(); distances_.clear(); } // Add a new point. Takes a copy - the pt doesn't need to stay in scope. void DetLineFit::Add(const ICOORD& pt) { pts_.push_back(PointWidth(pt, 0)); } // Associates a half-width with the given point if a point overlaps the // previous point by more than half the width, and its distance is further // than the previous point, then the more distant point is ignored in the // distance calculation. Useful for ignoring i dots and other diacritics. void DetLineFit::Add(const ICOORD& pt, int halfwidth) { pts_.push_back(PointWidth(pt, halfwidth)); } // Fits a line to the points, ignoring the skip_first initial points and the // skip_last final points, returning the fitted line as a pair of points, // and the upper quartile error. double DetLineFit::Fit(int skip_first, int skip_last, ICOORD* pt1, ICOORD* pt2) { // Do something sensible with no points. if (pts_.empty()) { pt1->set_x(0); pt1->set_y(0); *pt2 = *pt1; return 0.0; } // Count the points and find the first and last kNumEndPoints. int pt_count = pts_.size(); ICOORD* starts[kNumEndPoints]; if (skip_first >= pt_count) skip_first = pt_count - 1; int start_count = 0; int end_i = MIN(skip_first + kNumEndPoints, pt_count); for (int i = skip_first; i < end_i; ++i) { starts[start_count++] = &pts_[i].pt; } ICOORD* ends[kNumEndPoints]; if (skip_last >= pt_count) skip_last = pt_count - 1; int end_count = 0; end_i = MAX(0, pt_count - kNumEndPoints - skip_last); for (int i = pt_count - 1 - skip_last; i >= end_i; --i) { ends[end_count++] = &pts_[i].pt; } // 1 or 2 points need special treatment. if (pt_count <= 2) { *pt1 = *starts[0]; if (pt_count > 1) *pt2 = *ends[0]; else *pt2 = *pt1; return 0.0; } // Although with between 2 and 2*kNumEndPoints-1 points, there will be // overlap in the starts, ends sets, this is OK and taken care of by the // if (*start != *end) test below, which also tests for equal input points. double best_uq = -1.0; // Iterate each pair of points and find the best fitting line. for (int i = 0; i < start_count; ++i) { ICOORD* start = starts[i]; for (int j = 0; j < end_count; ++j) { ICOORD* end = ends[j]; if (*start != *end) { ComputeDistances(*start, *end); // Compute the upper quartile error from the line. double dist = EvaluateLineFit(); if (dist < best_uq || best_uq < 0.0) { best_uq = dist; *pt1 = *start; *pt2 = *end; } } } } // Finally compute the square root to return the true distance. return best_uq > 0.0 ? sqrt(best_uq) : best_uq; } // Constrained fit with a supplied direction vector. Finds the best line_pt, // that is one of the supplied points having the median cross product with // direction, ignoring points that have a cross product outside of the range // [min_dist, max_dist]. Returns the resulting error metric using the same // reduced set of points. // *Makes use of floating point arithmetic* double DetLineFit::ConstrainedFit(const FCOORD& direction, double min_dist, double max_dist, bool debug, ICOORD* line_pt) { ComputeConstrainedDistances(direction, min_dist, max_dist); // Do something sensible with no points or computed distances. if (pts_.empty() || distances_.empty()) { line_pt->set_x(0); line_pt->set_y(0); return 0.0; } int median_index = distances_.choose_nth_item(distances_.size() / 2); *line_pt = distances_[median_index].data; if (debug) { tprintf("Constrained fit to dir %g, %g = %d, %d :%d distances:\n", direction.x(), direction.y(), line_pt->x(), line_pt->y(), distances_.size()); for (int i = 0; i < distances_.size(); ++i) { tprintf("%d: %d, %d -> %g\n", i, distances_[i].data.x(), distances_[i].data.y(), distances_[i].key); } tprintf("Result = %d\n", median_index); } // Center distances on the fitted point. double dist_origin = direction * *line_pt; for (int i = 0; i < distances_.size(); ++i) { distances_[i].key -= dist_origin; } return sqrt(EvaluateLineFit()); } // Returns true if there were enough points at the last call to Fit or // ConstrainedFit for the fitted points to be used on a badly fitted line. bool DetLineFit::SufficientPointsForIndependentFit() const { return distances_.size() >= kMinPointsForErrorCount; } // Backwards compatible fit returning a gradient and constant. // Deprecated. Prefer Fit(ICOORD*, ICOORD*) where possible, but use this // function in preference to the LMS class. double DetLineFit::Fit(float* m, float* c) { ICOORD start, end; double error = Fit(&start, &end); if (end.x() != start.x()) { *m = static_cast<float>(end.y() - start.y()) / (end.x() - start.x()); *c = start.y() - *m * start.x(); } else { *m = 0.0f; *c = 0.0f; } return error; } // Backwards compatible constrained fit with a supplied gradient. // Deprecated. Use ConstrainedFit(const FCOORD& direction) where possible // to avoid potential difficulties with infinite gradients. double DetLineFit::ConstrainedFit(double m, float* c) { // Do something sensible with no points. if (pts_.empty()) { *c = 0.0f; return 0.0; } double cos = 1.0 / sqrt(1.0 + m * m); FCOORD direction(cos, m * cos); ICOORD line_pt; double error = ConstrainedFit(direction, -MAX_FLOAT32, MAX_FLOAT32, false, &line_pt); *c = line_pt.y() - line_pt.x() * m; return error; } // Computes and returns the squared evaluation metric for a line fit. double DetLineFit::EvaluateLineFit() { // Compute the upper quartile error from the line. double dist = ComputeUpperQuartileError(); if (distances_.size() >= kMinPointsForErrorCount && dist > kMaxRealDistance * kMaxRealDistance) { // Use the number of mis-fitted points as the error metric, as this // gives a better measure of fit for badly fitted lines where more // than a quarter are badly fitted. double threshold = kMaxRealDistance * sqrt(square_length_); dist = NumberOfMisfittedPoints(threshold); } return dist; } // Computes the absolute error distances of the points from the line, // and returns the squared upper-quartile error distance. double DetLineFit::ComputeUpperQuartileError() { int num_errors = distances_.size(); if (num_errors == 0) return 0.0; // Get the absolute values of the errors. for (int i = 0; i < num_errors; ++i) { if (distances_[i].key < 0) distances_[i].key = -distances_[i].key; } // Now get the upper quartile distance. int index = distances_.choose_nth_item(3 * num_errors / 4); double dist = distances_[index].key; // The true distance is the square root of the dist squared / square_length. // Don't bother with the square root. Just return the square distance. return square_length_ > 0.0 ? dist * dist / square_length_ : 0.0; } // Returns the number of sample points that have an error more than threshold. int DetLineFit::NumberOfMisfittedPoints(double threshold) const { int num_misfits = 0; int num_dists = distances_.size(); // Get the absolute values of the errors. for (int i = 0; i < num_dists; ++i) { if (distances_[i].key > threshold) ++num_misfits; } return num_misfits; } // Computes all the cross product distances of the points from the line, // storing the actual (signed) cross products in distances. // Ignores distances of points that are further away than the previous point, // and overlaps the previous point by at least half. void DetLineFit::ComputeDistances(const ICOORD& start, const ICOORD& end) { distances_.truncate(0); ICOORD line_vector = end; line_vector -= start; square_length_ = line_vector.sqlength(); int line_length = IntCastRounded(sqrt(square_length_)); // Compute the distance of each point from the line. int prev_abs_dist = 0; int prev_dot = 0; for (int i = 0; i < pts_.size(); ++i) { ICOORD pt_vector = pts_[i].pt; pt_vector -= start; int dot = line_vector % pt_vector; // Compute |line_vector||pt_vector|sin(angle between) int dist = line_vector * pt_vector; int abs_dist = dist < 0 ? -dist : dist; if (abs_dist > prev_abs_dist && i > 0) { // Ignore this point if it overlaps the previous one. int separation = abs(dot - prev_dot); if (separation < line_length * pts_[i].halfwidth || separation < line_length * pts_[i - 1].halfwidth) continue; } distances_.push_back(DistPointPair(dist, pts_[i].pt)); prev_abs_dist = abs_dist; prev_dot = dot; } } // Computes all the cross product distances of the points perpendicular to // the given direction, ignoring distances outside of the give distance range, // storing the actual (signed) cross products in distances_. void DetLineFit::ComputeConstrainedDistances(const FCOORD& direction, double min_dist, double max_dist) { distances_.truncate(0); square_length_ = direction.sqlength(); // Compute the distance of each point from the line. for (int i = 0; i < pts_.size(); ++i) { FCOORD pt_vector = pts_[i].pt; // Compute |line_vector||pt_vector|sin(angle between) double dist = direction * pt_vector; if (min_dist <= dist && dist <= max_dist) distances_.push_back(DistPointPair(dist, pts_[i].pt)); } } } // namespace tesseract.
C++
/********************************************************************** * File: genblob.cpp (Formerly gblob.c) * Description: Generic Blob processing routines * Author: Phil Cheatle * Created: Mon Nov 25 10:53:26 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "genblob.h" #include "stepblob.h" /********************************************************************** * c_blob_comparator() * * Blob comparator used to sort a blob list so that blobs are in increasing * order of left edge. **********************************************************************/ int c_blob_comparator( // sort blobs const void *blob1p, // ptr to ptr to blob1 const void *blob2p // ptr to ptr to blob2 ) { C_BLOB *blob1 = *(C_BLOB **) blob1p; C_BLOB *blob2 = *(C_BLOB **) blob2p; return blob1->bounding_box ().left () - blob2->bounding_box ().left (); }
C++
/********************************************************************** * File: mod128.c (Formerly dir128.c) * Description: Code to convert a DIR128 to an ICOORD. * Author: Ray Smith * Created: Tue Oct 22 11:56:09 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "mod128.h" const inT16 idirtab[] = { 1000, 0, 998, 49, 995, 98, 989, 146, 980, 195, 970, 242, 956, 290, 941, 336, 923, 382, 903, 427, 881, 471, 857, 514, 831, 555, 803, 595, 773, 634, 740, 671, 707, 707, 671, 740, 634, 773, 595, 803, 555, 831, 514, 857, 471, 881, 427, 903, 382, 923, 336, 941, 290, 956, 242, 970, 195, 980, 146, 989, 98, 995, 49, 998, 0, 1000, -49, 998, -98, 995, -146, 989, -195, 980, -242, 970, -290, 956, -336, 941, -382, 923, -427, 903, -471, 881, -514, 857, -555, 831, -595, 803, -634, 773, -671, 740, -707, 707, -740, 671, -773, 634, -803, 595, -831, 555, -857, 514, -881, 471, -903, 427, -923, 382, -941, 336, -956, 290, -970, 242, -980, 195, -989, 146, -995, 98, -998, 49, -1000, 0, -998, -49, -995, -98, -989, -146, -980, -195, -970, -242, -956, -290, -941, -336, -923, -382, -903, -427, -881, -471, -857, -514, -831, -555, -803, -595, -773, -634, -740, -671, -707, -707, -671, -740, -634, -773, -595, -803, -555, -831, -514, -857, -471, -881, -427, -903, -382, -923, -336, -941, -290, -956, -242, -970, -195, -980, -146, -989, -98, -995, -49, -998, 0, -1000, 49, -998, 98, -995, 146, -989, 195, -980, 242, -970, 290, -956, 336, -941, 382, -923, 427, -903, 471, -881, 514, -857, 555, -831, 595, -803, 634, -773, 671, -740, 707, -707, 740, -671, 773, -634, 803, -595, 831, -555, 857, -514, 881, -471, 903, -427, 923, -382, 941, -336, 956, -290, 970, -242, 980, -195, 989, -146, 995, -98, 998, -49 }; const ICOORD *dirtab = (ICOORD *) idirtab; /********************************************************************** * DIR128::DIR128 * * Quantize the direction of an FCOORD to make a DIR128. **********************************************************************/ DIR128::DIR128( //from fcoord const FCOORD fc //vector to quantize ) { int high, low, current; //binary search low = 0; if (fc.y () == 0) { if (fc.x () >= 0) dir = 0; else dir = MODULUS / 2; return; } high = MODULUS; do { current = (high + low) / 2; if (dirtab[current] * fc >= 0) low = current; else high = current; } while (high - low > 1); dir = low; } /********************************************************************** * dir_to_gradient * * Convert a direction to a vector. **********************************************************************/ ICOORD DIR128::vector() const { //convert to vector return dirtab[dir]; //easy really }
C++
/////////////////////////////////////////////////////////////////////// // File: params_training_featdef.h // Description: Feature definitions for params training. // Author: Rika Antonova // Created: Mon Nov 28 11:26:42 PDT 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_ #define TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_ #include "genericvector.h" #include "strngs.h" namespace tesseract { // Maximum number of unichars in the small and medium sized words static const int kMaxSmallWordUnichars = 3; static const int kMaxMediumWordUnichars = 6; // Raw features extracted from a single OCR hypothesis. // The features are normalized (by outline length or number of unichars as // appropriate) real-valued quantities with unbounded range and // unknown distribution. // Normalization / binarization of these features is done at a later stage. // Note: when adding new fields to this enum make sure to modify // kParamsTrainingFeatureTypeName enum kParamsTrainingFeatureType { // Digits PTRAIN_DIGITS_SHORT, // 0 PTRAIN_DIGITS_MED, // 1 PTRAIN_DIGITS_LONG, // 2 // Number or pattern (NUMBER_PERM, USER_PATTERN_PERM) PTRAIN_NUM_SHORT, // 3 PTRAIN_NUM_MED, // 4 PTRAIN_NUM_LONG, // 5 // Document word (DOC_DAWG_PERM) PTRAIN_DOC_SHORT, // 6 PTRAIN_DOC_MED, // 7 PTRAIN_DOC_LONG, // 8 // Word (SYSTEM_DAWG_PERM, USER_DAWG_PERM, COMPOUND_PERM) PTRAIN_DICT_SHORT, // 9 PTRAIN_DICT_MED, // 10 PTRAIN_DICT_LONG, // 11 // Frequent word (FREQ_DAWG_PERM) PTRAIN_FREQ_SHORT, // 12 PTRAIN_FREQ_MED, // 13 PTRAIN_FREQ_LONG, // 14 PTRAIN_SHAPE_COST_PER_CHAR, // 15 PTRAIN_NGRAM_COST_PER_CHAR, // 16 PTRAIN_NUM_BAD_PUNC, // 17 PTRAIN_NUM_BAD_CASE, // 18 PTRAIN_XHEIGHT_CONSISTENCY, // 19 PTRAIN_NUM_BAD_CHAR_TYPE, // 20 PTRAIN_NUM_BAD_SPACING, // 21 PTRAIN_NUM_BAD_FONT, // 22 PTRAIN_RATING_PER_CHAR, // 23 PTRAIN_NUM_FEATURE_TYPES }; static const char * const kParamsTrainingFeatureTypeName[] = { "PTRAIN_DIGITS_SHORT", // 0 "PTRAIN_DIGITS_MED", // 1 "PTRAIN_DIGITS_LONG", // 2 "PTRAIN_NUM_SHORT", // 3 "PTRAIN_NUM_MED", // 4 "PTRAIN_NUM_LONG", // 5 "PTRAIN_DOC_SHORT", // 6 "PTRAIN_DOC_MED", // 7 "PTRAIN_DOC_LONG", // 8 "PTRAIN_DICT_SHORT", // 9 "PTRAIN_DICT_MED", // 10 "PTRAIN_DICT_LONG", // 11 "PTRAIN_FREQ_SHORT", // 12 "PTRAIN_FREQ_MED", // 13 "PTRAIN_FREQ_LONG", // 14 "PTRAIN_SHAPE_COST_PER_CHAR", // 15 "PTRAIN_NGRAM_COST_PER_CHAR", // 16 "PTRAIN_NUM_BAD_PUNC", // 17 "PTRAIN_NUM_BAD_CASE", // 18 "PTRAIN_XHEIGHT_CONSISTENCY", // 19 "PTRAIN_NUM_BAD_CHAR_TYPE", // 20 "PTRAIN_NUM_BAD_SPACING", // 21 "PTRAIN_NUM_BAD_FONT", // 22 "PTRAIN_RATING_PER_CHAR", // 23 }; // Returns the index of the given feature (by name), // or -1 meaning the feature is unknown. int ParamsTrainingFeatureByName(const char *name); // Entry with features extracted from a single OCR hypothesis for a word. struct ParamsTrainingHypothesis { ParamsTrainingHypothesis() : cost(0.0) { memset(features, 0, sizeof(float) * PTRAIN_NUM_FEATURE_TYPES); } ParamsTrainingHypothesis(const ParamsTrainingHypothesis &other) { memcpy(features, other.features, sizeof(float) * PTRAIN_NUM_FEATURE_TYPES); str = other.str; cost = other.cost; } float features[PTRAIN_NUM_FEATURE_TYPES]; STRING str; // string corresponding to word hypothesis (for debugging) float cost; // path cost computed by segsearch }; // A list of hypotheses explored during one run of segmentation search. typedef GenericVector<ParamsTrainingHypothesis> ParamsTrainingHypothesisList; // A bundle that accumulates all of the hypothesis lists explored during all // of the runs of segmentation search on a word (e.g. a list of hypotheses // explored on PASS1, PASS2, fix xheight pass, etc). class ParamsTrainingBundle { public: ParamsTrainingBundle() {}; // Starts a new hypothesis list. // Should be called at the beginning of a new run of the segmentation search. void StartHypothesisList() { hyp_list_vec.push_back(ParamsTrainingHypothesisList()); } // Adds a new ParamsTrainingHypothesis to the current hypothesis list // and returns the reference to the newly added entry. ParamsTrainingHypothesis &AddHypothesis( const ParamsTrainingHypothesis &other) { if (hyp_list_vec.empty()) StartHypothesisList(); hyp_list_vec.back().push_back(ParamsTrainingHypothesis(other)); return hyp_list_vec.back().back(); } GenericVector<ParamsTrainingHypothesisList> hyp_list_vec; }; } // namespace tesseract #endif // TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
C++
/////////////////////////////////////////////////////////////////////// // File: ccstruct.h // Description: ccstruct class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCSTRUCT_CCSTRUCT_H__ #define TESSERACT_CCSTRUCT_CCSTRUCT_H__ #include "cutil.h" namespace tesseract { class CCStruct : public CUtil { public: CCStruct(); ~CCStruct(); // Globally accessible constants. // APPROXIMATIONS of the fractions of the character cell taken by // the descenders, ascenders, and x-height. static const double kDescenderFraction; // = 0.25; static const double kXHeightFraction; // = 0.5; static const double kAscenderFraction; // = 0.25; // Derived value giving the x-height as a fraction of cap-height. static const double kXHeightCapRatio; // = XHeight/(XHeight + Ascender). }; class Tesseract; } // namespace tesseract #endif // TESSERACT_CCSTRUCT_CCSTRUCT_H__
C++
/********************************************************************** * File: boxread.cpp * Description: Read data from a box file. * Author: Ray Smith * Created: Fri Aug 24 17:47:23 PDT 2007 * * (C) Copyright 2007, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef TESSERACT_CCUTIL_BOXREAD_H__ #define TESSERACT_CCUTIL_BOXREAD_H__ #include <stdio.h> #include "genericvector.h" #include "strngs.h" class STRING; class TBOX; // Size of buffer used to read a line from a box file. const int kBoxReadBufSize = 1024; // Open the boxfile based on the given image filename. // Returns NULL if the box file cannot be opened. FILE* OpenBoxFile(const STRING& fname); // Reads all boxes from the given filename. // Reads a specific target_page number if >= 0, or all pages otherwise. // Skips blanks if skip_blanks is true. // The UTF-8 label of the box is put in texts, and the full box definition as // a string is put in box_texts, with the corresponding page number in pages. // Each of the output vectors is optional (may be NULL). // Returns false if no boxes are found. bool ReadAllBoxes(int target_page, bool skip_blanks, const STRING& filename, GenericVector<TBOX>* boxes, GenericVector<STRING>* texts, GenericVector<STRING>* box_texts, GenericVector<int>* pages); // Reads all boxes from the string. Otherwise, as ReadAllBoxes. bool ReadMemBoxes(int target_page, bool skip_blanks, const char* box_data, GenericVector<TBOX>* boxes, GenericVector<STRING>* texts, GenericVector<STRING>* box_texts, GenericVector<int>* pages); // Returns the box file name corresponding to the given image_filename. STRING BoxFileName(const STRING& image_filename); // ReadNextBox factors out the code to interpret a line of a box // file so that applybox and unicharset_extractor interpret the same way. // This function returns the next valid box file utf8 string and coords // and returns true, or false on eof (and closes the file). // It ignores the utf8 file signature ByteOrderMark (U+FEFF=EF BB BF), checks // for valid utf-8 and allows space or tab between fields. // utf8_str is set with the unichar string, and bounding box with the box. // If there are page numbers in the file, it reads them all. bool ReadNextBox(int *line_number, FILE* box_file, STRING* utf8_str, TBOX* bounding_box); // As ReadNextBox above, but get a specific page number. (0-based) // Use -1 to read any page number. Files without page number all // read as if they are page 0. bool ReadNextBox(int target_page, int *line_number, FILE* box_file, STRING* utf8_str, TBOX* bounding_box); // Parses the given box file string into a page_number, utf8_str, and // bounding_box. Returns true on a successful parse. bool ParseBoxFileStr(const char* boxfile_str, int* page_number, STRING* utf8_str, TBOX* bounding_box); // Creates a box file string from a unichar string, TBOX and page number. void MakeBoxFileStr(const char* unichar_str, const TBOX& box, int page_num, STRING* box_str); #endif // TESSERACT_CCUTIL_BOXREAD_H__
C++
/********************************************************************** * File: ocrblock.h (Formerly block.h) * Description: Page block class definition. * Author: Ray Smith * Created: Thu Mar 14 17:32:01 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef OCRBLOCK_H #define OCRBLOCK_H #include "ocrpara.h" #include "ocrrow.h" #include "pdblock.h" class BLOCK; //forward decl ELISTIZEH (BLOCK) class BLOCK:public ELIST_LINK, public PDBLK //page block { friend class BLOCK_RECT_IT; //block iterator public: BLOCK() : re_rotation_(1.0f, 0.0f), classify_rotation_(1.0f, 0.0f), skew_(1.0f, 0.0f) { right_to_left_ = false; hand_poly = NULL; } BLOCK(const char *name, //< filename BOOL8 prop, //< proportional inT16 kern, //< kerning inT16 space, //< spacing inT16 xmin, //< bottom left inT16 ymin, inT16 xmax, //< top right inT16 ymax); ~BLOCK () { } /** * set space size etc. * @param prop proportional * @param kern inter char size * @param space inter word size * @param ch_pitch pitch if fixed */ void set_stats(BOOL8 prop, inT16 kern, inT16 space, inT16 ch_pitch) { proportional = prop; kerning = (inT8) kern; spacing = space; pitch = ch_pitch; } /// set char size void set_xheight(inT32 height) { xheight = height; } /// set font class void set_font_class(inT16 font) { font_class = font; } /// return proportional BOOL8 prop() const { return proportional; } bool right_to_left() const { return right_to_left_; } void set_right_to_left(bool value) { right_to_left_ = value; } /// return pitch inT32 fixed_pitch() const { return pitch; } /// return kerning inT16 kern() const { return kerning; } /// return font class inT16 font() const { return font_class; } /// return spacing inT16 space() const { return spacing; } /// return filename const char *name() const { return filename.string (); } /// return xheight inT32 x_height() const { return xheight; } float cell_over_xheight() const { return cell_over_xheight_; } void set_cell_over_xheight(float ratio) { cell_over_xheight_ = ratio; } /// get rows ROW_LIST *row_list() { return &rows; } // Compute the margins between the edges of each row and this block's // polyblock, and store the results in the rows. void compute_row_margins(); // get paragraphs PARA_LIST *para_list() { return &paras_; } /// get blobs C_BLOB_LIST *blob_list() { return &c_blobs; } C_BLOB_LIST *reject_blobs() { return &rej_blobs; } FCOORD re_rotation() const { return re_rotation_; // How to transform coords back to image. } void set_re_rotation(const FCOORD& rotation) { re_rotation_ = rotation; } FCOORD classify_rotation() const { return classify_rotation_; // Apply this before classifying. } void set_classify_rotation(const FCOORD& rotation) { classify_rotation_ = rotation; } FCOORD skew() const { return skew_; // Direction of true horizontal. } void set_skew(const FCOORD& skew) { skew_ = skew; } const ICOORD& median_size() const { return median_size_; } void set_median_size(int x, int y) { median_size_.set_x(x); median_size_.set_y(y); } Pix* render_mask() { return PDBLK::render_mask(re_rotation_); } // Reflects the polygon in the y-axis and recomputes the bounding_box. // Does nothing to any contained rows/words/blobs etc. void reflect_polygon_in_y_axis(); void rotate(const FCOORD& rotation); /// decreasing y order void sort_rows(); /// shrink white space void compress(); /// check proportional void check_pitch(); /// shrink white space and move by vector void compress(const ICOORD vec); /// dump whole table void print(FILE *fp, BOOL8 dump); BLOCK& operator=(const BLOCK & source); private: BOOL8 proportional; //< proportional bool right_to_left_; //< major script is right to left. inT8 kerning; //< inter blob gap inT16 spacing; //< inter word gap inT16 pitch; //< pitch of non-props inT16 font_class; //< correct font class inT32 xheight; //< height of chars float cell_over_xheight_; //< Ratio of cell height to xheight. STRING filename; //< name of block ROW_LIST rows; //< rows in block PARA_LIST paras_; //< paragraphs of block C_BLOB_LIST c_blobs; //< before textord C_BLOB_LIST rej_blobs; //< duff stuff FCOORD re_rotation_; //< How to transform coords back to image. FCOORD classify_rotation_; //< Apply this before classifying. FCOORD skew_; //< Direction of true horizontal. ICOORD median_size_; //< Median size of blobs. }; int decreasing_top_order(const void *row1, const void *row2); // A function to print segmentation stats for the given block list. void PrintSegmentationStats(BLOCK_LIST* block_list); // Extracts blobs fromo the given block list and adds them to the output list. // The block list must have been created by performing a page segmentation. void ExtractBlobsFromSegmentation(BLOCK_LIST* blocks, C_BLOB_LIST* output_blob_list); // Refreshes the words in the block_list by using blobs in the // new_blobs list. // Block list must have word segmentation in it. // It consumes the blobs provided in the new_blobs list. The blobs leftover in // the new_blobs list after the call weren't matched to any blobs of the words // in block list. // The output not_found_blobs is a list of blobs from the original segmentation // in the block_list for which no corresponding new blobs were found. void RefreshWordBlobsFromNewBlobs(BLOCK_LIST* block_list, C_BLOB_LIST* new_blobs, C_BLOB_LIST* not_found_blobs); #endif
C++
/********************************************************************** * File: normalis.cpp (Formerly denorm.c) * Description: Code for the DENORM class. * Author: Ray Smith * Created: Thu Apr 23 09:22:43 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "normalis.h" #include <stdlib.h> #include "allheaders.h" #include "blobs.h" #include "helpers.h" #include "matrix.h" #include "ocrblock.h" #include "unicharset.h" #include "werd.h" // Tolerance in pixels used for baseline and xheight on non-upper/lower scripts. const int kSloppyTolerance = 4; // Final tolerance in pixels added to the computed xheight range. const float kFinalPixelTolerance = 0.125f; DENORM::DENORM() { Init(); } DENORM::DENORM(const DENORM &src) { rotation_ = NULL; *this = src; } DENORM & DENORM::operator=(const DENORM & src) { Clear(); inverse_ = src.inverse_; predecessor_ = src.predecessor_; pix_ = src.pix_; block_ = src.block_; if (src.rotation_ == NULL) rotation_ = NULL; else rotation_ = new FCOORD(*src.rotation_); x_origin_ = src.x_origin_; y_origin_ = src.y_origin_; x_scale_ = src.x_scale_; y_scale_ = src.y_scale_; final_xshift_ = src.final_xshift_; final_yshift_ = src.final_yshift_; return *this; } DENORM::~DENORM() { Clear(); } // Initializes the denorm for a transformation. For details see the large // comment in normalis.h. // Arguments: // block: if not NULL, then this is the first transformation, and // block->re_rotation() needs to be used after the Denorm // transformation to get back to the image coords. // rotation: if not NULL, apply this rotation after translation to the // origin and scaling. (Usually a classify rotation.) // predecessor: if not NULL, then predecessor has been applied to the // input space and needs to be undone to complete the inverse. // The above pointers are not owned by this DENORM and are assumed to live // longer than this denorm, except rotation, which is deep copied on input. // // x_origin: The x origin which will be mapped to final_xshift in the result. // y_origin: The y origin which will be mapped to final_yshift in the result. // Added to result of row->baseline(x) if not NULL. // // x_scale: scale factor for the x-coordinate. // y_scale: scale factor for the y-coordinate. Ignored if segs is given. // Note that these scale factors apply to the same x and y system as the // x-origin and y-origin apply, ie after any block rotation, but before // the rotation argument is applied. // // final_xshift: The x component of the final translation. // final_yshift: The y component of the final translation. void DENORM::SetupNormalization(const BLOCK* block, const FCOORD* rotation, const DENORM* predecessor, float x_origin, float y_origin, float x_scale, float y_scale, float final_xshift, float final_yshift) { Clear(); block_ = block; if (rotation == NULL) rotation_ = NULL; else rotation_ = new FCOORD(*rotation); predecessor_ = predecessor; x_origin_ = x_origin; y_origin_ = y_origin; x_scale_ = x_scale; y_scale_ = y_scale; final_xshift_ = final_xshift; final_yshift_ = final_yshift; } // Helper for SetupNonLinear computes an image of shortest run-lengths from // the x/y edges provided. // Based on "A nonlinear normalization method for handprinted Kanji character // recognition -- line density equalization" by Hiromitsu Yamada et al. // Eg below is an O in a 1-pixel margin-ed bounding box and the corresponding // ______________ input x_coords and y_coords. // | _________ | <empty> // | | _ | | 1, 6 // | | | | | | 1, 3, 4, 6 // | | | | | | 1, 3, 4, 6 // | | | | | | 1, 3, 4, 6 // | | |_| | | 1, 3, 4, 6 // | |_________| | 1, 6 // |_____________| <empty> // E 1 1 1 1 1 E // m 7 7 2 7 7 m // p 6 p // t 7 t // y y // The output image contains the min of the x and y run-length (distance // between edges) at each coordinate in the image thus: // ______________ // |7 1_1_1_1_1 7| // |1|5 5 1 5 5|1| // |1|2 2|1|2 2|1| // |1|2 2|1|2 2|1| // |1|2 2|1|2 2|1| // |1|2 2|1|2 2|1| // |1|5_5_1_5_5|1| // |7_1_1_1_1_1_7| // Note that the input coords are all integer, so all partial pixels are dealt // with elsewhere. Although it is nice for outlines to be properly connected // and continuous, there is no requirement that they be as such, so they could // have been derived from a flaky source, such as greyscale. // This function works only within the provided box, and it is assumed that the // input x_coords and y_coords have already been translated to have the bottom- // left of box as the origin. Although an output, the minruns should have been // pre-initialized to be the same size as box. Each element will contain the // minimum of x and y run-length as shown above. static void ComputeRunlengthImage( const TBOX& box, const GenericVector<GenericVector<int> >& x_coords, const GenericVector<GenericVector<int> >& y_coords, GENERIC_2D_ARRAY<int>* minruns) { int width = box.width(); int height = box.height(); ASSERT_HOST(minruns->dim1() == width); ASSERT_HOST(minruns->dim2() == height); // Set a 2-d image array to the run lengths at each pixel. for (int ix = 0; ix < width; ++ix) { int y = 0; for (int i = 0; i < y_coords[ix].size(); ++i) { int y_edge = ClipToRange(y_coords[ix][i], 0, height); int gap = y_edge - y; // Every pixel between the last and current edge get set to the gap. while (y < y_edge) { (*minruns)(ix, y) = gap; ++y; } } // Pretend there is a bounding box of edges all around the image. int gap = height - y; while (y < height) { (*minruns)(ix, y) = gap; ++y; } } // Now set the image pixels the the MIN of the x and y runlengths. for (int iy = 0; iy < height; ++iy) { int x = 0; for (int i = 0; i < x_coords[iy].size(); ++i) { int x_edge = ClipToRange(x_coords[iy][i], 0, width); int gap = x_edge - x; while (x < x_edge) { if (gap < (*minruns)(x, iy)) (*minruns)(x, iy) = gap; ++x; } } int gap = width - x; while (x < width) { if (gap < (*minruns)(x, iy)) (*minruns)(x, iy) = gap; ++x; } } } // Converts the run-length image (see above to the edge density profiles used // for scaling, thus: // ______________ // |7 1_1_1_1_1 7| = 5.28 // |1|5 5 1 5 5|1| = 3.8 // |1|2 2|1|2 2|1| = 5 // |1|2 2|1|2 2|1| = 5 // |1|2 2|1|2 2|1| = 5 // |1|2 2|1|2 2|1| = 5 // |1|5_5_1_5_5|1| = 3.8 // |7_1_1_1_1_1_7| = 5.28 // 6 4 4 8 4 4 6 // . . . . . . . // 2 4 4 0 4 4 2 // 8 8 // Each profile is the sum of the reciprocals of the pixels in the image in // the appropriate row or column, and these are then normalized to sum to 1. // On output hx, hy contain an extra element, which will eventually be used // to guarantee that the top/right edge of the box (and anything beyond) always // gets mapped to the maximum target coordinate. static void ComputeEdgeDensityProfiles(const TBOX& box, const GENERIC_2D_ARRAY<int>& minruns, GenericVector<float>* hx, GenericVector<float>* hy) { int width = box.width(); int height = box.height(); hx->init_to_size(width + 1, 0.0); hy->init_to_size(height + 1, 0.0); double total = 0.0; for (int iy = 0; iy < height; ++iy) { for (int ix = 0; ix < width; ++ix) { int run = minruns(ix, iy); if (run == 0) run = 1; float density = 1.0f / run; (*hx)[ix] += density; (*hy)[iy] += density; } total += (*hy)[iy]; } // Normalize each profile to sum to 1. if (total > 0.0) { for (int ix = 0; ix < width; ++ix) { (*hx)[ix] /= total; } for (int iy = 0; iy < height; ++iy) { (*hy)[iy] /= total; } } // There is an extra element in each array, so initialize to 1. (*hx)[width] = 1.0f; (*hy)[height] = 1.0f; } // Sets up the DENORM to execute a non-linear transformation based on // preserving an even distribution of stroke edges. The transformation // operates only within the given box. // x_coords is a collection of the x-coords of vertical edges for each // y-coord starting at box.bottom(). // y_coords is a collection of the y-coords of horizontal edges for each // x-coord starting at box.left(). // Eg x_coords[0] is a collection of the x-coords of edges at y=bottom. // Eg x_coords[1] is a collection of the x-coords of edges at y=bottom + 1. // The second-level vectors must all be sorted in ascending order. // See comments on the helper functions above for more details. void DENORM::SetupNonLinear( const DENORM* predecessor, const TBOX& box, float target_width, float target_height, float final_xshift, float final_yshift, const GenericVector<GenericVector<int> >& x_coords, const GenericVector<GenericVector<int> >& y_coords) { Clear(); predecessor_ = predecessor; // x_map_ and y_map_ store a mapping from input x and y coordinate to output // x and y coordinate, based on scaling to the supplied target_width and // target_height. x_map_ = new GenericVector<float>; y_map_ = new GenericVector<float>; // Set a 2-d image array to the run lengths at each pixel. int width = box.width(); int height = box.height(); GENERIC_2D_ARRAY<int> minruns(width, height, 0); ComputeRunlengthImage(box, x_coords, y_coords, &minruns); // Edge density is the sum of the inverses of the run lengths. Compute // edge density projection profiles. ComputeEdgeDensityProfiles(box, minruns, x_map_, y_map_); // Convert the edge density profiles to the coordinates by multiplying by // the desired size and accumulating. (*x_map_)[width] = target_width; for (int x = width - 1; x >= 0; --x) { (*x_map_)[x] = (*x_map_)[x + 1] - (*x_map_)[x] * target_width; } (*y_map_)[height] = target_height; for (int y = height - 1; y >= 0; --y) { (*y_map_)[y] = (*y_map_)[y + 1] - (*y_map_)[y] * target_height; } x_origin_ = box.left(); y_origin_ = box.bottom(); final_xshift_ = final_xshift; final_yshift_ = final_yshift; } // Transforms the given coords one step forward to normalized space, without // using any block rotation or predecessor. void DENORM::LocalNormTransform(const TPOINT& pt, TPOINT* transformed) const { FCOORD src_pt(pt.x, pt.y); FCOORD float_result; LocalNormTransform(src_pt, &float_result); transformed->x = IntCastRounded(float_result.x()); transformed->y = IntCastRounded(float_result.y()); } void DENORM::LocalNormTransform(const FCOORD& pt, FCOORD* transformed) const { FCOORD translated(pt.x() - x_origin_, pt.y() - y_origin_); if (x_map_ != NULL && y_map_ != NULL) { int x = ClipToRange(IntCastRounded(translated.x()), 0, x_map_->size()-1); translated.set_x((*x_map_)[x]); int y = ClipToRange(IntCastRounded(translated.y()), 0, y_map_->size()-1); translated.set_y((*y_map_)[y]); } else { translated.set_x(translated.x() * x_scale_); translated.set_y(translated.y() * y_scale_); if (rotation_ != NULL) translated.rotate(*rotation_); } transformed->set_x(translated.x() + final_xshift_); transformed->set_y(translated.y() + final_yshift_); } // Transforms the given coords forward to normalized space using the // full transformation sequence defined by the block rotation, the // predecessors, deepest first, and finally this. If first_norm is not NULL, // then the first and deepest transformation used is first_norm, ending // with this, and the block rotation will not be applied. void DENORM::NormTransform(const DENORM* first_norm, const TPOINT& pt, TPOINT* transformed) const { FCOORD src_pt(pt.x, pt.y); FCOORD float_result; NormTransform(first_norm, src_pt, &float_result); transformed->x = IntCastRounded(float_result.x()); transformed->y = IntCastRounded(float_result.y()); } void DENORM::NormTransform(const DENORM* first_norm, const FCOORD& pt, FCOORD* transformed) const { FCOORD src_pt(pt); if (first_norm != this) { if (predecessor_ != NULL) { predecessor_->NormTransform(first_norm, pt, &src_pt); } else if (block_ != NULL) { FCOORD fwd_rotation(block_->re_rotation().x(), -block_->re_rotation().y()); src_pt.rotate(fwd_rotation); } } LocalNormTransform(src_pt, transformed); } // Transforms the given coords one step back to source space, without // using to any block rotation or predecessor. void DENORM::LocalDenormTransform(const TPOINT& pt, TPOINT* original) const { FCOORD src_pt(pt.x, pt.y); FCOORD float_result; LocalDenormTransform(src_pt, &float_result); original->x = IntCastRounded(float_result.x()); original->y = IntCastRounded(float_result.y()); } void DENORM::LocalDenormTransform(const FCOORD& pt, FCOORD* original) const { FCOORD rotated(pt.x() - final_xshift_, pt.y() - final_yshift_); if (x_map_ != NULL && y_map_ != NULL) { int x = x_map_->binary_search(rotated.x()); original->set_x(x + x_origin_); int y = y_map_->binary_search(rotated.y()); original->set_y(y + y_origin_); } else { if (rotation_ != NULL) { FCOORD inverse_rotation(rotation_->x(), -rotation_->y()); rotated.rotate(inverse_rotation); } original->set_x(rotated.x() / x_scale_ + x_origin_); float y_scale = y_scale_; original->set_y(rotated.y() / y_scale + y_origin_); } } // Transforms the given coords all the way back to source image space using // the full transformation sequence defined by this and its predecesors // recursively, shallowest first, and finally any block re_rotation. // If last_denorm is not NULL, then the last transformation used will // be last_denorm, and the block re_rotation will never be executed. void DENORM::DenormTransform(const DENORM* last_denorm, const TPOINT& pt, TPOINT* original) const { FCOORD src_pt(pt.x, pt.y); FCOORD float_result; DenormTransform(last_denorm, src_pt, &float_result); original->x = IntCastRounded(float_result.x()); original->y = IntCastRounded(float_result.y()); } void DENORM::DenormTransform(const DENORM* last_denorm, const FCOORD& pt, FCOORD* original) const { LocalDenormTransform(pt, original); if (last_denorm != this) { if (predecessor_ != NULL) { predecessor_->DenormTransform(last_denorm, *original, original); } else if (block_ != NULL) { original->rotate(block_->re_rotation()); } } } // Normalize a blob using blob transformations. Less accurate, but // more accurately copies the old way. void DENORM::LocalNormBlob(TBLOB* blob) const { TBOX blob_box = blob->bounding_box(); ICOORD translation(-IntCastRounded(x_origin_), -IntCastRounded(y_origin_)); blob->Move(translation); if (y_scale_ != 1.0f) blob->Scale(y_scale_); if (rotation_ != NULL) blob->Rotate(*rotation_); translation.set_x(IntCastRounded(final_xshift_)); translation.set_y(IntCastRounded(final_yshift_)); blob->Move(translation); } // Fills in the x-height range accepted by the given unichar_id, given its // bounding box in the usual baseline-normalized coordinates, with some // initial crude x-height estimate (such as word size) and this denoting the // transformation that was used. void DENORM::XHeightRange(int unichar_id, const UNICHARSET& unicharset, const TBOX& bbox, float* min_xht, float* max_xht, float* yshift) const { // Default return -- accept anything. *yshift = 0.0f; *min_xht = 0.0f; *max_xht = MAX_FLOAT32; if (!unicharset.top_bottom_useful()) return; // Clip the top and bottom to the limit of normalized feature space. int top = ClipToRange<int>(bbox.top(), 0, kBlnCellHeight - 1); int bottom = ClipToRange<int>(bbox.bottom(), 0, kBlnCellHeight - 1); // A tolerance of yscale corresponds to 1 pixel in the image. double tolerance = y_scale(); // If the script doesn't have upper and lower-case characters, widen the // tolerance to allow sloppy baseline/x-height estimates. if (!unicharset.script_has_upper_lower()) tolerance = y_scale() * kSloppyTolerance; int min_bottom, max_bottom, min_top, max_top; unicharset.get_top_bottom(unichar_id, &min_bottom, &max_bottom, &min_top, &max_top); // Calculate the scale factor we'll use to get to image y-pixels double midx = (bbox.left() + bbox.right()) / 2.0; double ydiff = (bbox.top() - bbox.bottom()) + 2.0; FCOORD mid_bot(midx, bbox.bottom()), tmid_bot; FCOORD mid_high(midx, bbox.bottom() + ydiff), tmid_high; DenormTransform(NULL, mid_bot, &tmid_bot); DenormTransform(NULL, mid_high, &tmid_high); // bln_y_measure * yscale = image_y_measure double yscale = tmid_high.pt_to_pt_dist(tmid_bot) / ydiff; // Calculate y-shift int bln_yshift = 0, bottom_shift = 0, top_shift = 0; if (bottom < min_bottom - tolerance) { bottom_shift = bottom - min_bottom; } else if (bottom > max_bottom + tolerance) { bottom_shift = bottom - max_bottom; } if (top < min_top - tolerance) { top_shift = top - min_top; } else if (top > max_top + tolerance) { top_shift = top - max_top; } if ((top_shift >= 0 && bottom_shift > 0) || (top_shift < 0 && bottom_shift < 0)) { bln_yshift = (top_shift + bottom_shift) / 2; } *yshift = bln_yshift * yscale; // To help very high cap/xheight ratio fonts accept the correct x-height, // and to allow the large caps in small caps to accept the xheight of the // small caps, add kBlnBaselineOffset to chars with a maximum max, and have // a top already at a significantly high position. if (max_top == kBlnCellHeight - 1 && top > kBlnCellHeight - kBlnBaselineOffset / 2) max_top += kBlnBaselineOffset; top -= bln_yshift; int height = top - kBlnBaselineOffset - bottom_shift; double min_height = min_top - kBlnBaselineOffset - tolerance; double max_height = max_top - kBlnBaselineOffset + tolerance; // We shouldn't try calculations if the characters are very short (for example // for punctuation). if (min_height > kBlnXHeight / 8 && height > 0) { float result = height * kBlnXHeight * yscale / min_height; *max_xht = result + kFinalPixelTolerance; result = height * kBlnXHeight * yscale / max_height; *min_xht = result - kFinalPixelTolerance; } } // Prints the content of the DENORM for debug purposes. void DENORM::Print() const { if (pix_ != NULL) { tprintf("Pix dimensions %d x %d x %d\n", pixGetWidth(pix_), pixGetHeight(pix_), pixGetDepth(pix_)); } if (inverse_) tprintf("Inverse\n"); if (block_ && block_->re_rotation().x() != 1.0f) { tprintf("Block rotation %g, %g\n", block_->re_rotation().x(), block_->re_rotation().y()); } tprintf("Input Origin = (%g, %g)\n", x_origin_, y_origin_); if (x_map_ != NULL && y_map_ != NULL) { tprintf("x map:\n"); for (int x = 0; x < x_map_->size(); ++x) { tprintf("%g ", (*x_map_)[x]); } tprintf("\ny map:\n"); for (int y = 0; y < y_map_->size(); ++y) { tprintf("%g ", (*y_map_)[y]); } tprintf("\n"); } else { tprintf("Scale = (%g, %g)\n", x_scale_, y_scale_); if (rotation_ != NULL) tprintf("Rotation = (%g, %g)\n", rotation_->x(), rotation_->y()); } tprintf("Final Origin = (%g, %g)\n", final_xshift_, final_xshift_); if (predecessor_ != NULL) { tprintf("Predecessor:\n"); predecessor_->Print(); } } // ============== Private Code ====================== // Free allocated memory and clear pointers. void DENORM::Clear() { if (x_map_ != NULL) { delete x_map_; x_map_ = NULL; } if (y_map_ != NULL) { delete y_map_; y_map_ = NULL; } if (rotation_ != NULL) { delete rotation_; rotation_ = NULL; } } // Setup default values. void DENORM::Init() { inverse_ = false; pix_ = NULL; block_ = NULL; rotation_ = NULL; predecessor_ = NULL; x_map_ = NULL; y_map_ = NULL; x_origin_ = 0.0f; y_origin_ = 0.0f; x_scale_ = 1.0f; y_scale_ = 1.0f; final_xshift_ = 0.0f; final_yshift_ = static_cast<float>(kBlnBaselineOffset); }
C++
/********************************************************************** * File: ocrblock.cpp (Formerly block.c) * Description: BLOCK member functions and iterator functions. * Author: Ray Smith * Created: Fri Mar 15 09:41:28 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdlib.h> #include "blckerr.h" #include "ocrblock.h" #include "stepblob.h" #include "tprintf.h" #define BLOCK_LABEL_HEIGHT 150 //char height of block id ELISTIZE (BLOCK) /** * BLOCK::BLOCK * * Constructor for a simple rectangular block. */ BLOCK::BLOCK(const char *name, //< filename BOOL8 prop, //< proportional inT16 kern, //< kerning inT16 space, //< spacing inT16 xmin, //< bottom left inT16 ymin, inT16 xmax, //< top right inT16 ymax) : PDBLK (xmin, ymin, xmax, ymax), filename(name), re_rotation_(1.0f, 0.0f), classify_rotation_(1.0f, 0.0f), skew_(1.0f, 0.0f) { ICOORDELT_IT left_it = &leftside; ICOORDELT_IT right_it = &rightside; proportional = prop; right_to_left_ = false; kerning = kern; spacing = space; font_class = -1; //not assigned cell_over_xheight_ = 2.0f; hand_poly = NULL; left_it.set_to_list (&leftside); right_it.set_to_list (&rightside); //make default box left_it.add_to_end (new ICOORDELT (xmin, ymin)); left_it.add_to_end (new ICOORDELT (xmin, ymax)); right_it.add_to_end (new ICOORDELT (xmax, ymin)); right_it.add_to_end (new ICOORDELT (xmax, ymax)); } /** * decreasing_top_order * * Sort Comparator: Return <0 if row1 top < row2 top */ int decreasing_top_order( // const void *row1, const void *row2) { return (*(ROW **) row2)->bounding_box ().top () - (*(ROW **) row1)->bounding_box ().top (); } /** * BLOCK::rotate * * Rotate the polygon by the given rotation and recompute the bounding_box. */ void BLOCK::rotate(const FCOORD& rotation) { poly_block()->rotate(rotation); box = *poly_block()->bounding_box(); } /** * BLOCK::reflect_polygon_in_y_axis * * Reflects the polygon in the y-axis and recompute the bounding_box. * Does nothing to any contained rows/words/blobs etc. */ void BLOCK::reflect_polygon_in_y_axis() { poly_block()->reflect_in_y_axis(); box = *poly_block()->bounding_box(); } /** * BLOCK::sort_rows * * Order rows so that they are in order of decreasing Y coordinate */ void BLOCK::sort_rows() { // order on "top" ROW_IT row_it(&rows); row_it.sort (decreasing_top_order); } /** * BLOCK::compress * * Delete space between the rows. (And maybe one day, compress the rows) * Fill space of block from top down, left aligning rows. */ void BLOCK::compress() { // squash it up #define ROW_SPACING 5 ROW_IT row_it(&rows); ROW *row; ICOORD row_spacing (0, ROW_SPACING); ICOORDELT_IT icoordelt_it; sort_rows(); box = TBOX (box.topleft (), box.topleft ()); box.move_bottom_edge (ROW_SPACING); for (row_it.mark_cycle_pt (); !row_it.cycled_list (); row_it.forward ()) { row = row_it.data (); row->move (box.botleft () - row_spacing - row->bounding_box ().topleft ()); box += row->bounding_box (); } leftside.clear (); icoordelt_it.set_to_list (&leftside); icoordelt_it.add_to_end (new ICOORDELT (box.left (), box.bottom ())); icoordelt_it.add_to_end (new ICOORDELT (box.left (), box.top ())); rightside.clear (); icoordelt_it.set_to_list (&rightside); icoordelt_it.add_to_end (new ICOORDELT (box.right (), box.bottom ())); icoordelt_it.add_to_end (new ICOORDELT (box.right (), box.top ())); } /** * BLOCK::check_pitch * * Check whether the block is fixed or prop, set the flag, and set * the pitch if it is fixed. */ void BLOCK::check_pitch() { // check prop // tprintf("Missing FFT fixed pitch stuff!\n"); pitch = -1; } /** * BLOCK::compress * * Compress and move in a single operation. */ void BLOCK::compress( // squash it up const ICOORD vec // and move ) { box.move (vec); compress(); } /** * BLOCK::print * * Print the info on a block */ void BLOCK::print( //print list of sides FILE *, //< file to print on BOOL8 dump //< print full detail ) { ICOORDELT_IT it = &leftside; //iterator box.print (); tprintf ("Proportional= %s\n", proportional ? "TRUE" : "FALSE"); tprintf ("Kerning= %d\n", kerning); tprintf ("Spacing= %d\n", spacing); tprintf ("Fixed_pitch=%d\n", pitch); tprintf ("Filename= %s\n", filename.string ()); if (dump) { tprintf ("Left side coords are:\n"); for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) tprintf ("(%d,%d) ", it.data ()->x (), it.data ()->y ()); tprintf ("\n"); tprintf ("Right side coords are:\n"); it.set_to_list (&rightside); for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) tprintf ("(%d,%d) ", it.data ()->x (), it.data ()->y ()); tprintf ("\n"); } } /** * BLOCK::operator= * * Assignment - duplicate the block structure, but with an EMPTY row list. */ BLOCK & BLOCK::operator= ( //assignment const BLOCK & source //from this ) { this->ELIST_LINK::operator= (source); this->PDBLK::operator= (source); proportional = source.proportional; kerning = source.kerning; spacing = source.spacing; filename = source.filename; //STRINGs assign ok if (!rows.empty ()) rows.clear (); re_rotation_ = source.re_rotation_; classify_rotation_ = source.classify_rotation_; skew_ = source.skew_; return *this; } // This function is for finding the approximate (horizontal) distance from // the x-coordinate of the left edge of a symbol to the left edge of the // text block which contains it. We are passed: // segments - output of PB_LINE_IT::get_line() which contains x-coordinate // intervals for the scan line going through the symbol's y-coordinate. // Each element of segments is of the form (x()=start_x, y()=length). // x - the x coordinate of the symbol we're interested in. // margin - return value, the distance from x,y to the left margin of the // block containing it. // If all segments were to the right of x, we return false and 0. bool LeftMargin(ICOORDELT_LIST *segments, int x, int *margin) { bool found = false; *margin = 0; if (segments->empty()) return found; ICOORDELT_IT seg_it(segments); for (seg_it.mark_cycle_pt(); !seg_it.cycled_list(); seg_it.forward()) { int cur_margin = x - seg_it.data()->x(); if (cur_margin >= 0) { if (!found) { *margin = cur_margin; } else if (cur_margin < *margin) { *margin = cur_margin; } found = true; } } return found; } // This function is for finding the approximate (horizontal) distance from // the x-coordinate of the right edge of a symbol to the right edge of the // text block which contains it. We are passed: // segments - output of PB_LINE_IT::get_line() which contains x-coordinate // intervals for the scan line going through the symbol's y-coordinate. // Each element of segments is of the form (x()=start_x, y()=length). // x - the x coordinate of the symbol we're interested in. // margin - return value, the distance from x,y to the right margin of the // block containing it. // If all segments were to the left of x, we return false and 0. bool RightMargin(ICOORDELT_LIST *segments, int x, int *margin) { bool found = false; *margin = 0; if (segments->empty()) return found; ICOORDELT_IT seg_it(segments); for (seg_it.mark_cycle_pt(); !seg_it.cycled_list(); seg_it.forward()) { int cur_margin = seg_it.data()->x() + seg_it.data()->y() - x; if (cur_margin >= 0) { if (!found) { *margin = cur_margin; } else if (cur_margin < *margin) { *margin = cur_margin; } found = true; } } return found; } // Compute the distance from the left and right ends of each row to the // left and right edges of the block's polyblock. Illustration: // ____________________________ _______________________ // | Howdy neighbor! | |rectangular blocks look| // | This text is written to| |more like stacked pizza| // |illustrate how useful poly- |boxes. | // |blobs are in ----------- ------ The polyblob| // |dealing with| _________ |for a BLOCK rec-| // |harder layout| /===========\ |ords the possibly| // |issues. | | _ _ | |skewed pseudo-| // | You see this| | |_| \|_| | |rectangular | // |text is flowed| | } | |boundary that| // |around a mid-| \ ____ | |forms the ideal-| // |cloumn portrait._____ \ / __|ized text margin| // | Polyblobs exist| \ / |from which we should| // |to account for insets| | | |measure paragraph| // |which make otherwise| ----- |indentation. | // ----------------------- ---------------------- // // If we identify a drop-cap, we measure the left margin for the lines // below the first line relative to one space past the drop cap. The // first line's margin and those past the drop cap area are measured // relative to the enclosing polyblock. // // TODO(rays): Before this will work well, we'll need to adjust the // polyblob tighter around the text near images, as in: // UNLV_AUTO:mag.3G0 page 2 // UNLV_AUTO:mag.3G4 page 16 void BLOCK::compute_row_margins() { if (row_list()->empty() || row_list()->singleton()) { return; } // If Layout analysis was not called, default to this. POLY_BLOCK rect_block(bounding_box(), PT_FLOWING_TEXT); POLY_BLOCK *pblock = &rect_block; if (poly_block() != NULL) { pblock = poly_block(); } // Step One: Determine if there is a drop-cap. // TODO(eger): Fix up drop cap code for RTL languages. ROW_IT r_it(row_list()); ROW *first_row = r_it.data(); ROW *second_row = r_it.data_relative(1); // initialize the bottom of a fictitious drop cap far above the first line. int drop_cap_bottom = first_row->bounding_box().top() + first_row->bounding_box().height(); int drop_cap_right = first_row->bounding_box().left(); int mid_second_line = second_row->bounding_box().top() - second_row->bounding_box().height() / 2; WERD_IT werd_it(r_it.data()->word_list()); // words of line one if (!werd_it.empty()) { C_BLOB_IT cblob_it(werd_it.data()->cblob_list()); for (cblob_it.mark_cycle_pt(); !cblob_it.cycled_list(); cblob_it.forward()) { TBOX bbox = cblob_it.data()->bounding_box(); if (bbox.bottom() <= mid_second_line) { // we found a real drop cap first_row->set_has_drop_cap(true); if (drop_cap_bottom > bbox.bottom()) drop_cap_bottom = bbox.bottom(); if (drop_cap_right < bbox.right()) drop_cap_right = bbox.right(); } } } // Step Two: Calculate the margin from the text of each row to the block // (or drop-cap) boundaries. PB_LINE_IT lines(pblock); r_it.set_to_list(row_list()); for (r_it.mark_cycle_pt(); !r_it.cycled_list(); r_it.forward()) { ROW *row = r_it.data(); TBOX row_box = row->bounding_box(); int left_y = row->base_line(row_box.left()) + row->x_height(); int left_margin; ICOORDELT_LIST *segments = lines.get_line(left_y); LeftMargin(segments, row_box.left(), &left_margin); delete segments; if (row_box.top() >= drop_cap_bottom) { int drop_cap_distance = row_box.left() - row->space() - drop_cap_right; if (drop_cap_distance < 0) drop_cap_distance = 0; if (drop_cap_distance < left_margin) left_margin = drop_cap_distance; } int right_y = row->base_line(row_box.right()) + row->x_height(); int right_margin; segments = lines.get_line(right_y); RightMargin(segments, row_box.right(), &right_margin); delete segments; row->set_lmargin(left_margin); row->set_rmargin(right_margin); } } /********************************************************************** * PrintSegmentationStats * * Prints segmentation stats for the given block list. **********************************************************************/ void PrintSegmentationStats(BLOCK_LIST* block_list) { int num_blocks = 0; int num_rows = 0; int num_words = 0; int num_blobs = 0; BLOCK_IT block_it(block_list); for (block_it.mark_cycle_pt(); !block_it.cycled_list(); block_it.forward()) { BLOCK* block = block_it.data(); ++num_blocks; ROW_IT row_it(block->row_list()); for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { ++num_rows; ROW* row = row_it.data(); // Iterate over all werds in the row. WERD_IT werd_it(row->word_list()); for (werd_it.mark_cycle_pt(); !werd_it.cycled_list(); werd_it.forward()) { WERD* werd = werd_it.data(); ++num_words; num_blobs += werd->cblob_list()->length(); } } } tprintf("Block list stats:\nBlocks = %d\nRows = %d\nWords = %d\nBlobs = %d\n", num_blocks, num_rows, num_words, num_blobs); } /********************************************************************** * ExtractBlobsFromSegmentation * * Extracts blobs from the given block list and adds them to the output list. * The block list must have been created by performing a page segmentation. **********************************************************************/ void ExtractBlobsFromSegmentation(BLOCK_LIST* blocks, C_BLOB_LIST* output_blob_list) { C_BLOB_IT return_list_it(output_blob_list); BLOCK_IT block_it(blocks); for (block_it.mark_cycle_pt(); !block_it.cycled_list(); block_it.forward()) { BLOCK* block = block_it.data(); ROW_IT row_it(block->row_list()); for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { ROW* row = row_it.data(); // Iterate over all werds in the row. WERD_IT werd_it(row->word_list()); for (werd_it.mark_cycle_pt(); !werd_it.cycled_list(); werd_it.forward()) { WERD* werd = werd_it.data(); return_list_it.move_to_last(); return_list_it.add_list_after(werd->cblob_list()); return_list_it.move_to_last(); return_list_it.add_list_after(werd->rej_cblob_list()); } } } } /********************************************************************** * RefreshWordBlobsFromNewBlobs() * * Refreshes the words in the block_list by using blobs in the * new_blobs list. * Block list must have word segmentation in it. * It consumes the blobs provided in the new_blobs list. The blobs leftover in * the new_blobs list after the call weren't matched to any blobs of the words * in block list. * The output not_found_blobs is a list of blobs from the original segmentation * in the block_list for which no corresponding new blobs were found. **********************************************************************/ void RefreshWordBlobsFromNewBlobs(BLOCK_LIST* block_list, C_BLOB_LIST* new_blobs, C_BLOB_LIST* not_found_blobs) { // Now iterate over all the blobs in the segmentation_block_list_, and just // replace the corresponding c-blobs inside the werds. BLOCK_IT block_it(block_list); for (block_it.mark_cycle_pt(); !block_it.cycled_list(); block_it.forward()) { BLOCK* block = block_it.data(); if (block->poly_block() != NULL && !block->poly_block()->IsText()) continue; // Don't touch non-text blocks. // Iterate over all rows in the block. ROW_IT row_it(block->row_list()); for (row_it.mark_cycle_pt(); !row_it.cycled_list(); row_it.forward()) { ROW* row = row_it.data(); // Iterate over all werds in the row. WERD_IT werd_it(row->word_list()); WERD_LIST new_words; WERD_IT new_words_it(&new_words); for (werd_it.mark_cycle_pt(); !werd_it.cycled_list(); werd_it.forward()) { WERD* werd = werd_it.extract(); WERD* new_werd = werd->ConstructWerdWithNewBlobs(new_blobs, not_found_blobs); if (new_werd) { // Insert this new werd into the actual row's werd-list. Remove the // existing one. new_words_it.add_after_then_move(new_werd); delete werd; } else { // Reinsert the older word back, for lack of better options. // This is critical since dropping the words messes up segmentation: // eg. 1st word in the row might otherwise have W_FUZZY_NON turned on. new_words_it.add_after_then_move(werd); } } // Get rid of the old word list & replace it with the new one. row->word_list()->clear(); werd_it.move_to_first(); werd_it.add_list_after(&new_words); } } }
C++
/********************************************************************** * File: rejctmap.cpp (Formerly rejmap.c) * Description: REJ and REJMAP class functions. * Author: Phil Cheatle * Created: Thu Jun 9 13:46:38 BST 1994 * * (C) Copyright 1994, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "host.h" #include "rejctmap.h" #include "params.h" BOOL8 REJ::perm_rejected() { //Is char perm reject? return (flag (R_TESS_FAILURE) || flag (R_SMALL_XHT) || flag (R_EDGE_CHAR) || flag (R_1IL_CONFLICT) || flag (R_POSTNN_1IL) || flag (R_REJ_CBLOB) || flag (R_BAD_REPETITION) || flag (R_MM_REJECT)); } BOOL8 REJ::rej_before_nn_accept() { return flag (R_POOR_MATCH) || flag (R_NOT_TESS_ACCEPTED) || flag (R_CONTAINS_BLANKS) || flag (R_BAD_PERMUTER); } BOOL8 REJ::rej_between_nn_and_mm() { return flag (R_HYPHEN) || flag (R_DUBIOUS) || flag (R_NO_ALPHANUMS) || flag (R_MOSTLY_REJ) || flag (R_XHT_FIXUP); } BOOL8 REJ::rej_between_mm_and_quality_accept() { return flag (R_BAD_QUALITY); } BOOL8 REJ::rej_between_quality_and_minimal_rej_accept() { return flag (R_DOC_REJ) || flag (R_BLOCK_REJ) || flag (R_ROW_REJ) || flag (R_UNLV_REJ); } BOOL8 REJ::rej_before_mm_accept() { return rej_between_nn_and_mm () || (rej_before_nn_accept () && !flag (R_NN_ACCEPT) && !flag (R_HYPHEN_ACCEPT)); } BOOL8 REJ::rej_before_quality_accept() { return rej_between_mm_and_quality_accept () || (!flag (R_MM_ACCEPT) && rej_before_mm_accept ()); } BOOL8 REJ::rejected() { //Is char rejected? if (flag (R_MINIMAL_REJ_ACCEPT)) return FALSE; else return (perm_rejected () || rej_between_quality_and_minimal_rej_accept () || (!flag (R_QUALITY_ACCEPT) && rej_before_quality_accept ())); } BOOL8 REJ::accept_if_good_quality() { //potential rej? return (rejected () && !perm_rejected () && flag (R_BAD_PERMUTER) && !flag (R_POOR_MATCH) && !flag (R_NOT_TESS_ACCEPTED) && !flag (R_CONTAINS_BLANKS) && (!rej_between_nn_and_mm () && !rej_between_mm_and_quality_accept () && !rej_between_quality_and_minimal_rej_accept ())); } void REJ::setrej_tess_failure() { //Tess generated blank set_flag(R_TESS_FAILURE); } void REJ::setrej_small_xht() { //Small xht char/wd set_flag(R_SMALL_XHT); } void REJ::setrej_edge_char() { //Close to image edge set_flag(R_EDGE_CHAR); } void REJ::setrej_1Il_conflict() { //Initial reject map set_flag(R_1IL_CONFLICT); } void REJ::setrej_postNN_1Il() { //1Il after NN set_flag(R_POSTNN_1IL); } void REJ::setrej_rej_cblob() { //Insert duff blob set_flag(R_REJ_CBLOB); } void REJ::setrej_mm_reject() { //Matrix matcher set_flag(R_MM_REJECT); } void REJ::setrej_bad_repetition() { //Odd repeated char set_flag(R_BAD_REPETITION); } void REJ::setrej_poor_match() { //Failed Rays heuristic set_flag(R_POOR_MATCH); } void REJ::setrej_not_tess_accepted() { //TEMP reject_word set_flag(R_NOT_TESS_ACCEPTED); } void REJ::setrej_contains_blanks() { //TEMP reject_word set_flag(R_CONTAINS_BLANKS); } void REJ::setrej_bad_permuter() { //POTENTIAL reject_word set_flag(R_BAD_PERMUTER); } void REJ::setrej_hyphen() { //PostNN dubious hyphen or . set_flag(R_HYPHEN); } void REJ::setrej_dubious() { //PostNN dubious limit set_flag(R_DUBIOUS); } void REJ::setrej_no_alphanums() { //TEMP reject_word set_flag(R_NO_ALPHANUMS); } void REJ::setrej_mostly_rej() { //TEMP reject_word set_flag(R_MOSTLY_REJ); } void REJ::setrej_xht_fixup() { //xht fixup set_flag(R_XHT_FIXUP); } void REJ::setrej_bad_quality() { //TEMP reject_word set_flag(R_BAD_QUALITY); } void REJ::setrej_doc_rej() { //TEMP reject_word set_flag(R_DOC_REJ); } void REJ::setrej_block_rej() { //TEMP reject_word set_flag(R_BLOCK_REJ); } void REJ::setrej_row_rej() { //TEMP reject_word set_flag(R_ROW_REJ); } void REJ::setrej_unlv_rej() { //TEMP reject_word set_flag(R_UNLV_REJ); } void REJ::setrej_hyphen_accept() { //NN Flipped a char set_flag(R_HYPHEN_ACCEPT); } void REJ::setrej_nn_accept() { //NN Flipped a char set_flag(R_NN_ACCEPT); } void REJ::setrej_mm_accept() { //Matrix matcher set_flag(R_MM_ACCEPT); } void REJ::setrej_quality_accept() { //Quality flip a char set_flag(R_QUALITY_ACCEPT); } void REJ::setrej_minimal_rej_accept() { //Accept all except blank set_flag(R_MINIMAL_REJ_ACCEPT); } void REJ::full_print(FILE *fp) { fprintf (fp, "R_TESS_FAILURE: %s\n", flag (R_TESS_FAILURE) ? "T" : "F"); fprintf (fp, "R_SMALL_XHT: %s\n", flag (R_SMALL_XHT) ? "T" : "F"); fprintf (fp, "R_EDGE_CHAR: %s\n", flag (R_EDGE_CHAR) ? "T" : "F"); fprintf (fp, "R_1IL_CONFLICT: %s\n", flag (R_1IL_CONFLICT) ? "T" : "F"); fprintf (fp, "R_POSTNN_1IL: %s\n", flag (R_POSTNN_1IL) ? "T" : "F"); fprintf (fp, "R_REJ_CBLOB: %s\n", flag (R_REJ_CBLOB) ? "T" : "F"); fprintf (fp, "R_MM_REJECT: %s\n", flag (R_MM_REJECT) ? "T" : "F"); fprintf (fp, "R_BAD_REPETITION: %s\n", flag (R_BAD_REPETITION) ? "T" : "F"); fprintf (fp, "R_POOR_MATCH: %s\n", flag (R_POOR_MATCH) ? "T" : "F"); fprintf (fp, "R_NOT_TESS_ACCEPTED: %s\n", flag (R_NOT_TESS_ACCEPTED) ? "T" : "F"); fprintf (fp, "R_CONTAINS_BLANKS: %s\n", flag (R_CONTAINS_BLANKS) ? "T" : "F"); fprintf (fp, "R_BAD_PERMUTER: %s\n", flag (R_BAD_PERMUTER) ? "T" : "F"); fprintf (fp, "R_HYPHEN: %s\n", flag (R_HYPHEN) ? "T" : "F"); fprintf (fp, "R_DUBIOUS: %s\n", flag (R_DUBIOUS) ? "T" : "F"); fprintf (fp, "R_NO_ALPHANUMS: %s\n", flag (R_NO_ALPHANUMS) ? "T" : "F"); fprintf (fp, "R_MOSTLY_REJ: %s\n", flag (R_MOSTLY_REJ) ? "T" : "F"); fprintf (fp, "R_XHT_FIXUP: %s\n", flag (R_XHT_FIXUP) ? "T" : "F"); fprintf (fp, "R_BAD_QUALITY: %s\n", flag (R_BAD_QUALITY) ? "T" : "F"); fprintf (fp, "R_DOC_REJ: %s\n", flag (R_DOC_REJ) ? "T" : "F"); fprintf (fp, "R_BLOCK_REJ: %s\n", flag (R_BLOCK_REJ) ? "T" : "F"); fprintf (fp, "R_ROW_REJ: %s\n", flag (R_ROW_REJ) ? "T" : "F"); fprintf (fp, "R_UNLV_REJ: %s\n", flag (R_UNLV_REJ) ? "T" : "F"); fprintf (fp, "R_HYPHEN_ACCEPT: %s\n", flag (R_HYPHEN_ACCEPT) ? "T" : "F"); fprintf (fp, "R_NN_ACCEPT: %s\n", flag (R_NN_ACCEPT) ? "T" : "F"); fprintf (fp, "R_MM_ACCEPT: %s\n", flag (R_MM_ACCEPT) ? "T" : "F"); fprintf (fp, "R_QUALITY_ACCEPT: %s\n", flag (R_QUALITY_ACCEPT) ? "T" : "F"); fprintf (fp, "R_MINIMAL_REJ_ACCEPT: %s\n", flag (R_MINIMAL_REJ_ACCEPT) ? "T" : "F"); } //The REJMAP class has been hacked to use alloc_struct instead of new []. //This is to reduce memory fragmentation only as it is rather kludgy. //alloc_struct by-passes the call to the contsructor of REJ on each //array element. Although the constructor is empty, the BITS16 members //do have a constructor which sets all the flags to 0. The memset //replaces this functionality. REJMAP::REJMAP( //classwise copy const REJMAP &source) { REJ *to; REJ *from = source.ptr; int i; len = source.length (); if (len > 0) { ptr = (REJ *) alloc_struct (len * sizeof (REJ), "REJ"); to = ptr; for (i = 0; i < len; i++) { *to = *from; to++; from++; } } else ptr = NULL; } REJMAP & REJMAP::operator= ( //assign REJMAP const REJMAP & source //from this ) { REJ * to; REJ * from = source.ptr; int i; initialise (source.len); to = ptr; for (i = 0; i < len; i++) { *to = *from; to++; from++; } return *this; } void REJMAP::initialise( //Redefine map inT16 length) { if (ptr != NULL) free_struct (ptr, len * sizeof (REJ), "REJ"); len = length; if (len > 0) ptr = (REJ *) memset (alloc_struct (len * sizeof (REJ), "REJ"), 0, len * sizeof (REJ)); else ptr = NULL; } inT16 REJMAP::accept_count() { //How many accepted? int i; inT16 count = 0; for (i = 0; i < len; i++) { if (ptr[i].accepted ()) count++; } return count; } BOOL8 REJMAP::recoverable_rejects() { //Any non perm rejs? int i; for (i = 0; i < len; i++) { if (ptr[i].recoverable ()) return TRUE; } return FALSE; } BOOL8 REJMAP::quality_recoverable_rejects() { //Any potential rejs? int i; for (i = 0; i < len; i++) { if (ptr[i].accept_if_good_quality ()) return TRUE; } return FALSE; } void REJMAP::remove_pos( //Cut out an element inT16 pos //element to remove ) { REJ *new_ptr; //new, smaller map int i; ASSERT_HOST (pos >= 0); ASSERT_HOST (pos < len); ASSERT_HOST (len > 0); len--; if (len > 0) new_ptr = (REJ *) memset (alloc_struct (len * sizeof (REJ), "REJ"), 0, len * sizeof (REJ)); else new_ptr = NULL; for (i = 0; i < pos; i++) new_ptr[i] = ptr[i]; //copy pre pos for (; pos < len; pos++) new_ptr[pos] = ptr[pos + 1]; //copy post pos //delete old map free_struct (ptr, (len + 1) * sizeof (REJ), "REJ"); ptr = new_ptr; } void REJMAP::print(FILE *fp) { int i; char buff[512]; for (i = 0; i < len; i++) { buff[i] = ptr[i].display_char (); } buff[i] = '\0'; fprintf (fp, "\"%s\"", buff); } void REJMAP::full_print(FILE *fp) { int i; for (i = 0; i < len; i++) { ptr[i].full_print (fp); fprintf (fp, "\n"); } } void REJMAP::rej_word_small_xht() { //Reject whole word int i; for (i = 0; i < len; i++) { ptr[i].setrej_small_xht (); } } void REJMAP::rej_word_tess_failure() { //Reject whole word int i; for (i = 0; i < len; i++) { ptr[i].setrej_tess_failure (); } } void REJMAP::rej_word_not_tess_accepted() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_not_tess_accepted(); } } void REJMAP::rej_word_contains_blanks() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_contains_blanks(); } } void REJMAP::rej_word_bad_permuter() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_bad_permuter (); } } void REJMAP::rej_word_xht_fixup() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_xht_fixup(); } } void REJMAP::rej_word_no_alphanums() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_no_alphanums(); } } void REJMAP::rej_word_mostly_rej() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_mostly_rej(); } } void REJMAP::rej_word_bad_quality() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_bad_quality(); } } void REJMAP::rej_word_doc_rej() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_doc_rej(); } } void REJMAP::rej_word_block_rej() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_block_rej(); } } void REJMAP::rej_word_row_rej() { //Reject whole word int i; for (i = 0; i < len; i++) { if (ptr[i].accepted()) ptr[i].setrej_row_rej(); } }
C++
/********************************************************************** * File: points.c (Formerly coords.c) * Description: Member functions for coordinate classes. * Author: Ray Smith * Created: Fri Mar 15 08:58:17 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifdef _MSC_VER #define _USE_MATH_DEFINES #endif // _MSC_VER #include <stdlib.h> #include "helpers.h" #include "ndminx.h" #include "serialis.h" #include "points.h" ELISTIZE (ICOORDELT) //turn to list bool FCOORD::normalise() { //Convert to unit vec float len = length (); if (len < 0.0000000001) { return false; } xcoord /= len; ycoord /= len; return true; } // Set from the given x,y, shrinking the vector to fit if needed. void ICOORD::set_with_shrink(int x, int y) { // Fit the vector into an ICOORD, which is 16 bit. int factor = 1; int max_extent = MAX(abs(x), abs(y)); if (max_extent > MAX_INT16) factor = max_extent / MAX_INT16 + 1; xcoord = x / factor; ycoord = y / factor; } // The fortran/basic sgn function returns -1, 0, 1 if x < 0, x == 0, x > 0 // respectively. static int sign(int x) { if (x < 0) return -1; else return x > 0 ? 1 : 0; } // Writes to the given file. Returns false in case of error. bool ICOORD::Serialize(FILE* fp) const { if (fwrite(&xcoord, sizeof(xcoord), 1, fp) != 1) return false; if (fwrite(&ycoord, sizeof(ycoord), 1, fp) != 1) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool ICOORD::DeSerialize(bool swap, FILE* fp) { if (fread(&xcoord, sizeof(xcoord), 1, fp) != 1) return false; if (fread(&ycoord, sizeof(ycoord), 1, fp) != 1) return false; if (swap) { ReverseN(&xcoord, sizeof(xcoord)); ReverseN(&ycoord, sizeof(ycoord)); } return true; } // Setup for iterating over the pixels in a vector by the well-known // Bresenham rendering algorithm. // Starting with major/2 in the accumulator, on each step add major_step, // and then add minor to the accumulator. When the accumulator >= major // subtract major and step a minor step. void ICOORD::setup_render(ICOORD* major_step, ICOORD* minor_step, int* major, int* minor) const { int abs_x = abs(xcoord); int abs_y = abs(ycoord); if (abs_x >= abs_y) { // X-direction is major. major_step->xcoord = sign(xcoord); major_step->ycoord = 0; minor_step->xcoord = 0; minor_step->ycoord = sign(ycoord); *major = abs_x; *minor = abs_y; } else { // Y-direction is major. major_step->xcoord = 0; major_step->ycoord = sign(ycoord); minor_step->xcoord = sign(xcoord); minor_step->ycoord = 0; *major = abs_y; *minor = abs_x; } } // Returns the standard feature direction corresponding to this. // See binary_angle_plus_pi below for a description of the direction. uinT8 FCOORD::to_direction() const { return binary_angle_plus_pi(angle()); } // Sets this with a unit vector in the given standard feature direction. void FCOORD::from_direction(uinT8 direction) { double radians = angle_from_direction(direction); xcoord = cos(radians); ycoord = sin(radians); } // Converts an angle in radians (from ICOORD::angle or FCOORD::angle) to a // standard feature direction as an unsigned angle in 256ths of a circle // measured anticlockwise from (-1, 0). uinT8 FCOORD::binary_angle_plus_pi(double radians) { return Modulo(IntCastRounded((radians + M_PI) * 128.0 / M_PI), 256); } // Inverse of binary_angle_plus_pi returns an angle in radians for the // given standard feature direction. double FCOORD::angle_from_direction(uinT8 direction) { return direction * M_PI / 128.0 - M_PI; } // Returns the point on the given line nearest to this, ie the point such // that the vector point->this is perpendicular to the line. // The line is defined as a line_point and a dir_vector for its direction. FCOORD FCOORD::nearest_pt_on_line(const FCOORD& line_point, const FCOORD& dir_vector) const { FCOORD point_vector(*this - line_point); // The dot product (%) is |dir_vector||point_vector|cos theta, so dividing by // the square of the length of dir_vector gives us the fraction of dir_vector // to add to line1 to get the appropriate point, so // result = line1 + lambda dir_vector. double lambda = point_vector % dir_vector / dir_vector.sqlength(); return line_point + (dir_vector * lambda); }
C++
/////////////////////////////////////////////////////////////////////// // File: boxword.h // Description: Class to represent the bounding boxes of the output. // Author: Ray Smith // Created: Tue May 25 14:18:14 PDT 2010 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CSTRUCT_BOXWORD_H__ #define TESSERACT_CSTRUCT_BOXWORD_H__ #include "genericvector.h" #include "rect.h" #include "unichar.h" class BLOCK; class DENORM; struct TWERD; class UNICHARSET; class WERD; class WERD_CHOICE; class WERD_RES; namespace tesseract { // Class to hold an array of bounding boxes for an output word and // the bounding box of the whole word. class BoxWord { public: BoxWord(); explicit BoxWord(const BoxWord& src); ~BoxWord(); BoxWord& operator=(const BoxWord& src); void CopyFrom(const BoxWord& src); // Factory to build a BoxWord from a TWERD using the DENORMs on each blob to // switch back to original image coordinates. static BoxWord* CopyFromNormalized(TWERD* tessword); // Clean up the bounding boxes from the polygonal approximation by // expanding slightly, then clipping to the blobs from the original_word // that overlap. If not null, the block provides the inverse rotation. void ClipToOriginalWord(const BLOCK* block, WERD* original_word); // Merges the boxes from start to end, not including end, and deletes // the boxes between start and end. void MergeBoxes(int start, int end); // Inserts a new box before the given index. // Recomputes the bounding box. void InsertBox(int index, const TBOX& box); // Changes the box at the given index to the new box. // Recomputes the bounding box. void ChangeBox(int index, const TBOX& box); // Deletes the box with the given index, and shuffles up the rest. // Recomputes the bounding box. void DeleteBox(int index); // Deletes all the boxes stored in BoxWord. void DeleteAllBoxes(); // This and other putatively are the same, so call the (permanent) callback // for each blob index where the bounding boxes match. // The callback is deleted on completion. void ProcessMatchedBlobs(const TWERD& other, TessCallback1<int>* cb) const; const TBOX& bounding_box() const { return bbox_; } const int length() const { return length_; } const TBOX& BlobBox(int index) const { return boxes_[index]; } private: void ComputeBoundingBox(); TBOX bbox_; int length_; GenericVector<TBOX> boxes_; }; } // namespace tesseract. #endif // TESSERACT_CSTRUCT_BOXWORD_H__
C++
/////////////////////////////////////////////////////////////////////// // File: params_training_featdef.cpp // Description: Utility functions for params training features. // Author: David Eger // Created: Mon Jun 11 11:26:42 PDT 2012 // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include <string.h> #include "params_training_featdef.h" namespace tesseract { int ParamsTrainingFeatureByName(const char *name) { if (name == NULL) return -1; int array_size = sizeof(kParamsTrainingFeatureTypeName) / sizeof(kParamsTrainingFeatureTypeName[0]); for (int i = 0; i < array_size; i++) { if (kParamsTrainingFeatureTypeName[i] == NULL) continue; if (strcmp(name, kParamsTrainingFeatureTypeName[i]) == 0) return i; } return -1; } } // namespace tesseract
C++
/////////////////////////////////////////////////////////////////////// // File: detlinefit.h // Description: Deterministic least upper-quartile squares line fitting. // Author: Ray Smith // Created: Thu Feb 28 14:35:01 PDT 2008 // // (C) Copyright 2008, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCSTRUCT_DETLINEFIT_H_ #define TESSERACT_CCSTRUCT_DETLINEFIT_H_ #include "genericvector.h" #include "kdpair.h" #include "points.h" namespace tesseract { // This class fits a line to a set of ICOORD points. // There is no restriction on the direction of the line, as it // uses a vector method, ie no concern over infinite gradients. // The fitted line has the least upper quartile of squares of perpendicular // distances of all source points from the line, subject to the constraint // that the line is made from one of the pairs of [{p1,p2,p3},{pn-2, pn-1, pn}] // i.e. the 9 combinations of one of the first 3 and last 3 points. // A fundamental assumption of this algorithm is that one of the first 3 and // one of the last 3 points are near the best line fit. // The points must be Added in line order for the algorithm to work properly. // No floating point calculations are needed* to make an accurate fit, // and no random numbers are needed** so the algorithm is deterministic, // architecture-stable, and compiler-stable as well as stable to minor // changes in the input. // *A single floating point division is used to compute each line's distance. // This is unlikely to result in choice of a different line, but if it does, // it would be easy to replace with a 64 bit integer calculation. // **Random numbers are used in the nth_item function, but the worst // non-determinism that can result is picking a different result among equals, // and that wouldn't make any difference to the end-result distance, so the // randomness does not affect the determinism of the algorithm. The random // numbers are only there to guarantee average linear time. // Fitting time is linear, but with a high constant, as it tries 9 different // lines and computes the distance of all points each time. // This class is aimed at replacing the LLSQ (linear least squares) and // LMS (least median of squares) classes that are currently used for most // of the line fitting in Tesseract. class DetLineFit { public: DetLineFit(); ~DetLineFit(); // Delete all Added points. void Clear(); // Adds a new point. Takes a copy - the pt doesn't need to stay in scope. // Add must be called on points in sequence along the line. void Add(const ICOORD& pt); // Associates a half-width with the given point if a point overlaps the // previous point by more than half the width, and its distance is further // than the previous point, then the more distant point is ignored in the // distance calculation. Useful for ignoring i dots and other diacritics. void Add(const ICOORD& pt, int halfwidth); // Fits a line to the points, returning the fitted line as a pair of // points, and the upper quartile error. double Fit(ICOORD* pt1, ICOORD* pt2) { return Fit(0, 0, pt1, pt2); } // Fits a line to the points, ignoring the skip_first initial points and the // skip_last final points, returning the fitted line as a pair of points, // and the upper quartile error. double Fit(int skip_first, int skip_last, ICOORD* pt1, ICOORD* pt2); // Constrained fit with a supplied direction vector. Finds the best line_pt, // that is one of the supplied points having the median cross product with // direction, ignoring points that have a cross product outside of the range // [min_dist, max_dist]. Returns the resulting error metric using the same // reduced set of points. // *Makes use of floating point arithmetic* double ConstrainedFit(const FCOORD& direction, double min_dist, double max_dist, bool debug, ICOORD* line_pt); // Returns true if there were enough points at the last call to Fit or // ConstrainedFit for the fitted points to be used on a badly fitted line. bool SufficientPointsForIndependentFit() const; // Backwards compatible fit returning a gradient and constant. // Deprecated. Prefer Fit(ICOORD*, ICOORD*) where possible, but use this // function in preference to the LMS class. double Fit(float* m, float* c); // Backwards compatible constrained fit with a supplied gradient. // Deprecated. Use ConstrainedFit(const FCOORD& direction) where possible // to avoid potential difficulties with infinite gradients. double ConstrainedFit(double m, float* c); private: // Simple struct to hold an ICOORD point and a halfwidth representing half // the "width" (supposedly approximately parallel to the direction of the // line) of each point, such that distant points can be discarded when they // overlap nearer points. (Think i dot and other diacritics or noise.) struct PointWidth { PointWidth() : pt(ICOORD(0, 0)), halfwidth(0) {} PointWidth(const ICOORD& pt0, int halfwidth0) : pt(pt0), halfwidth(halfwidth0) {} ICOORD pt; int halfwidth; }; // Type holds the distance of each point from the fitted line and the point // itself. Use of double allows integer distances from ICOORDs to be stored // exactly, and also the floating point results from ConstrainedFit. typedef KDPairInc<double, ICOORD> DistPointPair; // Computes and returns the squared evaluation metric for a line fit. double EvaluateLineFit(); // Computes the absolute values of the precomputed distances_, // and returns the squared upper-quartile error distance. double ComputeUpperQuartileError(); // Returns the number of sample points that have an error more than threshold. int NumberOfMisfittedPoints(double threshold) const; // Computes all the cross product distances of the points from the line, // storing the actual (signed) cross products in distances_. // Ignores distances of points that are further away than the previous point, // and overlaps the previous point by at least half. void ComputeDistances(const ICOORD& start, const ICOORD& end); // Computes all the cross product distances of the points perpendicular to // the given direction, ignoring distances outside of the give distance range, // storing the actual (signed) cross products in distances_. void ComputeConstrainedDistances(const FCOORD& direction, double min_dist, double max_dist); // Stores all the source points in the order they were given and their // halfwidths, if any. GenericVector<PointWidth> pts_; // Stores the computed perpendicular distances of (some of) the pts_ from a // given vector (assuming it goes through the origin, making it a line). // Since the distances may be a subset of the input points, and get // re-ordered by the nth_item function, the original point is stored // along side the distance. GenericVector<DistPointPair> distances_; // Distances of points. // The squared length of the vector used to compute distances_. double square_length_; }; } // namespace tesseract. #endif // TESSERACT_CCSTRUCT_DETLINEFIT_H_
C++
/********************************************************************** * File: dppoint.h * Description: Simple generic dynamic programming class. * Author: Ray Smith * Created: Wed Mar 25 18:57:01 PDT 2009 * * (C) Copyright 2009, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef TESSERACT_CCSTRUCT_DPPOINT_H__ #define TESSERACT_CCSTRUCT_DPPOINT_H__ #include "host.h" namespace tesseract { // A simple class to provide a dynamic programming solution to a class of // 1st-order problems in which the cost is dependent only on the current // step and the best cost to that step, with a possible special case // of using the variance of the steps, and only the top choice is required. // Useful for problems such as finding the optimal cut points in a fixed-pitch // (vertical or horizontal) situation. // Skeletal Example: // DPPoint* array = new DPPoint[width]; // for (int i = 0; i < width; i++) { // array[i].AddLocalCost(cost_at_i) // } // DPPoint* best_end = DPPoint::Solve(..., array); // while (best_end != NULL) { // int cut_index = best_end - array; // best_end = best_end->best_prev(); // } // delete [] array; class DPPoint { public: // The cost function evaluates the total cost at this (excluding this's // local_cost) and if it beats this's total_cost, then // replace the appropriate values in this. typedef inT64 (DPPoint::*CostFunc)(const DPPoint* prev); DPPoint() : local_cost_(0), total_cost_(MAX_INT32), total_steps_(1), best_prev_(NULL), n_(0), sig_x_(0), sig_xsq_(0) { } // Solve the dynamic programming problem for the given array of points, with // the given size and cost function. // Steps backwards are limited to being between min_step and max_step // inclusive. // The return value is the tail of the best path. static DPPoint* Solve(int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint* points); // A CostFunc that takes the variance of step into account in the cost. inT64 CostWithVariance(const DPPoint* prev); // Accessors. int total_cost() const { return total_cost_; } int Pathlength() const { return total_steps_; } const DPPoint* best_prev() const { return best_prev_; } void AddLocalCost(int new_cost) { local_cost_ += new_cost; } private: // Code common to different cost functions. // Update the other members if the cost is lower. void UpdateIfBetter(inT64 cost, inT32 steps, const DPPoint* prev, inT32 n, inT32 sig_x, inT64 sig_xsq); inT32 local_cost_; // Cost of this point on its own. inT32 total_cost_; // Sum of all costs in best path to here. // During cost calculations local_cost is excluded. inT32 total_steps_; // Number of steps in best path to here. const DPPoint* best_prev_; // Pointer to prev point in best path from here. // Information for computing the variance part of the cost. inT32 n_; // Number of steps in best path to here for variance. inT32 sig_x_; // Sum of step sizes for computing variance. inT64 sig_xsq_; // Sum of squares of steps for computing variance. }; } // namespace tesseract. #endif // TESSERACT_CCSTRUCT_DPPOINT_H__
C++
/********************************************************************** * File: coutln.c (Formerly coutline.c) * Description: Code for the C_OUTLINE class. * Author: Ray Smith * Created: Mon Oct 07 16:01:57 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <string.h> #ifdef __UNIX__ #include <assert.h> #endif #include "coutln.h" #include "allheaders.h" #include "blobs.h" #include "normalis.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif ELISTIZE (C_OUTLINE) ICOORD C_OUTLINE::step_coords[4] = { ICOORD (-1, 0), ICOORD (0, -1), ICOORD (1, 0), ICOORD (0, 1) }; /********************************************************************** * C_OUTLINE::C_OUTLINE * * Constructor to build a C_OUTLINE from a CRACKEDGE LOOP. **********************************************************************/ C_OUTLINE::C_OUTLINE ( //constructor CRACKEDGE * startpt, //outline to convert ICOORD bot_left, //bounding box ICOORD top_right, inT16 length //length of loop ):box (bot_left, top_right), start (startpt->pos), offsets(NULL) { inT16 stepindex; //index to step CRACKEDGE *edgept; //current point stepcount = length; //no of steps if (length == 0) { steps = NULL; return; } //get memory steps = (uinT8 *) alloc_mem (step_mem()); memset(steps, 0, step_mem()); edgept = startpt; for (stepindex = 0; stepindex < length; stepindex++) { //set compact step set_step (stepindex, edgept->stepdir); edgept = edgept->next; } } /********************************************************************** * C_OUTLINE::C_OUTLINE * * Constructor to build a C_OUTLINE from a C_OUTLINE_FRAG. **********************************************************************/ C_OUTLINE::C_OUTLINE ( //constructor //steps to copy ICOORD startpt, DIR128 * new_steps, inT16 length //length of loop ):start (startpt), offsets(NULL) { inT8 dirdiff; //direction difference DIR128 prevdir; //previous direction DIR128 dir; //current direction DIR128 lastdir; //dir of last step TBOX new_box; //easy bounding inT16 stepindex; //index to step inT16 srcindex; //source steps ICOORD pos; //current position pos = startpt; stepcount = length; // No. of steps. ASSERT_HOST(length >= 0); steps = reinterpret_cast<uinT8*>(alloc_mem(step_mem())); // Get memory. memset(steps, 0, step_mem()); lastdir = new_steps[length - 1]; prevdir = lastdir; for (stepindex = 0, srcindex = 0; srcindex < length; stepindex++, srcindex++) { new_box = TBOX (pos, pos); box += new_box; //copy steps dir = new_steps[srcindex]; set_step(stepindex, dir); dirdiff = dir - prevdir; pos += step (stepindex); if ((dirdiff == 64 || dirdiff == -64) && stepindex > 0) { stepindex -= 2; //cancel there-and-back prevdir = stepindex >= 0 ? step_dir (stepindex) : lastdir; } else prevdir = dir; } ASSERT_HOST (pos.x () == startpt.x () && pos.y () == startpt.y ()); do { dirdiff = step_dir (stepindex - 1) - step_dir (0); if (dirdiff == 64 || dirdiff == -64) { start += step (0); stepindex -= 2; //cancel there-and-back for (int i = 0; i < stepindex; ++i) set_step(i, step_dir(i + 1)); } } while (stepindex > 1 && (dirdiff == 64 || dirdiff == -64)); stepcount = stepindex; ASSERT_HOST (stepcount >= 4); } /********************************************************************** * C_OUTLINE::C_OUTLINE * * Constructor to build a C_OUTLINE from a rotation of a C_OUTLINE. **********************************************************************/ C_OUTLINE::C_OUTLINE( //constructor C_OUTLINE *srcline, //outline to FCOORD rotation //rotate ) : offsets(NULL) { TBOX new_box; //easy bounding inT16 stepindex; //index to step inT16 dirdiff; //direction change ICOORD pos; //current position ICOORD prevpos; //previous dest point ICOORD destpos; //destination point inT16 destindex; //index to step DIR128 dir; //coded direction uinT8 new_step; stepcount = srcline->stepcount * 2; if (stepcount == 0) { steps = NULL; box = srcline->box; box.rotate(rotation); return; } //get memory steps = (uinT8 *) alloc_mem (step_mem()); memset(steps, 0, step_mem()); for (int iteration = 0; iteration < 2; ++iteration) { DIR128 round1 = iteration == 0 ? 32 : 0; DIR128 round2 = iteration != 0 ? 32 : 0; pos = srcline->start; prevpos = pos; prevpos.rotate (rotation); start = prevpos; box = TBOX (start, start); destindex = 0; for (stepindex = 0; stepindex < srcline->stepcount; stepindex++) { pos += srcline->step (stepindex); destpos = pos; destpos.rotate (rotation); // tprintf("%i %i %i %i ", destpos.x(), destpos.y(), pos.x(), pos.y()); while (destpos.x () != prevpos.x () || destpos.y () != prevpos.y ()) { dir = DIR128 (FCOORD (destpos - prevpos)); dir += 64; //turn to step style new_step = dir.get_dir (); // tprintf(" %i\n", new_step); if (new_step & 31) { set_step(destindex++, dir + round1); prevpos += step(destindex - 1); if (destindex < 2 || ((dirdiff = step_dir (destindex - 1) - step_dir (destindex - 2)) != -64 && dirdiff != 64)) { set_step(destindex++, dir + round2); prevpos += step(destindex - 1); } else { prevpos -= step(destindex - 1); destindex--; prevpos -= step(destindex - 1); set_step(destindex - 1, dir + round2); prevpos += step(destindex - 1); } } else { set_step(destindex++, dir); prevpos += step(destindex - 1); } while (destindex >= 2 && ((dirdiff = step_dir (destindex - 1) - step_dir (destindex - 2)) == -64 || dirdiff == 64)) { prevpos -= step(destindex - 1); prevpos -= step(destindex - 2); destindex -= 2; // Forget u turn } //ASSERT_HOST(prevpos.x() == destpos.x() && prevpos.y() == destpos.y()); new_box = TBOX (destpos, destpos); box += new_box; } } ASSERT_HOST (destpos.x () == start.x () && destpos.y () == start.y ()); dirdiff = step_dir (destindex - 1) - step_dir (0); while ((dirdiff == 64 || dirdiff == -64) && destindex > 1) { start += step (0); destindex -= 2; for (int i = 0; i < destindex; ++i) set_step(i, step_dir(i + 1)); dirdiff = step_dir (destindex - 1) - step_dir (0); } if (destindex >= 4) break; } ASSERT_HOST(destindex <= stepcount); stepcount = destindex; destpos = start; for (stepindex = 0; stepindex < stepcount; stepindex++) { destpos += step (stepindex); } ASSERT_HOST (destpos.x () == start.x () && destpos.y () == start.y ()); } // Build a fake outline, given just a bounding box and append to the list. void C_OUTLINE::FakeOutline(const TBOX& box, C_OUTLINE_LIST* outlines) { C_OUTLINE_IT ol_it(outlines); // Make a C_OUTLINE from the bounds. This is a bit of a hack, // as there is no outline, just a bounding box, but it works nicely. CRACKEDGE start; start.pos = box.topleft(); C_OUTLINE* outline = new C_OUTLINE(&start, box.topleft(), box.botright(), 0); ol_it.add_to_end(outline); } /********************************************************************** * C_OUTLINE::area * * Compute the area of the outline. **********************************************************************/ inT32 C_OUTLINE::area() const { int stepindex; //current step inT32 total_steps; //steps to do inT32 total; //total area ICOORD pos; //position of point ICOORD next_step; //step to next pix // We aren't going to modify the list, or its contents, but there is // no const iterator. C_OUTLINE_IT it(const_cast<C_OUTLINE_LIST*>(&children)); pos = start_pos (); total_steps = pathlength (); total = 0; for (stepindex = 0; stepindex < total_steps; stepindex++) { //all intersected next_step = step (stepindex); if (next_step.x () < 0) total += pos.y (); else if (next_step.x () > 0) total -= pos.y (); pos += next_step; } for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) total += it.data ()->area ();//add areas of children return total; } /********************************************************************** * C_OUTLINE::perimeter * * Compute the perimeter of the outline and its first level children. **********************************************************************/ inT32 C_OUTLINE::perimeter() const { inT32 total_steps; // Return value. // We aren't going to modify the list, or its contents, but there is // no const iterator. C_OUTLINE_IT it(const_cast<C_OUTLINE_LIST*>(&children)); total_steps = pathlength(); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) total_steps += it.data()->pathlength(); // Add perimeters of children. return total_steps; } /********************************************************************** * C_OUTLINE::outer_area * * Compute the area of the outline. **********************************************************************/ inT32 C_OUTLINE::outer_area() const { int stepindex; //current step inT32 total_steps; //steps to do inT32 total; //total area ICOORD pos; //position of point ICOORD next_step; //step to next pix pos = start_pos (); total_steps = pathlength (); if (total_steps == 0) return box.area(); total = 0; for (stepindex = 0; stepindex < total_steps; stepindex++) { //all intersected next_step = step (stepindex); if (next_step.x () < 0) total += pos.y (); else if (next_step.x () > 0) total -= pos.y (); pos += next_step; } return total; } /********************************************************************** * C_OUTLINE::count_transitions * * Compute the number of x and y maxes and mins in the outline. **********************************************************************/ inT32 C_OUTLINE::count_transitions( //winding number inT32 threshold //on size ) { BOOL8 first_was_max_x; //what was first BOOL8 first_was_max_y; BOOL8 looking_for_max_x; //what is next BOOL8 looking_for_min_x; BOOL8 looking_for_max_y; //what is next BOOL8 looking_for_min_y; int stepindex; //current step inT32 total_steps; //steps to do //current limits inT32 max_x, min_x, max_y, min_y; inT32 initial_x, initial_y; //initial limits inT32 total; //total changes ICOORD pos; //position of point ICOORD next_step; //step to next pix pos = start_pos (); total_steps = pathlength (); total = 0; max_x = min_x = pos.x (); max_y = min_y = pos.y (); looking_for_max_x = TRUE; looking_for_min_x = TRUE; looking_for_max_y = TRUE; looking_for_min_y = TRUE; first_was_max_x = FALSE; first_was_max_y = FALSE; initial_x = pos.x (); initial_y = pos.y (); //stop uninit warning for (stepindex = 0; stepindex < total_steps; stepindex++) { //all intersected next_step = step (stepindex); pos += next_step; if (next_step.x () < 0) { if (looking_for_max_x && pos.x () < min_x) min_x = pos.x (); if (looking_for_min_x && max_x - pos.x () > threshold) { if (looking_for_max_x) { initial_x = max_x; first_was_max_x = FALSE; } total++; looking_for_max_x = TRUE; looking_for_min_x = FALSE; min_x = pos.x (); //reset min } } else if (next_step.x () > 0) { if (looking_for_min_x && pos.x () > max_x) max_x = pos.x (); if (looking_for_max_x && pos.x () - min_x > threshold) { if (looking_for_min_x) { initial_x = min_x; //remember first min first_was_max_x = TRUE; } total++; looking_for_max_x = FALSE; looking_for_min_x = TRUE; max_x = pos.x (); } } else if (next_step.y () < 0) { if (looking_for_max_y && pos.y () < min_y) min_y = pos.y (); if (looking_for_min_y && max_y - pos.y () > threshold) { if (looking_for_max_y) { initial_y = max_y; //remember first max first_was_max_y = FALSE; } total++; looking_for_max_y = TRUE; looking_for_min_y = FALSE; min_y = pos.y (); //reset min } } else { if (looking_for_min_y && pos.y () > max_y) max_y = pos.y (); if (looking_for_max_y && pos.y () - min_y > threshold) { if (looking_for_min_y) { initial_y = min_y; //remember first min first_was_max_y = TRUE; } total++; looking_for_max_y = FALSE; looking_for_min_y = TRUE; max_y = pos.y (); } } } if (first_was_max_x && looking_for_min_x) { if (max_x - initial_x > threshold) total++; else total--; } else if (!first_was_max_x && looking_for_max_x) { if (initial_x - min_x > threshold) total++; else total--; } if (first_was_max_y && looking_for_min_y) { if (max_y - initial_y > threshold) total++; else total--; } else if (!first_was_max_y && looking_for_max_y) { if (initial_y - min_y > threshold) total++; else total--; } return total; } /********************************************************************** * C_OUTLINE::operator< * * Return TRUE if the left operand is inside the right one. **********************************************************************/ BOOL8 C_OUTLINE::operator< ( //winding number const C_OUTLINE & other //other outline ) const { inT16 count = 0; //winding count ICOORD pos; //position of point inT32 stepindex; //index to cstep if (!box.overlap (other.box)) return FALSE; //can't be contained if (stepcount == 0) return other.box.contains(this->box); pos = start; for (stepindex = 0; stepindex < stepcount && (count = other.winding_number (pos)) == INTERSECTING; stepindex++) pos += step (stepindex); //try all points if (count == INTERSECTING) { //all intersected pos = other.start; for (stepindex = 0; stepindex < other.stepcount && (count = winding_number (pos)) == INTERSECTING; stepindex++) //try other way round pos += other.step (stepindex); return count == INTERSECTING || count == 0; } return count != 0; } /********************************************************************** * C_OUTLINE::winding_number * * Return the winding number of the outline around the given point. **********************************************************************/ inT16 C_OUTLINE::winding_number( //winding number ICOORD point //point to wind around ) const { inT16 stepindex; //index to cstep inT16 count; //winding count ICOORD vec; //to current point ICOORD stepvec; //step vector inT32 cross; //cross product vec = start - point; //vector to it count = 0; for (stepindex = 0; stepindex < stepcount; stepindex++) { stepvec = step (stepindex); //get the step //crossing the line if (vec.y () <= 0 && vec.y () + stepvec.y () > 0) { cross = vec * stepvec; //cross product if (cross > 0) count++; //crossing right half else if (cross == 0) return INTERSECTING; //going through point } else if (vec.y () > 0 && vec.y () + stepvec.y () <= 0) { cross = vec * stepvec; if (cross < 0) count--; //crossing back else if (cross == 0) return INTERSECTING; //illegal } vec += stepvec; //sum vectors } return count; //winding number } /********************************************************************** * C_OUTLINE::turn_direction * * Return the sum direction delta of the outline. **********************************************************************/ inT16 C_OUTLINE::turn_direction() const { //winding number DIR128 prevdir; //previous direction DIR128 dir; //current direction inT16 stepindex; //index to cstep inT8 dirdiff; //direction difference inT16 count; //winding count if (stepcount == 0) return 128; count = 0; prevdir = step_dir (stepcount - 1); for (stepindex = 0; stepindex < stepcount; stepindex++) { dir = step_dir (stepindex); dirdiff = dir - prevdir; ASSERT_HOST (dirdiff == 0 || dirdiff == 32 || dirdiff == -32); count += dirdiff; prevdir = dir; } ASSERT_HOST (count == 128 || count == -128); return count; //winding number } /********************************************************************** * C_OUTLINE::reverse * * Reverse the direction of an outline. **********************************************************************/ void C_OUTLINE::reverse() { //reverse drection DIR128 halfturn = MODULUS / 2; //amount to shift DIR128 stepdir; //direction of step inT16 stepindex; //index to cstep inT16 farindex; //index to other side inT16 halfsteps; //half of stepcount halfsteps = (stepcount + 1) / 2; for (stepindex = 0; stepindex < halfsteps; stepindex++) { farindex = stepcount - stepindex - 1; stepdir = step_dir (stepindex); set_step (stepindex, step_dir (farindex) + halfturn); set_step (farindex, stepdir + halfturn); } } /********************************************************************** * C_OUTLINE::move * * Move C_OUTLINE by vector **********************************************************************/ void C_OUTLINE::move( // reposition OUTLINE const ICOORD vec // by vector ) { C_OUTLINE_IT it(&children); // iterator box.move (vec); start += vec; for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) it.data ()->move (vec); // move child outlines } // Returns true if *this and its children are legally nested. // The outer area of a child should have the opposite sign to the // parent. If not, it means we have discarded an outline in between // (probably due to excessive length). bool C_OUTLINE::IsLegallyNested() const { if (stepcount == 0) return true; int parent_area = outer_area(); // We aren't going to modify the list, or its contents, but there is // no const iterator. C_OUTLINE_IT child_it(const_cast<C_OUTLINE_LIST*>(&children)); for (child_it.mark_cycle_pt(); !child_it.cycled_list(); child_it.forward()) { const C_OUTLINE* child = child_it.data(); if (child->outer_area() * parent_area > 0 || !child->IsLegallyNested()) return false; } return true; } // If this outline is smaller than the given min_size, delete this and // remove from its list, via *it, after checking that *it points to this. // Otherwise, if any children of this are too small, delete them. // On entry, *it must be an iterator pointing to this. If this gets deleted // then this is extracted from *it, so an iteration can continue. void C_OUTLINE::RemoveSmallRecursive(int min_size, C_OUTLINE_IT* it) { if (box.width() < min_size || box.height() < min_size) { ASSERT_HOST(this == it->data()); delete it->extract(); // Too small so get rid of it and any children. } else if (!children.empty()) { // Search the children of this, deleting any that are too small. C_OUTLINE_IT child_it(&children); for (child_it.mark_cycle_pt(); !child_it.cycled_list(); child_it.forward()) { C_OUTLINE* child = child_it.data(); child->RemoveSmallRecursive(min_size, &child_it); } } } // Factored out helpers below are used only by ComputeEdgeOffsets to operate // on data from an 8-bit Pix, and assume that any input x and/or y are already // constrained to be legal Pix coordinates. // Helper computes the local 2-D gradient (dx, dy) from the 2x2 cell centered // on the given (x,y). If the cell would go outside the image, it is padded // with white. static void ComputeGradient(const l_uint32* data, int wpl, int x, int y, int width, int height, ICOORD* gradient) { const l_uint32* line = data + y * wpl; int pix_x_y = x < width && y < height ? GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line)), x) : 255; int pix_x_prevy = x < width && y > 0 ? GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line - wpl)), x) : 255; int pix_prevx_prevy = x > 0 && y > 0 ? GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<void const*>(line - wpl)), x - 1) : 255; int pix_prevx_y = x > 0 && y < height ? GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line)), x - 1) : 255; gradient->set_x(pix_x_y + pix_x_prevy - (pix_prevx_y + pix_prevx_prevy)); gradient->set_y(pix_x_prevy + pix_prevx_prevy - (pix_x_y + pix_prevx_y)); } // Helper evaluates a vertical difference, (x,y) - (x,y-1), returning true if // the difference, matches diff_sign and updating the best_diff, best_sum, // best_y if a new max. static bool EvaluateVerticalDiff(const l_uint32* data, int wpl, int diff_sign, int x, int y, int height, int* best_diff, int* best_sum, int* best_y) { if (y <= 0 || y >= height) return false; const l_uint32* line = data + y * wpl; int pixel1 = GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line - wpl)), x); int pixel2 = GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line)), x); int diff = (pixel2 - pixel1) * diff_sign; if (diff > *best_diff) { *best_diff = diff; *best_sum = pixel1 + pixel2; *best_y = y; } return diff > 0; } // Helper evaluates a horizontal difference, (x,y) - (x-1,y), where y is implied // by the input image line, returning true if the difference matches diff_sign // and updating the best_diff, best_sum, best_x if a new max. static bool EvaluateHorizontalDiff(const l_uint32* line, int diff_sign, int x, int width, int* best_diff, int* best_sum, int* best_x) { if (x <= 0 || x >= width) return false; int pixel1 = GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line)), x - 1); int pixel2 = GET_DATA_BYTE(const_cast<void*> (reinterpret_cast<const void *>(line)), x); int diff = (pixel2 - pixel1) * diff_sign; if (diff > *best_diff) { *best_diff = diff; *best_sum = pixel1 + pixel2; *best_x = x; } return diff > 0; } // Adds sub-pixel resolution EdgeOffsets for the outline if the supplied // pix is 8-bit. Does nothing otherwise. // Operation: Consider the following near-horizontal line: // _________ // |________ // |________ // At *every* position along this line, the gradient direction will be close // to vertical. Extrapoaltion/interpolation of the position of the threshold // that was used to binarize the image gives a more precise vertical position // for each horizontal step, and the conflict in step direction and gradient // direction can be used to ignore the vertical steps. void C_OUTLINE::ComputeEdgeOffsets(int threshold, Pix* pix) { if (pixGetDepth(pix) != 8) return; const l_uint32* data = pixGetData(pix); int wpl = pixGetWpl(pix); int width = pixGetWidth(pix); int height = pixGetHeight(pix); bool negative = flag(COUT_INVERSE); delete [] offsets; offsets = new EdgeOffset[stepcount]; ICOORD pos = start; ICOORD prev_gradient; ComputeGradient(data, wpl, pos.x(), height - pos.y(), width, height, &prev_gradient); for (int s = 0; s < stepcount; ++s) { ICOORD step_vec = step(s); TPOINT pt1(pos); pos += step_vec; TPOINT pt2(pos); ICOORD next_gradient; ComputeGradient(data, wpl, pos.x(), height - pos.y(), width, height, &next_gradient); // Use the sum of the prev and next as the working gradient. ICOORD gradient = prev_gradient + next_gradient; // best_diff will be manipulated to be always positive. int best_diff = 0; // offset will be the extrapolation of the location of the greyscale // threshold from the edge with the largest difference, relative to the // location of the binary edge. int offset = 0; if (pt1.y == pt2.y && abs(gradient.y()) * 2 >= abs(gradient.x())) { // Horizontal step. diff_sign == 1 indicates black above. int diff_sign = (pt1.x > pt2.x) == negative ? 1 : -1; int x = MIN(pt1.x, pt2.x); int y = height - pt1.y; int best_sum = 0; int best_y = y; EvaluateVerticalDiff(data, wpl, diff_sign, x, y, height, &best_diff, &best_sum, &best_y); // Find the strongest edge. int test_y = y; do { ++test_y; } while (EvaluateVerticalDiff(data, wpl, diff_sign, x, test_y, height, &best_diff, &best_sum, &best_y)); test_y = y; do { --test_y; } while (EvaluateVerticalDiff(data, wpl, diff_sign, x, test_y, height, &best_diff, &best_sum, &best_y)); offset = diff_sign * (best_sum / 2 - threshold) + (y - best_y) * best_diff; } else if (pt1.x == pt2.x && abs(gradient.x()) * 2 >= abs(gradient.y())) { // Vertical step. diff_sign == 1 indicates black on the left. int diff_sign = (pt1.y > pt2.y) == negative ? 1 : -1; int x = pt1.x; int y = height - MAX(pt1.y, pt2.y); const l_uint32* line = pixGetData(pix) + y * wpl; int best_sum = 0; int best_x = x; EvaluateHorizontalDiff(line, diff_sign, x, width, &best_diff, &best_sum, &best_x); // Find the strongest edge. int test_x = x; do { ++test_x; } while (EvaluateHorizontalDiff(line, diff_sign, test_x, width, &best_diff, &best_sum, &best_x)); test_x = x; do { --test_x; } while (EvaluateHorizontalDiff(line, diff_sign, test_x, width, &best_diff, &best_sum, &best_x)); offset = diff_sign * (threshold - best_sum / 2) + (best_x - x) * best_diff; } offsets[s].offset_numerator = static_cast<inT8>(ClipToRange(offset, -MAX_INT8, MAX_INT8)); offsets[s].pixel_diff = static_cast<uinT8>(ClipToRange(best_diff, 0 , MAX_UINT8)); if (negative) gradient = -gradient; // Compute gradient angle quantized to 256 directions, rotated by 64 (pi/2) // to convert from gradient direction to edge direction. offsets[s].direction = Modulo(FCOORD::binary_angle_plus_pi(gradient.angle()) + 64, 256); prev_gradient = next_gradient; } } // Adds sub-pixel resolution EdgeOffsets for the outline using only // a binary image source. // Runs a sliding window of 5 edge steps over the outline, maintaining a count // of the number of steps in each of the 4 directions in the window, and a // sum of the x or y position of each step (as appropriate to its direction.) // Ignores single-count steps EXCEPT the sharp U-turn and smoothes out the // perpendicular direction. Eg // ___ ___ Chain code from the left: // |___ ___ ___| 222122212223221232223000 // |___| |_| Corresponding counts of each direction: // 0 00000000000000000123 // 1 11121111001111100000 // 2 44434443443333343321 // 3 00000001111111112111 // Count of direction at center 41434143413313143313 // Step gets used? YNYYYNYYYNYYNYNYYYyY (y= U-turn exception) // Path redrawn showing only the used points: // ___ ___ // ___ ___ ___| // ___ _ // Sub-pixel edge position cannot be shown well with ASCII-art, but each // horizontal step's y position is the mean of the y positions of the steps // in the same direction in the sliding window, which makes a much smoother // outline, without losing important detail. void C_OUTLINE::ComputeBinaryOffsets() { delete [] offsets; offsets = new EdgeOffset[stepcount]; // Count of the number of steps in each direction in the sliding window. int dir_counts[4]; // Sum of the positions (y for a horizontal step, x for vertical) in each // direction in the sliding window. int pos_totals[4]; memset(dir_counts, 0, sizeof(dir_counts)); memset(pos_totals, 0, sizeof(pos_totals)); ICOORD pos = start; ICOORD tail_pos = pos; // tail_pos is the trailing position, with the next point to be lost from // the window. tail_pos -= step(stepcount - 1); tail_pos -= step(stepcount - 2); // head_pos is the leading position, with the next point to be added to the // window. ICOORD head_pos = tail_pos; // Set up the initial window with 4 points in [-2, 2) for (int s = -2; s < 2; ++s) { increment_step(s, 1, &head_pos, dir_counts, pos_totals); } for (int s = 0; s < stepcount; pos += step(s++)) { // At step s, s in in the middle of [s-2, s+2]. increment_step(s + 2, 1, &head_pos, dir_counts, pos_totals); int dir_index = chain_code(s); ICOORD step_vec = step(s); int best_diff = 0; int offset = 0; // Use only steps that have a count of >=2 OR the strong U-turn with a // single d and 2 at d-1 and 2 at d+1 (mod 4). if (dir_counts[dir_index] >= 2 || (dir_counts[dir_index] == 1 && dir_counts[Modulo(dir_index - 1, 4)] == 2 && dir_counts[Modulo(dir_index + 1, 4)] == 2)) { // Valid step direction. best_diff = dir_counts[dir_index]; int edge_pos = step_vec.x() == 0 ? pos.x() : pos.y(); // The offset proposes that the actual step should be positioned at // the mean position of the steps in the window of the same direction. // See ASCII art above. offset = pos_totals[dir_index] - best_diff * edge_pos; } offsets[s].offset_numerator = static_cast<inT8>(ClipToRange(offset, -MAX_INT8, MAX_INT8)); offsets[s].pixel_diff = static_cast<uinT8>(ClipToRange(best_diff, 0 , MAX_UINT8)); // The direction is just the vector from start to end of the window. FCOORD direction(head_pos.x() - tail_pos.x(), head_pos.y() - tail_pos.y()); offsets[s].direction = direction.to_direction(); increment_step(s - 2, -1, &tail_pos, dir_counts, pos_totals); } } // Renders the outline to the given pix, with left and top being // the coords of the upper-left corner of the pix. void C_OUTLINE::render(int left, int top, Pix* pix) const { ICOORD pos = start; for (int stepindex = 0; stepindex < stepcount; ++stepindex) { ICOORD next_step = step(stepindex); if (next_step.y() < 0) { pixRasterop(pix, 0, top - pos.y(), pos.x() - left, 1, PIX_NOT(PIX_DST), NULL, 0, 0); } else if (next_step.y() > 0) { pixRasterop(pix, 0, top - pos.y() - 1, pos.x() - left, 1, PIX_NOT(PIX_DST), NULL, 0, 0); } pos += next_step; } } // Renders just the outline to the given pix (no fill), with left and top // being the coords of the upper-left corner of the pix. void C_OUTLINE::render_outline(int left, int top, Pix* pix) const { ICOORD pos = start; for (int stepindex = 0; stepindex < stepcount; ++stepindex) { ICOORD next_step = step(stepindex); if (next_step.y() < 0) { pixSetPixel(pix, pos.x() - left, top - pos.y(), 1); } else if (next_step.y() > 0) { pixSetPixel(pix, pos.x() - left - 1, top - pos.y() - 1, 1); } else if (next_step.x() < 0) { pixSetPixel(pix, pos.x() - left - 1, top - pos.y(), 1); } else if (next_step.x() > 0) { pixSetPixel(pix, pos.x() - left, top - pos.y() - 1, 1); } pos += next_step; } } /********************************************************************** * C_OUTLINE::plot * * Draw the outline in the given colour. **********************************************************************/ #ifndef GRAPHICS_DISABLED void C_OUTLINE::plot( //draw it ScrollView* window, // window to draw in ScrollView::Color colour // colour to draw in ) const { inT16 stepindex; // index to cstep ICOORD pos; // current position DIR128 stepdir; // direction of step pos = start; // current position window->Pen(colour); if (stepcount == 0) { window->Rectangle(box.left(), box.top(), box.right(), box.bottom()); return; } window->SetCursor(pos.x(), pos.y()); stepindex = 0; while (stepindex < stepcount) { pos += step(stepindex); // step to next stepdir = step_dir(stepindex); stepindex++; // count steps // merge straight lines while (stepindex < stepcount && stepdir.get_dir() == step_dir(stepindex).get_dir()) { pos += step(stepindex); stepindex++; } window->DrawTo(pos.x(), pos.y()); } } // Draws the outline in the given colour, normalized using the given denorm, // making use of sub-pixel accurate information if available. void C_OUTLINE::plot_normed(const DENORM& denorm, ScrollView::Color colour, ScrollView* window) const { window->Pen(colour); if (stepcount == 0) { window->Rectangle(box.left(), box.top(), box.right(), box.bottom()); return; } const DENORM* root_denorm = denorm.RootDenorm(); ICOORD pos = start; // current position FCOORD f_pos = sub_pixel_pos_at_index(pos, 0); FCOORD pos_normed; denorm.NormTransform(root_denorm, f_pos, &pos_normed); window->SetCursor(IntCastRounded(pos_normed.x()), IntCastRounded(pos_normed.y())); for (int s = 0; s < stepcount; pos += step(s++)) { int edge_weight = edge_strength_at_index(s); if (edge_weight == 0) { // This point has conflicting gradient and step direction, so ignore it. continue; } FCOORD f_pos = sub_pixel_pos_at_index(pos, s); FCOORD pos_normed; denorm.NormTransform(root_denorm, f_pos, &pos_normed); window->DrawTo(IntCastRounded(pos_normed.x()), IntCastRounded(pos_normed.y())); } } #endif /********************************************************************** * C_OUTLINE::operator= * * Assignment - deep copy data **********************************************************************/ //assignment C_OUTLINE & C_OUTLINE::operator= ( const C_OUTLINE & source //from this ) { box = source.box; start = source.start; if (steps != NULL) free_mem(steps); stepcount = source.stepcount; steps = (uinT8 *) alloc_mem (step_mem()); memmove (steps, source.steps, step_mem()); if (!children.empty ()) children.clear (); children.deep_copy(&source.children, &deep_copy); delete [] offsets; if (source.offsets != NULL) { offsets = new EdgeOffset[stepcount]; memcpy(offsets, source.offsets, stepcount * sizeof(*offsets)); } else { offsets = NULL; } return *this; } // Helper for ComputeBinaryOffsets. Increments pos, dir_counts, pos_totals // by the step, increment, and vertical step ? x : y position * increment // at step s Mod stepcount respectively. Used to add or subtract the // direction and position to/from accumulators of a small neighbourhood. void C_OUTLINE::increment_step(int s, int increment, ICOORD* pos, int* dir_counts, int* pos_totals) const { int step_index = Modulo(s, stepcount); int dir_index = chain_code(step_index); dir_counts[dir_index] += increment; ICOORD step_vec = step(step_index); if (step_vec.x() == 0) pos_totals[dir_index] += pos->x() * increment; else pos_totals[dir_index] += pos->y() * increment; *pos += step_vec; } ICOORD C_OUTLINE::chain_step(int chaindir) { return step_coords[chaindir % 4]; }
C++
/********************************************************************** * File: word.c * Description: Code for the WERD class. * Author: Ray Smith * Created: Tue Oct 08 14:32:12 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef WERD_H #define WERD_H #include "params.h" #include "bits16.h" #include "elst2.h" #include "strngs.h" #include "blckerr.h" #include "stepblob.h" enum WERD_FLAGS { W_SEGMENTED, //< correctly segmented W_ITALIC, //< italic text W_BOLD, //< bold text W_BOL, //< start of line W_EOL, //< end of line W_NORMALIZED, //< flags W_SCRIPT_HAS_XHEIGHT, //< x-height concept makes sense. W_SCRIPT_IS_LATIN, //< Special case latin for y. splitting. W_DONT_CHOP, //< fixed pitch chopped W_REP_CHAR, //< repeated character W_FUZZY_SP, //< fuzzy space W_FUZZY_NON, //< fuzzy nonspace W_INVERSE //< white on black }; enum DISPLAY_FLAGS { /* Display flags bit number allocations */ DF_BOX, //< Bounding box DF_TEXT, //< Correct ascii DF_POLYGONAL, //< Polyg approx DF_EDGE_STEP, //< Edge steps DF_BN_POLYGONAL, //< BL normalisd polyapx DF_BLAMER //< Blamer information }; class ROW; //forward decl class WERD : public ELIST2_LINK { public: WERD() {} // WERD constructed with: // blob_list - blobs of the word (we take this list's contents) // blanks - number of blanks before the word // text - correct text (outlives WERD) WERD(C_BLOB_LIST *blob_list, uinT8 blanks, const char *text); // WERD constructed from: // blob_list - blobs in the word // clone - werd to clone flags, etc from. WERD(C_BLOB_LIST *blob_list, WERD *clone); // Construct a WERD from a single_blob and clone the flags from this. // W_BOL and W_EOL flags are set according to the given values. WERD* ConstructFromSingleBlob(bool bol, bool eol, C_BLOB* blob); ~WERD() { } // assignment WERD & operator= (const WERD &source); // This method returns a new werd constructed using the blobs in the input // all_blobs list, which correspond to the blobs in this werd object. The // blobs used to construct the new word are consumed and removed from the // input all_blobs list. // Returns NULL if the word couldn't be constructed. // Returns original blobs for which no matches were found in the output list // orphan_blobs (appends). WERD *ConstructWerdWithNewBlobs(C_BLOB_LIST *all_blobs, C_BLOB_LIST *orphan_blobs); // Accessors for reject / DUFF blobs in various formats C_BLOB_LIST *rej_cblob_list() { // compact format return &rej_cblobs; } // Accessors for good blobs in various formats. C_BLOB_LIST *cblob_list() { // get compact blobs return &cblobs; } uinT8 space() { // access function return blanks; } void set_blanks(uinT8 new_blanks) { blanks = new_blanks; } int script_id() const { return script_id_; } void set_script_id(int id) { script_id_ = id; } TBOX bounding_box(); // compute bounding box const char *text() const { return correct.string(); } void set_text(const char *new_text) { correct = new_text; } BOOL8 flag(WERD_FLAGS mask) const { return flags.bit(mask); } void set_flag(WERD_FLAGS mask, BOOL8 value) { flags.set_bit(mask, value); } BOOL8 display_flag(uinT8 flag) const { return disp_flags.bit(flag); } void set_display_flag(uinT8 flag, BOOL8 value) { disp_flags.set_bit(flag, value); } WERD *shallow_copy(); // shallow copy word // reposition word by vector void move(const ICOORD vec); // join other's blobs onto this werd, emptying out other. void join_on(WERD* other); // copy other's blobs onto this word, leaving other intact. void copy_on(WERD* other); // tprintf word metadata (but not blob innards) void print(); #ifndef GRAPHICS_DISABLED // plot word on window in a uniform colour void plot(ScrollView *window, ScrollView::Color colour); // Get the next color in the (looping) rainbow. static ScrollView::Color NextColor(ScrollView::Color colour); // plot word on window in a rainbow of colours void plot(ScrollView *window); // plot rejected blobs in a rainbow of colours void plot_rej_blobs(ScrollView *window); #endif // GRAPHICS_DISABLED private: uinT8 blanks; // no of blanks uinT8 dummy; // padding BITS16 flags; // flags about word BITS16 disp_flags; // display flags inT16 script_id_; // From unicharset. STRING correct; // correct text C_BLOB_LIST cblobs; // compacted blobs C_BLOB_LIST rej_cblobs; // DUFF blobs }; ELIST2IZEH (WERD) #include "ocrrow.h" // placed here due to // compare words by increasing order of left edge, suitable for qsort(3) int word_comparator(const void *word1p, const void *word2p); #endif
C++
/********************************************************************** * File: otsuthr.cpp * Description: Simple Otsu thresholding for binarizing images. * Author: Ray Smith * Created: Fri Mar 07 12:31:01 PST 2008 * * (C) Copyright 2008, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "otsuthr.h" #include <string.h> #include "allheaders.h" #include "helpers.h" #include "openclwrapper.h" namespace tesseract { // Computes the Otsu threshold(s) for the given image rectangle, making one // for each channel. Each channel is always one byte per pixel. // Returns an array of threshold values and an array of hi_values, such // that a pixel value >threshold[channel] is considered foreground if // hi_values[channel] is 0 or background if 1. A hi_value of -1 indicates // that there is no apparent foreground. At least one hi_value will not be -1. // Delete thresholds and hi_values with delete [] after use. // The return value is the number of channels in the input image, being // the size of the output thresholds and hi_values arrays. int OtsuThreshold(Pix* src_pix, int left, int top, int width, int height, int** thresholds, int** hi_values) { int num_channels = pixGetDepth(src_pix) / 8; // Of all channels with no good hi_value, keep the best so we can always // produce at least one answer. PERF_COUNT_START("OtsuThreshold") int best_hi_value = 1; int best_hi_index = 0; bool any_good_hivalue = false; double best_hi_dist = 0.0; *thresholds = new int[num_channels]; *hi_values = new int[num_channels]; // all of channel 0 then all of channel 1... int *histogramAllChannels = new int[kHistogramSize * num_channels]; // only use opencl if compiled w/ OpenCL and selected device is opencl #ifdef USE_OPENCL // Calculate Histogram on GPU OpenclDevice od; if (od.selectedDeviceIsOpenCL() && (num_channels == 1 || num_channels == 4) && top == 0 && left == 0 ) { od.HistogramRectOCL( (const unsigned char*)pixGetData(src_pix), num_channels, pixGetWpl(src_pix) * 4, left, top, width, height, kHistogramSize, histogramAllChannels); // Calculate Threshold from Histogram on cpu for (int ch = 0; ch < num_channels; ++ch) { (*thresholds)[ch] = -1; (*hi_values)[ch] = -1; int *histogram = &histogramAllChannels[kHistogramSize * ch]; int H; int best_omega_0; int best_t = OtsuStats(histogram, &H, &best_omega_0); if (best_omega_0 == 0 || best_omega_0 == H) { // This channel is empty. continue; } // To be a convincing foreground we must have a small fraction of H // or to be a convincing background we must have a large fraction of H. // In between we assume this channel contains no thresholding information. int hi_value = best_omega_0 < H * 0.5; (*thresholds)[ch] = best_t; if (best_omega_0 > H * 0.75) { any_good_hivalue = true; (*hi_values)[ch] = 0; } else if (best_omega_0 < H * 0.25) { any_good_hivalue = true; (*hi_values)[ch] = 1; } else { // In case all channels are like this, keep the best of the bad lot. double hi_dist = hi_value ? (H - best_omega_0) : best_omega_0; if (hi_dist > best_hi_dist) { best_hi_dist = hi_dist; best_hi_value = hi_value; best_hi_index = ch; } } } } else { #endif for (int ch = 0; ch < num_channels; ++ch) { (*thresholds)[ch] = -1; (*hi_values)[ch] = -1; // Compute the histogram of the image rectangle. int histogram[kHistogramSize]; HistogramRect(src_pix, ch, left, top, width, height, histogram); int H; int best_omega_0; int best_t = OtsuStats(histogram, &H, &best_omega_0); if (best_omega_0 == 0 || best_omega_0 == H) { // This channel is empty. continue; } // To be a convincing foreground we must have a small fraction of H // or to be a convincing background we must have a large fraction of H. // In between we assume this channel contains no thresholding information. int hi_value = best_omega_0 < H * 0.5; (*thresholds)[ch] = best_t; if (best_omega_0 > H * 0.75) { any_good_hivalue = true; (*hi_values)[ch] = 0; } else if (best_omega_0 < H * 0.25) { any_good_hivalue = true; (*hi_values)[ch] = 1; } else { // In case all channels are like this, keep the best of the bad lot. double hi_dist = hi_value ? (H - best_omega_0) : best_omega_0; if (hi_dist > best_hi_dist) { best_hi_dist = hi_dist; best_hi_value = hi_value; best_hi_index = ch; } } } #ifdef USE_OPENCL } #endif // USE_OPENCL delete[] histogramAllChannels; if (!any_good_hivalue) { // Use the best of the ones that were not good enough. (*hi_values)[best_hi_index] = best_hi_value; } PERF_COUNT_END return num_channels; } // Computes the histogram for the given image rectangle, and the given // single channel. Each channel is always one byte per pixel. // Histogram is always a kHistogramSize(256) element array to count // occurrences of each pixel value. void HistogramRect(Pix* src_pix, int channel, int left, int top, int width, int height, int* histogram) { PERF_COUNT_START("HistogramRect") int num_channels = pixGetDepth(src_pix) / 8; channel = ClipToRange(channel, 0, num_channels - 1); int bottom = top + height; memset(histogram, 0, sizeof(*histogram) * kHistogramSize); int src_wpl = pixGetWpl(src_pix); l_uint32* srcdata = pixGetData(src_pix); for (int y = top; y < bottom; ++y) { const l_uint32* linedata = srcdata + y * src_wpl; for (int x = 0; x < width; ++x) { int pixel = GET_DATA_BYTE(const_cast<void*>( reinterpret_cast<const void *>(linedata)), (x + left) * num_channels + channel); ++histogram[pixel]; } } PERF_COUNT_END } // Computes the Otsu threshold(s) for the given histogram. // Also returns H = total count in histogram, and // omega0 = count of histogram below threshold. int OtsuStats(const int* histogram, int* H_out, int* omega0_out) { int H = 0; double mu_T = 0.0; for (int i = 0; i < kHistogramSize; ++i) { H += histogram[i]; mu_T += static_cast<double>(i) * histogram[i]; } // Now maximize sig_sq_B over t. // http://www.ctie.monash.edu.au/hargreave/Cornall_Terry_328.pdf int best_t = -1; int omega_0, omega_1; int best_omega_0 = 0; double best_sig_sq_B = 0.0; double mu_0, mu_1, mu_t; omega_0 = 0; mu_t = 0.0; for (int t = 0; t < kHistogramSize - 1; ++t) { omega_0 += histogram[t]; mu_t += t * static_cast<double>(histogram[t]); if (omega_0 == 0) continue; omega_1 = H - omega_0; if (omega_1 == 0) break; mu_0 = mu_t / omega_0; mu_1 = (mu_T - mu_t) / omega_1; double sig_sq_B = mu_1 - mu_0; sig_sq_B *= sig_sq_B * omega_0 * omega_1; if (best_t < 0 || sig_sq_B > best_sig_sq_B) { best_sig_sq_B = sig_sq_B; best_t = t; best_omega_0 = omega_0; } } if (H_out != NULL) *H_out = H; if (omega0_out != NULL) *omega0_out = best_omega_0; return best_t; } } // namespace tesseract.
C++
/********************************************************************** * File: points.h (Formerly coords.h) * Description: Coordinate class definitions. * Author: Ray Smith * Created: Fri Mar 15 08:32:45 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef POINTS_H #define POINTS_H #include <stdio.h> #include <math.h> #include "elst.h" class FCOORD; ///integer coordinate class ICOORD { friend class FCOORD; public: ///empty constructor ICOORD() { xcoord = ycoord = 0; //default zero } ///constructor ///@param xin x value ///@param yin y value ICOORD(inT16 xin, inT16 yin) { xcoord = xin; ycoord = yin; } ///destructor ~ICOORD () { } ///access function inT16 x() const { return xcoord; } ///access_function inT16 y() const { return ycoord; } ///rewrite function void set_x(inT16 xin) { xcoord = xin; //write new value } ///rewrite function void set_y(inT16 yin) { //value to set ycoord = yin; } /// Set from the given x,y, shrinking the vector to fit if needed. void set_with_shrink(int x, int y); ///find sq length float sqlength() const { return (float) (xcoord * xcoord + ycoord * ycoord); } ///find length float length() const { return (float) sqrt (sqlength ()); } ///sq dist between pts float pt_to_pt_sqdist(const ICOORD &pt) const { ICOORD gap; gap.xcoord = xcoord - pt.xcoord; gap.ycoord = ycoord - pt.ycoord; return gap.sqlength (); } ///Distance between pts float pt_to_pt_dist(const ICOORD &pt) const { return (float) sqrt (pt_to_pt_sqdist (pt)); } ///find angle float angle() const { return (float) atan2 ((double) ycoord, (double) xcoord); } ///test equality BOOL8 operator== (const ICOORD & other) const { return xcoord == other.xcoord && ycoord == other.ycoord; } ///test inequality BOOL8 operator!= (const ICOORD & other) const { return xcoord != other.xcoord || ycoord != other.ycoord; } ///rotate 90 deg anti friend ICOORD operator! (const ICOORD &); ///unary minus friend ICOORD operator- (const ICOORD &); ///add friend ICOORD operator+ (const ICOORD &, const ICOORD &); ///add friend ICOORD & operator+= (ICOORD &, const ICOORD &); ///subtract friend ICOORD operator- (const ICOORD &, const ICOORD &); ///subtract friend ICOORD & operator-= (ICOORD &, const ICOORD &); ///scalar product friend inT32 operator% (const ICOORD &, const ICOORD &); ///cross product friend inT32 operator *(const ICOORD &, const ICOORD &); ///multiply friend ICOORD operator *(const ICOORD &, inT16); ///multiply friend ICOORD operator *(inT16, const ICOORD &); ///multiply friend ICOORD & operator*= (ICOORD &, inT16); ///divide friend ICOORD operator/ (const ICOORD &, inT16); ///divide friend ICOORD & operator/= (ICOORD &, inT16); ///rotate ///@param vec by vector void rotate(const FCOORD& vec); /// Setup for iterating over the pixels in a vector by the well-known /// Bresenham rendering algorithm. /// Starting with major/2 in the accumulator, on each step move by /// major_step, and then add minor to the accumulator. When /// accumulator >= major subtract major and also move by minor_step. void setup_render(ICOORD* major_step, ICOORD* minor_step, int* major, int* minor) const; // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); protected: inT16 xcoord; //< x value inT16 ycoord; //< y value }; class DLLSYM ICOORDELT:public ELIST_LINK, public ICOORD //embedded coord list { public: ///empty constructor ICOORDELT() { } ///constructor from ICOORD ICOORDELT (ICOORD icoord):ICOORD (icoord) { } ///constructor ///@param xin x value ///@param yin y value ICOORDELT(inT16 xin, inT16 yin) { xcoord = xin; ycoord = yin; } static ICOORDELT* deep_copy(const ICOORDELT* src) { ICOORDELT* elt = new ICOORDELT; *elt = *src; return elt; } }; ELISTIZEH (ICOORDELT) class DLLSYM FCOORD { public: ///empty constructor FCOORD() { } ///constructor ///@param xvalue x value ///@param yvalue y value FCOORD(float xvalue, float yvalue) { xcoord = xvalue; //set coords ycoord = yvalue; } FCOORD( //make from ICOORD ICOORD icoord) { //coords to set xcoord = icoord.xcoord; ycoord = icoord.ycoord; } float x() const { //get coords return xcoord; } float y() const { return ycoord; } ///rewrite function void set_x(float xin) { xcoord = xin; //write new value } ///rewrite function void set_y(float yin) { //value to set ycoord = yin; } ///find sq length float sqlength() const { return xcoord * xcoord + ycoord * ycoord; } ///find length float length() const { return (float) sqrt (sqlength ()); } ///sq dist between pts float pt_to_pt_sqdist(const FCOORD &pt) const { FCOORD gap; gap.xcoord = xcoord - pt.xcoord; gap.ycoord = ycoord - pt.ycoord; return gap.sqlength (); } ///Distance between pts float pt_to_pt_dist(const FCOORD &pt) const { return (float) sqrt (pt_to_pt_sqdist (pt)); } ///find angle float angle() const { return (float) atan2 (ycoord, xcoord); } // Returns the standard feature direction corresponding to this. // See binary_angle_plus_pi below for a description of the direction. uinT8 to_direction() const; // Sets this with a unit vector in the given standard feature direction. void from_direction(uinT8 direction); // Converts an angle in radians (from ICOORD::angle or FCOORD::angle) to a // standard feature direction as an unsigned angle in 256ths of a circle // measured anticlockwise from (-1, 0). static uinT8 binary_angle_plus_pi(double angle); // Inverse of binary_angle_plus_pi returns an angle in radians for the // given standard feature direction. static double angle_from_direction(uinT8 direction); // Returns the point on the given line nearest to this, ie the point such // that the vector point->this is perpendicular to the line. // The line is defined as a line_point and a dir_vector for its direction. // dir_vector need not be a unit vector. FCOORD nearest_pt_on_line(const FCOORD& line_point, const FCOORD& dir_vector) const; ///Convert to unit vec bool normalise(); ///test equality BOOL8 operator== (const FCOORD & other) { return xcoord == other.xcoord && ycoord == other.ycoord; } ///test inequality BOOL8 operator!= (const FCOORD & other) { return xcoord != other.xcoord || ycoord != other.ycoord; } ///rotate 90 deg anti friend FCOORD operator! (const FCOORD &); ///unary minus friend FCOORD operator- (const FCOORD &); ///add friend FCOORD operator+ (const FCOORD &, const FCOORD &); ///add friend FCOORD & operator+= (FCOORD &, const FCOORD &); ///subtract friend FCOORD operator- (const FCOORD &, const FCOORD &); ///subtract friend FCOORD & operator-= (FCOORD &, const FCOORD &); ///scalar product friend float operator% (const FCOORD &, const FCOORD &); ///cross product friend float operator *(const FCOORD &, const FCOORD &); ///multiply friend FCOORD operator *(const FCOORD &, float); ///multiply friend FCOORD operator *(float, const FCOORD &); ///multiply friend FCOORD & operator*= (FCOORD &, float); ///divide friend FCOORD operator/ (const FCOORD &, float); ///rotate ///@param vec by vector void rotate(const FCOORD vec); // unrotate - undo a rotate(vec) // @param vec by vector void unrotate(const FCOORD &vec); ///divide friend FCOORD & operator/= (FCOORD &, float); private: float xcoord; //2 floating coords float ycoord; }; #include "ipoints.h" /*do inline funcs */ #endif
C++
/********************************************************************** * File: linlsq.cpp (Formerly llsq.c) * Description: Linear Least squares fitting code. * Author: Ray Smith * Created: Thu Sep 12 08:44:51 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdio.h> #include <math.h> #include "errcode.h" #include "linlsq.h" const ERRCODE EMPTY_LLSQ = "Can't delete from an empty LLSQ"; /********************************************************************** * LLSQ::clear * * Function to initialize a LLSQ. **********************************************************************/ void LLSQ::clear() { // initialize total_weight = 0.0; // no elements sigx = 0.0; // update accumulators sigy = 0.0; sigxx = 0.0; sigxy = 0.0; sigyy = 0.0; } /********************************************************************** * LLSQ::add * * Add an element to the accumulator. **********************************************************************/ void LLSQ::add(double x, double y) { // add an element total_weight++; // count elements sigx += x; // update accumulators sigy += y; sigxx += x * x; sigxy += x * y; sigyy += y * y; } // Adds an element with a specified weight. void LLSQ::add(double x, double y, double weight) { total_weight += weight; sigx += x * weight; // update accumulators sigy += y * weight; sigxx += x * x * weight; sigxy += x * y * weight; sigyy += y * y * weight; } // Adds a whole LLSQ. void LLSQ::add(const LLSQ& other) { total_weight += other.total_weight; sigx += other.sigx; // update accumulators sigy += other.sigy; sigxx += other.sigxx; sigxy += other.sigxy; sigyy += other.sigyy; } /********************************************************************** * LLSQ::remove * * Delete an element from the acculuator. **********************************************************************/ void LLSQ::remove(double x, double y) { // delete an element if (total_weight <= 0.0) // illegal EMPTY_LLSQ.error("LLSQ::remove", ABORT, NULL); total_weight--; // count elements sigx -= x; // update accumulators sigy -= y; sigxx -= x * x; sigxy -= x * y; sigyy -= y * y; } /********************************************************************** * LLSQ::m * * Return the gradient of the line fit. **********************************************************************/ double LLSQ::m() const { // get gradient double covar = covariance(); double x_var = x_variance(); if (x_var != 0.0) return covar / x_var; else return 0.0; // too little } /********************************************************************** * LLSQ::c * * Return the constant of the line fit. **********************************************************************/ double LLSQ::c(double m) const { // get constant if (total_weight > 0.0) return (sigy - m * sigx) / total_weight; else return 0; // too little } /********************************************************************** * LLSQ::rms * * Return the rms error of the fit. **********************************************************************/ double LLSQ::rms(double m, double c) const { // get error double error; // total error if (total_weight > 0) { error = sigyy + m * (m * sigxx + 2 * (c * sigx - sigxy)) + c * (total_weight * c - 2 * sigy); if (error >= 0) error = sqrt(error / total_weight); // sqrt of mean else error = 0; } else { error = 0; // too little } return error; } /********************************************************************** * LLSQ::pearson * * Return the pearson product moment correlation coefficient. **********************************************************************/ double LLSQ::pearson() const { // get correlation double r = 0.0; // Correlation is 0 if insufficent data. double covar = covariance(); if (covar != 0.0) { double var_product = x_variance() * y_variance(); if (var_product > 0.0) r = covar / sqrt(var_product); } return r; } // Returns the x,y means as an FCOORD. FCOORD LLSQ::mean_point() const { if (total_weight > 0.0) { return FCOORD(sigx / total_weight, sigy / total_weight); } else { return FCOORD(0.0f, 0.0f); } } // Returns the sqrt of the mean squared error measured perpendicular from the // line through mean_point() in the direction dir. // // Derivation: // Lemma: Let v and x_i (i=1..N) be a k-dimensional vectors (1xk matrices). // Let % be dot product and ' be transpose. Note that: // Sum[i=1..N] (v % x_i)^2 // = v * [x_1' x_2' ... x_N'] * [x_1' x_2' .. x_N']' * v' // If x_i have average 0 we have: // = v * (N * COVARIANCE_MATRIX(X)) * v' // Expanded for the case that k = 2, where we treat the dimensions // as x_i and y_i, this is: // = v * (N * [VAR(X), COV(X,Y); COV(X,Y) VAR(Y)]) * v' // Now, we are trying to calculate the mean squared error, where v is // perpendicular to our line of interest: // Mean squared error // = E [ (v % (x_i - x_avg))) ^2 ] // = Sum (v % (x_i - x_avg))^2 / N // = v * N * [VAR(X) COV(X,Y); COV(X,Y) VAR(Y)] / N * v' // = v * [VAR(X) COV(X,Y); COV(X,Y) VAR(Y)] * v' // = code below double LLSQ::rms_orth(const FCOORD &dir) const { FCOORD v = !dir; v.normalise(); return sqrt(v.x() * v.x() * x_variance() + 2 * v.x() * v.y() * covariance() + v.y() * v.y() * y_variance()); } // Returns the direction of the fitted line as a unit vector, using the // least mean squared perpendicular distance. The line runs through the // mean_point, i.e. a point p on the line is given by: // p = mean_point() + lambda * vector_fit() for some real number lambda. // Note that the result (0<=x<=1, -1<=y<=-1) is directionally ambiguous // and may be negated without changing its meaning. // Fitting a line m + 𝜆v to a set of N points Pi = (xi, yi), where // m is the mean point (𝝁, 𝝂) and // v is the direction vector (cos𝜃, sin𝜃) // The perpendicular distance of each Pi from the line is: // (Pi - m) x v, where x is the scalar cross product. // Total squared error is thus: // E = ∑((xi - 𝝁)sin𝜃 - (yi - 𝝂)cos𝜃)² // = ∑(xi - 𝝁)²sin²𝜃 - 2∑(xi - 𝝁)(yi - 𝝂)sin𝜃 cos𝜃 + ∑(yi - 𝝂)²cos²𝜃 // = NVar(xi)sin²𝜃 - 2NCovar(xi, yi)sin𝜃 cos𝜃 + NVar(yi)cos²𝜃 (Eq 1) // where Var(xi) is the variance of xi, // and Covar(xi, yi) is the covariance of xi, yi. // Taking the derivative wrt 𝜃 and setting to 0 to obtain the min/max: // 0 = 2NVar(xi)sin𝜃 cos𝜃 -2NCovar(xi, yi)(cos²𝜃 - sin²𝜃) -2NVar(yi)sin𝜃 cos𝜃 // => Covar(xi, yi)(cos²𝜃 - sin²𝜃) = (Var(xi) - Var(yi))sin𝜃 cos𝜃 // Using double angles: // 2Covar(xi, yi)cos2𝜃 = (Var(xi) - Var(yi))sin2𝜃 (Eq 2) // So 𝜃 = 0.5 atan2(2Covar(xi, yi), Var(xi) - Var(yi)) (Eq 3) // Because it involves 2𝜃 , Eq 2 has 2 solutions 90 degrees apart, but which // is the min and which is the max? From Eq1: // E/N = Var(xi)sin²𝜃 - 2Covar(xi, yi)sin𝜃 cos𝜃 + Var(yi)cos²𝜃 // and 90 degrees away, using sin/cos equivalences: // E'/N = Var(xi)cos²𝜃 + 2Covar(xi, yi)sin𝜃 cos𝜃 + Var(yi)sin²𝜃 // The second error is smaller (making it the minimum) iff // E'/N < E/N ie: // (Var(xi) - Var(yi))(cos²𝜃 - sin²𝜃) < -4Covar(xi, yi)sin𝜃 cos𝜃 // Using double angles: // (Var(xi) - Var(yi))cos2𝜃 < -2Covar(xi, yi)sin2𝜃 (InEq 1) // But atan2(2Covar(xi, yi), Var(xi) - Var(yi)) picks 2𝜃 such that: // sgn(cos2𝜃) = sgn(Var(xi) - Var(yi)) and sgn(sin2𝜃) = sgn(Covar(xi, yi)) // so InEq1 can *never* be true, making the atan2 result *always* the min! // In the degenerate case, where Covar(xi, yi) = 0 AND Var(xi) = Var(yi), // the 2 solutions have equal error and the inequality is still false. // Therefore the solution really is as trivial as Eq 3. // This is equivalent to returning the Principal Component in PCA, or the // eigenvector corresponding to the largest eigenvalue in the covariance // matrix. However, atan2 is much simpler! The one reference I found that // uses this formula is http://web.mit.edu/18.06/www/Essays/tlsfit.pdf but // that is still a much more complex derivation. It seems Pearson had already // found this simple solution in 1901. // http://books.google.com/books?id=WXwvAQAAIAAJ&pg=PA559 FCOORD LLSQ::vector_fit() const { double x_var = x_variance(); double y_var = y_variance(); double covar = covariance(); double theta = 0.5 * atan2(2.0 * covar, x_var - y_var); FCOORD result(cos(theta), sin(theta)); return result; }
C++
/********************************************************************** * File: polyblk.c (Formerly poly_block.c) * Description: Polygonal blocks * Author: Sheelagh Lloyd? * Created: * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <ctype.h> #include <math.h> #include <stdio.h> #include "elst.h" #include "polyblk.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #define PBLOCK_LABEL_SIZE 150 #define INTERSECTING MAX_INT16 int lessthan(const void *first, const void *second); POLY_BLOCK::POLY_BLOCK(ICOORDELT_LIST *points, PolyBlockType t) { ICOORDELT_IT v = &vertices; vertices.clear(); v.move_to_first(); v.add_list_before(points); compute_bb(); type = t; } // Initialize from box coordinates. POLY_BLOCK::POLY_BLOCK(const TBOX& box, PolyBlockType t) { vertices.clear(); ICOORDELT_IT v = &vertices; v.move_to_first(); v.add_to_end(new ICOORDELT(box.left(), box.top())); v.add_to_end(new ICOORDELT(box.left(), box.bottom())); v.add_to_end(new ICOORDELT(box.right(), box.bottom())); v.add_to_end(new ICOORDELT(box.right(), box.top())); compute_bb(); type = t; } /** * @name POLY_BLOCK::compute_bb * * Compute the bounding box from the outline points. */ void POLY_BLOCK::compute_bb() { //constructor ICOORD ibl, itr; //integer bb ICOORD botleft; //bounding box ICOORD topright; ICOORD pos; //current pos; ICOORDELT_IT pts = &vertices; //iterator botleft = *pts.data (); topright = botleft; do { pos = *pts.data (); if (pos.x () < botleft.x ()) //get bounding box botleft = ICOORD (pos.x (), botleft.y ()); if (pos.y () < botleft.y ()) botleft = ICOORD (botleft.x (), pos.y ()); if (pos.x () > topright.x ()) topright = ICOORD (pos.x (), topright.y ()); if (pos.y () > topright.y ()) topright = ICOORD (topright.x (), pos.y ()); pts.forward (); } while (!pts.at_first ()); ibl = ICOORD (botleft.x (), botleft.y ()); itr = ICOORD (topright.x (), topright.y ()); box = TBOX (ibl, itr); } /** * @name POLY_BLOCK::winding_number * * Return the winding number of the outline around the given point. * @param point point to wind around */ inT16 POLY_BLOCK::winding_number(const ICOORD &point) { inT16 count; //winding count ICOORD pt; //current point ICOORD vec; //point to current point ICOORD vvec; //current point to next point inT32 cross; //cross product ICOORDELT_IT it = &vertices; //iterator count = 0; do { pt = *it.data (); vec = pt - point; vvec = *it.data_relative (1) - pt; //crossing the line if (vec.y () <= 0 && vec.y () + vvec.y () > 0) { cross = vec * vvec; //cross product if (cross > 0) count++; //crossing right half else if (cross == 0) return INTERSECTING; //going through point } else if (vec.y () > 0 && vec.y () + vvec.y () <= 0) { cross = vec * vvec; if (cross < 0) count--; //crossing back else if (cross == 0) return INTERSECTING; //illegal } else if (vec.y () == 0 && vec.x () == 0) return INTERSECTING; it.forward (); } while (!it.at_first ()); return count; //winding number } /// @return true if other is inside this. bool POLY_BLOCK::contains(POLY_BLOCK *other) { inT16 count; // winding count ICOORDELT_IT it = &vertices; // iterator ICOORD vertex; if (!box.overlap (*(other->bounding_box ()))) return false; // can't be contained /* check that no vertex of this is inside other */ do { vertex = *it.data (); // get winding number count = other->winding_number (vertex); if (count != INTERSECTING) if (count != 0) return false; it.forward (); } while (!it.at_first ()); /* check that all vertices of other are inside this */ //switch lists it.set_to_list (other->points ()); do { vertex = *it.data (); //try other way round count = winding_number (vertex); if (count != INTERSECTING) if (count == 0) return false; it.forward (); } while (!it.at_first ()); return true; } /** * @name POLY_BLOCK::rotate * * Rotate the POLY_BLOCK. * @param rotation cos, sin of angle */ void POLY_BLOCK::rotate(FCOORD rotation) { FCOORD pos; //current pos; ICOORDELT *pt; //current point ICOORDELT_IT pts = &vertices; //iterator do { pt = pts.data (); pos.set_x (pt->x ()); pos.set_y (pt->y ()); pos.rotate (rotation); pt->set_x ((inT16) (floor (pos.x () + 0.5))); pt->set_y ((inT16) (floor (pos.y () + 0.5))); pts.forward (); } while (!pts.at_first ()); compute_bb(); } /** * @name POLY_BLOCK::reflect_in_y_axis * * Reflect the coords of the polygon in the y-axis. (Flip the sign of x.) */ void POLY_BLOCK::reflect_in_y_axis() { ICOORDELT *pt; // current point ICOORDELT_IT pts = &vertices; // Iterator. do { pt = pts.data(); pt->set_x(-pt->x()); pts.forward(); } while (!pts.at_first()); compute_bb(); } /** * POLY_BLOCK::move * * Move the POLY_BLOCK. * @param shift x,y translation vector */ void POLY_BLOCK::move(ICOORD shift) { ICOORDELT *pt; //current point ICOORDELT_IT pts = &vertices; //iterator do { pt = pts.data (); *pt += shift; pts.forward (); } while (!pts.at_first ()); compute_bb(); } #ifndef GRAPHICS_DISABLED void POLY_BLOCK::plot(ScrollView* window, inT32 num) { ICOORDELT_IT v = &vertices; window->Pen(ColorForPolyBlockType(type)); v.move_to_first (); if (num > 0) { window->TextAttributes("Times", 80, false, false, false); char temp_buff[34]; #if defined(__UNIX__) || defined(MINGW) sprintf(temp_buff, INT32FORMAT, num); #else ltoa (num, temp_buff, 10); #endif window->Text(v.data ()->x (), v.data ()->y (), temp_buff); } window->SetCursor(v.data ()->x (), v.data ()->y ()); for (v.mark_cycle_pt (); !v.cycled_list (); v.forward ()) { window->DrawTo(v.data ()->x (), v.data ()->y ()); } v.move_to_first (); window->DrawTo(v.data ()->x (), v.data ()->y ()); } void POLY_BLOCK::fill(ScrollView* window, ScrollView::Color colour) { inT16 y; inT16 width; PB_LINE_IT *lines; ICOORDELT_LIST *segments; ICOORDELT_IT s_it; lines = new PB_LINE_IT (this); window->Pen(colour); for (y = this->bounding_box ()->bottom (); y <= this->bounding_box ()->top (); y++) { segments = lines->get_line (y); if (!segments->empty ()) { s_it.set_to_list (segments); for (s_it.mark_cycle_pt (); !s_it.cycled_list (); s_it.forward ()) { // Note different use of ICOORDELT, x coord is x coord of pixel // at the start of line segment, y coord is length of line segment // Last pixel is start pixel + length. width = s_it.data ()->y (); window->SetCursor(s_it.data ()->x (), y); window->DrawTo(s_it.data ()->x () + (float) width, y); } } } } #endif /// @return true if the polygons of other and this overlap. bool POLY_BLOCK::overlap(POLY_BLOCK *other) { inT16 count; // winding count ICOORDELT_IT it = &vertices; // iterator ICOORD vertex; if (!box.overlap(*(other->bounding_box()))) return false; // can't be any overlap. /* see if a vertex of this is inside other */ do { vertex = *it.data (); // get winding number count = other->winding_number (vertex); if (count != INTERSECTING) if (count != 0) return true; it.forward (); } while (!it.at_first ()); /* see if a vertex of other is inside this */ // switch lists it.set_to_list (other->points ()); do { vertex = *it.data(); // try other way round count = winding_number (vertex); if (count != INTERSECTING) if (count != 0) return true; it.forward (); } while (!it.at_first ()); return false; } ICOORDELT_LIST *PB_LINE_IT::get_line(inT16 y) { ICOORDELT_IT v, r; ICOORDELT_LIST *result; ICOORDELT *x, *current, *previous; float fy, fx; fy = (float) (y + 0.5); result = new ICOORDELT_LIST (); r.set_to_list (result); v.set_to_list (block->points ()); for (v.mark_cycle_pt (); !v.cycled_list (); v.forward ()) { if (((v.data_relative (-1)->y () > y) && (v.data ()->y () <= y)) || ((v.data_relative (-1)->y () <= y) && (v.data ()->y () > y))) { previous = v.data_relative (-1); current = v.data (); fx = (float) (0.5 + previous->x () + (current->x () - previous->x ()) * (fy - previous->y ()) / (current->y () - previous->y ())); x = new ICOORDELT ((inT16) fx, 0); r.add_to_end (x); } } if (!r.empty ()) { r.sort (lessthan); for (r.mark_cycle_pt (); !r.cycled_list (); r.forward ()) x = r.data (); for (r.mark_cycle_pt (); !r.cycled_list (); r.forward ()) { r.data ()->set_y (r.data_relative (1)->x () - r.data ()->x ()); r.forward (); delete (r.extract ()); } } return result; } int lessthan(const void *first, const void *second) { ICOORDELT *p1 = (*(ICOORDELT **) first); ICOORDELT *p2 = (*(ICOORDELT **) second); if (p1->x () < p2->x ()) return (-1); else if (p1->x () > p2->x ()) return (1); else return (0); } #ifndef GRAPHICS_DISABLED /// Returns a color to draw the given type. ScrollView::Color POLY_BLOCK::ColorForPolyBlockType(PolyBlockType type) { // Keep kPBColors in sync with PolyBlockType. const ScrollView::Color kPBColors[PT_COUNT] = { ScrollView::WHITE, // Type is not yet known. Keep as the 1st element. ScrollView::BLUE, // Text that lives inside a column. ScrollView::CYAN, // Text that spans more than one column. ScrollView::MEDIUM_BLUE, // Text that is in a cross-column pull-out region. ScrollView::AQUAMARINE, // Partition belonging to an equation region. ScrollView::SKY_BLUE, // Partition belonging to an inline equation region. ScrollView::MAGENTA, // Partition belonging to a table region. ScrollView::GREEN, // Text-line runs vertically. ScrollView::LIGHT_BLUE, // Text that belongs to an image. ScrollView::RED, // Image that lives inside a column. ScrollView::YELLOW, // Image that spans more than one column. ScrollView::ORANGE, // Image in a cross-column pull-out region. ScrollView::BROWN, // Horizontal Line. ScrollView::DARK_GREEN, // Vertical Line. ScrollView::GREY // Lies outside of any column. }; if (type >= 0 && type < PT_COUNT) { return kPBColors[type]; } return ScrollView::WHITE; } #endif // GRAPHICS_DISABLED
C++
/********************************************************************** * File: polyaprx.cpp (Formerly polygon.c) * Description: Code for polygonal approximation from old edgeprog. * Author: Ray Smith * Created: Thu Nov 25 11:42:04 GMT 1993 * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdio.h> #ifdef __UNIX__ #include <assert.h> #endif #define FASTEDGELENGTH 256 #include "polyaprx.h" #include "params.h" #include "tprintf.h" #define EXTERN EXTERN BOOL_VAR(poly_debug, FALSE, "Debug old poly"); EXTERN BOOL_VAR(poly_wide_objects_better, TRUE, "More accurate approx on wide things"); #define FIXED 4 /*OUTLINE point is fixed */ #define RUNLENGTH 1 /*length of run */ #define DIR 2 /*direction of run */ #define FLAGS 0 #define fixed_dist 20 //really an int_variable #define approx_dist 15 //really an int_variable const int par1 = 4500 / (approx_dist * approx_dist); const int par2 = 6750 / (approx_dist * approx_dist); /********************************************************************** * tesspoly_outline * * Approximate an outline from chain codes form using the old tess algorithm. * If allow_detailed_fx is true, the EDGEPTs in the returned TBLOB * contain pointers to the input C_OUTLINEs that enable higher-resolution * feature extraction that does not use the polygonal approximation. **********************************************************************/ TESSLINE* ApproximateOutline(bool allow_detailed_fx, C_OUTLINE* c_outline) { TBOX loop_box; // bounding box inT32 area; // loop area EDGEPT stack_edgepts[FASTEDGELENGTH]; // converted path EDGEPT* edgepts = stack_edgepts; // Use heap memory if the stack buffer is not big enough. if (c_outline->pathlength() > FASTEDGELENGTH) edgepts = new EDGEPT[c_outline->pathlength()]; loop_box = c_outline->bounding_box(); area = loop_box.height(); if (!poly_wide_objects_better && loop_box.width() > area) area = loop_box.width(); area *= area; edgesteps_to_edgepts(c_outline, edgepts); fix2(edgepts, area); EDGEPT* edgept = poly2(edgepts, area); // 2nd approximation. EDGEPT* startpt = edgept; EDGEPT* result = NULL; EDGEPT* prev_result = NULL; do { EDGEPT* new_pt = new EDGEPT; new_pt->pos = edgept->pos; new_pt->prev = prev_result; if (prev_result == NULL) { result = new_pt; } else { prev_result->next = new_pt; new_pt->prev = prev_result; } if (allow_detailed_fx) { new_pt->src_outline = edgept->src_outline; new_pt->start_step = edgept->start_step; new_pt->step_count = edgept->step_count; } prev_result = new_pt; edgept = edgept->next; } while (edgept != startpt); prev_result->next = result; result->prev = prev_result; if (edgepts != stack_edgepts) delete [] edgepts; return TESSLINE::BuildFromOutlineList(result); } /********************************************************************** * edgesteps_to_edgepts * * Convert a C_OUTLINE to EDGEPTs. **********************************************************************/ EDGEPT * edgesteps_to_edgepts ( //convert outline C_OUTLINE * c_outline, //input EDGEPT edgepts[] //output is array ) { inT32 length; //steps in path ICOORD pos; //current coords inT32 stepindex; //current step inT32 stepinc; //increment inT32 epindex; //current EDGEPT inT32 count; //repeated steps ICOORD vec; //for this 8 step ICOORD prev_vec; inT8 epdir; //of this step DIR128 prevdir; //prvious dir DIR128 dir; //of this step pos = c_outline->start_pos (); //start of loop length = c_outline->pathlength (); stepindex = 0; epindex = 0; prevdir = -1; count = 0; int prev_stepindex = 0; do { dir = c_outline->step_dir (stepindex); vec = c_outline->step (stepindex); if (stepindex < length - 1 && c_outline->step_dir (stepindex + 1) - dir == -32) { dir += 128 - 16; vec += c_outline->step (stepindex + 1); stepinc = 2; } else stepinc = 1; if (count == 0) { prevdir = dir; prev_vec = vec; } if (prevdir.get_dir () != dir.get_dir ()) { edgepts[epindex].pos.x = pos.x (); edgepts[epindex].pos.y = pos.y (); prev_vec *= count; edgepts[epindex].vec.x = prev_vec.x (); edgepts[epindex].vec.y = prev_vec.y (); pos += prev_vec; edgepts[epindex].flags[RUNLENGTH] = count; edgepts[epindex].prev = &edgepts[epindex - 1]; edgepts[epindex].flags[FLAGS] = 0; edgepts[epindex].next = &edgepts[epindex + 1]; prevdir += 64; epdir = (DIR128) 0 - prevdir; epdir >>= 4; epdir &= 7; edgepts[epindex].flags[DIR] = epdir; edgepts[epindex].src_outline = c_outline; edgepts[epindex].start_step = prev_stepindex; edgepts[epindex].step_count = stepindex - prev_stepindex; epindex++; prevdir = dir; prev_vec = vec; count = 1; prev_stepindex = stepindex; } else count++; stepindex += stepinc; } while (stepindex < length); edgepts[epindex].pos.x = pos.x (); edgepts[epindex].pos.y = pos.y (); prev_vec *= count; edgepts[epindex].vec.x = prev_vec.x (); edgepts[epindex].vec.y = prev_vec.y (); pos += prev_vec; edgepts[epindex].flags[RUNLENGTH] = count; edgepts[epindex].flags[FLAGS] = 0; edgepts[epindex].src_outline = c_outline; edgepts[epindex].start_step = prev_stepindex; edgepts[epindex].step_count = stepindex - prev_stepindex; edgepts[epindex].prev = &edgepts[epindex - 1]; edgepts[epindex].next = &edgepts[0]; prevdir += 64; epdir = (DIR128) 0 - prevdir; epdir >>= 4; epdir &= 7; edgepts[epindex].flags[DIR] = epdir; edgepts[0].prev = &edgepts[epindex]; ASSERT_HOST (pos.x () == c_outline->start_pos ().x () && pos.y () == c_outline->start_pos ().y ()); return &edgepts[0]; } /********************************************************************** *fix2(start,area) fixes points on the outline according to a trial method* **********************************************************************/ //#pragma OPT_LEVEL 1 /*stop compiler bugs*/ void fix2( //polygonal approx EDGEPT *start, /*loop to approimate */ int area) { register EDGEPT *edgept; /*current point */ register EDGEPT *edgept1; register EDGEPT *loopstart; /*modified start of loop */ register EDGEPT *linestart; /*start of line segment */ register int dir1, dir2; /*directions of line */ register int sum1, sum2; /*lengths in dir1,dir2 */ int stopped; /*completed flag */ int fixed_count; //no of fixed points int d01, d12, d23, gapmin; TPOINT d01vec, d12vec, d23vec; register EDGEPT *edgefix, *startfix; register EDGEPT *edgefix0, *edgefix1, *edgefix2, *edgefix3; edgept = start; /*start of loop */ while (((edgept->flags[DIR] - edgept->prev->flags[DIR] + 1) & 7) < 3 && (dir1 = (edgept->prev->flags[DIR] - edgept->next->flags[DIR]) & 7) != 2 && dir1 != 6) edgept = edgept->next; /*find suitable start */ loopstart = edgept; /*remember start */ stopped = 0; /*not finished yet */ edgept->flags[FLAGS] |= FIXED; /*fix it */ do { linestart = edgept; /*possible start of line */ dir1 = edgept->flags[DIR]; /*first direction */ /*length of dir1 */ sum1 = edgept->flags[RUNLENGTH]; edgept = edgept->next; dir2 = edgept->flags[DIR]; /*2nd direction */ /*length in dir2 */ sum2 = edgept->flags[RUNLENGTH]; if (((dir1 - dir2 + 1) & 7) < 3) { while (edgept->prev->flags[DIR] == edgept->next->flags[DIR]) { edgept = edgept->next; /*look at next */ if (edgept->flags[DIR] == dir1) /*sum lengths */ sum1 += edgept->flags[RUNLENGTH]; else sum2 += edgept->flags[RUNLENGTH]; } if (edgept == loopstart) stopped = 1; /*finished */ if (sum2 + sum1 > 2 && linestart->prev->flags[DIR] == dir2 && (linestart->prev->flags[RUNLENGTH] > linestart->flags[RUNLENGTH] || sum2 > sum1)) { /*start is back one */ linestart = linestart->prev; linestart->flags[FLAGS] |= FIXED; } if (((edgept->next->flags[DIR] - edgept->flags[DIR] + 1) & 7) >= 3 || (edgept->flags[DIR] == dir1 && sum1 >= sum2) || ((edgept->prev->flags[RUNLENGTH] < edgept->flags[RUNLENGTH] || (edgept->flags[DIR] == dir2 && sum2 >= sum1)) && linestart->next != edgept)) edgept = edgept->next; } /*sharp bend */ edgept->flags[FLAGS] |= FIXED; } /*do whole loop */ while (edgept != loopstart && !stopped); edgept = start; do { if (((edgept->flags[RUNLENGTH] >= 8) && (edgept->flags[DIR] != 2) && (edgept->flags[DIR] != 6)) || ((edgept->flags[RUNLENGTH] >= 8) && ((edgept->flags[DIR] == 2) || (edgept->flags[DIR] == 6)))) { edgept->flags[FLAGS] |= FIXED; edgept1 = edgept->next; edgept1->flags[FLAGS] |= FIXED; } edgept = edgept->next; } while (edgept != start); edgept = start; do { /*single fixed step */ if (edgept->flags[FLAGS] & FIXED && edgept->flags[RUNLENGTH] == 1 /*and neighours free */ && edgept->next->flags[FLAGS] & FIXED && (edgept->prev->flags[FLAGS] & FIXED) == 0 /*same pair of dirs */ && (edgept->next->next->flags[FLAGS] & FIXED) == 0 && edgept->prev->flags[DIR] == edgept->next->flags[DIR] && edgept->prev->prev->flags[DIR] == edgept->next->next->flags[DIR] && ((edgept->prev->flags[DIR] - edgept->flags[DIR] + 1) & 7) < 3) { /*unfix it */ edgept->flags[FLAGS] &= ~FIXED; edgept->next->flags[FLAGS] &= ~FIXED; } edgept = edgept->next; /*do all points */ } while (edgept != start); /*until finished */ stopped = 0; if (area < 450) area = 450; gapmin = area * fixed_dist * fixed_dist / 44000; edgept = start; fixed_count = 0; do { if (edgept->flags[FLAGS] & FIXED) fixed_count++; edgept = edgept->next; } while (edgept != start); while ((edgept->flags[FLAGS] & FIXED) == 0) edgept = edgept->next; edgefix0 = edgept; edgept = edgept->next; while ((edgept->flags[FLAGS] & FIXED) == 0) edgept = edgept->next; edgefix1 = edgept; edgept = edgept->next; while ((edgept->flags[FLAGS] & FIXED) == 0) edgept = edgept->next; edgefix2 = edgept; edgept = edgept->next; while ((edgept->flags[FLAGS] & FIXED) == 0) edgept = edgept->next; edgefix3 = edgept; startfix = edgefix2; do { if (fixed_count <= 3) break; //already too few point_diff (d12vec, edgefix1->pos, edgefix2->pos); d12 = LENGTH (d12vec); // TODO(rays) investigate this change: // Only unfix a point if it is part of a low-curvature section // of outline and the total angle change of the outlines is // less than 90 degrees, ie the scalar product is positive. // if (d12 <= gapmin && SCALAR(edgefix0->vec, edgefix2->vec) > 0) { if (d12 <= gapmin) { point_diff (d01vec, edgefix0->pos, edgefix1->pos); d01 = LENGTH (d01vec); point_diff (d23vec, edgefix2->pos, edgefix3->pos); d23 = LENGTH (d23vec); if (d01 > d23) { edgefix2->flags[FLAGS] &= ~FIXED; fixed_count--; } else { edgefix1->flags[FLAGS] &= ~FIXED; fixed_count--; edgefix1 = edgefix2; } } else { edgefix0 = edgefix1; edgefix1 = edgefix2; } edgefix2 = edgefix3; edgept = edgept->next; while ((edgept->flags[FLAGS] & FIXED) == 0) { if (edgept == startfix) stopped = 1; edgept = edgept->next; } edgefix3 = edgept; edgefix = edgefix2; } while ((edgefix != startfix) && (!stopped)); } //#pragma OPT_LEVEL 2 /*stop compiler bugs*/ /********************************************************************** *poly2(startpt,area,path) applies a second approximation to the outline *using the points which have been fixed by the first approximation* **********************************************************************/ EDGEPT *poly2( //second poly EDGEPT *startpt, /*start of loop */ int area /*area of blob box */ ) { register EDGEPT *edgept; /*current outline point */ EDGEPT *loopstart; /*starting point */ register EDGEPT *linestart; /*start of line */ register int edgesum; /*correction count */ if (area < 1200) area = 1200; /*minimum value */ loopstart = NULL; /*not found it yet */ edgept = startpt; /*start of loop */ do { /*current point fixed */ if (edgept->flags[FLAGS] & FIXED /*and next not */ && (edgept->next->flags[FLAGS] & FIXED) == 0) { loopstart = edgept; /*start of repoly */ break; } edgept = edgept->next; /*next point */ } while (edgept != startpt); /*until found or finished */ if (loopstart == NULL && (startpt->flags[FLAGS] & FIXED) == 0) { /*fixed start of loop */ startpt->flags[FLAGS] |= FIXED; loopstart = startpt; /*or start of loop */ } if (loopstart) { do { edgept = loopstart; /*first to do */ do { linestart = edgept; edgesum = 0; /*sum of lengths */ do { /*sum lengths */ edgesum += edgept->flags[RUNLENGTH]; edgept = edgept->next; /*move on */ } while ((edgept->flags[FLAGS] & FIXED) == 0 && edgept != loopstart && edgesum < 126); if (poly_debug) tprintf ("Poly2:starting at (%d,%d)+%d=(%d,%d),%d to (%d,%d)\n", linestart->pos.x, linestart->pos.y, linestart->flags[DIR], linestart->vec.x, linestart->vec.y, edgesum, edgept->pos.x, edgept->pos.y); /*reapproximate */ cutline(linestart, edgept, area); while ((edgept->next->flags[FLAGS] & FIXED) && edgept != loopstart) edgept = edgept->next; /*look for next non-fixed */ } /*do all the loop */ while (edgept != loopstart); edgesum = 0; do { if (edgept->flags[FLAGS] & FIXED) edgesum++; edgept = edgept->next; } //count fixed pts while (edgept != loopstart); if (edgesum < 3) area /= 2; //must have 3 pts } while (edgesum < 3); do { linestart = edgept; do { edgept = edgept->next; } while ((edgept->flags[FLAGS] & FIXED) == 0); linestart->next = edgept; edgept->prev = linestart; linestart->vec.x = edgept->pos.x - linestart->pos.x; linestart->vec.y = edgept->pos.y - linestart->pos.y; } while (edgept != loopstart); } else edgept = startpt; /*start of loop */ loopstart = edgept; /*new start */ return loopstart; /*correct exit */ } /********************************************************************** *cutline(first,last,area) straightens out a line by partitioning *and joining the ends by a straight line* **********************************************************************/ void cutline( //recursive refine EDGEPT *first, /*ends of line */ EDGEPT *last, int area /*area of object */ ) { register EDGEPT *edge; /*current edge */ TPOINT vecsum; /*vector sum */ int vlen; /*approx length of vecsum */ TPOINT vec; /*accumulated vector */ EDGEPT *maxpoint; /*worst point */ int maxperp; /*max deviation */ register int perp; /*perp distance */ int ptcount; /*no of points */ int squaresum; /*sum of perps */ edge = first; /*start of line */ if (edge->next == last) return; /*simple line */ /*vector sum */ vecsum.x = last->pos.x - edge->pos.x; vecsum.y = last->pos.y - edge->pos.y; if (vecsum.x == 0 && vecsum.y == 0) { /*special case */ vecsum.x = -edge->prev->vec.x; vecsum.y = -edge->prev->vec.y; } /*absolute value */ vlen = vecsum.x > 0 ? vecsum.x : -vecsum.x; if (vecsum.y > vlen) vlen = vecsum.y; /*maximum */ else if (-vecsum.y > vlen) vlen = -vecsum.y; /*absolute value */ vec.x = edge->vec.x; /*accumulated vector */ vec.y = edge->vec.y; maxperp = 0; /*none yet */ squaresum = ptcount = 0; edge = edge->next; /*move to actual point */ maxpoint = edge; /*in case there isn't one */ do { perp = CROSS (vec, vecsum); /*get perp distance */ if (perp != 0) { perp *= perp; /*squared deviation */ } squaresum += perp; /*sum squares */ ptcount++; /*count points */ if (poly_debug) tprintf ("Cutline:Final perp=%d\n", perp); if (perp > maxperp) { maxperp = perp; maxpoint = edge; /*find greatest deviation */ } vec.x += edge->vec.x; /*accumulate vectors */ vec.y += edge->vec.y; edge = edge->next; } while (edge != last); /*test all line */ perp = LENGTH (vecsum); ASSERT_HOST (perp != 0); if (maxperp < 256 * MAX_INT16) { maxperp <<= 8; maxperp /= perp; /*true max perp */ } else { maxperp /= perp; maxperp <<= 8; /*avoid overflow */ } if (squaresum < 256 * MAX_INT16) /*mean squared perp */ perp = (squaresum << 8) / (perp * ptcount); else /*avoid overflow */ perp = (squaresum / perp << 8) / ptcount; if (poly_debug) tprintf ("Cutline:A=%d, max=%.2f(%.2f%%), msd=%.2f(%.2f%%)\n", area, maxperp / 256.0, maxperp * 200.0 / area, perp / 256.0, perp * 300.0 / area); if (maxperp * par1 >= 10 * area || perp * par2 >= 10 * area || vlen >= 126) { maxpoint->flags[FLAGS] |= FIXED; /*partitions */ cutline(first, maxpoint, area); cutline(maxpoint, last, area); } }
C++
/********************************************************************** * File: quadlsq.cpp (Formerly qlsq.c) * Description: Code for least squares approximation of quadratics. * Author: Ray Smith * Created: Wed Oct 6 15:14:23 BST 1993 * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdio.h> #include <math.h> #include "quadlsq.h" #include "tprintf.h" // Minimum variance in least squares before backing off to a lower degree. const double kMinVariance = 1.0 / 1024; /********************************************************************** * QLSQ::clear * * Function to initialize a QLSQ. **********************************************************************/ void QLSQ::clear() { // initialize a = 0.0; b = 0.0; c = 0.0; n = 0; // No elements. sigx = 0.0; // Zero accumulators. sigy = 0.0; sigxx = 0.0; sigxy = 0.0; sigyy = 0.0; sigxxx = 0.0; sigxxy = 0.0; sigxxxx = 0.0; } /********************************************************************** * QLSQ::add * * Add an element to the accumulator. **********************************************************************/ void QLSQ::add(double x, double y) { n++; // Count elements. sigx += x; // Update accumulators. sigy += y; sigxx += x * x; sigxy += x * y; sigyy += y * y; sigxxx += static_cast<long double>(x) * x * x; sigxxy += static_cast<long double>(x) * x * y; sigxxxx += static_cast<long double>(x) * x * x * x; } /********************************************************************** * QLSQ::remove * * Delete an element from the accumulator. **********************************************************************/ void QLSQ::remove(double x, double y) { if (n <= 0) { tprintf("Can't remove an element from an empty QLSQ accumulator!\n"); return; } n--; // Count elements. sigx -= x; // Update accumulators. sigy -= y; sigxx -= x * x; sigxy -= x * y; sigyy -= y * y; sigxxx -= static_cast<long double>(x) * x * x; sigxxy -= static_cast<long double>(x) * x * y; sigxxxx -= static_cast<long double>(x) * x * x * x; } /********************************************************************** * QLSQ::fit * * Fit the given degree of polynomial and store the result. * This creates a quadratic of the form axx + bx + c, but limited to * the given degree. **********************************************************************/ void QLSQ::fit(int degree) { long double x_variance = static_cast<long double>(sigxx) * n - static_cast<long double>(sigx) * sigx; // Note: for computational efficiency, we do not normalize the variance, // covariance and cube variance here as they are in the same order in both // nominators and denominators. However, we need be careful in value range // check. if (x_variance < kMinVariance * n * n || degree < 1 || n < 2) { // We cannot calculate b reliably so forget a and b, and just work on c. a = b = 0.0; if (n >= 1 && degree >= 0) { c = sigy / n; } else { c = 0.0; } return; } long double top96 = 0.0; // Accurate top. long double bottom96 = 0.0; // Accurate bottom. long double cubevar = sigxxx * n - static_cast<long double>(sigxx) * sigx; long double covariance = static_cast<long double>(sigxy) * n - static_cast<long double>(sigx) * sigy; if (n >= 4 && degree >= 2) { top96 = cubevar * covariance; top96 += x_variance * (static_cast<long double>(sigxx) * sigy - sigxxy * n); bottom96 = cubevar * cubevar; bottom96 -= x_variance * (sigxxxx * n - static_cast<long double>(sigxx) * sigxx); } if (bottom96 >= kMinVariance * n * n * n * n) { // Denominators looking good a = top96 / bottom96; top96 = covariance - cubevar * a; b = top96 / x_variance; } else { // Forget a, and concentrate on b. a = 0.0; b = covariance / x_variance; } c = (sigy - a * sigxx - b * sigx) / n; }
C++
/********************************************************************** * File: ratngs.h (Formerly ratings.h) * Description: Definition of the WERD_CHOICE and BLOB_CHOICE classes. * Author: Ray Smith * Created: Thu Apr 23 11:40:38 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef RATNGS_H #define RATNGS_H #include <assert.h> #include "clst.h" #include "elst.h" #include "genericvector.h" #include "matrix.h" #include "unichar.h" #include "unicharset.h" #include "werd.h" class MATRIX; struct TBLOB; struct TWERD; // Enum to describe the source of a BLOB_CHOICE to make it possible to determine // whether a blob has been classified by inspecting the BLOB_CHOICEs. enum BlobChoiceClassifier { BCC_STATIC_CLASSIFIER, // From the char_norm classifier. BCC_ADAPTED_CLASSIFIER, // From the adaptive classifier. BCC_SPECKLE_CLASSIFIER, // Backup for failed classification. BCC_AMBIG, // Generated by ambiguity detection. BCC_FAKE, // From some other process. }; class BLOB_CHOICE: public ELIST_LINK { public: BLOB_CHOICE() { unichar_id_ = UNICHAR_SPACE; fontinfo_id_ = -1; fontinfo_id2_ = -1; rating_ = 10.0; certainty_ = -1.0; script_id_ = -1; xgap_before_ = 0; xgap_after_ = 0; min_xheight_ = 0.0f; max_xheight_ = 0.0f; yshift_ = 0.0f; classifier_ = BCC_FAKE; } BLOB_CHOICE(UNICHAR_ID src_unichar_id, // character id float src_rating, // rating float src_cert, // certainty inT16 src_fontinfo_id, // font inT16 src_fontinfo_id2, // 2nd choice font int script_id, // script float min_xheight, // min xheight in image pixel units float max_xheight, // max xheight allowed by this char float yshift, // the larger of y shift (top or bottom) BlobChoiceClassifier c); // adapted match or other BLOB_CHOICE(const BLOB_CHOICE &other); ~BLOB_CHOICE() {} UNICHAR_ID unichar_id() const { return unichar_id_; } float rating() const { return rating_; } float certainty() const { return certainty_; } inT16 fontinfo_id() const { return fontinfo_id_; } inT16 fontinfo_id2() const { return fontinfo_id2_; } int script_id() const { return script_id_; } const MATRIX_COORD& matrix_cell() { return matrix_cell_; } inT16 xgap_before() const { return xgap_before_; } inT16 xgap_after() const { return xgap_after_; } float min_xheight() const { return min_xheight_; } float max_xheight() const { return max_xheight_; } float yshift() const { return yshift_; } BlobChoiceClassifier classifier() const { return classifier_; } bool IsAdapted() const { return classifier_ == BCC_ADAPTED_CLASSIFIER; } bool IsClassified() const { return classifier_ == BCC_STATIC_CLASSIFIER || classifier_ == BCC_ADAPTED_CLASSIFIER || classifier_ == BCC_SPECKLE_CLASSIFIER; } void set_unichar_id(UNICHAR_ID newunichar_id) { unichar_id_ = newunichar_id; } void set_rating(float newrat) { rating_ = newrat; } void set_certainty(float newrat) { certainty_ = newrat; } void set_fontinfo_id(inT16 newfont) { fontinfo_id_ = newfont; } void set_fontinfo_id2(inT16 newfont) { fontinfo_id2_ = newfont; } void set_script(int newscript_id) { script_id_ = newscript_id; } void set_matrix_cell(int col, int row) { matrix_cell_.col = col; matrix_cell_.row = row; } void set_xgap_before(inT16 gap) { xgap_before_ = gap; } void set_xgap_after(inT16 gap) { xgap_after_ = gap; } void set_classifier(BlobChoiceClassifier classifier) { classifier_ = classifier; } static BLOB_CHOICE* deep_copy(const BLOB_CHOICE* src) { BLOB_CHOICE* choice = new BLOB_CHOICE; *choice = *src; return choice; } // Returns true if *this and other agree on the baseline and x-height // to within some tolerance based on a given estimate of the x-height. bool PosAndSizeAgree(const BLOB_CHOICE& other, float x_height, bool debug) const; void print(const UNICHARSET *unicharset) const { tprintf("r%.2f c%.2f x[%g,%g]: %d %s", rating_, certainty_, min_xheight_, max_xheight_, unichar_id_, (unicharset == NULL) ? "" : unicharset->debug_str(unichar_id_).string()); } void print_full() const { print(NULL); tprintf(" script=%d, font1=%d, font2=%d, yshift=%g, classifier=%d\n", script_id_, fontinfo_id_, fontinfo_id2_, yshift_, classifier_); } // Sort function for sorting BLOB_CHOICEs in increasing order of rating. static int SortByRating(const void *p1, const void *p2) { const BLOB_CHOICE *bc1 = *reinterpret_cast<const BLOB_CHOICE * const *>(p1); const BLOB_CHOICE *bc2 = *reinterpret_cast<const BLOB_CHOICE * const *>(p2); return (bc1->rating_ < bc2->rating_) ? -1 : 1; } private: UNICHAR_ID unichar_id_; // unichar id inT16 fontinfo_id_; // char font information inT16 fontinfo_id2_; // 2nd choice font information // Rating is the classifier distance weighted by the length of the outline // in the blob. In terms of probability, classifier distance is -klog p such // that the resulting distance is in the range [0, 1] and then // rating = w (-k log p) where w is the weight for the length of the outline. // Sums of ratings may be compared meaningfully for words of different // segmentation. float rating_; // size related // Certainty is a number in [-20, 0] indicating the classifier certainty // of the choice. In terms of probability, certainty = 20 (k log p) where // k is defined as above to normalize -klog p to the range [0, 1]. float certainty_; // absolute int script_id_; // Holds the position of this choice in the ratings matrix. // Used to location position in the matrix during path backtracking. MATRIX_COORD matrix_cell_; inT16 xgap_before_; inT16 xgap_after_; // X-height range (in image pixels) that this classification supports. float min_xheight_; float max_xheight_; // yshift_ - The vertical distance (in image pixels) the character is // shifted (up or down) from an acceptable y position. float yshift_; BlobChoiceClassifier classifier_; // What generated *this. }; // Make BLOB_CHOICE listable. ELISTIZEH(BLOB_CHOICE) // Return the BLOB_CHOICE in bc_list matching a given unichar_id, // or NULL if there is no match. BLOB_CHOICE *FindMatchingChoice(UNICHAR_ID char_id, BLOB_CHOICE_LIST *bc_list); // Permuter codes used in WERD_CHOICEs. enum PermuterType { NO_PERM, // 0 PUNC_PERM, // 1 TOP_CHOICE_PERM, // 2 LOWER_CASE_PERM, // 3 UPPER_CASE_PERM, // 4 NGRAM_PERM, // 5 NUMBER_PERM, // 6 USER_PATTERN_PERM, // 7 SYSTEM_DAWG_PERM, // 8 DOC_DAWG_PERM, // 9 USER_DAWG_PERM, // 10 FREQ_DAWG_PERM, // 11 COMPOUND_PERM, // 12 NUM_PERMUTER_TYPES }; namespace tesseract { // ScriptPos tells whether a character is subscript, superscript or normal. enum ScriptPos { SP_NORMAL, SP_SUBSCRIPT, SP_SUPERSCRIPT, SP_DROPCAP }; const char *ScriptPosToString(tesseract::ScriptPos script_pos); } // namespace tesseract. class WERD_CHOICE : public ELIST_LINK { public: static const float kBadRating; static const char *permuter_name(uinT8 permuter); WERD_CHOICE(const UNICHARSET *unicharset) : unicharset_(unicharset) { this->init(8); } WERD_CHOICE(const UNICHARSET *unicharset, int reserved) : unicharset_(unicharset) { this->init(reserved); } WERD_CHOICE(const char *src_string, const char *src_lengths, float src_rating, float src_certainty, uinT8 src_permuter, const UNICHARSET &unicharset) : unicharset_(&unicharset) { this->init(src_string, src_lengths, src_rating, src_certainty, src_permuter); } WERD_CHOICE(const char *src_string, const UNICHARSET &unicharset); WERD_CHOICE(const WERD_CHOICE &word) : unicharset_(word.unicharset_) { this->init(word.length()); this->operator=(word); } ~WERD_CHOICE(); const UNICHARSET *unicharset() const { return unicharset_; } inline int length() const { return length_; } float adjust_factor() const { return adjust_factor_; } void set_adjust_factor(float factor) { adjust_factor_ = factor; } inline const UNICHAR_ID *unichar_ids() const { return unichar_ids_; } inline const UNICHAR_ID unichar_id(int index) const { assert(index < length_); return unichar_ids_[index]; } inline int state(int index) const { return state_[index]; } tesseract::ScriptPos BlobPosition(int index) const { if (index < 0 || index >= length_) return tesseract::SP_NORMAL; return script_pos_[index]; } inline float rating() const { return rating_; } inline float certainty() const { return certainty_; } inline float certainty(int index) const { return certainties_[index]; } inline float min_x_height() const { return min_x_height_; } inline float max_x_height() const { return max_x_height_; } inline void set_x_heights(float min_height, float max_height) { min_x_height_ = min_height; max_x_height_ = max_height; } inline uinT8 permuter() const { return permuter_; } const char *permuter_name() const; // Returns the BLOB_CHOICE_LIST corresponding to the given index in the word, // taken from the appropriate cell in the ratings MATRIX. // Borrowed pointer, so do not delete. BLOB_CHOICE_LIST* blob_choices(int index, MATRIX* ratings) const; // Returns the MATRIX_COORD corresponding to the location in the ratings // MATRIX for the given index into the word. MATRIX_COORD MatrixCoord(int index) const; inline void set_unichar_id(UNICHAR_ID unichar_id, int index) { assert(index < length_); unichar_ids_[index] = unichar_id; } bool dangerous_ambig_found() const { return dangerous_ambig_found_; } void set_dangerous_ambig_found_(bool value) { dangerous_ambig_found_ = value; } inline void set_rating(float new_val) { rating_ = new_val; } inline void set_certainty(float new_val) { certainty_ = new_val; } inline void set_permuter(uinT8 perm) { permuter_ = perm; } // Note: this function should only be used if all the fields // are populated manually with set_* functions (rather than // (copy)constructors and append_* functions). inline void set_length(int len) { ASSERT_HOST(reserved_ >= len); length_ = len; } /// Make more space in unichar_id_ and fragment_lengths_ arrays. inline void double_the_size() { if (reserved_ > 0) { unichar_ids_ = GenericVector<UNICHAR_ID>::double_the_size_memcpy( reserved_, unichar_ids_); script_pos_ = GenericVector<tesseract::ScriptPos>::double_the_size_memcpy( reserved_, script_pos_); state_ = GenericVector<int>::double_the_size_memcpy( reserved_, state_); certainties_ = GenericVector<float>::double_the_size_memcpy( reserved_, certainties_); reserved_ *= 2; } else { unichar_ids_ = new UNICHAR_ID[1]; script_pos_ = new tesseract::ScriptPos[1]; state_ = new int[1]; certainties_ = new float[1]; reserved_ = 1; } } /// Initializes WERD_CHOICE - reserves length slots in unichar_ids_ and /// fragment_length_ arrays. Sets other values to default (blank) values. inline void init(int reserved) { reserved_ = reserved; if (reserved > 0) { unichar_ids_ = new UNICHAR_ID[reserved]; script_pos_ = new tesseract::ScriptPos[reserved]; state_ = new int[reserved]; certainties_ = new float[reserved]; } else { unichar_ids_ = NULL; script_pos_ = NULL; state_ = NULL; certainties_ = NULL; } length_ = 0; adjust_factor_ = 1.0f; rating_ = 0.0; certainty_ = MAX_FLOAT32; min_x_height_ = 0.0f; max_x_height_ = MAX_FLOAT32; permuter_ = NO_PERM; unichars_in_script_order_ = false; // Tesseract is strict left-to-right. dangerous_ambig_found_ = false; } /// Helper function to build a WERD_CHOICE from the given string, /// fragment lengths, rating, certainty and permuter. /// The function assumes that src_string is not NULL. /// src_lengths argument could be NULL, in which case the unichars /// in src_string are assumed to all be of length 1. void init(const char *src_string, const char *src_lengths, float src_rating, float src_certainty, uinT8 src_permuter); /// Set the fields in this choice to be default (bad) values. inline void make_bad() { length_ = 0; rating_ = kBadRating; certainty_ = -MAX_FLOAT32; } /// This function assumes that there is enough space reserved /// in the WERD_CHOICE for adding another unichar. /// This is an efficient alternative to append_unichar_id(). inline void append_unichar_id_space_allocated( UNICHAR_ID unichar_id, int blob_count, float rating, float certainty) { assert(reserved_ > length_); length_++; this->set_unichar_id(unichar_id, blob_count, rating, certainty, length_-1); } void append_unichar_id(UNICHAR_ID unichar_id, int blob_count, float rating, float certainty); inline void set_unichar_id(UNICHAR_ID unichar_id, int blob_count, float rating, float certainty, int index) { assert(index < length_); unichar_ids_[index] = unichar_id; state_[index] = blob_count; certainties_[index] = certainty; script_pos_[index] = tesseract::SP_NORMAL; rating_ += rating; if (certainty < certainty_) { certainty_ = certainty; } } // Sets the entries for the given index from the BLOB_CHOICE, assuming // unit fragment lengths, but setting the state for this index to blob_count. void set_blob_choice(int index, int blob_count, const BLOB_CHOICE* blob_choice); bool contains_unichar_id(UNICHAR_ID unichar_id) const; void remove_unichar_ids(int index, int num); inline void remove_last_unichar_id() { --length_; } inline void remove_unichar_id(int index) { this->remove_unichar_ids(index, 1); } bool has_rtl_unichar_id() const; void reverse_and_mirror_unichar_ids(); // Returns the half-open interval of unichar_id indices [start, end) which // enclose the core portion of this word -- the part after stripping // punctuation from the left and right. void punct_stripped(int *start_core, int *end_core) const; // Returns the indices [start, end) containing the core of the word, stripped // of any superscript digits on either side. (i.e., the non-footnote part // of the word). There is no guarantee that the output range is non-empty. void GetNonSuperscriptSpan(int *start, int *end) const; // Return a copy of this WERD_CHOICE with the choices [start, end). // The result is useful only for checking against a dictionary. WERD_CHOICE shallow_copy(int start, int end) const; void string_and_lengths(STRING *word_str, STRING *word_lengths_str) const; const STRING debug_string() const { STRING word_str; for (int i = 0; i < length_; ++i) { word_str += unicharset_->debug_str(unichar_ids_[i]); word_str += " "; } return word_str; } // Call this to override the default (strict left to right graphemes) // with the fact that some engine produces a "reading order" set of // Graphemes for each word. bool set_unichars_in_script_order(bool in_script_order) { return unichars_in_script_order_ = in_script_order; } bool unichars_in_script_order() const { return unichars_in_script_order_; } // Returns a UTF-8 string equivalent to the current choice // of UNICHAR IDs. const STRING &unichar_string() const { this->string_and_lengths(&unichar_string_, &unichar_lengths_); return unichar_string_; } // Returns the lengths, one byte each, representing the number of bytes // required in the unichar_string for each UNICHAR_ID. const STRING &unichar_lengths() const { this->string_and_lengths(&unichar_string_, &unichar_lengths_); return unichar_lengths_; } // Sets up the script_pos_ member using the blobs_list to get the bln // bounding boxes, *this to get the unichars, and this->unicharset // to get the target positions. If small_caps is true, sub/super are not // considered, but dropcaps are. // NOTE: blobs_list should be the chopped_word blobs. (Fully segemented.) void SetScriptPositions(bool small_caps, TWERD* word); // Sets the script_pos_ member from some source positions with a given length. void SetScriptPositions(const tesseract::ScriptPos* positions, int length); // Sets all the script_pos_ positions to the given position. void SetAllScriptPositions(tesseract::ScriptPos position); static tesseract::ScriptPos ScriptPositionOf(bool print_debug, const UNICHARSET& unicharset, const TBOX& blob_box, UNICHAR_ID unichar_id); // Returns the "dominant" script ID for the word. By "dominant", the script // must account for at least half the characters. Otherwise, it returns 0. // Note that for Japanese, Hiragana and Katakana are simply treated as Han. int GetTopScriptID() const; // Fixes the state_ for a chop at the given blob_posiiton. void UpdateStateForSplit(int blob_position); // Returns the sum of all the state elements, being the total number of blobs. int TotalOfStates() const; void print() const { this->print(""); } void print(const char *msg) const; // Prints the segmentation state with an introductory message. void print_state(const char *msg) const; // Displays the segmentation state of *this (if not the same as the last // one displayed) and waits for a click in the window. void DisplaySegmentation(TWERD* word); WERD_CHOICE& operator+= ( // concatanate const WERD_CHOICE & second);// second on first WERD_CHOICE& operator= (const WERD_CHOICE& source); private: const UNICHARSET *unicharset_; // TODO(rays) Perhaps replace the multiple arrays with an array of structs? // unichar_ids_ is an array of classifier "results" that make up a word. // For each unichar_ids_[i], script_pos_[i] has the sub/super/normal position // of each unichar_id. // state_[i] indicates the number of blobs in WERD_RES::chopped_word that // were put together to make the classification results in the ith position // in unichar_ids_, and certainties_[i] is the certainty of the choice that // was used in this word. // == Change from before == // Previously there was fragment_lengths_ that allowed a word to be // artificially composed of multiple fragment results. Since the new // segmentation search doesn't do fragments, treatment of fragments has // been moved to a lower level, augmenting the ratings matrix with the // combined fragments, and allowing the language-model/segmentation-search // to deal with only the combined unichar_ids. UNICHAR_ID *unichar_ids_; // unichar ids that represent the text of the word tesseract::ScriptPos* script_pos_; // Normal/Sub/Superscript of each unichar. int* state_; // Number of blobs in each unichar. float* certainties_; // Certainty of each unichar. int reserved_; // size of the above arrays int length_; // word length // Factor that was used to adjust the rating. float adjust_factor_; // Rating is the sum of the ratings of the individual blobs in the word. float rating_; // size related // certainty is the min (worst) certainty of the individual blobs in the word. float certainty_; // absolute // xheight computed from the result, or 0 if inconsistent. float min_x_height_; float max_x_height_; uinT8 permuter_; // permuter code // Normally, the ratings_ matrix represents the recognition results in order // from left-to-right. However, some engines (say Cube) may return // recognition results in the order of the script's major reading direction // (for Arabic, that is right-to-left). bool unichars_in_script_order_; // True if NoDangerousAmbig found an ambiguity. bool dangerous_ambig_found_; // The following variables are populated and passed by reference any // time unichar_string() or unichar_lengths() are called. mutable STRING unichar_string_; mutable STRING unichar_lengths_; }; // Make WERD_CHOICE listable. ELISTIZEH(WERD_CHOICE) typedef GenericVector<BLOB_CHOICE_LIST *> BLOB_CHOICE_LIST_VECTOR; // Utilities for comparing WERD_CHOICEs bool EqualIgnoringCaseAndTerminalPunct(const WERD_CHOICE &word1, const WERD_CHOICE &word2); // Utilities for debug printing. void print_ratings_list( const char *msg, // intro message BLOB_CHOICE_LIST *ratings, // list of results const UNICHARSET &current_unicharset // unicharset that can be used // for id-to-unichar conversion ); #endif
C++
/********************************************************************** * File: ocrrow.cpp (Formerly row.c) * Description: Code for the ROW class. * Author: Ray Smith * Created: Tue Oct 08 15:58:04 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "ocrrow.h" #include "blobbox.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif ELISTIZE (ROW) /********************************************************************** * ROW::ROW * * Constructor to build a ROW. Only the stats stuff are given here. * The words are added directly. **********************************************************************/ ROW::ROW ( //constructor inT32 spline_size, //no of segments inT32 * xstarts, //segment boundaries double *coeffs, //coefficients float x_height, //line height float ascenders, //ascender size float descenders, //descender drop inT16 kern, //char gap inT16 space //word gap ) : baseline(spline_size, xstarts, coeffs), para_(NULL) { kerning = kern; //just store stuff spacing = space; xheight = x_height; ascrise = ascenders; bodysize = 0.0f; descdrop = descenders; has_drop_cap_ = false; lmargin_ = 0; rmargin_ = 0; } /********************************************************************** * ROW::ROW * * Constructor to build a ROW. Only the stats stuff are given here. * The words are added directly. **********************************************************************/ ROW::ROW( //constructor TO_ROW *to_row, //source row inT16 kern, //char gap inT16 space //word gap ) : para_(NULL) { kerning = kern; //just store stuff spacing = space; xheight = to_row->xheight; bodysize = to_row->body_size; ascrise = to_row->ascrise; descdrop = to_row->descdrop; baseline = to_row->baseline; has_drop_cap_ = false; lmargin_ = 0; rmargin_ = 0; } /********************************************************************** * ROW::recalc_bounding_box * * Set the bounding box correctly **********************************************************************/ void ROW::recalc_bounding_box() { //recalculate BB WERD *word; //current word WERD_IT it = &words; //words of ROW inT16 left; //of word inT16 prev_left; //old left if (!it.empty ()) { word = it.data (); prev_left = word->bounding_box ().left (); it.forward (); while (!it.at_first ()) { word = it.data (); left = word->bounding_box ().left (); if (left < prev_left) { it.move_to_first (); //words in BB order it.sort (word_comparator); break; } prev_left = left; it.forward (); } } for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { word = it.data (); if (it.at_first ()) word->set_flag (W_BOL, TRUE); else //not start of line word->set_flag (W_BOL, FALSE); if (it.at_last ()) word->set_flag (W_EOL, TRUE); else //not end of line word->set_flag (W_EOL, FALSE); //extend BB as reqd bound_box += word->bounding_box (); } } /********************************************************************** * ROW::move * * Reposition row by vector **********************************************************************/ void ROW::move( // reposition row const ICOORD vec // by vector ) { WERD_IT it(&words); // word iterator for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) it.data ()->move (vec); bound_box.move (vec); baseline.move (vec); } /********************************************************************** * ROW::print * * Display members **********************************************************************/ void ROW::print( //print FILE *fp //file to print on ) { tprintf("Kerning= %d\n", kerning); tprintf("Spacing= %d\n", spacing); bound_box.print(); tprintf("Xheight= %f\n", xheight); tprintf("Ascrise= %f\n", ascrise); tprintf("Descdrop= %f\n", descdrop); tprintf("has_drop_cap= %d\n", has_drop_cap_); tprintf("lmargin= %d, rmargin= %d\n", lmargin_, rmargin_); } /********************************************************************** * ROW::plot * * Draw the ROW in the given colour. **********************************************************************/ #ifndef GRAPHICS_DISABLED void ROW::plot( //draw it ScrollView* window, //window to draw in ScrollView::Color colour //colour to draw in ) { WERD *word; //current word WERD_IT it = &words; //words of ROW for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { word = it.data (); word->plot (window, colour); //all in one colour } } /********************************************************************** * ROW::plot * * Draw the ROW in rainbow colours. **********************************************************************/ void ROW::plot( //draw it ScrollView* window //window to draw in ) { WERD *word; //current word WERD_IT it = &words; //words of ROW for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { word = it.data (); word->plot (window); //in rainbow colours } } #endif // GRAPHICS_DISABLED /********************************************************************** * ROW::operator= * * Assign rows by duplicating the row structure but NOT the WERDLIST **********************************************************************/ ROW & ROW::operator= (const ROW & source) { this->ELIST_LINK::operator= (source); kerning = source.kerning; spacing = source.spacing; xheight = source.xheight; bodysize = source.bodysize; ascrise = source.ascrise; descdrop = source.descdrop; if (!words.empty ()) words.clear (); baseline = source.baseline; //QSPLINES must do = bound_box = source.bound_box; has_drop_cap_ = source.has_drop_cap_; lmargin_ = source.lmargin_; rmargin_ = source.rmargin_; para_ = source.para_; return *this; }
C++
/********************************************************************** * File: stepblob.cpp (Formerly cblob.c) * Description: Code for C_BLOB class. * Author: Ray Smith * Created: Tue Oct 08 10:41:13 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "stepblob.h" #include "allheaders.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif // Max perimeter to width ratio for a baseline position above box bottom. const double kMaxPerimeterWidthRatio = 8.0; ELISTIZE (C_BLOB) /********************************************************************** * position_outline * * Position the outline in the given list at the relevant place * according to its nesting. **********************************************************************/ static void position_outline( //put in place C_OUTLINE *outline, //thing to place C_OUTLINE_LIST *destlist //desstination list ) { C_OUTLINE *dest_outline; //outline from dest list C_OUTLINE_IT it = destlist; //iterator //iterator on children C_OUTLINE_IT child_it = outline->child (); if (!it.empty ()) { do { dest_outline = it.data (); //get destination //encloses dest if (*dest_outline < *outline) { //take off list dest_outline = it.extract (); //put this in place it.add_after_then_move (outline); //make it a child child_it.add_to_end (dest_outline); while (!it.at_last ()) { it.forward (); //do rest of list //check for other children dest_outline = it.data (); if (*dest_outline < *outline) { //take off list dest_outline = it.extract (); child_it.add_to_end (dest_outline); //make it a child if (it.empty ()) break; } } return; //finished } //enclosed by dest else if (*outline < *dest_outline) { position_outline (outline, dest_outline->child ()); //place in child list return; //finished } it.forward (); } while (!it.at_first ()); } it.add_to_end (outline); //at outer level } /********************************************************************** * plot_outline_list * * Draw a list of outlines in the given colour and their children * in the child colour. **********************************************************************/ #ifndef GRAPHICS_DISABLED static void plot_outline_list( //draw outlines C_OUTLINE_LIST *list, //outline to draw ScrollView* window, //window to draw in ScrollView::Color colour, //colour to use ScrollView::Color child_colour //colour of children ) { C_OUTLINE *outline; //current outline C_OUTLINE_IT it = list; //iterator for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { outline = it.data (); //draw it outline->plot (window, colour); if (!outline->child ()->empty ()) plot_outline_list (outline->child (), window, child_colour, child_colour); } } // Draws the outlines in the given colour, and child_colour, normalized // using the given denorm, making use of sub-pixel accurate information // if available. static void plot_normed_outline_list(const DENORM& denorm, C_OUTLINE_LIST *list, ScrollView::Color colour, ScrollView::Color child_colour, ScrollView* window) { C_OUTLINE_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); outline->plot_normed(denorm, colour, window); if (!outline->child()->empty()) plot_normed_outline_list(denorm, outline->child(), child_colour, child_colour, window); } } #endif /********************************************************************** * reverse_outline_list * * Reverse a list of outlines and their children. **********************************************************************/ static void reverse_outline_list(C_OUTLINE_LIST *list) { C_OUTLINE_IT it = list; // iterator for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); outline->reverse(); // reverse it outline->set_flag(COUT_INVERSE, TRUE); if (!outline->child()->empty()) reverse_outline_list(outline->child()); } } /********************************************************************** * C_BLOB::C_BLOB * * Constructor to build a C_BLOB from a list of C_OUTLINEs. * The C_OUTLINEs are not copied so the source list is emptied. * The C_OUTLINEs are nested correctly in the blob. **********************************************************************/ C_BLOB::C_BLOB(C_OUTLINE_LIST *outline_list) { for (C_OUTLINE_IT ol_it(outline_list); !ol_it.empty(); ol_it.forward()) { C_OUTLINE* outline = ol_it.extract(); // Position this outline in appropriate position in the hierarchy. position_outline(outline, &outlines); } CheckInverseFlagAndDirection(); } // Simpler constructor to build a blob from a single outline that has // already been fully initialized. C_BLOB::C_BLOB(C_OUTLINE* outline) { C_OUTLINE_IT it(&outlines); it.add_to_end(outline); } // Builds a set of one or more blobs from a list of outlines. // Input: one outline on outline_list contains all the others, but the // nesting and order are undefined. // If good_blob is true, the blob is added to good_blobs_it, unless // an illegal (generation-skipping) parent-child relationship is found. // If so, the parent blob goes to bad_blobs_it, and the immediate children // are promoted to the top level, recursively being sent to good_blobs_it. // If good_blob is false, all created blobs will go to the bad_blobs_it. // Output: outline_list is empty. One or more blobs are added to // good_blobs_it and/or bad_blobs_it. void C_BLOB::ConstructBlobsFromOutlines(bool good_blob, C_OUTLINE_LIST* outline_list, C_BLOB_IT* good_blobs_it, C_BLOB_IT* bad_blobs_it) { // List of top-level outlines with correctly nested children. C_OUTLINE_LIST nested_outlines; for (C_OUTLINE_IT ol_it(outline_list); !ol_it.empty(); ol_it.forward()) { C_OUTLINE* outline = ol_it.extract(); // Position this outline in appropriate position in the hierarchy. position_outline(outline, &nested_outlines); } // Check for legal nesting and reassign as required. for (C_OUTLINE_IT ol_it(&nested_outlines); !ol_it.empty(); ol_it.forward()) { C_OUTLINE* outline = ol_it.extract(); bool blob_is_good = good_blob; if (!outline->IsLegallyNested()) { // The blob is illegally nested. // Mark it bad, and add all its children to the top-level list. blob_is_good = false; ol_it.add_list_after(outline->child()); } C_BLOB* blob = new C_BLOB(outline); // Set inverse flag and reverse if needed. blob->CheckInverseFlagAndDirection(); // Put on appropriate list. if (!blob_is_good && bad_blobs_it != NULL) bad_blobs_it->add_after_then_move(blob); else good_blobs_it->add_after_then_move(blob); } } // Sets the COUT_INVERSE flag appropriately on the outlines and their // children recursively, reversing the outlines if needed so that // everything has an anticlockwise top-level. void C_BLOB::CheckInverseFlagAndDirection() { C_OUTLINE_IT ol_it(&outlines); for (ol_it.mark_cycle_pt(); !ol_it.cycled_list(); ol_it.forward()) { C_OUTLINE* outline = ol_it.data(); if (outline->turn_direction() < 0) { outline->reverse(); reverse_outline_list(outline->child()); outline->set_flag(COUT_INVERSE, TRUE); } else { outline->set_flag(COUT_INVERSE, FALSE); } } } // Build and return a fake blob containing a single fake outline with no // steps. C_BLOB* C_BLOB::FakeBlob(const TBOX& box) { C_OUTLINE_LIST outlines; C_OUTLINE::FakeOutline(box, &outlines); return new C_BLOB(&outlines); } /********************************************************************** * C_BLOB::bounding_box * * Return the bounding box of the blob. **********************************************************************/ TBOX C_BLOB::bounding_box() const { // bounding box C_OUTLINE *outline; // current outline // This is a read-only iteration of the outlines. C_OUTLINE_IT it = const_cast<C_OUTLINE_LIST*>(&outlines); TBOX box; // bounding box for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { outline = it.data (); box += outline->bounding_box (); } return box; } /********************************************************************** * C_BLOB::area * * Return the area of the blob. **********************************************************************/ inT32 C_BLOB::area() { //area C_OUTLINE *outline; //current outline C_OUTLINE_IT it = &outlines; //outlines of blob inT32 total; //total area total = 0; for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { outline = it.data (); total += outline->area (); } return total; } /********************************************************************** * C_BLOB::perimeter * * Return the perimeter of the top and 2nd level outlines. **********************************************************************/ inT32 C_BLOB::perimeter() { C_OUTLINE *outline; // current outline C_OUTLINE_IT it = &outlines; // outlines of blob inT32 total; // total perimeter total = 0; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { outline = it.data(); total += outline->perimeter(); } return total; } /********************************************************************** * C_BLOB::outer_area * * Return the area of the blob. **********************************************************************/ inT32 C_BLOB::outer_area() { //area C_OUTLINE *outline; //current outline C_OUTLINE_IT it = &outlines; //outlines of blob inT32 total; //total area total = 0; for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { outline = it.data (); total += outline->outer_area (); } return total; } /********************************************************************** * C_BLOB::count_transitions * * Return the total x and y maxes and mins in the blob. * Chlid outlines are not counted. **********************************************************************/ inT32 C_BLOB::count_transitions( //area inT32 threshold //on size ) { C_OUTLINE *outline; //current outline C_OUTLINE_IT it = &outlines; //outlines of blob inT32 total; //total area total = 0; for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { outline = it.data (); total += outline->count_transitions (threshold); } return total; } /********************************************************************** * C_BLOB::move * * Move C_BLOB by vector **********************************************************************/ void C_BLOB::move( // reposition blob const ICOORD vec // by vector ) { C_OUTLINE_IT it(&outlines); // iterator for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) it.data ()->move (vec); // move each outline } // Static helper for C_BLOB::rotate to allow recursion of child outlines. void RotateOutlineList(const FCOORD& rotation, C_OUTLINE_LIST* outlines) { C_OUTLINE_LIST new_outlines; C_OUTLINE_IT src_it(outlines); C_OUTLINE_IT dest_it(&new_outlines); while (!src_it.empty()) { C_OUTLINE* old_outline = src_it.extract(); src_it.forward(); C_OUTLINE* new_outline = new C_OUTLINE(old_outline, rotation); if (!old_outline->child()->empty()) { RotateOutlineList(rotation, old_outline->child()); C_OUTLINE_IT child_it(new_outline->child()); child_it.add_list_after(old_outline->child()); } delete old_outline; dest_it.add_to_end(new_outline); } src_it.add_list_after(&new_outlines); } /********************************************************************** * C_BLOB::rotate * * Rotate C_BLOB by rotation. * Warning! has to rebuild all the C_OUTLINEs. **********************************************************************/ void C_BLOB::rotate(const FCOORD& rotation) { RotateOutlineList(rotation, &outlines); } // Helper calls ComputeEdgeOffsets or ComputeBinaryOffsets recursively on the // outline list and its children. static void ComputeEdgeOffsetsOutlineList(int threshold, Pix* pix, C_OUTLINE_LIST *list) { C_OUTLINE_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); if (pix != NULL && pixGetDepth(pix) == 8) outline->ComputeEdgeOffsets(threshold, pix); else outline->ComputeBinaryOffsets(); if (!outline->child()->empty()) ComputeEdgeOffsetsOutlineList(threshold, pix, outline->child()); } } // Adds sub-pixel resolution EdgeOffsets for the outlines using greyscale // if the supplied pix is 8-bit or the binary edges if NULL. void C_BLOB::ComputeEdgeOffsets(int threshold, Pix* pix) { ComputeEdgeOffsetsOutlineList(threshold, pix, &outlines); } // Estimates and returns the baseline position based on the shape of the // outlines. // We first find the minimum y-coord (y_mins) at each x-coord within the blob. // If there is a run of some y or y+1 in y_mins that is longer than the total // number of positions at bottom or bottom+1, subject to the additional // condition that at least one side of the y/y+1 run is higher than y+1, so it // is not a local minimum, then y, not the bottom, makes a good candidate // baseline position for this blob. Eg // | ---| // | | // |- -----------| <= Good candidate baseline position. // |- -| // | -| // |---| <= Bottom of blob inT16 C_BLOB::EstimateBaselinePosition() { TBOX box = bounding_box(); int left = box.left(); int width = box.width(); int bottom = box.bottom(); if (outlines.empty() || perimeter() > width * kMaxPerimeterWidthRatio) return bottom; // This is only for non-CJK blobs. // Get the minimum y coordinate at each x-coordinate. GenericVector<int> y_mins; y_mins.init_to_size(width + 1, box.top()); C_OUTLINE_IT it(&outlines); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); ICOORD pos = outline->start_pos(); for (int s = 0; s < outline->pathlength(); ++s) { if (pos.y() < y_mins[pos.x() - left]) y_mins[pos.x() - left] = pos.y(); pos += outline->step(s); } } // Find the total extent of the bottom or bottom + 1. int bottom_extent = 0; for (int x = 0; x <= width; ++x) { if (y_mins[x] == bottom || y_mins[x] == bottom + 1) ++bottom_extent; } // Find the lowest run longer than the bottom extent that is not the bottom. int best_min = box.top(); int prev_run = 0; int prev_y = box.top(); int prev_prev_y = box.top(); for (int x = 0; x < width; x += prev_run) { // Find the length of the current run. int y_at_x = y_mins[x]; int run = 1; while (x + run <= width && y_mins[x + run] == y_at_x) ++run; if (y_at_x > bottom + 1) { // Possible contender. int total_run = run; // Find extent of current value or +1 to the right of x. while (x + total_run <= width && (y_mins[x + total_run] == y_at_x || y_mins[x + total_run] == y_at_x + 1)) ++total_run; // At least one end has to be higher so it is not a local max. if (prev_prev_y > y_at_x + 1 || x + total_run > width || y_mins[x + total_run] > y_at_x + 1) { // If the prev_run is at y + 1, then we can add that too. There cannot // be a suitable run at y before that or we would have found it already. if (prev_run > 0 && prev_y == y_at_x + 1) total_run += prev_run; if (total_run > bottom_extent && y_at_x < best_min) { best_min = y_at_x; } } } prev_run = run; prev_prev_y = prev_y; prev_y = y_at_x; } return best_min == box.top() ? bottom : best_min; } static void render_outline_list(C_OUTLINE_LIST *list, int left, int top, Pix* pix) { C_OUTLINE_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); outline->render(left, top, pix); if (!outline->child()->empty()) render_outline_list(outline->child(), left, top, pix); } } static void render_outline_list_outline(C_OUTLINE_LIST *list, int left, int top, Pix* pix) { C_OUTLINE_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { C_OUTLINE* outline = it.data(); outline->render_outline(left, top, pix); } } // Returns a Pix rendering of the blob. pixDestroy after use. Pix* C_BLOB::render() { TBOX box = bounding_box(); Pix* pix = pixCreate(box.width(), box.height(), 1); render_outline_list(&outlines, box.left(), box.top(), pix); return pix; } // Returns a Pix rendering of the outline of the blob. (no fill). // pixDestroy after use. Pix* C_BLOB::render_outline() { TBOX box = bounding_box(); Pix* pix = pixCreate(box.width(), box.height(), 1); render_outline_list_outline(&outlines, box.left(), box.top(), pix); return pix; } /********************************************************************** * C_BLOB::plot * * Draw the C_BLOB in the given colour. **********************************************************************/ #ifndef GRAPHICS_DISABLED void C_BLOB::plot(ScrollView* window, // window to draw in ScrollView::Color blob_colour, // main colour ScrollView::Color child_colour) { // for holes plot_outline_list(&outlines, window, blob_colour, child_colour); } // Draws the blob in the given colour, and child_colour, normalized // using the given denorm, making use of sub-pixel accurate information // if available. void C_BLOB::plot_normed(const DENORM& denorm, ScrollView::Color blob_colour, ScrollView::Color child_colour, ScrollView* window) { plot_normed_outline_list(denorm, &outlines, blob_colour, child_colour, window); } #endif
C++
/////////////////////////////////////////////////////////////////////// // File: ccstruct.cpp // Description: ccstruct class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "ccstruct.h" namespace tesseract { // APPROXIMATIONS of the fractions of the character cell taken by // the descenders, ascenders, and x-height. const double CCStruct::kDescenderFraction = 0.25; const double CCStruct::kXHeightFraction = 0.5; const double CCStruct::kAscenderFraction = 0.25; const double CCStruct::kXHeightCapRatio = CCStruct::kXHeightFraction / (CCStruct::kXHeightFraction + CCStruct::kAscenderFraction); CCStruct::CCStruct() {} CCStruct::~CCStruct() { } }
C++
/********************************************************************** * File: stepblob.h (Formerly cblob.h) * Description: Code for C_BLOB class. * Author: Ray Smith * Created: Tue Oct 08 10:41:13 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef STEPBLOB_H #define STEPBLOB_H #include "coutln.h" #include "rect.h" class C_BLOB; struct Pix; ELISTIZEH(C_BLOB) class C_BLOB:public ELIST_LINK { public: C_BLOB() { } explicit C_BLOB(C_OUTLINE_LIST *outline_list); // Simpler constructor to build a blob from a single outline that has // already been fully initialized. explicit C_BLOB(C_OUTLINE* outline); // Builds a set of one or more blobs from a list of outlines. // Input: one outline on outline_list contains all the others, but the // nesting and order are undefined. // If good_blob is true, the blob is added to good_blobs_it, unless // an illegal (generation-skipping) parent-child relationship is found. // If so, the parent blob goes to bad_blobs_it, and the immediate children // are promoted to the top level, recursively being sent to good_blobs_it. // If good_blob is false, all created blobs will go to the bad_blobs_it. // Output: outline_list is empty. One or more blobs are added to // good_blobs_it and/or bad_blobs_it. static void ConstructBlobsFromOutlines(bool good_blob, C_OUTLINE_LIST* outline_list, C_BLOB_IT* good_blobs_it, C_BLOB_IT* bad_blobs_it); // Sets the COUT_INVERSE flag appropriately on the outlines and their // children recursively, reversing the outlines if needed so that // everything has an anticlockwise top-level. void CheckInverseFlagAndDirection(); // Build and return a fake blob containing a single fake outline with no // steps. static C_BLOB* FakeBlob(const TBOX& box); C_OUTLINE_LIST *out_list() { //get outline list return &outlines; } TBOX bounding_box() const; // compute bounding box inT32 area(); //compute area inT32 perimeter(); // Total perimeter of outlines and 1st level children. inT32 outer_area(); //compute area inT32 count_transitions( //count maxima inT32 threshold); //size threshold void move(const ICOORD vec); // repostion blob by vector void rotate(const FCOORD& rotation); // Rotate by given vector. // Adds sub-pixel resolution EdgeOffsets for the outlines using greyscale // if the supplied pix is 8-bit or the binary edges if NULL. void ComputeEdgeOffsets(int threshold, Pix* pix); // Estimates and returns the baseline position based on the shape of the // outlines. inT16 EstimateBaselinePosition(); // Returns a Pix rendering of the blob. pixDestroy after use. Pix* render(); // Returns a Pix rendering of the outline of the blob. (no fill). // pixDestroy after use. Pix* render_outline(); #ifndef GRAPHICS_DISABLED void plot( //draw one ScrollView* window, //window to draw in ScrollView::Color blob_colour, //for outer bits ScrollView::Color child_colour); //for holes // Draws the blob in the given colour, and child_colour, normalized // using the given denorm, making use of sub-pixel accurate information // if available. void plot_normed(const DENORM& denorm, ScrollView::Color blob_colour, ScrollView::Color child_colour, ScrollView* window); #endif // GRAPHICS_DISABLED C_BLOB& operator= (const C_BLOB & source) { if (!outlines.empty ()) outlines.clear(); outlines.deep_copy(&source.outlines, &C_OUTLINE::deep_copy); return *this; } static C_BLOB* deep_copy(const C_BLOB* src) { C_BLOB* blob = new C_BLOB; *blob = *src; return blob; } static int SortByXMiddle(const void *v1, const void *v2) { const C_BLOB* blob1 = *reinterpret_cast<const C_BLOB* const *>(v1); const C_BLOB* blob2 = *reinterpret_cast<const C_BLOB* const *>(v2); return blob1->bounding_box().x_middle() - blob2->bounding_box().x_middle(); } private: C_OUTLINE_LIST outlines; //master elements }; #endif
C++
/********************************************************************** * File: dppoint.cpp * Description: Simple generic dynamic programming class. * Author: Ray Smith * Created: Wed Mar 25 19:08:01 PDT 2009 * * (C) Copyright 2009, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "dppoint.h" #include "tprintf.h" namespace tesseract { // Solve the dynamic programming problem for the given array of points, with // the given size and cost function. // Steps backwards are limited to being between min_step and max_step // inclusive. // The return value is the tail of the best path. DPPoint* DPPoint::Solve(int min_step, int max_step, bool debug, CostFunc cost_func, int size, DPPoint* points) { if (size <= 0 || max_step < min_step || min_step >= size) return NULL; // Degenerate, but not necessarily an error. ASSERT_HOST(min_step > 0); // Infinite loop possible if this is not true. if (debug) tprintf("min = %d, max=%d\n", min_step, max_step); // Evaluate the total cost at each point. for (int i = 0; i < size; ++i) { for (int offset = min_step; offset <= max_step; ++offset) { DPPoint* prev = offset <= i ? points + i - offset : NULL; inT64 new_cost = (points[i].*cost_func)(prev); if (points[i].best_prev_ != NULL && offset > min_step * 2 && new_cost > points[i].total_cost_) break; // Find only the first minimum if going over twice the min. } points[i].total_cost_ += points[i].local_cost_; if (debug) { tprintf("At point %d, local cost=%d, total_cost=%d, steps=%d\n", i, points[i].local_cost_, points[i].total_cost_, points[i].total_steps_); } } // Now find the end of the best path and return it. int best_cost = points[size - 1].total_cost_; int best_end = size - 1; for (int end = best_end - 1; end >= size - min_step; --end) { int cost = points[end].total_cost_; if (cost < best_cost) { best_cost = cost; best_end = end; } } return points + best_end; } // A CostFunc that takes the variance of step into account in the cost. inT64 DPPoint::CostWithVariance(const DPPoint* prev) { if (prev == NULL || prev == this) { UpdateIfBetter(0, 1, NULL, 0, 0, 0); return 0; } int delta = this - prev; inT32 n = prev->n_ + 1; inT32 sig_x = prev->sig_x_ + delta; inT64 sig_xsq = prev->sig_xsq_ + delta * delta; inT64 cost = (sig_xsq - sig_x * sig_x / n) / n; cost += prev->total_cost_; UpdateIfBetter(cost, prev->total_steps_ + 1, prev, n, sig_x, sig_xsq); return cost; } // Update the other members if the cost is lower. void DPPoint::UpdateIfBetter(inT64 cost, inT32 steps, const DPPoint* prev, inT32 n, inT32 sig_x, inT64 sig_xsq) { if (cost < total_cost_) { total_cost_ = cost; total_steps_ = steps; best_prev_ = prev; n_ = n; sig_x_ = sig_x; sig_xsq_ = sig_xsq; } } } // namespace tesseract.
C++
/////////////////////////////////////////////////////////////////////// // File: otsuthr.h // Description: Simple Otsu thresholding for binarizing images. // Author: Ray Smith // Created: Fri Mar 07 12:14:01 PST 2008 // // (C) Copyright 2008, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCMAIN_OTSUTHR_H__ #define TESSERACT_CCMAIN_OTSUTHR_H__ struct Pix; namespace tesseract { const int kHistogramSize = 256; // The size of a histogram of pixel values. // Computes the Otsu threshold(s) for the given image rectangle, making one // for each channel. Each channel is always one byte per pixel. // Returns an array of threshold values and an array of hi_values, such // that a pixel value >threshold[channel] is considered foreground if // hi_values[channel] is 0 or background if 1. A hi_value of -1 indicates // that there is no apparent foreground. At least one hi_value will not be -1. // Delete thresholds and hi_values with delete [] after use. // The return value is the number of channels in the input image, being // the size of the output thresholds and hi_values arrays. int OtsuThreshold(Pix* src_pix, int left, int top, int width, int height, int** thresholds, int** hi_values); // Computes the histogram for the given image rectangle, and the given // single channel. Each channel is always one byte per pixel. // Histogram is always a kHistogramSize(256) element array to count // occurrences of each pixel value. void HistogramRect(Pix* src_pix, int channel, int left, int top, int width, int height, int* histogram); // Computes the Otsu threshold(s) for the given histogram. // Also returns H = total count in histogram, and // omega0 = count of histogram below threshold. int OtsuStats(const int* histogram, int* H_out, int* omega0_out); } // namespace tesseract. #endif // TESSERACT_CCMAIN_OTSUTHR_H__
C++
/////////////////////////////////////////////////////////////////////// // File: boxword.h // Description: Class to represent the bounding boxes of the output. // Author: Ray Smith // Created: Tue May 25 14:18:14 PDT 2010 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "blobs.h" #include "boxword.h" #include "normalis.h" #include "ocrblock.h" #include "pageres.h" namespace tesseract { // Clip output boxes to input blob boxes for bounds that are within this // tolerance. Otherwise, the blob may be chopped and we have to just use // the word bounding box. const int kBoxClipTolerance = 2; BoxWord::BoxWord() : length_(0) { } BoxWord::BoxWord(const BoxWord& src) { CopyFrom(src); } BoxWord::~BoxWord() { } BoxWord& BoxWord::operator=(const BoxWord& src) { CopyFrom(src); return *this; } void BoxWord::CopyFrom(const BoxWord& src) { bbox_ = src.bbox_; length_ = src.length_; boxes_.clear(); boxes_.reserve(length_); for (int i = 0; i < length_; ++i) boxes_.push_back(src.boxes_[i]); } // Factory to build a BoxWord from a TWERD using the DENORMs on each blob to // switch back to original image coordinates. BoxWord* BoxWord::CopyFromNormalized(TWERD* tessword) { BoxWord* boxword = new BoxWord(); // Count the blobs. boxword->length_ = tessword->NumBlobs(); // Allocate memory. boxword->boxes_.reserve(boxword->length_); for (int b = 0; b < boxword->length_; ++b) { TBLOB* tblob = tessword->blobs[b]; TBOX blob_box; for (TESSLINE* outline = tblob->outlines; outline != NULL; outline = outline->next) { EDGEPT* edgept = outline->loop; // Iterate over the edges. do { if (!edgept->IsHidden() || !edgept->prev->IsHidden()) { ICOORD pos(edgept->pos.x, edgept->pos.y); TPOINT denormed; tblob->denorm().DenormTransform(NULL, edgept->pos, &denormed); pos.set_x(denormed.x); pos.set_y(denormed.y); TBOX pt_box(pos, pos); blob_box += pt_box; } edgept = edgept->next; } while (edgept != outline->loop); } boxword->boxes_.push_back(blob_box); } boxword->ComputeBoundingBox(); return boxword; } // Clean up the bounding boxes from the polygonal approximation by // expanding slightly, then clipping to the blobs from the original_word // that overlap. If not null, the block provides the inverse rotation. void BoxWord::ClipToOriginalWord(const BLOCK* block, WERD* original_word) { for (int i = 0; i < length_; ++i) { TBOX box = boxes_[i]; // Expand by a single pixel, as the poly approximation error is 1 pixel. box = TBOX(box.left() - 1, box.bottom() - 1, box.right() + 1, box.top() + 1); // Now find the original box that matches. TBOX original_box; C_BLOB_IT b_it(original_word->cblob_list()); for (b_it.mark_cycle_pt(); !b_it.cycled_list(); b_it.forward()) { TBOX blob_box = b_it.data()->bounding_box(); if (block != NULL) blob_box.rotate(block->re_rotation()); if (blob_box.major_overlap(box)) { original_box += blob_box; } } if (!original_box.null_box()) { if (NearlyEqual<int>(original_box.left(), box.left(), kBoxClipTolerance)) box.set_left(original_box.left()); if (NearlyEqual<int>(original_box.right(), box.right(), kBoxClipTolerance)) box.set_right(original_box.right()); if (NearlyEqual<int>(original_box.top(), box.top(), kBoxClipTolerance)) box.set_top(original_box.top()); if (NearlyEqual<int>(original_box.bottom(), box.bottom(), kBoxClipTolerance)) box.set_bottom(original_box.bottom()); } original_box = original_word->bounding_box(); if (block != NULL) original_box.rotate(block->re_rotation()); boxes_[i] = box.intersection(original_box); } ComputeBoundingBox(); } // Merges the boxes from start to end, not including end, and deletes // the boxes between start and end. void BoxWord::MergeBoxes(int start, int end) { start = ClipToRange(start, 0, length_); end = ClipToRange(end, 0, length_); if (end <= start + 1) return; for (int i = start + 1; i < end; ++i) { boxes_[start] += boxes_[i]; } int shrinkage = end - 1 - start; length_ -= shrinkage; for (int i = start + 1; i < length_; ++i) boxes_[i] = boxes_[i + shrinkage]; boxes_.truncate(length_); } // Inserts a new box before the given index. // Recomputes the bounding box. void BoxWord::InsertBox(int index, const TBOX& box) { if (index < length_) boxes_.insert(box, index); else boxes_.push_back(box); length_ = boxes_.size(); ComputeBoundingBox(); } // Changes the box at the given index to the new box. // Recomputes the bounding box. void BoxWord::ChangeBox(int index, const TBOX& box) { boxes_[index] = box; ComputeBoundingBox(); } // Deletes the box with the given index, and shuffles up the rest. // Recomputes the bounding box. void BoxWord::DeleteBox(int index) { ASSERT_HOST(0 <= index && index < length_); boxes_.remove(index); --length_; ComputeBoundingBox(); } // Deletes all the boxes stored in BoxWord. void BoxWord::DeleteAllBoxes() { length_ = 0; boxes_.clear(); bbox_ = TBOX(); } // Computes the bounding box of the word. void BoxWord::ComputeBoundingBox() { bbox_ = TBOX(); for (int i = 0; i < length_; ++i) bbox_ += boxes_[i]; } // This and other putatively are the same, so call the (permanent) callback // for each blob index where the bounding boxes match. // The callback is deleted on completion. void BoxWord::ProcessMatchedBlobs(const TWERD& other, TessCallback1<int>* cb) const { for (int i = 0; i < length_ && i < other.NumBlobs(); ++i) { TBOX blob_box = other.blobs[i]->bounding_box(); if (blob_box == boxes_[i]) cb->Run(i); } delete cb; } } // namespace tesseract.
C++
/********************************************************************** * File: quspline.h (Formerly qspline.h) * Description: Code for the QSPLINE class. * Author: Ray Smith * Created: Tue Oct 08 17:16:12 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef QUSPLINE_H #define QUSPLINE_H #include "quadratc.h" #include "serialis.h" #include "memry.h" #include "rect.h" class ROW; struct Pix; class QSPLINE { friend void make_first_baseline(TBOX *, int, int *, int *, QSPLINE *, QSPLINE *, float); friend void make_holed_baseline(TBOX *, int, QSPLINE *, QSPLINE *, float); friend void tweak_row_baseline(ROW *, double, double); public: QSPLINE() { //empty constructor segments = 0; xcoords = NULL; //everything empty quadratics = NULL; } QSPLINE( //copy constructor const QSPLINE &src); QSPLINE( //constructor inT32 count, //number of segments inT32 *xstarts, //segment starts double *coeffs); //coefficients ~QSPLINE (); //destructor QSPLINE ( //least squares fit int xstarts[], //spline boundaries int segcount, //no of segments int xcoords[], //points to fit int ycoords[], int blobcount,//no of coords int degree); //function double step( //step change double x1, //between coords double x2); double y( //evaluate double x) const; //at x void move( // reposition spline ICOORD vec); // by vector BOOL8 overlap( //test overlap QSPLINE *spline2, //2 cannot be smaller double fraction); //by more than this void extrapolate( //linear extrapolation double gradient, //gradient to use int left, //new left edge int right); //new right edge #ifndef GRAPHICS_DISABLED void plot( //draw it ScrollView* window, //in window ScrollView::Color colour) const; //in colour #endif // Paint the baseline over pix. If pix has depth of 32, then the line will // be painted in red. Otherwise it will be painted in black. void plot(Pix* pix) const; QSPLINE & operator= ( const QSPLINE & source); //from this private: inT32 spline_index( //binary search double x) const; //for x inT32 segments; //no of segments inT32 *xcoords; //no of coords QUAD_COEFFS *quadratics; //spline pieces }; #endif
C++
///////////////////////////////////////////////////////////////////// // File: ocrpara.h // Description: OCR Paragraph Output Type // Author: David Eger // Created: 2010-11-15 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCSTRUCT_OCRPARA_H_ #define TESSERACT_CCSTRUCT_OCRPARA_H_ #include "publictypes.h" #include "elst.h" #include "strngs.h" class ParagraphModel; struct PARA : public ELIST_LINK { public: PARA() : model(NULL), is_list_item(false), is_very_first_or_continuation(false), has_drop_cap(false) {} // We do not own the model, we just reference it. // model may be NULL if there is not a good model for this paragraph. const ParagraphModel *model; bool is_list_item; // The first paragraph on a page often lacks a first line indent, but should // still be modeled by the same model as other body text paragraphs on the // page. bool is_very_first_or_continuation; // Does this paragraph begin with a drop cap? bool has_drop_cap; }; ELISTIZEH(PARA) // A geometric model of paragraph indentation and alignment. // // Measurements are in pixels. The meaning of the integer arguments changes // depending upon the value of justification. Distances less than or equal // to tolerance apart we take as "equivalent" for the purpose of model // matching, and in the examples below, we assume tolerance is zero. // // justification = LEFT: // margin the "ignored" margin to the left block edge. // first_indent indent from the left margin to a typical first text line. // body_indent indent from the left margin of a typical body text line. // // justification = RIGHT: // margin the "ignored" margin to the right block edge. // first_indent indent from the right margin to a typical first text line. // body_indent indent from the right margin of a typical body text line. // // justification = CENTER: // margin ignored // first_indent ignored // body_indent ignored // // ====== Extended example, assuming each letter is ten pixels wide: ======= // // +--------------------------------+ // | Awesome | ParagraphModel(CENTER, 0, 0, 0) // | Centered Title | // | Paragraph Detection | // | OCR TEAM | // | 10 November 2010 | // | | // | Look here, I have a paragraph.| ParagraphModel(LEFT, 0, 20, 0) // |This paragraph starts at the top| // |of the page and takes 3 lines. | // | Here I have a second paragraph| ParagraphModel(LEFT, 0, 20, 0) // |which indicates that the first | // |paragraph is not a continuation | // |from a previous page, as it is | // |indented just like this second | // |paragraph. | // | Here is a block quote. It | ParagraphModel(LEFT, 30, 0, 0) // | looks like the prior text | // | but it is indented more | // | and is fully justified. | // | So how does one deal with | ParagraphModel(LEFT, 0, 20, 0) // |centered text, block quotes, | // |normal paragraphs, and lists | // |like what follows? | // |1. Make a plan. | ParagraphModel(LEFT, 0, 0, 30) // |2. Use a heuristic, for example,| ParagraphModel(LEFT, 0, 0, 30) // | looking for lines where the | // | first word of the next line | // | would fit on the previous | // | line. | // |8. Try to implement the plan in | ParagraphModel(LEFT, 0, 0, 30) // | Python and try it out. | // |4. Determine how to fix the | ParagraphModel(LEFT, 0, 0, 30) // | mistakes. | // |5. Repeat. | ParagraphModel(LEFT, 0, 0, 30) // | For extra painful penalty work| ParagraphModel(LEFT, 0, 20, 0) // |you can try to identify source | // |code. Ouch! | // +--------------------------------+ class ParagraphModel { public: ParagraphModel(tesseract::ParagraphJustification justification, int margin, int first_indent, int body_indent, int tolerance) : justification_(justification), margin_(margin), first_indent_(first_indent), body_indent_(body_indent), tolerance_(tolerance) { // Make one of {first_indent, body_indent} is 0. int added_margin = first_indent; if (body_indent < added_margin) added_margin = body_indent; margin_ += added_margin; first_indent_ -= added_margin; body_indent_ -= added_margin; } ParagraphModel() : justification_(tesseract::JUSTIFICATION_UNKNOWN), margin_(0), first_indent_(0), body_indent_(0), tolerance_(0) { } // ValidFirstLine() and ValidBodyLine() take arguments describing a text line // in a block of text which we are trying to model: // lmargin, lindent: these add up to the distance from the leftmost ink // in the text line to the surrounding text block's left // edge. // rmargin, rindent: these add up to the distance from the rightmost ink // in the text line to the surrounding text block's right // edge. // The caller determines the division between "margin" and "indent", which // only actually affect whether we think the line may be centered. // // If the amount of whitespace matches the amount of whitespace expected on // the relevant side of the line (within tolerance_) we say it matches. // Return whether a given text line could be a first paragraph line according // to this paragraph model. bool ValidFirstLine(int lmargin, int lindent, int rindent, int rmargin) const; // Return whether a given text line could be a first paragraph line according // to this paragraph model. bool ValidBodyLine(int lmargin, int lindent, int rindent, int rmargin) const; tesseract::ParagraphJustification justification() const { return justification_; } int margin() const { return margin_; } int first_indent() const { return first_indent_; } int body_indent() const { return body_indent_; } int tolerance() const { return tolerance_; } bool is_flush() const { return (justification_ == tesseract::JUSTIFICATION_LEFT || justification_ == tesseract::JUSTIFICATION_RIGHT) && abs(first_indent_ - body_indent_) <= tolerance_; } // Return whether this model is likely to agree with the other model on most // paragraphs they are marked. bool Comparable(const ParagraphModel &other) const; STRING ToString() const; private: tesseract::ParagraphJustification justification_; int margin_; int first_indent_; int body_indent_; int tolerance_; }; #endif // TESSERACT_CCSTRUCT_OCRPARA_H_
C++
/********************************************************************** * File: quspline.cpp (Formerly qspline.c) * Description: Code for the QSPLINE class. * Author: Ray Smith * Created: Tue Oct 08 17:16:12 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "allheaders.h" #include "memry.h" #include "quadlsq.h" #include "quspline.h" // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #define QSPLINE_PRECISION 16 //no of steps to draw /********************************************************************** * QSPLINE::QSPLINE * * Constructor to build a QSPLINE given the components used in the old code. **********************************************************************/ QSPLINE::QSPLINE( //constructor inT32 count, //no of segments inT32 *xstarts, //start coords double *coeffs //coefficients ) { inT32 index; //segment index //get memory xcoords = (inT32 *) alloc_mem ((count + 1) * sizeof (inT32)); quadratics = (QUAD_COEFFS *) alloc_mem (count * sizeof (QUAD_COEFFS)); segments = count; for (index = 0; index < segments; index++) { //copy them xcoords[index] = xstarts[index]; quadratics[index] = QUAD_COEFFS (coeffs[index * 3], coeffs[index * 3 + 1], coeffs[index * 3 + 2]); } //right edge xcoords[index] = xstarts[index]; } /********************************************************************** * QSPLINE::QSPLINE * * Constructor to build a QSPLINE by appproximation of points. **********************************************************************/ QSPLINE::QSPLINE ( //constructor int xstarts[], //spline boundaries int segcount, //no of segments int xpts[], //points to fit int ypts[], int pointcount, //no of pts int degree //fit required ) { register int pointindex; /*no along text line */ register int segment; /*segment no */ inT32 *ptcounts; //no in each segment QLSQ qlsq; /*accumulator */ segments = segcount; xcoords = (inT32 *) alloc_mem ((segcount + 1) * sizeof (inT32)); ptcounts = (inT32 *) alloc_mem ((segcount + 1) * sizeof (inT32)); quadratics = (QUAD_COEFFS *) alloc_mem (segcount * sizeof (QUAD_COEFFS)); memmove (xcoords, xstarts, (segcount + 1) * sizeof (inT32)); ptcounts[0] = 0; /*none in any yet */ for (segment = 0, pointindex = 0; pointindex < pointcount; pointindex++) { while (segment < segcount && xpts[pointindex] >= xstarts[segment]) { segment++; /*try next segment */ /*cumulative counts */ ptcounts[segment] = ptcounts[segment - 1]; } ptcounts[segment]++; /*no in previous partition */ } while (segment < segcount) { segment++; /*zero the rest */ ptcounts[segment] = ptcounts[segment - 1]; } for (segment = 0; segment < segcount; segment++) { qlsq.clear (); /*first blob */ pointindex = ptcounts[segment]; if (pointindex > 0 && xpts[pointindex] != xpts[pointindex - 1] && xpts[pointindex] != xstarts[segment]) qlsq.add (xstarts[segment], ypts[pointindex - 1] + (ypts[pointindex] - ypts[pointindex - 1]) * (xstarts[segment] - xpts[pointindex - 1]) / (xpts[pointindex] - xpts[pointindex - 1])); for (; pointindex < ptcounts[segment + 1]; pointindex++) { qlsq.add (xpts[pointindex], ypts[pointindex]); } if (pointindex > 0 && pointindex < pointcount && xpts[pointindex] != xstarts[segment + 1]) qlsq.add (xstarts[segment + 1], ypts[pointindex - 1] + (ypts[pointindex] - ypts[pointindex - 1]) * (xstarts[segment + 1] - xpts[pointindex - 1]) / (xpts[pointindex] - xpts[pointindex - 1])); qlsq.fit (degree); quadratics[segment].a = qlsq.get_a (); quadratics[segment].b = qlsq.get_b (); quadratics[segment].c = qlsq.get_c (); } free_mem(ptcounts); } /********************************************************************** * QSPLINE::QSPLINE * * Constructor to build a QSPLINE from another. **********************************************************************/ QSPLINE::QSPLINE( //constructor const QSPLINE &src) { segments = 0; xcoords = NULL; quadratics = NULL; *this = src; } /********************************************************************** * QSPLINE::~QSPLINE * * Destroy a QSPLINE. **********************************************************************/ QSPLINE::~QSPLINE ( //constructor ) { if (xcoords != NULL) { free_mem(xcoords); xcoords = NULL; } if (quadratics != NULL) { free_mem(quadratics); quadratics = NULL; } } /********************************************************************** * QSPLINE::operator= * * Copy a QSPLINE **********************************************************************/ QSPLINE & QSPLINE::operator= ( //assignment const QSPLINE & source) { if (xcoords != NULL) free_mem(xcoords); if (quadratics != NULL) free_mem(quadratics); segments = source.segments; xcoords = (inT32 *) alloc_mem ((segments + 1) * sizeof (inT32)); quadratics = (QUAD_COEFFS *) alloc_mem (segments * sizeof (QUAD_COEFFS)); memmove (xcoords, source.xcoords, (segments + 1) * sizeof (inT32)); memmove (quadratics, source.quadratics, segments * sizeof (QUAD_COEFFS)); return *this; } /********************************************************************** * QSPLINE::step * * Return the total of the step functions between the given coords. **********************************************************************/ double QSPLINE::step( //find step functions double x1, //between coords double x2) { int index1, index2; //indices of coords double total; /*total steps */ index1 = spline_index (x1); index2 = spline_index (x2); total = 0; while (index1 < index2) { total += (double) quadratics[index1 + 1].y ((float) xcoords[index1 + 1]); total -= (double) quadratics[index1].y ((float) xcoords[index1 + 1]); index1++; /*next segment */ } return total; /*total steps */ } /********************************************************************** * QSPLINE::y * * Return the y value at the given x value. **********************************************************************/ double QSPLINE::y( //evaluate double x //coord to evaluate at ) const { inT32 index; //segment index index = spline_index (x); return quadratics[index].y (x);//in correct segment } /********************************************************************** * QSPLINE::spline_index * * Return the index to the largest xcoord not greater than x. **********************************************************************/ inT32 QSPLINE::spline_index( //evaluate double x //coord to evaluate at ) const { inT32 index; //segment index inT32 bottom; //bottom of range inT32 top; //top of range bottom = 0; top = segments; while (top - bottom > 1) { index = (top + bottom) / 2; //centre of range if (x >= xcoords[index]) bottom = index; //new min else top = index; //new max } return bottom; } /********************************************************************** * QSPLINE::move * * Reposition spline by vector **********************************************************************/ void QSPLINE::move( // reposition spline ICOORD vec // by vector ) { inT32 segment; //index of segment inT16 x_shift = vec.x (); for (segment = 0; segment < segments; segment++) { xcoords[segment] += x_shift; quadratics[segment].move (vec); } xcoords[segment] += x_shift; } /********************************************************************** * QSPLINE::overlap * * Return TRUE if spline2 overlaps this by no more than fraction less * than the bounds of this. **********************************************************************/ BOOL8 QSPLINE::overlap( //test overlap QSPLINE *spline2, //2 cannot be smaller double fraction //by more than this ) { int leftlimit; /*common left limit */ int rightlimit; /*common right limit */ leftlimit = xcoords[1]; rightlimit = xcoords[segments - 1]; /*or too non-overlap */ if (spline2->segments < 3 || spline2->xcoords[1] > leftlimit + fraction * (rightlimit - leftlimit) || spline2->xcoords[spline2->segments - 1] < rightlimit - fraction * (rightlimit - leftlimit)) return FALSE; else return TRUE; } /********************************************************************** * extrapolate_spline * * Extrapolates the spline linearly using the same gradient as the * quadratic has at either end. **********************************************************************/ void QSPLINE::extrapolate( //linear extrapolation double gradient, //gradient to use int xmin, //new left edge int xmax //new right edge ) { register int segment; /*current segment of spline */ int dest_segment; //dest index int *xstarts; //new boundaries QUAD_COEFFS *quads; //new ones int increment; //in size increment = xmin < xcoords[0] ? 1 : 0; if (xmax > xcoords[segments]) increment++; if (increment == 0) return; xstarts = (int *) alloc_mem ((segments + 1 + increment) * sizeof (int)); quads = (QUAD_COEFFS *) alloc_mem ((segments + increment) * sizeof (QUAD_COEFFS)); if (xmin < xcoords[0]) { xstarts[0] = xmin; quads[0].a = 0; quads[0].b = gradient; quads[0].c = y (xcoords[0]) - quads[0].b * xcoords[0]; dest_segment = 1; } else dest_segment = 0; for (segment = 0; segment < segments; segment++) { xstarts[dest_segment] = xcoords[segment]; quads[dest_segment] = quadratics[segment]; dest_segment++; } xstarts[dest_segment] = xcoords[segment]; if (xmax > xcoords[segments]) { quads[dest_segment].a = 0; quads[dest_segment].b = gradient; quads[dest_segment].c = y (xcoords[segments]) - quads[dest_segment].b * xcoords[segments]; dest_segment++; xstarts[dest_segment] = xmax + 1; } segments = dest_segment; free_mem(xcoords); free_mem(quadratics); xcoords = (inT32 *) xstarts; quadratics = quads; } /********************************************************************** * QSPLINE::plot * * Draw the QSPLINE in the given colour. **********************************************************************/ #ifndef GRAPHICS_DISABLED void QSPLINE::plot( //draw it ScrollView* window, //window to draw in ScrollView::Color colour //colour to draw in ) const { inT32 segment; //index of segment inT16 step; //index of poly piece double increment; //x increment double x; //x coord window->Pen(colour); for (segment = 0; segment < segments; segment++) { increment = (double) (xcoords[segment + 1] - xcoords[segment]) / QSPLINE_PRECISION; x = xcoords[segment]; for (step = 0; step <= QSPLINE_PRECISION; step++) { if (segment == 0 && step == 0) window->SetCursor(x, quadratics[segment].y (x)); else window->DrawTo(x, quadratics[segment].y (x)); x += increment; } } } #endif void QSPLINE::plot(Pix *pix) const { if (pix == NULL) { return; } inT32 segment; // Index of segment inT16 step; // Index of poly piece double increment; // x increment double x; // x coord double height = static_cast<double>(pixGetHeight(pix)); Pta* points = ptaCreate(QSPLINE_PRECISION * segments); const int kLineWidth = 5; for (segment = 0; segment < segments; segment++) { increment = static_cast<double>((xcoords[segment + 1] - xcoords[segment])) / QSPLINE_PRECISION; x = xcoords[segment]; for (step = 0; step <= QSPLINE_PRECISION; step++) { double y = height - quadratics[segment].y(x); ptaAddPt(points, x, y); x += increment; } } switch (pixGetDepth(pix)) { case 1: pixRenderPolyline(pix, points, kLineWidth, L_SET_PIXELS, 1); break; case 32: pixRenderPolylineArb(pix, points, kLineWidth, 255, 0, 0, 1); break; default: pixRenderPolyline(pix, points, kLineWidth, L_CLEAR_PIXELS, 1); break; } ptaDestroy(&points); }
C++
/********************************************************************** * File: boxread.cpp * Description: Read data from a box file. * Author: Ray Smith * Created: Fri Aug 24 17:47:23 PDT 2007 * * (C) Copyright 2007, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "boxread.h" #include <string.h> #include "fileerr.h" #include "rect.h" #include "strngs.h" #include "tprintf.h" #include "unichar.h" // Special char code used to identify multi-blob labels. static const char* kMultiBlobLabelCode = "WordStr"; // Open the boxfile based on the given image filename. FILE* OpenBoxFile(const STRING& fname) { STRING filename = BoxFileName(fname); FILE* box_file = NULL; if (!(box_file = fopen(filename.string(), "rb"))) { CANTOPENFILE.error("read_next_box", TESSEXIT, "Cant open box file %s", filename.string()); } return box_file; } // Reads all boxes from the given filename. // Reads a specific target_page number if >= 0, or all pages otherwise. // Skips blanks if skip_blanks is true. // The UTF-8 label of the box is put in texts, and the full box definition as // a string is put in box_texts, with the corresponding page number in pages. // Each of the output vectors is optional (may be NULL). // Returns false if no boxes are found. bool ReadAllBoxes(int target_page, bool skip_blanks, const STRING& filename, GenericVector<TBOX>* boxes, GenericVector<STRING>* texts, GenericVector<STRING>* box_texts, GenericVector<int>* pages) { GenericVector<char> box_data; if (!tesseract::LoadDataFromFile(BoxFileName(filename), &box_data)) return false; return ReadMemBoxes(target_page, skip_blanks, &box_data[0], boxes, texts, box_texts, pages); } // Reads all boxes from the string. Otherwise, as ReadAllBoxes. bool ReadMemBoxes(int target_page, bool skip_blanks, const char* box_data, GenericVector<TBOX>* boxes, GenericVector<STRING>* texts, GenericVector<STRING>* box_texts, GenericVector<int>* pages) { STRING box_str(box_data); GenericVector<STRING> lines; box_str.split('\n', &lines); if (lines.empty()) return false; int num_boxes = 0; for (int i = 0; i < lines.size(); ++i) { int page = 0; STRING utf8_str; TBOX box; if (!ParseBoxFileStr(lines[i].string(), &page, &utf8_str, &box)) { continue; } if (skip_blanks && utf8_str == " ") continue; if (target_page >= 0 && page != target_page) continue; if (boxes != NULL) boxes->push_back(box); if (texts != NULL) texts->push_back(utf8_str); if (box_texts != NULL) { STRING full_text; MakeBoxFileStr(utf8_str.string(), box, target_page, &full_text); box_texts->push_back(full_text); } if (pages != NULL) pages->push_back(page); ++num_boxes; } return num_boxes > 0; } // Returns the box file name corresponding to the given image_filename. STRING BoxFileName(const STRING& image_filename) { STRING box_filename = image_filename; const char *lastdot = strrchr(box_filename.string(), '.'); if (lastdot != NULL) box_filename.truncate_at(lastdot - box_filename.string()); box_filename += ".box"; return box_filename; } // TODO(rays) convert all uses of ReadNextBox to use the new ReadAllBoxes. // Box files are used ONLY DURING TRAINING, but by both processes of // creating tr files with tesseract, and unicharset_extractor. // ReadNextBox factors out the code to interpret a line of a box // file so that applybox and unicharset_extractor interpret the same way. // This function returns the next valid box file utf8 string and coords // and returns true, or false on eof (and closes the file). // It ignores the utf8 file signature ByteOrderMark (U+FEFF=EF BB BF), checks // for valid utf-8 and allows space or tab between fields. // utf8_str is set with the unichar string, and bounding box with the box. // If there are page numbers in the file, it reads them all. bool ReadNextBox(int *line_number, FILE* box_file, STRING* utf8_str, TBOX* bounding_box) { return ReadNextBox(-1, line_number, box_file, utf8_str, bounding_box); } // As ReadNextBox above, but get a specific page number. (0-based) // Use -1 to read any page number. Files without page number all // read as if they are page 0. bool ReadNextBox(int target_page, int *line_number, FILE* box_file, STRING* utf8_str, TBOX* bounding_box) { int page = 0; char buff[kBoxReadBufSize]; // boxfile read buffer char *buffptr = buff; while (fgets(buff, sizeof(buff) - 1, box_file)) { (*line_number)++; buffptr = buff; const unsigned char *ubuf = reinterpret_cast<const unsigned char*>(buffptr); if (ubuf[0] == 0xef && ubuf[1] == 0xbb && ubuf[2] == 0xbf) buffptr += 3; // Skip unicode file designation. // Check for blank lines in box file if (*buffptr == '\n' || *buffptr == '\0') continue; // Skip blank boxes. if (*buffptr == ' ' || *buffptr == '\t') continue; if (*buffptr != '\0') { if (!ParseBoxFileStr(buffptr, &page, utf8_str, bounding_box)) { tprintf("Box file format error on line %i; ignored\n", *line_number); continue; } if (target_page >= 0 && target_page != page) continue; // Not on the appropriate page. return true; // Successfully read a box. } } fclose(box_file); return false; // EOF } // Parses the given box file string into a page_number, utf8_str, and // bounding_box. Returns true on a successful parse. // The box file is assumed to contain box definitions, one per line, of the // following format for blob-level boxes: // <UTF8 str> <left> <bottom> <right> <top> <page id> // and for word/line-level boxes: // WordStr <left> <bottom> <right> <top> <page id> #<space-delimited word str> // See applyybox.cpp for more information. bool ParseBoxFileStr(const char* boxfile_str, int* page_number, STRING* utf8_str, TBOX* bounding_box) { *bounding_box = TBOX(); // Initialize it to empty. *utf8_str = ""; char uch[kBoxReadBufSize]; const char *buffptr = boxfile_str; // Read the unichar without messing up on Tibetan. // According to issue 253 the utf-8 surrogates 85 and A0 are treated // as whitespace by sscanf, so it is more reliable to just find // ascii space and tab. int uch_len = 0; // Skip unicode file designation, if present. const unsigned char *ubuf = reinterpret_cast<const unsigned char*>(buffptr); if (ubuf[0] == 0xef && ubuf[1] == 0xbb && ubuf[2] == 0xbf) buffptr += 3; // Allow a single blank as the UTF-8 string. Check for empty string and // then blindly eat the first character. if (*buffptr == '\0') return false; do { uch[uch_len++] = *buffptr++; } while (*buffptr != '\0' && *buffptr != ' ' && *buffptr != '\t' && uch_len < kBoxReadBufSize - 1); uch[uch_len] = '\0'; if (*buffptr != '\0') ++buffptr; int x_min, y_min, x_max, y_max; *page_number = 0; int count = sscanf(buffptr, "%d %d %d %d %d", &x_min, &y_min, &x_max, &y_max, page_number); if (count != 5 && count != 4) { tprintf("Bad box coordinates in boxfile string! %s\n", ubuf); return false; } // Test for long space-delimited string label. if (strcmp(uch, kMultiBlobLabelCode) == 0 && (buffptr = strchr(buffptr, '#')) != NULL) { strncpy(uch, buffptr + 1, kBoxReadBufSize - 1); uch[kBoxReadBufSize - 1] = '\0'; // Prevent buffer overrun. chomp_string(uch); uch_len = strlen(uch); } // Validate UTF8 by making unichars with it. int used = 0; while (used < uch_len) { UNICHAR ch(uch + used, uch_len - used); int new_used = ch.utf8_len(); if (new_used == 0) { tprintf("Bad UTF-8 str %s starts with 0x%02x at col %d\n", uch + used, uch[used], used + 1); return false; } used += new_used; } *utf8_str = uch; if (x_min > x_max) Swap(&x_min, &x_max); if (y_min > y_max) Swap(&y_min, &y_max); bounding_box->set_to_given_coords(x_min, y_min, x_max, y_max); return true; // Successfully read a box. } // Creates a box file string from a unichar string, TBOX and page number. void MakeBoxFileStr(const char* unichar_str, const TBOX& box, int page_num, STRING* box_str) { *box_str = unichar_str; box_str->add_str_int(" ", box.left()); box_str->add_str_int(" ", box.bottom()); box_str->add_str_int(" ", box.right()); box_str->add_str_int(" ", box.top()); box_str->add_str_int(" ", page_num); }
C++
/////////////////////////////////////////////////////////////////////// // File: imagedata.h // Description: Class to hold information about a single multi-page tiff // training file and its corresponding boxes or text file. // Author: Ray Smith // Created: Tue May 28 08:56:06 PST 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /////////////////////////////////////////////////////////////////////// #include "imagedata.h" #include "allheaders.h" #include "boxread.h" #include "callcpp.h" #include "helpers.h" #include "tprintf.h" namespace tesseract { WordFeature::WordFeature() : x_(0), y_(0), dir_(0) { } WordFeature::WordFeature(const FCOORD& fcoord, uinT8 dir) : x_(IntCastRounded(fcoord.x())), y_(ClipToRange(IntCastRounded(fcoord.y()), 0, MAX_UINT8)), dir_(dir) { } // Computes the maximum x and y value in the features. void WordFeature::ComputeSize(const GenericVector<WordFeature>& features, int* max_x, int* max_y) { *max_x = 0; *max_y = 0; for (int f = 0; f < features.size(); ++f) { if (features[f].x_ > *max_x) *max_x = features[f].x_; if (features[f].y_ > *max_y) *max_y = features[f].y_; } } // Draws the features in the given window. void WordFeature::Draw(const GenericVector<WordFeature>& features, ScrollView* window) { for (int f = 0; f < features.size(); ++f) { FCOORD pos(features[f].x_, features[f].y_); FCOORD dir; dir.from_direction(features[f].dir_); dir *= 8.0f; window->SetCursor(IntCastRounded(pos.x() - dir.x()), IntCastRounded(pos.y() - dir.y())); window->DrawTo(IntCastRounded(pos.x() + dir.x()), IntCastRounded(pos.y() + dir.y())); } } // Writes to the given file. Returns false in case of error. bool WordFeature::Serialize(FILE* fp) const { if (fwrite(&x_, sizeof(x_), 1, fp) != 1) return false; if (fwrite(&y_, sizeof(y_), 1, fp) != 1) return false; if (fwrite(&dir_, sizeof(dir_), 1, fp) != 1) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool WordFeature::DeSerialize(bool swap, FILE* fp) { if (fread(&x_, sizeof(x_), 1, fp) != 1) return false; if (swap) ReverseN(&x_, sizeof(x_)); if (fread(&y_, sizeof(y_), 1, fp) != 1) return false; if (fread(&dir_, sizeof(dir_), 1, fp) != 1) return false; return true; } void FloatWordFeature::FromWordFeatures( const GenericVector<WordFeature>& word_features, GenericVector<FloatWordFeature>* float_features) { for (int i = 0; i < word_features.size(); ++i) { FloatWordFeature f; f.x = word_features[i].x(); f.y = word_features[i].y(); f.dir = word_features[i].dir(); f.x_bucket = 0; // Will set it later. float_features->push_back(f); } } // Sort function to sort first by x-bucket, then by y. /* static */ int FloatWordFeature::SortByXBucket(const void* v1, const void* v2) { const FloatWordFeature* f1 = reinterpret_cast<const FloatWordFeature*>(v1); const FloatWordFeature* f2 = reinterpret_cast<const FloatWordFeature*>(v2); int x_diff = f1->x_bucket - f2->x_bucket; if (x_diff == 0) return f1->y - f2->y; return x_diff; } ImageData::ImageData() : page_number_(-1), vertical_text_(false) { } // Takes ownership of the pix and destroys it. ImageData::ImageData(bool vertical, Pix* pix) : page_number_(0), vertical_text_(vertical) { SetPix(pix); } ImageData::~ImageData() { } // Builds and returns an ImageData from the basic data. Note that imagedata, // truth_text, and box_text are all the actual file data, NOT filenames. ImageData* ImageData::Build(const char* name, int page_number, const char* lang, const char* imagedata, int imagedatasize, const char* truth_text, const char* box_text) { ImageData* image_data = new ImageData(); image_data->imagefilename_ = name; image_data->page_number_ = page_number; image_data->language_ = lang; // Save the imagedata. image_data->image_data_.init_to_size(imagedatasize, 0); memcpy(&image_data->image_data_[0], imagedata, imagedatasize); if (!image_data->AddBoxes(box_text)) { if (truth_text == NULL || truth_text[0] == '\0') { tprintf("Error: No text corresponding to page %d from image %s!\n", page_number, name); delete image_data; return NULL; } image_data->transcription_ = truth_text; // If we have no boxes, the transcription is in the 0th box_texts_. image_data->box_texts_.push_back(truth_text); // We will create a box for the whole image on PreScale, to save unpacking // the image now. } else if (truth_text != NULL && truth_text[0] != '\0' && image_data->transcription_ != truth_text) { // Save the truth text as it is present and disagrees with the box text. image_data->transcription_ = truth_text; } return image_data; } // Writes to the given file. Returns false in case of error. bool ImageData::Serialize(TFile* fp) const { if (!imagefilename_.Serialize(fp)) return false; if (fp->FWrite(&page_number_, sizeof(page_number_), 1) != 1) return false; if (!image_data_.Serialize(fp)) return false; if (!transcription_.Serialize(fp)) return false; // WARNING: Will not work across different endian machines. if (!boxes_.Serialize(fp)) return false; if (!box_texts_.SerializeClasses(fp)) return false; inT8 vertical = vertical_text_; if (fp->FWrite(&vertical, sizeof(vertical), 1) != 1) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool ImageData::DeSerialize(bool swap, TFile* fp) { if (!imagefilename_.DeSerialize(swap, fp)) return false; if (fp->FRead(&page_number_, sizeof(page_number_), 1) != 1) return false; if (swap) ReverseN(&page_number_, sizeof(page_number_)); if (!image_data_.DeSerialize(swap, fp)) return false; if (!transcription_.DeSerialize(swap, fp)) return false; // WARNING: Will not work across different endian machines. if (!boxes_.DeSerialize(swap, fp)) return false; if (!box_texts_.DeSerializeClasses(swap, fp)) return false; inT8 vertical = 0; if (fp->FRead(&vertical, sizeof(vertical), 1) != 1) return false; vertical_text_ = vertical != 0; return true; } // Saves the given Pix as a PNG-encoded string and destroys it. void ImageData::SetPix(Pix* pix) { SetPixInternal(pix, &image_data_); } // Returns the Pix image for *this. Must be pixDestroyed after use. Pix* ImageData::GetPix() const { return GetPixInternal(image_data_); } // Gets anything and everything with a non-NULL pointer, prescaled to a // given target_height (if 0, then the original image height), and aligned. // Also returns (if not NULL) the width and height of the scaled image. // The return value is the scale factor that was applied to the image to // achieve the target_height. float ImageData::PreScale(int target_height, Pix** pix, int* scaled_width, int* scaled_height, GenericVector<TBOX>* boxes) const { int input_width = 0; int input_height = 0; Pix* src_pix = GetPix(); ASSERT_HOST(src_pix != NULL); input_width = pixGetWidth(src_pix); input_height = pixGetHeight(src_pix); if (target_height == 0) target_height = input_height; float im_factor = static_cast<float>(target_height) / input_height; if (scaled_width != NULL) *scaled_width = IntCastRounded(im_factor * input_width); if (scaled_height != NULL) *scaled_height = target_height; if (pix != NULL) { // Get the scaled image. pixDestroy(pix); *pix = pixScale(src_pix, im_factor, im_factor); if (*pix == NULL) { tprintf("Scaling pix of size %d, %d by factor %g made null pix!!\n", input_width, input_height, im_factor); } if (scaled_width != NULL) *scaled_width = pixGetWidth(*pix); if (scaled_height != NULL) *scaled_height = pixGetHeight(*pix); } pixDestroy(&src_pix); if (boxes != NULL) { // Get the boxes. boxes->truncate(0); for (int b = 0; b < boxes_.size(); ++b) { TBOX box = boxes_[b]; box.scale(im_factor); boxes->push_back(box); } if (boxes->empty()) { // Make a single box for the whole image. TBOX box(0, 0, im_factor * input_width, target_height); boxes->push_back(box); } } return im_factor; } int ImageData::MemoryUsed() const { return image_data_.size(); } // Draws the data in a new window. void ImageData::Display() const { const int kTextSize = 64; // Draw the image. Pix* pix = GetPix(); if (pix == NULL) return; int width = pixGetWidth(pix); int height = pixGetHeight(pix); ScrollView* win = new ScrollView("Imagedata", 100, 100, 2 * (width + 2 * kTextSize), 2 * (height + 4 * kTextSize), width + 10, height + 3 * kTextSize, true); win->Image(pix, 0, height - 1); pixDestroy(&pix); // Draw the boxes. win->Pen(ScrollView::RED); win->Brush(ScrollView::NONE); win->TextAttributes("Arial", kTextSize, false, false, false); for (int b = 0; b < boxes_.size(); ++b) { boxes_[b].plot(win); win->Text(boxes_[b].left(), height + kTextSize, box_texts_[b].string()); TBOX scaled(boxes_[b]); scaled.scale(256.0 / height); scaled.plot(win); } // The full transcription. win->Pen(ScrollView::CYAN); win->Text(0, height + kTextSize * 2, transcription_.string()); // Add the features. win->Pen(ScrollView::GREEN); win->Update(); window_wait(win); } // Adds the supplied boxes and transcriptions that correspond to the correct // page number. void ImageData::AddBoxes(const GenericVector<TBOX>& boxes, const GenericVector<STRING>& texts, const GenericVector<int>& box_pages) { // Copy the boxes and make the transcription. for (int i = 0; i < box_pages.size(); ++i) { if (page_number_ >= 0 && box_pages[i] != page_number_) continue; transcription_ += texts[i]; boxes_.push_back(boxes[i]); box_texts_.push_back(texts[i]); } } // Saves the given Pix as a PNG-encoded string and destroys it. void ImageData::SetPixInternal(Pix* pix, GenericVector<char>* image_data) { l_uint8* data; size_t size; pixWriteMem(&data, &size, pix, IFF_PNG); pixDestroy(&pix); image_data->init_to_size(size, 0); memcpy(&(*image_data)[0], data, size); free(data); } // Returns the Pix image for the image_data. Must be pixDestroyed after use. Pix* ImageData::GetPixInternal(const GenericVector<char>& image_data) { Pix* pix = NULL; if (!image_data.empty()) { // Convert the array to an image. const unsigned char* u_data = reinterpret_cast<const unsigned char*>(&image_data[0]); pix = pixReadMem(u_data, image_data.size()); } return pix; } // Parses the text string as a box file and adds any discovered boxes that // match the page number. Returns false on error. bool ImageData::AddBoxes(const char* box_text) { if (box_text != NULL && box_text[0] != '\0') { GenericVector<TBOX> boxes; GenericVector<STRING> texts; GenericVector<int> box_pages; if (ReadMemBoxes(page_number_, false, box_text, &boxes, &texts, NULL, &box_pages)) { AddBoxes(boxes, texts, box_pages); return true; } else { tprintf("Error: No boxes for page %d from image %s!\n", page_number_, imagefilename_.string()); } } return false; } DocumentData::DocumentData(const STRING& name) : document_name_(name), pages_offset_(0), total_pages_(0), memory_used_(0), max_memory_(0), reader_(NULL) {} DocumentData::~DocumentData() {} // Reads all the pages in the given lstmf filename to the cache. The reader // is used to read the file. bool DocumentData::LoadDocument(const char* filename, const char* lang, int start_page, inT64 max_memory, FileReader reader) { document_name_ = filename; lang_ = lang; pages_offset_ = start_page; max_memory_ = max_memory; reader_ = reader; return ReCachePages(); } // Writes all the pages to the given filename. Returns false on error. bool DocumentData::SaveDocument(const char* filename, FileWriter writer) { TFile fp; fp.OpenWrite(NULL); if (!pages_.Serialize(&fp) || !fp.CloseWrite(filename, writer)) { tprintf("Serialize failed: %s\n", filename); return false; } return true; } bool DocumentData::SaveToBuffer(GenericVector<char>* buffer) { TFile fp; fp.OpenWrite(buffer); return pages_.Serialize(&fp); } // Returns a pointer to the page with the given index, modulo the total // number of pages, recaching if needed. const ImageData* DocumentData::GetPage(int index) { index = Modulo(index, total_pages_); if (index < pages_offset_ || index >= pages_offset_ + pages_.size()) { pages_offset_ = index; if (!ReCachePages()) return NULL; } return pages_[index - pages_offset_]; } // Loads as many pages can fit in max_memory_ starting at index pages_offset_. bool DocumentData::ReCachePages() { // Read the file. TFile fp; if (!fp.Open(document_name_, reader_)) return false; memory_used_ = 0; if (!pages_.DeSerialize(false, &fp)) { tprintf("Deserialize failed: %s\n", document_name_.string()); pages_.truncate(0); return false; } total_pages_ = pages_.size(); pages_offset_ %= total_pages_; // Delete pages before the first one we want, and relocate the rest. int page; for (page = 0; page < pages_.size(); ++page) { if (page < pages_offset_) { delete pages_[page]; pages_[page] = NULL; } else { ImageData* image_data = pages_[page]; if (max_memory_ > 0 && page > pages_offset_ && memory_used_ + image_data->MemoryUsed() > max_memory_) break; // Don't go over memory quota unless the first image. if (image_data->imagefilename().length() == 0) { image_data->set_imagefilename(document_name_); image_data->set_page_number(page); } image_data->set_language(lang_); memory_used_ += image_data->MemoryUsed(); if (pages_offset_ != 0) { pages_[page - pages_offset_] = image_data; pages_[page] = NULL; } } } pages_.truncate(page - pages_offset_); tprintf("Loaded %d/%d pages (%d-%d) of document %s\n", pages_.size(), total_pages_, pages_offset_, pages_offset_ + pages_.size(), document_name_.string()); return !pages_.empty(); } // Adds the given page data to this document, counting up memory. void DocumentData::AddPageToDocument(ImageData* page) { pages_.push_back(page); memory_used_ += page->MemoryUsed(); } // A collection of DocumentData that knows roughly how much memory it is using. DocumentCache::DocumentCache(inT64 max_memory) : total_pages_(0), memory_used_(0), max_memory_(max_memory) {} DocumentCache::~DocumentCache() {} // Adds all the documents in the list of filenames, counting memory. // The reader is used to read the files. bool DocumentCache::LoadDocuments(const GenericVector<STRING>& filenames, const char* lang, FileReader reader) { inT64 fair_share_memory = max_memory_ / filenames.size(); for (int arg = 0; arg < filenames.size(); ++arg) { STRING filename = filenames[arg]; DocumentData* document = new DocumentData(filename); if (document->LoadDocument(filename.string(), lang, 0, fair_share_memory, reader)) { AddToCache(document); } else { tprintf("Failed to load image %s!\n", filename.string()); delete document; } } tprintf("Loaded %d pages, total %gMB\n", total_pages_, memory_used_ / 1048576.0); return total_pages_ > 0; } // Adds document to the cache, throwing out other documents if needed. bool DocumentCache::AddToCache(DocumentData* data) { inT64 new_memory = data->memory_used(); memory_used_ += new_memory; documents_.push_back(data); total_pages_ += data->NumPages(); // Delete the first item in the array, and other pages of the same name // while memory is full. while (memory_used_ >= max_memory_ && max_memory_ > 0) { tprintf("Memory used=%lld vs max=%lld, discarding doc of size %lld\n", memory_used_ , max_memory_, documents_[0]->memory_used()); memory_used_ -= documents_[0]->memory_used(); total_pages_ -= documents_[0]->NumPages(); documents_.remove(0); } return true; } // Finds and returns a document by name. DocumentData* DocumentCache::FindDocument(const STRING& document_name) const { for (int i = 0; i < documents_.size(); ++i) { if (documents_[i]->document_name() == document_name) return documents_[i]; } return NULL; } // Returns a page by serial number, selecting them in a round-robin fashion // from all the documents. const ImageData* DocumentCache::GetPageBySerial(int serial) { int document_index = serial % documents_.size(); return documents_[document_index]->GetPage(serial / documents_.size()); } } // namespace tesseract.
C++
/********************************************************************** * File: blobbox.cpp (Formerly blobnbox.c) * Description: Code for the textord blob class. * Author: Ray Smith * Created: Thu Jul 30 09:08:51 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #include "blobbox.h" #include "allheaders.h" #include "blobs.h" #include "helpers.h" #include "normalis.h" #define PROJECTION_MARGIN 10 //arbitrary #define EXTERN ELISTIZE (BLOBNBOX) ELIST2IZE (TO_ROW) ELISTIZE (TO_BLOCK) // Upto 30 degrees is allowed for rotations of diacritic blobs. const double kCosSmallAngle = 0.866; // Min aspect ratio for a joined word to indicate an obvious flow direction. const double kDefiniteAspectRatio = 2.0; // Multiple of short length in perimeter to make a joined word. const double kComplexShapePerimeterRatio = 1.5; // Min multiple of linesize for medium-sized blobs in ReFilterBlobs. const double kMinMediumSizeRatio = 0.25; // Max multiple of linesize for medium-sized blobs in ReFilterBlobs. const double kMaxMediumSizeRatio = 4.0; // Rotates the box and the underlying blob. void BLOBNBOX::rotate(FCOORD rotation) { cblob_ptr->rotate(rotation); rotate_box(rotation); compute_bounding_box(); } // Reflect the box in the y-axis, leaving the underlying blob untouched. void BLOBNBOX::reflect_box_in_y_axis() { int left = -box.right(); box.set_right(-box.left()); box.set_left(left); } // Rotates the box by the angle given by rotation. // If the blob is a diacritic, then only small rotations for skew // correction can be applied. void BLOBNBOX::rotate_box(FCOORD rotation) { if (IsDiacritic()) { ASSERT_HOST(rotation.x() >= kCosSmallAngle) ICOORD top_pt((box.left() + box.right()) / 2, base_char_top_); ICOORD bottom_pt(top_pt.x(), base_char_bottom_); top_pt.rotate(rotation); base_char_top_ = top_pt.y(); bottom_pt.rotate(rotation); base_char_bottom_ = bottom_pt.y(); box.rotate(rotation); } else { box.rotate(rotation); set_diacritic_box(box); } } /********************************************************************** * BLOBNBOX::merge * * Merge this blob with the given blob, which should be after this. **********************************************************************/ void BLOBNBOX::merge( //merge blobs BLOBNBOX *nextblob //blob to join with ) { box += nextblob->box; //merge boxes set_diacritic_box(box); nextblob->joined = TRUE; } // Merge this with other, taking the outlines from other. // Other is not deleted, but left for the caller to handle. void BLOBNBOX::really_merge(BLOBNBOX* other) { if (cblob_ptr != NULL && other->cblob_ptr != NULL) { C_OUTLINE_IT ol_it(cblob_ptr->out_list()); ol_it.add_list_after(other->cblob_ptr->out_list()); } compute_bounding_box(); } /********************************************************************** * BLOBNBOX::chop * * Chop this blob into equal sized pieces using the x height as a guide. * The blob is not actually chopped. Instead, fake blobs are inserted * with the relevant bounding boxes. **********************************************************************/ void BLOBNBOX::chop( //chop blobs BLOBNBOX_IT *start_it, //location of this BLOBNBOX_IT *end_it, //iterator FCOORD rotation, //for landscape float xheight //of line ) { inT16 blobcount; //no of blobs BLOBNBOX *newblob; //fake blob BLOBNBOX *blob; //current blob inT16 blobindex; //number of chop inT16 leftx; //left edge of blob float blobwidth; //width of each float rightx; //right edge to scan float ymin, ymax; //limits of new blob float test_ymin, test_ymax; //limits of part blob ICOORD bl, tr; //corners of box BLOBNBOX_IT blob_it; //blob iterator //get no of chops blobcount = (inT16) floor (box.width () / xheight); if (blobcount > 1 && cblob_ptr != NULL) { //width of each blobwidth = (float) (box.width () + 1) / blobcount; for (blobindex = blobcount - 1, rightx = box.right (); blobindex >= 0; blobindex--, rightx -= blobwidth) { ymin = (float) MAX_INT32; ymax = (float) -MAX_INT32; blob_it = *start_it; do { blob = blob_it.data (); find_cblob_vlimits(blob->cblob_ptr, rightx - blobwidth, rightx, /*rotation, */ test_ymin, test_ymax); blob_it.forward (); UpdateRange(test_ymin, test_ymax, &ymin, &ymax); } while (blob != end_it->data ()); if (ymin < ymax) { leftx = (inT16) floor (rightx - blobwidth); if (leftx < box.left ()) leftx = box.left (); //clip to real box bl = ICOORD (leftx, (inT16) floor (ymin)); tr = ICOORD ((inT16) ceil (rightx), (inT16) ceil (ymax)); if (blobindex == 0) box = TBOX (bl, tr); //change box else { newblob = new BLOBNBOX; //box is all it has newblob->box = TBOX (bl, tr); //stay on current newblob->base_char_top_ = tr.y(); newblob->base_char_bottom_ = bl.y(); end_it->add_after_stay_put (newblob); } } } } } // Returns the box gaps between this and its neighbours_ in an array // indexed by BlobNeighbourDir. void BLOBNBOX::NeighbourGaps(int gaps[BND_COUNT]) const { for (int dir = 0; dir < BND_COUNT; ++dir) { gaps[dir] = MAX_INT16; BLOBNBOX* neighbour = neighbours_[dir]; if (neighbour != NULL) { TBOX n_box = neighbour->bounding_box(); if (dir == BND_LEFT || dir == BND_RIGHT) { gaps[dir] = box.x_gap(n_box); } else { gaps[dir] = box.y_gap(n_box); } } } } // Returns the min and max horizontal and vertical gaps (from NeighbourGaps) // modified so that if the max exceeds the max dimension of the blob, and // the min is less, the max is replaced with the min. // The objective is to catch cases where there is only a single neighbour // and avoid reporting the other gap as a ridiculously large number void BLOBNBOX::MinMaxGapsClipped(int* h_min, int* h_max, int* v_min, int* v_max) const { int max_dimension = MAX(box.width(), box.height()); int gaps[BND_COUNT]; NeighbourGaps(gaps); *h_min = MIN(gaps[BND_LEFT], gaps[BND_RIGHT]); *h_max = MAX(gaps[BND_LEFT], gaps[BND_RIGHT]); if (*h_max > max_dimension && *h_min < max_dimension) *h_max = *h_min; *v_min = MIN(gaps[BND_ABOVE], gaps[BND_BELOW]); *v_max = MAX(gaps[BND_ABOVE], gaps[BND_BELOW]); if (*v_max > max_dimension && *v_min < max_dimension) *v_max = *v_min; } // NULLs out any neighbours that are DeletableNoise to remove references. void BLOBNBOX::CleanNeighbours() { for (int dir = 0; dir < BND_COUNT; ++dir) { BLOBNBOX* neighbour = neighbours_[dir]; if (neighbour != NULL && neighbour->DeletableNoise()) { neighbours_[dir] = NULL; good_stroke_neighbours_[dir] = false; } } } // Returns positive if there is at least one side neighbour that has a similar // stroke width and is not on the other side of a rule line. int BLOBNBOX::GoodTextBlob() const { int score = 0; for (int dir = 0; dir < BND_COUNT; ++dir) { BlobNeighbourDir bnd = static_cast<BlobNeighbourDir>(dir); if (good_stroke_neighbour(bnd)) ++score; } return score; } // Returns the number of side neighbours that are of type BRT_NOISE. int BLOBNBOX::NoisyNeighbours() const { int count = 0; for (int dir = 0; dir < BND_COUNT; ++dir) { BlobNeighbourDir bnd = static_cast<BlobNeighbourDir>(dir); BLOBNBOX* blob = neighbour(bnd); if (blob != NULL && blob->region_type() == BRT_NOISE) ++count; } return count; } // Returns true, and sets vert_possible/horz_possible if the blob has some // feature that makes it individually appear to flow one way. // eg if it has a high aspect ratio, yet has a complex shape, such as a // joined word in Latin, Arabic, or Hindi, rather than being a -, I, l, 1 etc. bool BLOBNBOX::DefiniteIndividualFlow() { if (cblob() == NULL) return false; int box_perimeter = 2 * (box.height() + box.width()); if (box.width() > box.height() * kDefiniteAspectRatio) { // Attempt to distinguish a wide joined word from a dash. // If it is a dash, then its perimeter is approximately // 2 * (box width + stroke width), but more if the outline is noisy, // so perimeter - 2*(box width + stroke width) should be close to zero. // A complex shape such as a joined word should have a much larger value. int perimeter = cblob()->perimeter(); if (vert_stroke_width() > 0 || perimeter <= 0) perimeter -= 2 * vert_stroke_width(); else perimeter -= 4 * cblob()->area() / perimeter; perimeter -= 2 * box.width(); // Use a multiple of the box perimeter as a threshold. if (perimeter > kComplexShapePerimeterRatio * box_perimeter) { set_vert_possible(false); set_horz_possible(true); return true; } } if (box.height() > box.width() * kDefiniteAspectRatio) { // As above, but for a putative vertical word vs a I/1/l. int perimeter = cblob()->perimeter(); if (horz_stroke_width() > 0 || perimeter <= 0) perimeter -= 2 * horz_stroke_width(); else perimeter -= 4 * cblob()->area() / perimeter; perimeter -= 2 * box.height(); if (perimeter > kComplexShapePerimeterRatio * box_perimeter) { set_vert_possible(true); set_horz_possible(false); return true; } } return false; } // Returns true if there is no tabstop violation in merging this and other. bool BLOBNBOX::ConfirmNoTabViolation(const BLOBNBOX& other) const { if (box.left() < other.box.left() && box.left() < other.left_rule_) return false; if (other.box.left() < box.left() && other.box.left() < left_rule_) return false; if (box.right() > other.box.right() && box.right() > other.right_rule_) return false; if (other.box.right() > box.right() && other.box.right() > right_rule_) return false; return true; } // Returns true if other has a similar stroke width to this. bool BLOBNBOX::MatchingStrokeWidth(const BLOBNBOX& other, double fractional_tolerance, double constant_tolerance) const { // The perimeter-based width is used as a backup in case there is // no information in the blob. double p_width = area_stroke_width(); double n_p_width = other.area_stroke_width(); float h_tolerance = horz_stroke_width_ * fractional_tolerance + constant_tolerance; float v_tolerance = vert_stroke_width_ * fractional_tolerance + constant_tolerance; double p_tolerance = p_width * fractional_tolerance + constant_tolerance; bool h_zero = horz_stroke_width_ == 0.0f || other.horz_stroke_width_ == 0.0f; bool v_zero = vert_stroke_width_ == 0.0f || other.vert_stroke_width_ == 0.0f; bool h_ok = !h_zero && NearlyEqual(horz_stroke_width_, other.horz_stroke_width_, h_tolerance); bool v_ok = !v_zero && NearlyEqual(vert_stroke_width_, other.vert_stroke_width_, v_tolerance); bool p_ok = h_zero && v_zero && NearlyEqual(p_width, n_p_width, p_tolerance); // For a match, at least one of the horizontal and vertical widths // must match, and the other one must either match or be zero. // Only if both are zero will we look at the perimeter metric. return p_ok || ((v_ok || h_ok) && (h_ok || h_zero) && (v_ok || v_zero)); } // Returns a bounding box of the outline contained within the // given horizontal range. TBOX BLOBNBOX::BoundsWithinLimits(int left, int right) { FCOORD no_rotation(1.0f, 0.0f); float top = box.top(); float bottom = box.bottom(); if (cblob_ptr != NULL) { find_cblob_limits(cblob_ptr, static_cast<float>(left), static_cast<float>(right), no_rotation, bottom, top); } if (top < bottom) { top = box.top(); bottom = box.bottom(); } FCOORD bot_left(left, bottom); FCOORD top_right(right, top); TBOX shrunken_box(bot_left); TBOX shrunken_box2(top_right); shrunken_box += shrunken_box2; return shrunken_box; } // Estimates and stores the baseline position based on the shape of the // outline. void BLOBNBOX::EstimateBaselinePosition() { baseline_y_ = box.bottom(); // The default. if (cblob_ptr == NULL) return; baseline_y_ = cblob_ptr->EstimateBaselinePosition(); } // Helper to call CleanNeighbours on all blobs on the list. void BLOBNBOX::CleanNeighbours(BLOBNBOX_LIST* blobs) { BLOBNBOX_IT blob_it(blobs); for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) { blob_it.data()->CleanNeighbours(); } } // Helper to delete all the deletable blobs on the list. void BLOBNBOX::DeleteNoiseBlobs(BLOBNBOX_LIST* blobs) { BLOBNBOX_IT blob_it(blobs); for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) { BLOBNBOX* blob = blob_it.data(); if (blob->DeletableNoise()) { delete blob->cblob(); delete blob_it.extract(); } } } // Helper to compute edge offsets for all the blobs on the list. // See coutln.h for an explanation of edge offsets. void BLOBNBOX::ComputeEdgeOffsets(Pix* thresholds, Pix* grey, BLOBNBOX_LIST* blobs) { int grey_height = 0; int thr_height = 0; int scale_factor = 1; if (thresholds != NULL && grey != NULL) { grey_height = pixGetHeight(grey); thr_height = pixGetHeight(thresholds); scale_factor = IntCastRounded(static_cast<double>(grey_height) / thr_height); } BLOBNBOX_IT blob_it(blobs); for (blob_it.mark_cycle_pt(); !blob_it.cycled_list(); blob_it.forward()) { BLOBNBOX* blob = blob_it.data(); if (blob->cblob() != NULL) { // Get the threshold that applies to this blob. l_uint32 threshold = 128; if (thresholds != NULL && grey != NULL) { const TBOX& box = blob->cblob()->bounding_box(); // Transform the coordinates if required. TPOINT pt((box.left() + box.right()) / 2, (box.top() + box.bottom()) / 2); pixGetPixel(thresholds, pt.x / scale_factor, thr_height - 1 - pt.y / scale_factor, &threshold); } blob->cblob()->ComputeEdgeOffsets(threshold, grey); } } } #ifndef GRAPHICS_DISABLED // Helper to draw all the blobs on the list in the given body_colour, // with child outlines in the child_colour. void BLOBNBOX::PlotBlobs(BLOBNBOX_LIST* list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView* win) { BLOBNBOX_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->plot(win, body_colour, child_colour); } } // Helper to draw only DeletableNoise blobs (unowned, BRT_NOISE) on the // given list in the given body_colour, with child outlines in the // child_colour. void BLOBNBOX::PlotNoiseBlobs(BLOBNBOX_LIST* list, ScrollView::Color body_colour, ScrollView::Color child_colour, ScrollView* win) { BLOBNBOX_IT it(list); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { BLOBNBOX* blob = it.data(); if (blob->DeletableNoise()) blob->plot(win, body_colour, child_colour); } } ScrollView::Color BLOBNBOX::TextlineColor(BlobRegionType region_type, BlobTextFlowType flow_type) { switch (region_type) { case BRT_HLINE: return ScrollView::BROWN; case BRT_VLINE: return ScrollView::DARK_GREEN; case BRT_RECTIMAGE: return ScrollView::RED; case BRT_POLYIMAGE: return ScrollView::ORANGE; case BRT_UNKNOWN: return flow_type == BTFT_NONTEXT ? ScrollView::CYAN : ScrollView::WHITE; case BRT_VERT_TEXT: if (flow_type == BTFT_STRONG_CHAIN || flow_type == BTFT_TEXT_ON_IMAGE) return ScrollView::GREEN; if (flow_type == BTFT_CHAIN) return ScrollView::LIME_GREEN; return ScrollView::YELLOW; case BRT_TEXT: if (flow_type == BTFT_STRONG_CHAIN) return ScrollView::BLUE; if (flow_type == BTFT_TEXT_ON_IMAGE) return ScrollView::LIGHT_BLUE; if (flow_type == BTFT_CHAIN) return ScrollView::MEDIUM_BLUE; if (flow_type == BTFT_LEADER) return ScrollView::WHEAT; if (flow_type == BTFT_NONTEXT) return ScrollView::PINK; return ScrollView::MAGENTA; default: return ScrollView::GREY; } } // Keep in sync with BlobRegionType. ScrollView::Color BLOBNBOX::BoxColor() const { return TextlineColor(region_type_, flow_); } void BLOBNBOX::plot(ScrollView* window, // window to draw in ScrollView::Color blob_colour, // for outer bits ScrollView::Color child_colour) { // for holes if (cblob_ptr != NULL) cblob_ptr->plot(window, blob_colour, child_colour); } #endif /********************************************************************** * find_cblob_limits * * Scan the outlines of the cblob to locate the y min and max * between the given x limits. **********************************************************************/ void find_cblob_limits( //get y limits C_BLOB *blob, //blob to search float leftx, //x limits float rightx, FCOORD rotation, //for landscape float &ymin, //output y limits float &ymax) { inT16 stepindex; //current point ICOORD pos; //current coords ICOORD vec; //rotated step C_OUTLINE *outline; //current outline //outlines C_OUTLINE_IT out_it = blob->out_list (); ymin = (float) MAX_INT32; ymax = (float) -MAX_INT32; for (out_it.mark_cycle_pt (); !out_it.cycled_list (); out_it.forward ()) { outline = out_it.data (); pos = outline->start_pos (); //get coords pos.rotate (rotation); for (stepindex = 0; stepindex < outline->pathlength (); stepindex++) { //inside if (pos.x () >= leftx && pos.x () <= rightx) { UpdateRange(pos.y(), &ymin, &ymax); } vec = outline->step (stepindex); vec.rotate (rotation); pos += vec; //move to next } } } /********************************************************************** * find_cblob_vlimits * * Scan the outlines of the cblob to locate the y min and max * between the given x limits. **********************************************************************/ void find_cblob_vlimits( //get y limits C_BLOB *blob, //blob to search float leftx, //x limits float rightx, float &ymin, //output y limits float &ymax) { inT16 stepindex; //current point ICOORD pos; //current coords ICOORD vec; //rotated step C_OUTLINE *outline; //current outline //outlines C_OUTLINE_IT out_it = blob->out_list (); ymin = (float) MAX_INT32; ymax = (float) -MAX_INT32; for (out_it.mark_cycle_pt (); !out_it.cycled_list (); out_it.forward ()) { outline = out_it.data (); pos = outline->start_pos (); //get coords for (stepindex = 0; stepindex < outline->pathlength (); stepindex++) { //inside if (pos.x () >= leftx && pos.x () <= rightx) { UpdateRange(pos.y(), &ymin, &ymax); } vec = outline->step (stepindex); pos += vec; //move to next } } } /********************************************************************** * find_cblob_hlimits * * Scan the outlines of the cblob to locate the x min and max * between the given y limits. **********************************************************************/ void find_cblob_hlimits( //get x limits C_BLOB *blob, //blob to search float bottomy, //y limits float topy, float &xmin, //output x limits float &xmax) { inT16 stepindex; //current point ICOORD pos; //current coords ICOORD vec; //rotated step C_OUTLINE *outline; //current outline //outlines C_OUTLINE_IT out_it = blob->out_list (); xmin = (float) MAX_INT32; xmax = (float) -MAX_INT32; for (out_it.mark_cycle_pt (); !out_it.cycled_list (); out_it.forward ()) { outline = out_it.data (); pos = outline->start_pos (); //get coords for (stepindex = 0; stepindex < outline->pathlength (); stepindex++) { //inside if (pos.y () >= bottomy && pos.y () <= topy) { UpdateRange(pos.x(), &xmin, &xmax); } vec = outline->step (stepindex); pos += vec; //move to next } } } /********************************************************************** * crotate_cblob * * Rotate the copy by the given vector and return a C_BLOB. **********************************************************************/ C_BLOB *crotate_cblob( //rotate it C_BLOB *blob, //blob to search FCOORD rotation //for landscape ) { C_OUTLINE_LIST out_list; //output outlines //input outlines C_OUTLINE_IT in_it = blob->out_list (); //output outlines C_OUTLINE_IT out_it = &out_list; for (in_it.mark_cycle_pt (); !in_it.cycled_list (); in_it.forward ()) { out_it.add_after_then_move (new C_OUTLINE (in_it.data (), rotation)); } return new C_BLOB (&out_list); } /********************************************************************** * box_next * * Compute the bounding box of this blob with merging of x overlaps * but no pre-chopping. * Then move the iterator on to the start of the next blob. **********************************************************************/ TBOX box_next( //get bounding box BLOBNBOX_IT *it //iterator to blobds ) { BLOBNBOX *blob; //current blob TBOX result; //total box blob = it->data (); result = blob->bounding_box (); do { it->forward (); blob = it->data (); if (blob->cblob() == NULL) //was pre-chopped result += blob->bounding_box (); } //until next real blob while ((blob->cblob() == NULL) || blob->joined_to_prev()); return result; } /********************************************************************** * box_next_pre_chopped * * Compute the bounding box of this blob with merging of x overlaps * but WITH pre-chopping. * Then move the iterator on to the start of the next pre-chopped blob. **********************************************************************/ TBOX box_next_pre_chopped( //get bounding box BLOBNBOX_IT *it //iterator to blobds ) { BLOBNBOX *blob; //current blob TBOX result; //total box blob = it->data (); result = blob->bounding_box (); do { it->forward (); blob = it->data (); } //until next real blob while (blob->joined_to_prev ()); return result; } /********************************************************************** * TO_ROW::TO_ROW * * Constructor to make a row from a blob. **********************************************************************/ TO_ROW::TO_ROW ( //constructor BLOBNBOX * blob, //first blob float top, //corrected top float bottom, //of row float row_size //ideal ) { clear(); y_min = bottom; y_max = top; initial_y_min = bottom; float diff; //in size BLOBNBOX_IT it = &blobs; //list of blobs it.add_to_end (blob); diff = top - bottom - row_size; if (diff > 0) { y_max -= diff / 2; y_min += diff / 2; } //very small object else if ((top - bottom) * 3 < row_size) { diff = row_size / 3 + bottom - top; y_max += diff / 2; y_min -= diff / 2; } } void TO_ROW::print() const { tprintf("pitch=%d, fp=%g, fps=%g, fpns=%g, prs=%g, prns=%g," " spacing=%g xh=%g y_origin=%g xev=%d, asc=%g, desc=%g," " body=%g, minsp=%d maxnsp=%d, thr=%d kern=%g sp=%g\n", pitch_decision, fixed_pitch, fp_space, fp_nonsp, pr_space, pr_nonsp, spacing, xheight, y_origin, xheight_evidence, ascrise, descdrop, body_size, min_space, max_nonspace, space_threshold, kern_size, space_size); } /********************************************************************** * TO_ROW:add_blob * * Add the blob to the end of the row. **********************************************************************/ void TO_ROW::add_blob( //constructor BLOBNBOX *blob, //first blob float top, //corrected top float bottom, //of row float row_size //ideal ) { float allowed; //allowed expansion float available; //expansion BLOBNBOX_IT it = &blobs; //list of blobs it.add_to_end (blob); allowed = row_size + y_min - y_max; if (allowed > 0) { available = top > y_max ? top - y_max : 0; if (bottom < y_min) //total available available += y_min - bottom; if (available > 0) { available += available; //do it gradually if (available < allowed) available = allowed; if (bottom < y_min) y_min -= (y_min - bottom) * allowed / available; if (top > y_max) y_max += (top - y_max) * allowed / available; } } } /********************************************************************** * TO_ROW:insert_blob * * Add the blob to the row in the correct position. **********************************************************************/ void TO_ROW::insert_blob( //constructor BLOBNBOX *blob //first blob ) { BLOBNBOX_IT it = &blobs; //list of blobs if (it.empty ()) it.add_before_then_move (blob); else { it.mark_cycle_pt (); while (!it.cycled_list () && it.data ()->bounding_box ().left () <= blob->bounding_box ().left ()) it.forward (); if (it.cycled_list ()) it.add_to_end (blob); else it.add_before_stay_put (blob); } } /********************************************************************** * TO_ROW::compute_vertical_projection * * Compute the vertical projection of a TO_ROW from its blobs. **********************************************************************/ void TO_ROW::compute_vertical_projection() { //project whole row TBOX row_box; //bound of row BLOBNBOX *blob; //current blob TBOX blob_box; //bounding box BLOBNBOX_IT blob_it = blob_list (); if (blob_it.empty ()) return; row_box = blob_it.data ()->bounding_box (); for (blob_it.mark_cycle_pt (); !blob_it.cycled_list (); blob_it.forward ()) row_box += blob_it.data ()->bounding_box (); projection.set_range (row_box.left () - PROJECTION_MARGIN, row_box.right () + PROJECTION_MARGIN); projection_left = row_box.left () - PROJECTION_MARGIN; projection_right = row_box.right () + PROJECTION_MARGIN; for (blob_it.mark_cycle_pt (); !blob_it.cycled_list (); blob_it.forward ()) { blob = blob_it.data(); if (blob->cblob() != NULL) vertical_cblob_projection(blob->cblob(), &projection); } } /********************************************************************** * TO_ROW::clear * * Zero out all scalar members. **********************************************************************/ void TO_ROW::clear() { all_caps = 0; used_dm_model = 0; projection_left = 0; projection_right = 0; pitch_decision = PITCH_DUNNO; fixed_pitch = 0.0; fp_space = 0.0; fp_nonsp = 0.0; pr_space = 0.0; pr_nonsp = 0.0; spacing = 0.0; xheight = 0.0; xheight_evidence = 0; body_size = 0.0; ascrise = 0.0; descdrop = 0.0; min_space = 0; max_nonspace = 0; space_threshold = 0; kern_size = 0.0; space_size = 0.0; y_min = 0.0; y_max = 0.0; initial_y_min = 0.0; m = 0.0; c = 0.0; error = 0.0; para_c = 0.0; para_error = 0.0; y_origin = 0.0; credibility = 0.0; num_repeated_sets_ = -1; } /********************************************************************** * vertical_cblob_projection * * Compute the vertical projection of a cblob from its outlines * and add to the given STATS. **********************************************************************/ void vertical_cblob_projection( //project outlines C_BLOB *blob, //blob to project STATS *stats //output ) { //outlines of blob C_OUTLINE_IT out_it = blob->out_list (); for (out_it.mark_cycle_pt (); !out_it.cycled_list (); out_it.forward ()) { vertical_coutline_projection (out_it.data (), stats); } } /********************************************************************** * vertical_coutline_projection * * Compute the vertical projection of a outline from its outlines * and add to the given STATS. **********************************************************************/ void vertical_coutline_projection( //project outlines C_OUTLINE *outline, //outline to project STATS *stats //output ) { ICOORD pos; //current point ICOORD step; //edge step inT32 length; //of outline inT16 stepindex; //current step C_OUTLINE_IT out_it = outline->child (); pos = outline->start_pos (); length = outline->pathlength (); for (stepindex = 0; stepindex < length; stepindex++) { step = outline->step (stepindex); if (step.x () > 0) { stats->add (pos.x (), -pos.y ()); } else if (step.x () < 0) { stats->add (pos.x () - 1, pos.y ()); } pos += step; } for (out_it.mark_cycle_pt (); !out_it.cycled_list (); out_it.forward ()) { vertical_coutline_projection (out_it.data (), stats); } } /********************************************************************** * TO_BLOCK::TO_BLOCK * * Constructor to make a TO_BLOCK from a real block. **********************************************************************/ TO_BLOCK::TO_BLOCK( //make a block BLOCK *src_block //real block ) { clear(); block = src_block; } static void clear_blobnboxes(BLOBNBOX_LIST* boxes) { BLOBNBOX_IT it = boxes; // A BLOBNBOX generally doesn't own its blobs, so if they do, you // have to delete them explicitly. for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { BLOBNBOX* box = it.data(); if (box->cblob() != NULL) delete box->cblob(); } } /********************************************************************** * TO_BLOCK::clear * * Zero out all scalar members. **********************************************************************/ void TO_BLOCK::clear() { block = NULL; pitch_decision = PITCH_DUNNO; line_spacing = 0.0; line_size = 0.0; max_blob_size = 0.0; baseline_offset = 0.0; xheight = 0.0; fixed_pitch = 0.0; kern_size = 0.0; space_size = 0.0; min_space = 0; max_nonspace = 0; fp_space = 0.0; fp_nonsp = 0.0; pr_space = 0.0; pr_nonsp = 0.0; key_row = NULL; } TO_BLOCK::~TO_BLOCK() { // Any residual BLOBNBOXes at this stage own their blobs, so delete them. clear_blobnboxes(&blobs); clear_blobnboxes(&underlines); clear_blobnboxes(&noise_blobs); clear_blobnboxes(&small_blobs); clear_blobnboxes(&large_blobs); } // Helper function to divide the input blobs over noise, small, medium // and large lists. Blobs small in height and (small in width or large in width) // go in the noise list. Dash (-) candidates go in the small list, and // medium and large are by height. // SIDE-EFFECT: reset all blobs to initial state by calling Init(). static void SizeFilterBlobs(int min_height, int max_height, BLOBNBOX_LIST* src_list, BLOBNBOX_LIST* noise_list, BLOBNBOX_LIST* small_list, BLOBNBOX_LIST* medium_list, BLOBNBOX_LIST* large_list) { BLOBNBOX_IT noise_it(noise_list); BLOBNBOX_IT small_it(small_list); BLOBNBOX_IT medium_it(medium_list); BLOBNBOX_IT large_it(large_list); for (BLOBNBOX_IT src_it(src_list); !src_it.empty(); src_it.forward()) { BLOBNBOX* blob = src_it.extract(); blob->ReInit(); int width = blob->bounding_box().width(); int height = blob->bounding_box().height(); if (height < min_height && (width < min_height || width > max_height)) noise_it.add_after_then_move(blob); else if (height > max_height) large_it.add_after_then_move(blob); else if (height < min_height) small_it.add_after_then_move(blob); else medium_it.add_after_then_move(blob); } } // Reorganize the blob lists with a different definition of small, medium // and large, compared to the original definition. // Height is still the primary filter key, but medium width blobs of small // height become small, and very wide blobs of small height stay noise, along // with small dot-shaped blobs. void TO_BLOCK::ReSetAndReFilterBlobs() { int min_height = IntCastRounded(kMinMediumSizeRatio * line_size); int max_height = IntCastRounded(kMaxMediumSizeRatio * line_size); BLOBNBOX_LIST noise_list; BLOBNBOX_LIST small_list; BLOBNBOX_LIST medium_list; BLOBNBOX_LIST large_list; SizeFilterBlobs(min_height, max_height, &blobs, &noise_list, &small_list, &medium_list, &large_list); SizeFilterBlobs(min_height, max_height, &large_blobs, &noise_list, &small_list, &medium_list, &large_list); SizeFilterBlobs(min_height, max_height, &small_blobs, &noise_list, &small_list, &medium_list, &large_list); SizeFilterBlobs(min_height, max_height, &noise_blobs, &noise_list, &small_list, &medium_list, &large_list); BLOBNBOX_IT blob_it(&blobs); blob_it.add_list_after(&medium_list); blob_it.set_to_list(&large_blobs); blob_it.add_list_after(&large_list); blob_it.set_to_list(&small_blobs); blob_it.add_list_after(&small_list); blob_it.set_to_list(&noise_blobs); blob_it.add_list_after(&noise_list); } // Deletes noise blobs from all lists where not owned by a ColPartition. void TO_BLOCK::DeleteUnownedNoise() { BLOBNBOX::CleanNeighbours(&blobs); BLOBNBOX::CleanNeighbours(&small_blobs); BLOBNBOX::CleanNeighbours(&noise_blobs); BLOBNBOX::CleanNeighbours(&large_blobs); BLOBNBOX::DeleteNoiseBlobs(&blobs); BLOBNBOX::DeleteNoiseBlobs(&small_blobs); BLOBNBOX::DeleteNoiseBlobs(&noise_blobs); BLOBNBOX::DeleteNoiseBlobs(&large_blobs); } // Computes and stores the edge offsets on each blob for use in feature // extraction, using greyscale if the supplied grey and thresholds pixes // are 8-bit or otherwise (if NULL or not 8 bit) the original binary // edge step outlines. // Thresholds must either be the same size as grey or an integer down-scale // of grey. // See coutln.h for an explanation of edge offsets. void TO_BLOCK::ComputeEdgeOffsets(Pix* thresholds, Pix* grey) { BLOBNBOX::ComputeEdgeOffsets(thresholds, grey, &blobs); BLOBNBOX::ComputeEdgeOffsets(thresholds, grey, &small_blobs); BLOBNBOX::ComputeEdgeOffsets(thresholds, grey, &noise_blobs); } #ifndef GRAPHICS_DISABLED // Draw the noise blobs from all lists in red. void TO_BLOCK::plot_noise_blobs(ScrollView* win) { BLOBNBOX::PlotNoiseBlobs(&noise_blobs, ScrollView::RED, ScrollView::RED, win); BLOBNBOX::PlotNoiseBlobs(&small_blobs, ScrollView::RED, ScrollView::RED, win); BLOBNBOX::PlotNoiseBlobs(&large_blobs, ScrollView::RED, ScrollView::RED, win); BLOBNBOX::PlotNoiseBlobs(&blobs, ScrollView::RED, ScrollView::RED, win); } // Draw the blobs on the various lists in the block in different colors. void TO_BLOCK::plot_graded_blobs(ScrollView* win) { BLOBNBOX::PlotBlobs(&noise_blobs, ScrollView::CORAL, ScrollView::BLUE, win); BLOBNBOX::PlotBlobs(&small_blobs, ScrollView::GOLDENROD, ScrollView::YELLOW, win); BLOBNBOX::PlotBlobs(&large_blobs, ScrollView::DARK_GREEN, ScrollView::YELLOW, win); BLOBNBOX::PlotBlobs(&blobs, ScrollView::WHITE, ScrollView::BROWN, win); } /********************************************************************** * plot_blob_list * * Draw a list of blobs. **********************************************************************/ void plot_blob_list(ScrollView* win, // window to draw in BLOBNBOX_LIST *list, // blob list ScrollView::Color body_colour, // colour to draw ScrollView::Color child_colour) { // colour of child BLOBNBOX_IT it = list; for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { it.data()->plot(win, body_colour, child_colour); } } #endif // GRAPHICS_DISABLED
C++
/////////////////////////////////////////////////////////////////////// // File: blamer.h // Description: Module allowing precise error causes to be allocated. // Author: Rike Antonova // Refactored: Ray Smith // Created: Mon Feb 04 14:37:01 PST 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCSTRUCT_BLAMER_H_ #define TESSERACT_CCSTRUCT_BLAMER_H_ #include <stdio.h> #include "boxword.h" #include "genericvector.h" #include "matrix.h" #include "params_training_featdef.h" #include "ratngs.h" #include "strngs.h" #include "tesscallback.h" static const inT16 kBlamerBoxTolerance = 5; // Enum for expressing the source of error. // Note: Please update kIncorrectResultReasonNames when modifying this enum. enum IncorrectResultReason { // The text recorded in best choice == truth text IRR_CORRECT, // Either: Top choice is incorrect and is a dictionary word (language model // is unlikely to help correct such errors, so blame the classifier). // Or: the correct unichar was not included in shortlist produced by the // classifier at all. IRR_CLASSIFIER, // Chopper have not found one or more splits that correspond to the correct // character bounding boxes recorded in BlamerBundle::truth_word. IRR_CHOPPER, // Classifier did include correct unichars for each blob in the correct // segmentation, however its rating could have been too bad to allow the // language model to pull out the correct choice. On the other hand the // strength of the language model might have been too weak to favor the // correct answer, this we call this case a classifier-language model // tradeoff error. IRR_CLASS_LM_TRADEOFF, // Page layout failed to produce the correct bounding box. Blame page layout // if the truth was not found for the word, which implies that the bounding // box of the word was incorrect (no truth word had a similar bounding box). IRR_PAGE_LAYOUT, // SegSearch heuristic prevented one or more blobs from the correct // segmentation state to be classified (e.g. the blob was too wide). IRR_SEGSEARCH_HEUR, // The correct segmentaiton state was not explored because of poor SegSearch // pain point prioritization. We blame SegSearch pain point prioritization // if the best rating of a choice constructed from correct segmentation is // better than that of the best choice (i.e. if we got to explore the correct // segmentation state, language model would have picked the correct choice). IRR_SEGSEARCH_PP, // Same as IRR_CLASS_LM_TRADEOFF, but used when we only run chopper on a word, // and thus use the old language model (permuters). // TODO(antonova): integrate the new language mode with chopper IRR_CLASS_OLD_LM_TRADEOFF, // If there is an incorrect adaptive template match with a better score than // a correct one (either pre-trained or adapted), mark this as adaption error. IRR_ADAPTION, // split_and_recog_word() failed to find a suitable split in truth. IRR_NO_TRUTH_SPLIT, // Truth is not available for this word (e.g. when words in corrected content // file are turned into ~~~~ because an appropriate alignment was not found. IRR_NO_TRUTH, // The text recorded in best choice != truth text, but none of the above // reasons are set. IRR_UNKNOWN, IRR_NUM_REASONS }; // Blamer-related information to determine the source of errors. struct BlamerBundle { static const char *IncorrectReasonName(IncorrectResultReason irr); BlamerBundle() : truth_has_char_boxes_(false), incorrect_result_reason_(IRR_CORRECT), lattice_data_(NULL) { ClearResults(); } BlamerBundle(const BlamerBundle &other) { this->CopyTruth(other); this->CopyResults(other); } ~BlamerBundle() { delete[] lattice_data_; } // Accessors. STRING TruthString() const { STRING truth_str; for (int i = 0; i < truth_text_.length(); ++i) truth_str += truth_text_[i]; return truth_str; } IncorrectResultReason incorrect_result_reason() const { return incorrect_result_reason_; } bool NoTruth() const { return incorrect_result_reason_ == IRR_NO_TRUTH || incorrect_result_reason_ == IRR_PAGE_LAYOUT; } bool HasDebugInfo() const { return debug_.length() > 0 || misadaption_debug_.length() > 0; } const STRING& debug() const { return debug_; } const STRING& misadaption_debug() const { return misadaption_debug_; } void UpdateBestRating(float rating) { if (rating < best_correctly_segmented_rating_) best_correctly_segmented_rating_ = rating; } int correct_segmentation_length() const { return correct_segmentation_cols_.length(); } // Returns true if the given ratings matrix col,row position is included // in the correct segmentation path at the given index. bool MatrixPositionCorrect(int index, const MATRIX_COORD& coord) { return correct_segmentation_cols_[index] == coord.col && correct_segmentation_rows_[index] == coord.row; } void set_best_choice_is_dict_and_top_choice(bool value) { best_choice_is_dict_and_top_choice_ = value; } const char* lattice_data() const { return lattice_data_; } int lattice_size() const { return lattice_size_; // size of lattice_data in bytes } void set_lattice_data(const char* data, int size) { lattice_size_ = size; delete [] lattice_data_; lattice_data_ = new char[lattice_size_]; memcpy(lattice_data_, data, lattice_size_); } const tesseract::ParamsTrainingBundle& params_training_bundle() const { return params_training_bundle_; } // Adds a new ParamsTrainingHypothesis to the current hypothesis list. void AddHypothesis(const tesseract::ParamsTrainingHypothesis& hypo) { params_training_bundle_.AddHypothesis(hypo); } // Functions to setup the blamer. // Whole word string, whole word bounding box. void SetWordTruth(const UNICHARSET& unicharset, const char* truth_str, const TBOX& word_box); // Single "character" string, "character" bounding box. // May be called multiple times to indicate the characters in a word. void SetSymbolTruth(const UNICHARSET& unicharset, const char* char_str, const TBOX& char_box); // Marks that there is something wrong with the truth text, like it contains // reject characters. void SetRejectedTruth(); // Returns true if the provided word_choice is correct. bool ChoiceIsCorrect(const WERD_CHOICE* word_choice) const; void ClearResults() { norm_truth_word_.DeleteAllBoxes(); norm_box_tolerance_ = 0; if (!NoTruth()) incorrect_result_reason_ = IRR_CORRECT; debug_ = ""; segsearch_is_looking_for_blame_ = false; best_correctly_segmented_rating_ = WERD_CHOICE::kBadRating; correct_segmentation_cols_.clear(); correct_segmentation_rows_.clear(); best_choice_is_dict_and_top_choice_ = false; delete[] lattice_data_; lattice_data_ = NULL; lattice_size_ = 0; } void CopyTruth(const BlamerBundle &other) { truth_has_char_boxes_ = other.truth_has_char_boxes_; truth_word_ = other.truth_word_; truth_text_ = other.truth_text_; incorrect_result_reason_ = (other.NoTruth() ? other.incorrect_result_reason_ : IRR_CORRECT); } void CopyResults(const BlamerBundle &other) { norm_truth_word_ = other.norm_truth_word_; norm_box_tolerance_ = other.norm_box_tolerance_; incorrect_result_reason_ = other.incorrect_result_reason_; segsearch_is_looking_for_blame_ = other.segsearch_is_looking_for_blame_; best_correctly_segmented_rating_ = other.best_correctly_segmented_rating_; correct_segmentation_cols_ = other.correct_segmentation_cols_; correct_segmentation_rows_ = other.correct_segmentation_rows_; best_choice_is_dict_and_top_choice_ = other.best_choice_is_dict_and_top_choice_; if (other.lattice_data_ != NULL) { lattice_data_ = new char[other.lattice_size_]; memcpy(lattice_data_, other.lattice_data_, other.lattice_size_); lattice_size_ = other.lattice_size_; } else { lattice_data_ = NULL; } } const char *IncorrectReason() const; // Appends choice and truth details to the given debug string. void FillDebugString(const STRING &msg, const WERD_CHOICE *choice, STRING *debug); // Sets up the norm_truth_word from truth_word using the given DENORM. void SetupNormTruthWord(const DENORM& denorm); // Splits *this into two pieces in bundle1 and bundle2 (preallocated, empty // bundles) where the right edge/ of the left-hand word is word1_right, // and the left edge of the right-hand word is word2_left. void SplitBundle(int word1_right, int word2_left, bool debug, BlamerBundle* bundle1, BlamerBundle* bundle2) const; // "Joins" the blames from bundle1 and bundle2 into *this. void JoinBlames(const BlamerBundle& bundle1, const BlamerBundle& bundle2, bool debug); // If a blob with the same bounding box as one of the truth character // bounding boxes is not classified as the corresponding truth character // blames character classifier for incorrect answer. void BlameClassifier(const UNICHARSET& unicharset, const TBOX& blob_box, const BLOB_CHOICE_LIST& choices, bool debug); // Checks whether chops were made at all the character bounding box // boundaries in word->truth_word. If not - blames the chopper for an // incorrect answer. void SetChopperBlame(const WERD_RES* word, bool debug); // Blames the classifier or the language model if, after running only the // chopper, best_choice is incorrect and no blame has been yet set. // Blames the classifier if best_choice is classifier's top choice and is a // dictionary word (i.e. language model could not have helped). // Otherwise, blames the language model (formerly permuter word adjustment). void BlameClassifierOrLangModel( const WERD_RES* word, const UNICHARSET& unicharset, bool valid_permuter, bool debug); // Sets up the correct_segmentation_* to mark the correct bounding boxes. void SetupCorrectSegmentation(const TWERD* word, bool debug); // Returns true if a guided segmentation search is needed. bool GuidedSegsearchNeeded(const WERD_CHOICE *best_choice) const; // Setup ready to guide the segmentation search to the correct segmentation. // The callback pp_cb is used to avoid a cyclic dependency. // It calls into LMPainPoints::GenerateForBlamer by pre-binding the // WERD_RES, and the LMPainPoints itself. // pp_cb must be a permanent callback, and should be deleted by the caller. void InitForSegSearch(const WERD_CHOICE *best_choice, MATRIX* ratings, UNICHAR_ID wildcard_id, bool debug, STRING *debug_str, TessResultCallback2<bool, int, int>* pp_cb); // Returns true if the guided segsearch is in progress. bool GuidedSegsearchStillGoing() const; // The segmentation search has ended. Sets the blame appropriately. void FinishSegSearch(const WERD_CHOICE *best_choice, bool debug, STRING *debug_str); // If the bundle is null or still does not indicate the correct result, // fix it and use some backup reason for the blame. static void LastChanceBlame(bool debug, WERD_RES* word); // Sets the misadaption debug if this word is incorrect, as this word is // being adapted to. void SetMisAdaptionDebug(const WERD_CHOICE *best_choice, bool debug); private: void SetBlame(IncorrectResultReason irr, const STRING &msg, const WERD_CHOICE *choice, bool debug) { incorrect_result_reason_ = irr; debug_ = IncorrectReason(); debug_ += " to blame: "; FillDebugString(msg, choice, &debug_); if (debug) tprintf("SetBlame(): %s", debug_.string()); } private: // Set to true when bounding boxes for individual unichars are recorded. bool truth_has_char_boxes_; // The true_word (in the original image coordinate space) contains ground // truth bounding boxes for this WERD_RES. tesseract::BoxWord truth_word_; // Same as above, but in normalized coordinates // (filled in by WERD_RES::SetupForRecognition()). tesseract::BoxWord norm_truth_word_; // Tolerance for bounding box comparisons in normalized space. int norm_box_tolerance_; // Contains ground truth unichar for each of the bounding boxes in truth_word. GenericVector<STRING> truth_text_; // The reason for incorrect OCR result. IncorrectResultReason incorrect_result_reason_; // Debug text associated with the blame. STRING debug_; // Misadaption debug information (filled in if this word was misadapted to). STRING misadaption_debug_; // Variables used by the segmentation search when looking for the blame. // Set to true while segmentation search is continued after the usual // termination condition in order to look for the blame. bool segsearch_is_looking_for_blame_; // Best rating for correctly segmented path // (set and used by SegSearch when looking for blame). float best_correctly_segmented_rating_; // Vectors populated by SegSearch to indicate column and row indices that // correspond to blobs with correct bounding boxes. GenericVector<int> correct_segmentation_cols_; GenericVector<int> correct_segmentation_rows_; // Set to true if best choice is a dictionary word and // classifier's top choice. bool best_choice_is_dict_and_top_choice_; // Serialized segmentation search lattice. char *lattice_data_; int lattice_size_; // size of lattice_data in bytes // Information about hypotheses (paths) explored by the segmentation search. tesseract::ParamsTrainingBundle params_training_bundle_; }; #endif // TESSERACT_CCSTRUCT_BLAMER_H_
C++
/********************************************************************** * File: elst2.h (Formerly elist2.h) * Description: Double linked embedded list module include file. * Author: Phil Cheatle * Created: Wed Jan 23 11:04:47 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef ELST2_H #define ELST2_H #include <stdio.h> #include "host.h" #include "serialis.h" #include "lsterr.h" class ELIST2_ITERATOR; /********************************************************************** DESIGN NOTE =========== It would probably be possible to implement the ELIST2 classes as derived classes from ELIST. I haven't done this because: a) I think it would be harder to understand the code (Though the problem with not inheriting is that changes to ELIST must be reflected in ELIST2 and vice versa) b) Most of the code is inline so: i) The duplication in source does not affect the run time code size - the code is copied inline anyway! ii) The compiler should have a bit less work to do! **********************************************************************/ /********************************************************************** * CLASS - ELIST2_LINK * * Generic link class for doubly linked lists with embedded links * * Note: No destructor - elements are assumed to be destroyed EITHER after * they have been extracted from a list OR by the ELIST2 destructor which * walks the list. **********************************************************************/ class DLLSYM ELIST2_LINK { friend class ELIST2_ITERATOR; friend class ELIST2; ELIST2_LINK *prev; ELIST2_LINK *next; public: ELIST2_LINK() { //constructor prev = next = NULL; } ELIST2_LINK( //copy constructor const ELIST2_LINK &) { //dont copy link prev = next = NULL; } void operator= ( //dont copy links const ELIST2_LINK &) { prev = next = NULL; } }; /********************************************************************** * CLASS - ELIST2 * * Generic list class for doubly linked lists with embedded links **********************************************************************/ class DLLSYM ELIST2 { friend class ELIST2_ITERATOR; ELIST2_LINK *last; //End of list //(Points to head) ELIST2_LINK *First() { // return first return last ? last->next : NULL; } public: ELIST2() { //constructor last = NULL; } void internal_clear ( //destroy all links void (*zapper) (ELIST2_LINK *)); //ptr to zapper functn bool empty() const { //is list empty? return !last; } bool singleton() const { return last ? (last == last->next) : false; } void shallow_copy( //dangerous!! ELIST2 *from_list) { //beware destructors!! last = from_list->last; } //ptr to copier functn void internal_deep_copy (ELIST2_LINK * (*copier) (ELIST2_LINK *), const ELIST2 * list); //list being copied void assign_to_sublist( //to this list ELIST2_ITERATOR *start_it, //from list start ELIST2_ITERATOR *end_it); //from list end inT32 length() const; // # elements in list void sort ( //sort elements int comparator ( //comparison routine const void *, const void *)); // Assuming list has been sorted already, insert new_link to // keep the list sorted according to the same comparison function. // Comparision function is the same as used by sort, i.e. uses double // indirection. Time is O(1) to add to beginning or end. // Time is linear to add pre-sorted items to an empty list. void add_sorted(int comparator(const void*, const void*), ELIST2_LINK* new_link); }; /*********************************************************************** * CLASS - ELIST2_ITERATOR * * Generic iterator class for doubly linked lists with embedded links **********************************************************************/ class DLLSYM ELIST2_ITERATOR { friend void ELIST2::assign_to_sublist(ELIST2_ITERATOR *, ELIST2_ITERATOR *); ELIST2 *list; //List being iterated ELIST2_LINK *prev; //prev element ELIST2_LINK *current; //current element ELIST2_LINK *next; //next element BOOL8 ex_current_was_last; //current extracted //was end of list BOOL8 ex_current_was_cycle_pt; //current extracted //was cycle point ELIST2_LINK *cycle_pt; //point we are cycling //the list to. BOOL8 started_cycling; //Have we moved off //the start? ELIST2_LINK *extract_sublist( //from this current... ELIST2_ITERATOR *other_it); //to other current public: ELIST2_ITERATOR() { //constructor list = NULL; } //unassigned list ELIST2_ITERATOR( //constructor ELIST2 *list_to_iterate); void set_to_list( //change list ELIST2 *list_to_iterate); void add_after_then_move( //add after current & ELIST2_LINK *new_link); //move to new void add_after_stay_put( //add after current & ELIST2_LINK *new_link); //stay at current void add_before_then_move( //add before current & ELIST2_LINK *new_link); //move to new void add_before_stay_put( //add before current & ELIST2_LINK *new_link); //stay at current void add_list_after( //add a list & ELIST2 *list_to_add); //stay at current void add_list_before( //add a list & ELIST2 *list_to_add); //move to it 1st item ELIST2_LINK *data() { //get current data #ifndef NDEBUG if (!current) NULL_DATA.error ("ELIST2_ITERATOR::data", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::data", ABORT, NULL); #endif return current; } ELIST2_LINK *data_relative( //get data + or - ... inT8 offset); //offset from current ELIST2_LINK *forward(); //move to next element ELIST2_LINK *backward(); //move to prev element ELIST2_LINK *extract(); //remove from list //go to start of list ELIST2_LINK *move_to_first(); ELIST2_LINK *move_to_last(); //go to end of list void mark_cycle_pt(); //remember current BOOL8 empty() { //is list empty? #ifndef NDEBUG if (!list) NO_LIST.error ("ELIST2_ITERATOR::empty", ABORT, NULL); #endif return list->empty (); } BOOL8 current_extracted() { //current extracted? return !current; } BOOL8 at_first(); //Current is first? BOOL8 at_last(); //Current is last? BOOL8 cycled_list(); //Completed a cycle? void add_to_end( //add at end & ELIST2_LINK *new_link); //dont move void exchange( //positions of 2 links ELIST2_ITERATOR *other_it); //other iterator inT32 length(); //# elements in list void sort ( //sort elements int comparator ( //comparison routine const void *, const void *)); }; /*********************************************************************** * ELIST2_ITERATOR::set_to_list * * (Re-)initialise the iterator to point to the start of the list_to_iterate * over. **********************************************************************/ inline void ELIST2_ITERATOR::set_to_list( //change list ELIST2 *list_to_iterate) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::set_to_list", ABORT, NULL); if (!list_to_iterate) BAD_PARAMETER.error ("ELIST2_ITERATOR::set_to_list", ABORT, "list_to_iterate is NULL"); #endif list = list_to_iterate; prev = list->last; current = list->First (); next = current ? current->next : NULL; cycle_pt = NULL; //await explicit set started_cycling = FALSE; ex_current_was_last = FALSE; ex_current_was_cycle_pt = FALSE; } /*********************************************************************** * ELIST2_ITERATOR::ELIST2_ITERATOR * * CONSTRUCTOR - set iterator to specified list; **********************************************************************/ inline ELIST2_ITERATOR::ELIST2_ITERATOR(ELIST2 *list_to_iterate) { set_to_list(list_to_iterate); } /*********************************************************************** * ELIST2_ITERATOR::add_after_then_move * * Add a new element to the list after the current element and move the * iterator to the new element. **********************************************************************/ inline void ELIST2_ITERATOR::add_after_then_move( // element to add ELIST2_LINK *new_element) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_after_then_move", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_after_then_move", ABORT, NULL); if (!new_element) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_after_then_move", ABORT, "new_element is NULL"); if (new_element->next) STILL_LINKED.error ("ELIST2_ITERATOR::add_after_then_move", ABORT, NULL); #endif if (list->empty ()) { new_element->next = new_element; new_element->prev = new_element; list->last = new_element; prev = next = new_element; } else { new_element->next = next; next->prev = new_element; if (current) { //not extracted new_element->prev = current; current->next = new_element; prev = current; if (current == list->last) list->last = new_element; } else { //current extracted new_element->prev = prev; prev->next = new_element; if (ex_current_was_last) list->last = new_element; if (ex_current_was_cycle_pt) cycle_pt = new_element; } } current = new_element; } /*********************************************************************** * ELIST2_ITERATOR::add_after_stay_put * * Add a new element to the list after the current element but do not move * the iterator to the new element. **********************************************************************/ inline void ELIST2_ITERATOR::add_after_stay_put( // element to add ELIST2_LINK *new_element) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_after_stay_put", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_after_stay_put", ABORT, NULL); if (!new_element) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_after_stay_put", ABORT, "new_element is NULL"); if (new_element->next) STILL_LINKED.error ("ELIST2_ITERATOR::add_after_stay_put", ABORT, NULL); #endif if (list->empty ()) { new_element->next = new_element; new_element->prev = new_element; list->last = new_element; prev = next = new_element; ex_current_was_last = FALSE; current = NULL; } else { new_element->next = next; next->prev = new_element; if (current) { //not extracted new_element->prev = current; current->next = new_element; if (prev == current) prev = new_element; if (current == list->last) list->last = new_element; } else { //current extracted new_element->prev = prev; prev->next = new_element; if (ex_current_was_last) { list->last = new_element; ex_current_was_last = FALSE; } } next = new_element; } } /*********************************************************************** * ELIST2_ITERATOR::add_before_then_move * * Add a new element to the list before the current element and move the * iterator to the new element. **********************************************************************/ inline void ELIST2_ITERATOR::add_before_then_move( // element to add ELIST2_LINK *new_element) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_before_then_move", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_before_then_move", ABORT, NULL); if (!new_element) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_before_then_move", ABORT, "new_element is NULL"); if (new_element->next) STILL_LINKED.error ("ELIST2_ITERATOR::add_before_then_move", ABORT, NULL); #endif if (list->empty ()) { new_element->next = new_element; new_element->prev = new_element; list->last = new_element; prev = next = new_element; } else { prev->next = new_element; new_element->prev = prev; if (current) { //not extracted new_element->next = current; current->prev = new_element; next = current; } else { //current extracted new_element->next = next; next->prev = new_element; if (ex_current_was_last) list->last = new_element; if (ex_current_was_cycle_pt) cycle_pt = new_element; } } current = new_element; } /*********************************************************************** * ELIST2_ITERATOR::add_before_stay_put * * Add a new element to the list before the current element but dont move the * iterator to the new element. **********************************************************************/ inline void ELIST2_ITERATOR::add_before_stay_put( // element to add ELIST2_LINK *new_element) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_before_stay_put", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_before_stay_put", ABORT, NULL); if (!new_element) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_before_stay_put", ABORT, "new_element is NULL"); if (new_element->next) STILL_LINKED.error ("ELIST2_ITERATOR::add_before_stay_put", ABORT, NULL); #endif if (list->empty ()) { new_element->next = new_element; new_element->prev = new_element; list->last = new_element; prev = next = new_element; ex_current_was_last = TRUE; current = NULL; } else { prev->next = new_element; new_element->prev = prev; if (current) { //not extracted new_element->next = current; current->prev = new_element; if (next == current) next = new_element; } else { //current extracted new_element->next = next; next->prev = new_element; if (ex_current_was_last) list->last = new_element; } prev = new_element; } } /*********************************************************************** * ELIST2_ITERATOR::add_list_after * * Insert another list to this list after the current element but dont move the * iterator. **********************************************************************/ inline void ELIST2_ITERATOR::add_list_after(ELIST2 *list_to_add) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_list_after", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_list_after", ABORT, NULL); if (!list_to_add) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_list_after", ABORT, "list_to_add is NULL"); #endif if (!list_to_add->empty ()) { if (list->empty ()) { list->last = list_to_add->last; prev = list->last; next = list->First (); ex_current_was_last = TRUE; current = NULL; } else { if (current) { //not extracted current->next = list_to_add->First (); current->next->prev = current; if (current == list->last) list->last = list_to_add->last; list_to_add->last->next = next; next->prev = list_to_add->last; next = current->next; } else { //current extracted prev->next = list_to_add->First (); prev->next->prev = prev; if (ex_current_was_last) { list->last = list_to_add->last; ex_current_was_last = FALSE; } list_to_add->last->next = next; next->prev = list_to_add->last; next = prev->next; } } list_to_add->last = NULL; } } /*********************************************************************** * ELIST2_ITERATOR::add_list_before * * Insert another list to this list before the current element. Move the * iterator to the start of the inserted elements * iterator. **********************************************************************/ inline void ELIST2_ITERATOR::add_list_before(ELIST2 *list_to_add) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_list_before", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_list_before", ABORT, NULL); if (!list_to_add) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_list_before", ABORT, "list_to_add is NULL"); #endif if (!list_to_add->empty ()) { if (list->empty ()) { list->last = list_to_add->last; prev = list->last; current = list->First (); next = current->next; ex_current_was_last = FALSE; } else { prev->next = list_to_add->First (); prev->next->prev = prev; if (current) { //not extracted list_to_add->last->next = current; current->prev = list_to_add->last; } else { //current extracted list_to_add->last->next = next; next->prev = list_to_add->last; if (ex_current_was_last) list->last = list_to_add->last; if (ex_current_was_cycle_pt) cycle_pt = prev->next; } current = prev->next; next = current->next; } list_to_add->last = NULL; } } /*********************************************************************** * ELIST2_ITERATOR::extract * * Do extraction by removing current from the list, returning it to the * caller, but NOT updating the iterator. (So that any calling loop can do * this.) The iterator's current points to NULL. If the extracted element * is to be deleted, this is the callers responsibility. **********************************************************************/ inline ELIST2_LINK *ELIST2_ITERATOR::extract() { ELIST2_LINK *extracted_link; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::extract", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::extract", ABORT, NULL); if (!current) //list empty or //element extracted NULL_CURRENT.error ("ELIST2_ITERATOR::extract", ABORT, NULL); #endif if (list->singleton()) { // Special case where we do need to change the iterator. prev = next = list->last = NULL; } else { prev->next = next; //remove from list next->prev = prev; if (current == list->last) { list->last = prev; ex_current_was_last = TRUE; } else { ex_current_was_last = FALSE; } } // Always set ex_current_was_cycle_pt so an add/forward will work in a loop. ex_current_was_cycle_pt = (current == cycle_pt) ? TRUE : FALSE; extracted_link = current; extracted_link->next = NULL; //for safety extracted_link->prev = NULL; //for safety current = NULL; return extracted_link; } /*********************************************************************** * ELIST2_ITERATOR::move_to_first() * * Move current so that it is set to the start of the list. * Return data just in case anyone wants it. **********************************************************************/ inline ELIST2_LINK *ELIST2_ITERATOR::move_to_first() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::move_to_first", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::move_to_first", ABORT, NULL); #endif current = list->First (); prev = list->last; next = current ? current->next : NULL; return current; } /*********************************************************************** * ELIST2_ITERATOR::move_to_last() * * Move current so that it is set to the end of the list. * Return data just in case anyone wants it. **********************************************************************/ inline ELIST2_LINK *ELIST2_ITERATOR::move_to_last() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::move_to_last", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::move_to_last", ABORT, NULL); #endif current = list->last; prev = current ? current->prev : NULL; next = current ? current->next : NULL; return current; } /*********************************************************************** * ELIST2_ITERATOR::mark_cycle_pt() * * Remember the current location so that we can tell whether we've returned * to this point later. * * If the current point is deleted either now, or in the future, the cycle * point will be set to the next item which is set to current. This could be * by a forward, add_after_then_move or add_after_then_move. **********************************************************************/ inline void ELIST2_ITERATOR::mark_cycle_pt() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::mark_cycle_pt", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::mark_cycle_pt", ABORT, NULL); #endif if (current) cycle_pt = current; else ex_current_was_cycle_pt = TRUE; started_cycling = FALSE; } /*********************************************************************** * ELIST2_ITERATOR::at_first() * * Are we at the start of the list? * **********************************************************************/ inline BOOL8 ELIST2_ITERATOR::at_first() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::at_first", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::at_first", ABORT, NULL); #endif //we're at a deleted return ((list->empty ()) || (current == list->First ()) || ((current == NULL) && (prev == list->last) && //NON-last pt between !ex_current_was_last)); //first and last } /*********************************************************************** * ELIST2_ITERATOR::at_last() * * Are we at the end of the list? * **********************************************************************/ inline BOOL8 ELIST2_ITERATOR::at_last() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::at_last", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::at_last", ABORT, NULL); #endif //we're at a deleted return ((list->empty ()) || (current == list->last) || ((current == NULL) && (prev == list->last) && //last point between ex_current_was_last)); //first and last } /*********************************************************************** * ELIST2_ITERATOR::cycled_list() * * Have we returned to the cycle_pt since it was set? * **********************************************************************/ inline BOOL8 ELIST2_ITERATOR::cycled_list() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::cycled_list", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::cycled_list", ABORT, NULL); #endif return ((list->empty ()) || ((current == cycle_pt) && started_cycling)); } /*********************************************************************** * ELIST2_ITERATOR::length() * * Return the length of the list * **********************************************************************/ inline inT32 ELIST2_ITERATOR::length() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::length", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::length", ABORT, NULL); #endif return list->length (); } /*********************************************************************** * ELIST2_ITERATOR::sort() * * Sort the elements of the list, then reposition at the start. * **********************************************************************/ inline void ELIST2_ITERATOR::sort ( //sort elements int comparator ( //comparison routine const void *, const void *)) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::sort", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::sort", ABORT, NULL); #endif list->sort (comparator); move_to_first(); } /*********************************************************************** * ELIST2_ITERATOR::add_to_end * * Add a new element to the end of the list without moving the iterator. * This is provided because a single linked list cannot move to the last as * the iterator couldn't set its prev pointer. Adding to the end is * essential for implementing queues. **********************************************************************/ inline void ELIST2_ITERATOR::add_to_end( // element to add ELIST2_LINK *new_element) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST2_ITERATOR::add_to_end", ABORT, NULL); if (!list) NO_LIST.error ("ELIST2_ITERATOR::add_to_end", ABORT, NULL); if (!new_element) BAD_PARAMETER.error ("ELIST2_ITERATOR::add_to_end", ABORT, "new_element is NULL"); if (new_element->next) STILL_LINKED.error ("ELIST2_ITERATOR::add_to_end", ABORT, NULL); #endif if (this->at_last ()) { this->add_after_stay_put (new_element); } else { if (this->at_first ()) { this->add_before_stay_put (new_element); list->last = new_element; } else { //Iteratr is elsewhere new_element->next = list->last->next; new_element->prev = list->last; list->last->next->prev = new_element; list->last->next = new_element; list->last = new_element; } } } /*********************************************************************** QUOTE_IT MACRO DEFINITION =========================== Replace <parm> with "<parm>". <parm> may be an arbitrary number of tokens ***********************************************************************/ #define QUOTE_IT( parm ) #parm /*********************************************************************** ELIST2IZE( CLASSNAME ) MACRO DEFINITION ====================================== CLASSNAME is assumed to be the name of a class which has a baseclass of ELIST2_LINK. NOTE: Because we dont use virtual functions in the list code, the list code will NOT work correctly for classes derived from this. The macro generates: - An element deletion function: CLASSNAME##_zapper - An E_LIST2 subclass: CLASSNAME##_LIST - An E_LIST2_ITERATOR subclass: CLASSNAME##_IT NOTE: Generated names are DELIBERATELY designed to clash with those for ELISTIZE but NOT with those for CLISTIZE and CLIST2IZE Two macros are provided: ELIST2IZE and ELIST2IZEH The ...IZEH macros just define the class names for use in .h files The ...IZE macros define the code use in .c files ***********************************************************************/ /*********************************************************************** ELIST2IZEH( CLASSNAME ) MACRO ELIST2IZEH is a concatenation of 3 fragments ELIST2IZEH_A, ELIST2IZEH_B and ELIST2IZEH_C. ***********************************************************************/ #define ELIST2IZEH_A( CLASSNAME ) \ \ extern DLLSYM void CLASSNAME##_zapper( /*delete a link*/ \ ELIST2_LINK* link); /*link to delete*/ #define ELIST2IZEH_B( CLASSNAME ) \ \ /*********************************************************************** \ * CLASS - CLASSNAME##_LIST \ * \ * List class for class CLASSNAME \ * \ **********************************************************************/ \ \ class DLLSYM CLASSNAME##_LIST : public ELIST2 \ { \ public: \ CLASSNAME##_LIST():ELIST2() {} \ /* constructor */ \ \ CLASSNAME##_LIST( /* dont construct */ \ const CLASSNAME##_LIST&) /*by initial assign*/\ { DONT_CONSTRUCT_LIST_BY_COPY.error( QUOTE_IT( CLASSNAME##_LIST ), \ ABORT, NULL ); } \ \ void clear() /* delete elements */\ { ELIST2::internal_clear( &CLASSNAME##_zapper ); } \ \ ~CLASSNAME##_LIST() /* destructor */ \ { clear(); } \ \ /* Become a deep copy of src_list*/ \ void deep_copy(const CLASSNAME##_LIST* src_list, \ CLASSNAME* (*copier)(const CLASSNAME*)); \ \ void operator=( /* prevent assign */ \ const CLASSNAME##_LIST&) \ { DONT_ASSIGN_LISTS.error( QUOTE_IT( CLASSNAME##_LIST ), \ ABORT, NULL ); } #define ELIST2IZEH_C( CLASSNAME ) \ }; \ \ \ \ /*********************************************************************** \ * CLASS - CLASSNAME##_IT \ * \ * Iterator class for class CLASSNAME##_LIST \ * \ * Note: We don't need to coerce pointers to member functions input \ * parameters as these are automatically converted to the type of the base \ * type. ("A ptr to a class may be converted to a pointer to a public base \ * class of that class") \ **********************************************************************/ \ \ class DLLSYM CLASSNAME##_IT : public ELIST2_ITERATOR \ { \ public: \ CLASSNAME##_IT():ELIST2_ITERATOR(){} \ \ CLASSNAME##_IT( \ CLASSNAME##_LIST* list):ELIST2_ITERATOR(list){} \ \ CLASSNAME* data() \ { return (CLASSNAME*) ELIST2_ITERATOR::data(); } \ \ CLASSNAME* data_relative( \ inT8 offset) \ { return (CLASSNAME*) ELIST2_ITERATOR::data_relative( offset ); } \ \ CLASSNAME* forward() \ { return (CLASSNAME*) ELIST2_ITERATOR::forward(); } \ \ CLASSNAME* backward() \ { return (CLASSNAME*) ELIST2_ITERATOR::backward(); } \ \ CLASSNAME* extract() \ { return (CLASSNAME*) ELIST2_ITERATOR::extract(); } \ \ CLASSNAME* move_to_first() \ { return (CLASSNAME*) ELIST2_ITERATOR::move_to_first(); } \ \ CLASSNAME* move_to_last() \ { return (CLASSNAME*) ELIST2_ITERATOR::move_to_last(); } \ }; #define ELIST2IZEH( CLASSNAME ) \ \ ELIST2IZEH_A( CLASSNAME ) \ \ ELIST2IZEH_B( CLASSNAME ) \ \ ELIST2IZEH_C( CLASSNAME ) /*********************************************************************** ELIST2IZE( CLASSNAME ) MACRO ***********************************************************************/ #define ELIST2IZE( CLASSNAME ) \ \ /*********************************************************************** \ * CLASSNAME##_zapper \ * \ * A function which can delete a CLASSNAME element. This is passed to the \ * generic clear list member function so that when a list is cleared the \ * elements on the list are properly destroyed from the base class, even \ * though we dont use a virtual destructor function. \ **********************************************************************/ \ \ DLLSYM void CLASSNAME##_zapper( /*delete a link*/ \ ELIST2_LINK* link) /*link to delete*/ \ { \ delete (CLASSNAME *) link; \ } \ \ /* Become a deep copy of src_list*/ \ void CLASSNAME##_LIST::deep_copy(const CLASSNAME##_LIST* src_list, \ CLASSNAME* (*copier)(const CLASSNAME*)) { \ \ CLASSNAME##_IT from_it(const_cast<CLASSNAME##_LIST*>(src_list)); \ CLASSNAME##_IT to_it(this); \ \ for (from_it.mark_cycle_pt(); !from_it.cycled_list(); from_it.forward()) \ to_it.add_after_then_move((*copier)(from_it.data())); \ } #endif
C++
// Copyright 2008 Google Inc. All Rights Reserved. // Author: scharron@google.com (Samuel Charron) #include "ccutil.h" namespace tesseract { CCUtil::CCUtil() : params_(), STRING_INIT_MEMBER(m_data_sub_dir, "tessdata/", "Directory for data files", &params_), #ifdef _WIN32 STRING_INIT_MEMBER(tessedit_module_name, WINDLLNAME, "Module colocated with tessdata dir", &params_), #endif INT_INIT_MEMBER(ambigs_debug_level, 0, "Debug level for unichar ambiguities", &params_), BOOL_MEMBER(use_definite_ambigs_for_classifier, 0, "Use definite" " ambiguities when running character classifier", &params_), BOOL_MEMBER(use_ambigs_for_adaption, 0, "Use ambigs for deciding" " whether to adapt to a character", &params_) { } CCUtil::~CCUtil() { } CCUtilMutex::CCUtilMutex() { #ifdef _WIN32 mutex_ = CreateMutex(0, FALSE, 0); #else pthread_mutex_init(&mutex_, NULL); #endif } void CCUtilMutex::Lock() { #ifdef _WIN32 WaitForSingleObject(mutex_, INFINITE); #else pthread_mutex_lock(&mutex_); #endif } void CCUtilMutex::Unlock() { #ifdef _WIN32 ReleaseMutex(mutex_); #else pthread_mutex_unlock(&mutex_); #endif } CCUtilMutex tprintfMutex; // should remain global } // namespace tesseract
C++
/********************************************************************** * File: mainblk.c (Formerly main.c) * Description: Function to call from main() to setup. * Author: Ray Smith * Created: Tue Oct 22 11:09:40 BST 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "fileerr.h" #ifdef __UNIX__ #include <unistd.h> #include <signal.h> #else #include <io.h> #endif #include <stdlib.h> #include "ccutil.h" #define VARDIR "configs/" /**< variables files */ #define EXTERN const ERRCODE NO_PATH = "Warning:explicit path for executable will not be used for configs"; static const ERRCODE USAGE = "Usage"; namespace tesseract { /********************************************************************** * main_setup * * Main for mithras demo program. Read the arguments and set up globals. **********************************************************************/ /** * @brief CCUtil::main_setup - set location of tessdata and name of image * * @param argv0 - paths to the directory with language files and config files. * An actual value of argv0 is used if not NULL, otherwise TESSDATA_PREFIX is * used if not NULL, next try to use compiled in -DTESSDATA_PREFIX. If previous * is not sucessul - use current directory. * @param basename - name of image */ void CCUtil::main_setup(const char *argv0, const char *basename) { imagebasename = basename; /**< name of image */ if (argv0 != NULL) { datadir = argv0; } else { if (getenv("TESSDATA_PREFIX")) { datadir = getenv("TESSDATA_PREFIX"); } else { #ifdef TESSDATA_PREFIX #define _STR(a) #a #define _XSTR(a) _STR(a) datadir = _XSTR(TESSDATA_PREFIX); #undef _XSTR #undef _STR #endif } } // datadir may still be empty: if (datadir.length() == 0) { datadir = "./"; } else { // Remove tessdata from the end if present, as we will add it back! int length = datadir.length(); if (length >= 8 && strcmp(&datadir[length - 8], "tessdata") == 0) datadir.truncate_at(length - 8); else if (length >= 9 && strcmp(&datadir[length - 9], "tessdata/") == 0) datadir.truncate_at(length - 9); } // check for missing directory separator const char *lastchar = datadir.string(); lastchar += datadir.length() - 1; if ((strcmp(lastchar, "/") != 0) && (strcmp(lastchar, "\\") != 0)) datadir += "/"; datadir += m_data_sub_dir; /**< data directory */ } } // namespace tesseract
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: bitvector.h // Description: Class replacement for BITVECTOR. // Author: Ray Smith // Created: Mon Jan 10 17:44:01 PST 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_BITVECTOR_H__ #define TESSERACT_CCUTIL_BITVECTOR_H__ #include <assert.h> #include <stdio.h> #include "host.h" namespace tesseract { // Trivial class to encapsulate a fixed-length array of bits, with // Serialize/DeSerialize. Replaces the old macros. class BitVector { public: // Fast lookup table to get the first least significant set bit in a byte. // For zero, the table has 255, but since it is a special case, most code // that uses this table will check for zero before looking up lsb_index_. static const uinT8 lsb_index_[256]; // Fast lookup table to get the residual bits after zeroing the least // significant set bit in a byte. static const uinT8 lsb_eroded_[256]; // Fast lookup table to give the number of set bits in a byte. static const int hamming_table_[256]; BitVector(); // Initializes the array to length * false. explicit BitVector(int length); BitVector(const BitVector& src); BitVector& operator=(const BitVector& src); ~BitVector(); // Initializes the array to length * false. void Init(int length); // Returns the number of bits that are accessible in the vector. int size() const { return bit_size_; } // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); void SetAllFalse(); void SetAllTrue(); // Accessors to set/reset/get bits. // The range of index is [0, size()-1]. // There is debug-only bounds checking. void SetBit(int index) { array_[WordIndex(index)] |= BitMask(index); } void ResetBit(int index) { array_[WordIndex(index)] &= ~BitMask(index); } void SetValue(int index, bool value) { if (value) SetBit(index); else ResetBit(index); } bool At(int index) const { return (array_[WordIndex(index)] & BitMask(index)) != 0; } bool operator[](int index) const { return (array_[WordIndex(index)] & BitMask(index)) != 0; } // Returns the index of the next set bit after the given index. // Useful for quickly iterating through the set bits in a sparse vector. int NextSetBit(int prev_bit) const; // Returns the number of set bits in the vector. int NumSetBits() const; // Logical in-place operations on whole bit vectors. Tries to do something // sensible if they aren't the same size, but they should be really. void operator|=(const BitVector& other); void operator&=(const BitVector& other); void operator^=(const BitVector& other); // Set subtraction *this = v1 - v2. void SetSubtract(const BitVector& v1, const BitVector& v2); private: // Allocates memory for a vector of the given length. void Alloc(int length); // Computes the index to array_ for the given index, with debug range // checking. int WordIndex(int index) const { assert(0 <= index && index < bit_size_); return index / kBitFactor; } // Returns a mask to select the appropriate bit for the given index. uinT32 BitMask(int index) const { return 1 << (index & (kBitFactor - 1)); } // Returns the number of array elements needed to represent the current // bit_size_. int WordLength() const { return (bit_size_ + kBitFactor - 1) / kBitFactor; } // Returns the number of bytes consumed by the array_. int ByteLength() const { return WordLength() * sizeof(*array_); } // Number of bits in this BitVector. inT32 bit_size_; // Array of words used to pack the bits. // Bits are stored little-endian by uinT32 word, ie by word first and then // starting with the least significant bit in each word. uinT32* array_; // Number of bits in an array_ element. static const int kBitFactor = sizeof(uinT32) * 8; }; } // namespace tesseract. #endif // TESSERACT_CCUTIL_BITVECTOR_H__
C++
/////////////////////////////////////////////////////////////////////// // File: unichar.h // Description: Unicode character/ligature class. // Author: Ray Smith // Created: Wed Jun 28 17:05:01 PDT 2006 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_UNICHAR_H__ #define TESSERACT_CCUTIL_UNICHAR_H__ #include <memory.h> #include <string.h> template <typename T> class GenericVector; // Maximum number of characters that can be stored in a UNICHAR. Must be // at least 4. Must not exceed 31 without changing the coding of length. #define UNICHAR_LEN 30 // A UNICHAR_ID is the unique id of a unichar. typedef int UNICHAR_ID; // A variable to indicate an invalid or uninitialized unichar id. static const int INVALID_UNICHAR_ID = -1; // A special unichar that corresponds to INVALID_UNICHAR_ID. static const char INVALID_UNICHAR[] = "__INVALID_UNICHAR__"; enum StrongScriptDirection { DIR_NEUTRAL = 0, // Text contains only neutral characters. DIR_LEFT_TO_RIGHT = 1, // Text contains no Right-to-Left characters. DIR_RIGHT_TO_LEFT = 2, // Text contains no Left-to-Right characters. DIR_MIX = 3, // Text contains a mixture of left-to-right // and right-to-left characters. }; // The UNICHAR class holds a single classification result. This may be // a single Unicode character (stored as between 1 and 4 utf8 bytes) or // multple Unicode characters representing the NFKC expansion of a ligature // such as fi, ffl etc. These are also stored as utf8. class UNICHAR { public: UNICHAR() { memset(chars, 0, UNICHAR_LEN); } // Construct from a utf8 string. If len<0 then the string is null terminated. // If the string is too long to fit in the UNICHAR then it takes only what // will fit. UNICHAR(const char* utf8_str, int len); // Construct from a single UCS4 character. explicit UNICHAR(int unicode); // Default copy constructor and operator= are OK. // Get the first character as UCS-4. int first_uni() const; // Get the length of the UTF8 string. int utf8_len() const { int len = chars[UNICHAR_LEN - 1]; return len >=0 && len < UNICHAR_LEN ? len : UNICHAR_LEN; } // Get a UTF8 string, but NOT NULL terminated. const char* utf8() const { return chars; } // Get a terminated UTF8 string: Must delete[] it after use. char* utf8_str() const; // Get the number of bytes in the first character of the given utf8 string. static int utf8_step(const char* utf8_str); // A class to simplify iterating over and accessing elements of a UTF8 // string. Note that unlike the UNICHAR class, const_iterator does NOT COPY or // take ownership of the underlying byte array. It also does not permit // modification of the array (as the name suggests). // // Example: // for (UNICHAR::const_iterator it = UNICHAR::begin(str, str_len); // it != UNICHAR::end(str, len); // ++it) { // tprintf("UCS-4 symbol code = %d\n", *it); // char buf[5]; // int char_len = it.get_utf8(buf); buf[char_len] = '\0'; // tprintf("Char = %s\n", buf); // } class const_iterator { typedef const_iterator CI; public: // Step to the next UTF8 character. // If the current position is at an illegal UTF8 character, then print an // error message and step by one byte. If the current position is at a NULL // value, don't step past it. const_iterator& operator++(); // Return the UCS-4 value at the current position. // If the current position is at an illegal UTF8 value, return a single // space character. int operator*() const; // Store the UTF-8 encoding of the current codepoint into buf, which must be // at least 4 bytes long. Return the number of bytes written. // If the current position is at an illegal UTF8 value, writes a single // space character and returns 1. // Note that this method does not null-terminate the buffer. int get_utf8(char* buf) const; // Returns the number of bytes of the current codepoint. Returns 1 if the // current position is at an illegal UTF8 value. int utf8_len() const; // Returns true if the UTF-8 encoding at the current position is legal. bool is_legal() const; // Return the pointer into the string at the current position. const char* utf8_data() const { return it_; } // Iterator equality operators. friend bool operator==(const CI& lhs, const CI& rhs) { return lhs.it_ == rhs.it_; } friend bool operator!=(const CI& lhs, const CI& rhs) { return !(lhs == rhs); } private: friend class UNICHAR; explicit const_iterator(const char* it) : it_(it) {} const char* it_; // Pointer into the string. }; // Create a start/end iterator pointing to a string. Note that these methods // are static and do NOT create a copy or take ownership of the underlying // array. static const_iterator begin(const char* utf8_str, const int byte_length); static const_iterator end(const char* utf8_str, const int byte_length); // Converts a utf-8 string to a vector of unicodes. static void UTF8ToUnicode(const char* utf8_str, GenericVector<int>* unicodes); private: // A UTF-8 representation of 1 or more Unicode characters. // The last element (chars[UNICHAR_LEN - 1]) is a length if // its value < UNICHAR_LEN, otherwise it is a genuine character. char chars[UNICHAR_LEN]; }; #endif // TESSERACT_CCUTIL_UNICHAR_H__
C++
/////////////////////////////////////////////////////////////////////// // File: unicharmap.cpp // Description: Unicode character/ligature to integer id class. // Author: Thomas Kielbus // Created: Wed Jun 28 17:05:01 PDT 2006 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include <assert.h> #include "unichar.h" #include "host.h" #include "unicharmap.h" UNICHARMAP::UNICHARMAP() : nodes(0) { } UNICHARMAP::~UNICHARMAP() { if (nodes != 0) delete[] nodes; } // Search the given unichar representation in the tree. Each character in the // string is interpreted as an index in an array of nodes. UNICHAR_ID UNICHARMAP::unichar_to_id(const char* const unichar_repr) const { const char* current_char = unichar_repr; UNICHARMAP_NODE* current_nodes = nodes; assert(*unichar_repr != '\0'); do { if (*(current_char + 1) == '\0') return current_nodes[static_cast<unsigned char>(*current_char)].id; current_nodes = current_nodes[static_cast<unsigned char>(*current_char)].children; ++current_char; } while (true); } // Search the given unichar representation in the tree, using length characters // from it maximum. Each character in the string is interpreted as an index in // an array of nodes. UNICHAR_ID UNICHARMAP::unichar_to_id(const char* const unichar_repr, int length) const { const char* current_char = unichar_repr; UNICHARMAP_NODE* current_nodes = nodes; assert(*unichar_repr != '\0'); assert(length > 0 && length <= UNICHAR_LEN); do { if (length == 1 || *(current_char + 1) == '\0') return current_nodes[static_cast<unsigned char>(*current_char)].id; current_nodes = current_nodes[static_cast<unsigned char>(*current_char)].children; ++current_char; --length; } while (true); } // Search the given unichar representation in the tree, creating the possibly // missing nodes. Once the right place has been found, insert the given id and // update the inserted flag to keep track of the insert. Each character in the // string is interpreted as an index in an array of nodes. void UNICHARMAP::insert(const char* const unichar_repr, UNICHAR_ID id) { const char* current_char = unichar_repr; UNICHARMAP_NODE** current_nodes_pointer = &nodes; assert(*unichar_repr != '\0'); assert(id >= 0); do { if (*current_nodes_pointer == 0) *current_nodes_pointer = new UNICHARMAP_NODE[256]; if (*(current_char + 1) == '\0') { (*current_nodes_pointer) [static_cast<unsigned char>(*current_char)].id = id; return; } current_nodes_pointer = &((*current_nodes_pointer) [static_cast<unsigned char>(*current_char)].children); ++current_char; } while (true); } // Search the given unichar representation in the tree. Each character in the // string is interpreted as an index in an array of nodes. Stop once the tree // does not have anymore nodes or once we found the right unichar_repr. bool UNICHARMAP::contains(const char* const unichar_repr) const { if (unichar_repr == NULL || *unichar_repr == '\0') return false; const char* current_char = unichar_repr; UNICHARMAP_NODE* current_nodes = nodes; while (current_nodes != 0 && *(current_char + 1) != '\0') { current_nodes = current_nodes[static_cast<unsigned char>(*current_char)].children; ++current_char; } return current_nodes != 0 && *(current_char + 1) == '\0' && current_nodes[static_cast<unsigned char>(*current_char)].id >= 0; } // Search the given unichar representation in the tree, using length characters // from it maximum. Each character in the string is interpreted as an index in // an array of nodes. Stop once the tree does not have anymore nodes or once we // found the right unichar_repr. bool UNICHARMAP::contains(const char* const unichar_repr, int length) const { if (unichar_repr == NULL || *unichar_repr == '\0') return false; if (length <= 0 || length > UNICHAR_LEN) return false; const char* current_char = unichar_repr; UNICHARMAP_NODE* current_nodes = nodes; while (current_nodes != 0 && (length > 1 && *(current_char + 1) != '\0')) { current_nodes = current_nodes[static_cast<unsigned char>(*current_char)].children; --length; ++current_char; } return current_nodes != 0 && (length == 1 || *(current_char + 1) == '\0') && current_nodes[static_cast<unsigned char>(*current_char)].id >= 0; } // Return the minimum number of characters that must be used from this string // to obtain a match in the UNICHARMAP. int UNICHARMAP::minmatch(const char* const unichar_repr) const { const char* current_char = unichar_repr; UNICHARMAP_NODE* current_nodes = nodes; while (current_nodes != NULL && *current_char != '\0') { if (current_nodes[static_cast<unsigned char>(*current_char)].id >= 0) return current_char + 1 - unichar_repr; current_nodes = current_nodes[static_cast<unsigned char>(*current_char)].children; ++current_char; } return 0; } void UNICHARMAP::clear() { if (nodes != 0) { delete[] nodes; nodes = 0; } } UNICHARMAP::UNICHARMAP_NODE::UNICHARMAP_NODE() : children(0), id(-1) { } // Recursively delete the children UNICHARMAP::UNICHARMAP_NODE::~UNICHARMAP_NODE() { if (children != 0) { delete[] children; } }
C++
/********************************************************************** * File: hashfn.h (Formerly hash.h) * Description: Portability hacks for hash_map, hash_set and unique_ptr. * Author: Ray Smith * Created: Wed Jan 08 14:08:25 PST 2014 * * (C) Copyright 2014, Google Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef HASHFN_H #define HASHFN_H #ifdef USE_STD_NAMESPACE #if (__cplusplus >= 201103L) || defined(_MSC_VER) // Visual Studio #include <unordered_map> #include <unordered_set> #define hash_map std::unordered_map #if (_MSC_VER >= 1500 && _MSC_VER < 1600) // Visual Studio 2008 using namespace std::tr1; #else // _MSC_VER using std::unordered_map; using std::unordered_set; #include <memory> #define SmartPtr std::unique_ptr #define HAVE_UNIQUE_PTR #endif // _MSC_VER #elif (defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ > 0)) || \ __GNUC__ >= 4)) // gcc // hash_set is deprecated in gcc #include <ext/hash_map> #include <ext/hash_set> using __gnu_cxx::hash_map; using __gnu_cxx::hash_set; #define unordered_map hash_map #define unordered_set hash_set #else #include <hash_map> #include <hash_set> #endif // gcc #else // USE_STD_NAMESPACE #include <hash_map> #include <hash_set> #define unordered_map hash_map #define unordered_set hash_set #endif // USE_STD_NAMESPACE #ifndef HAVE_UNIQUE_PTR // Trivial smart ptr. Expand to add features of std::unique_ptr as required. template<class T> class SmartPtr { public: SmartPtr() : ptr_(NULL) {} explicit SmartPtr(T* ptr) : ptr_(ptr) {} ~SmartPtr() { delete ptr_; } T* get() const { return ptr_; } void reset(T* ptr) { if (ptr_ != NULL) delete ptr_; ptr_ = ptr; } bool operator==(const T* ptr) const { return ptr_ == ptr; } T* operator->() const { return ptr_; } private: T* ptr_; }; #endif // HAVE_UNIQUE_PTR #endif // HASHFN_H
C++
/********************************************************************** * File: strngs.h (Formerly strings.h) * Description: STRING class definition. * Author: Ray Smith * Created: Fri Feb 15 09:15:01 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef STRNGS_H #define STRNGS_H #include <stdio.h> #include <string.h> #include "platform.h" #include "memry.h" namespace tesseract { class TFile; } // namespace tesseract. // STRING_IS_PROTECTED means that string[index] = X is invalid // because you have to go through strings interface to modify it. // This allows the string to ensure internal integrity and maintain // its own string length. Unfortunately this is not possible because // STRINGS are used as direct-manipulation data buffers for things // like length arrays and many places cast away the const on string() // to mutate the string. Turning this off means that internally we // cannot assume we know the strlen. #define STRING_IS_PROTECTED 0 template <typename T> class GenericVector; class TESS_API STRING { public: STRING(); STRING(const STRING &string); STRING(const char *string); STRING(const char *data, int length); ~STRING (); // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); // Writes to the given file. Returns false in case of error. bool Serialize(tesseract::TFile* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, tesseract::TFile* fp); BOOL8 contains(const char c) const; inT32 length() const; inT32 size() const { return length(); } const char *string() const; const char *c_str() const; inline char* strdup() const { inT32 len = length() + 1; return strncpy(new char[len], GetCStr(), len); } #if STRING_IS_PROTECTED const char &operator[] (inT32 index) const; // len is number of chars in s to insert starting at index in this string void insert_range(inT32 index, const char*s, int len); void erase_range(inT32 index, int len); #else char &operator[] (inT32 index) const; #endif void split(const char c, GenericVector<STRING> *splited); void truncate_at(inT32 index); BOOL8 operator== (const STRING & string) const; BOOL8 operator!= (const STRING & string) const; BOOL8 operator!= (const char *string) const; STRING & operator= (const char *string); STRING & operator= (const STRING & string); STRING operator+ (const STRING & string) const; STRING operator+ (const char ch) const; STRING & operator+= (const char *string); STRING & operator+= (const STRING & string); STRING & operator+= (const char ch); // Assignment for strings which are not null-terminated. void assign(const char *cstr, int len); // Appends the given string and int (as a %d) to this. // += cannot be used for ints as there as a char += operator that would // be ambiguous, and ints usually need a string before or between them // anyway. void add_str_int(const char* str, int number); // Appends the given string and double (as a %.8g) to this. void add_str_double(const char* str, double number); // ensure capacity but keep pointer encapsulated inline void ensure(inT32 min_capacity) { ensure_cstr(min_capacity); } private: typedef struct STRING_HEADER { // How much space was allocated in the string buffer for char data. int capacity_; // used_ is how much of the capacity is currently being used, // including a '\0' terminator. // // If used_ is 0 then string is NULL (not even the '\0') // else if used_ > 0 then it is strlen() + 1 (because it includes '\0') // else strlen is >= 0 (not NULL) but needs to be computed. // this condition is set when encapsulation is violated because // an API returned a mutable string. // // capacity_ - used_ = excess capacity that the string can grow // without reallocating mutable int used_; } STRING_HEADER; // To preserve the behavior of the old serialization, we only have space // for one pointer in this structure. So we are embedding a data structure // at the start of the storage that will hold additional state variables, // then storing the actual string contents immediately after. STRING_HEADER* data_; // returns the header part of the storage inline STRING_HEADER* GetHeader() { return data_; } inline const STRING_HEADER* GetHeader() const { return data_; } // returns the string data part of storage inline char* GetCStr() { return ((char *)data_) + sizeof(STRING_HEADER); }; inline const char* GetCStr() const { return ((const char *)data_) + sizeof(STRING_HEADER); }; inline bool InvariantOk() const { #if STRING_IS_PROTECTED return (GetHeader()->used_ == 0) ? (string() == NULL) : (GetHeader()->used_ == (strlen(string()) + 1)); #else return true; #endif } // Ensure string has requested capacity as optimization // to avoid unnecessary reallocations. // The return value is a cstr buffer with at least requested capacity char* ensure_cstr(inT32 min_capacity); void FixHeader() const; // make used_ non-negative, even if const char* AllocData(int used, int capacity); void DiscardData(); }; #endif
C++
/////////////////////////////////////////////////////////////////////// // File: tessdatamanager.cpp // Description: Functions to handle loading/combining tesseract data files. // Author: Daria Antonova // Created: Wed Jun 03 11:26:43 PST 2009 // // (C) Copyright 2009, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifdef _MSC_VER #pragma warning(disable:4244) // Conversion warnings #endif #include "tessdatamanager.h" #include <stdio.h> #include "helpers.h" #include "serialis.h" #include "strngs.h" #include "tprintf.h" #include "params.h" namespace tesseract { bool TessdataManager::Init(const char *data_file_name, int debug_level) { int i; debug_level_ = debug_level; data_file_name_ = data_file_name; data_file_ = fopen(data_file_name, "rb"); if (data_file_ == NULL) { tprintf("Error opening data file %s\n", data_file_name); tprintf("Please make sure the TESSDATA_PREFIX environment variable is set " "to the parent directory of your \"tessdata\" directory.\n"); return false; } fread(&actual_tessdata_num_entries_, sizeof(inT32), 1, data_file_); swap_ = (actual_tessdata_num_entries_ > kMaxNumTessdataEntries); if (swap_) { ReverseN(&actual_tessdata_num_entries_, sizeof(actual_tessdata_num_entries_)); } ASSERT_HOST(actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES); fread(offset_table_, sizeof(inT64), actual_tessdata_num_entries_, data_file_); if (swap_) { for (i = 0 ; i < actual_tessdata_num_entries_; ++i) { ReverseN(&offset_table_[i], sizeof(offset_table_[i])); } } if (debug_level_) { tprintf("TessdataManager loaded %d types of tesseract data files.\n", actual_tessdata_num_entries_); for (i = 0; i < actual_tessdata_num_entries_; ++i) { tprintf("Offset for type %d is %lld\n", i, offset_table_[i]); } } return true; } void TessdataManager::CopyFile(FILE *input_file, FILE *output_file, bool newline_end, inT64 num_bytes_to_copy) { if (num_bytes_to_copy == 0) return; int buffer_size = 1024; if (num_bytes_to_copy > 0 && buffer_size > num_bytes_to_copy) { buffer_size = num_bytes_to_copy; } inT64 num_bytes_copied = 0; char *chunk = new char[buffer_size]; int bytes_read; char last_char = 0x0; while ((bytes_read = fread(chunk, sizeof(char), buffer_size, input_file))) { fwrite(chunk, sizeof(char), bytes_read, output_file); last_char = chunk[bytes_read-1]; if (num_bytes_to_copy > 0) { num_bytes_copied += bytes_read; if (num_bytes_copied == num_bytes_to_copy) break; if (num_bytes_copied + buffer_size > num_bytes_to_copy) { buffer_size = num_bytes_to_copy - num_bytes_copied; } } } if (newline_end) ASSERT_HOST(last_char == '\n'); delete[] chunk; } bool TessdataManager::WriteMetadata(inT64 *offset_table, const char * language_data_path_prefix, FILE *output_file) { inT32 num_entries = TESSDATA_NUM_ENTRIES; bool result = true; if (fseek(output_file, 0, SEEK_SET) != 0 || fwrite(&num_entries, sizeof(inT32), 1, output_file) != 1 || fwrite(offset_table, sizeof(inT64), TESSDATA_NUM_ENTRIES, output_file) != TESSDATA_NUM_ENTRIES) { fclose(output_file); result = false; tprintf("WriteMetadata failed in TessdataManager!\n"); } else if (fclose(output_file)) { result = false; tprintf("WriteMetadata failed to close file!\n"); } else { tprintf("TessdataManager combined tesseract data files.\n"); for (int i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { tprintf("Offset for type %2d (%s%-22s) is %lld\n", i, language_data_path_prefix, kTessdataFileSuffixes[i], offset_table[i]); } } return result; } bool TessdataManager::CombineDataFiles( const char *language_data_path_prefix, const char *output_filename) { int i; inT64 offset_table[TESSDATA_NUM_ENTRIES]; for (i = 0; i < TESSDATA_NUM_ENTRIES; ++i) offset_table[i] = -1; FILE *output_file = fopen(output_filename, "wb"); if (output_file == NULL) { tprintf("Error opening %s for writing\n", output_filename); return false; } // Leave some space for recording the offset_table. if (fseek(output_file, sizeof(inT32) + sizeof(inT64) * TESSDATA_NUM_ENTRIES, SEEK_SET)) { tprintf("Error seeking %s\n", output_filename); return false; } TessdataType type = TESSDATA_NUM_ENTRIES; bool text_file = false; FILE *file_ptr[TESSDATA_NUM_ENTRIES]; // Load individual tessdata components from files. for (i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { ASSERT_HOST(TessdataTypeFromFileSuffix( kTessdataFileSuffixes[i], &type, &text_file)); STRING filename = language_data_path_prefix; filename += kTessdataFileSuffixes[i]; file_ptr[i] = fopen(filename.string(), "rb"); if (file_ptr[i] != NULL) { offset_table[type] = ftell(output_file); CopyFile(file_ptr[i], output_file, text_file, -1); fclose(file_ptr[i]); } } // Make sure that the required components are present. if (file_ptr[TESSDATA_UNICHARSET] == NULL) { tprintf("Error opening %sunicharset file\n", language_data_path_prefix); fclose(output_file); return false; } if (file_ptr[TESSDATA_INTTEMP] != NULL && (file_ptr[TESSDATA_PFFMTABLE] == NULL || file_ptr[TESSDATA_NORMPROTO] == NULL)) { tprintf("Error opening %spffmtable and/or %snormproto files" " while %sinttemp file was present\n", language_data_path_prefix, language_data_path_prefix, language_data_path_prefix); fclose(output_file); return false; } return WriteMetadata(offset_table, language_data_path_prefix, output_file); } bool TessdataManager::OverwriteComponents( const char *new_traineddata_filename, char **component_filenames, int num_new_components) { int i; inT64 offset_table[TESSDATA_NUM_ENTRIES]; TessdataType type = TESSDATA_NUM_ENTRIES; bool text_file = false; FILE *file_ptr[TESSDATA_NUM_ENTRIES]; for (i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { offset_table[i] = -1; file_ptr[i] = NULL; } FILE *output_file = fopen(new_traineddata_filename, "wb"); if (output_file == NULL) { tprintf("Error opening %s for writing\n", new_traineddata_filename); return false; } // Leave some space for recording the offset_table. if (fseek(output_file, sizeof(inT32) + sizeof(inT64) * TESSDATA_NUM_ENTRIES, SEEK_SET)) { fclose(output_file); tprintf("Error seeking %s\n", new_traineddata_filename); return false; } // Open the files with the new components. for (i = 0; i < num_new_components; ++i) { if (TessdataTypeFromFileName(component_filenames[i], &type, &text_file)) file_ptr[type] = fopen(component_filenames[i], "rb"); } // Write updated data to the output traineddata file. for (i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { if (file_ptr[i] != NULL) { // Get the data from the opened component file. offset_table[i] = ftell(output_file); CopyFile(file_ptr[i], output_file, kTessdataFileIsText[i], -1); fclose(file_ptr[i]); } else { // Get this data component from the loaded data file. if (SeekToStart(static_cast<TessdataType>(i))) { offset_table[i] = ftell(output_file); CopyFile(data_file_, output_file, kTessdataFileIsText[i], GetEndOffset(static_cast<TessdataType>(i)) - ftell(data_file_) + 1); } } } const char *language_data_path_prefix = strchr(new_traineddata_filename, '.'); return WriteMetadata(offset_table, language_data_path_prefix, output_file); } bool TessdataManager::TessdataTypeFromFileSuffix( const char *suffix, TessdataType *type, bool *text_file) { for (int i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { if (strcmp(kTessdataFileSuffixes[i], suffix) == 0) { *type = static_cast<TessdataType>(i); *text_file = kTessdataFileIsText[i]; return true; } } tprintf("TessdataManager can't determine which tessdata" " component is represented by %s\n", suffix); return false; } bool TessdataManager::TessdataTypeFromFileName( const char *filename, TessdataType *type, bool *text_file) { // Get the file suffix (extension) const char *suffix = strrchr(filename, '.'); if (suffix == NULL || *(++suffix) == '\0') return false; return TessdataTypeFromFileSuffix(suffix, type, text_file); } bool TessdataManager::ExtractToFile(const char *filename) { TessdataType type = TESSDATA_NUM_ENTRIES; bool text_file = false; ASSERT_HOST(tesseract::TessdataManager::TessdataTypeFromFileName( filename, &type, &text_file)); if (!SeekToStart(type)) return false; FILE *output_file = fopen(filename, "wb"); if (output_file == NULL) { tprintf("Error opening %s\n", filename); exit(1); } inT64 begin_offset = ftell(GetDataFilePtr()); inT64 end_offset = GetEndOffset(type); tesseract::TessdataManager::CopyFile( GetDataFilePtr(), output_file, text_file, end_offset - begin_offset + 1); fclose(output_file); return true; } } // namespace tesseract
C++
/////////////////////////////////////////////////////////////////////// // File: indexmapbidi.h // Description: Bi-directional mapping between a sparse and compact space. // Author: rays@google.com (Ray Smith) // Created: Tue Apr 06 11:33:59 PDT 2010 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_INDEXMAPBIDI_H_ #define TESSERACT_CCUTIL_INDEXMAPBIDI_H_ #include <stdio.h> #include "genericvector.h" namespace tesseract { class IndexMapBiDi; // Bidirectional one-to-one mapping between a sparse and a compact discrete // space. Many entries in the sparse space are unmapped, but those that are // mapped have a 1-1 mapping to (and from) the compact space, where all // values are used. This is useful for forming subsets of larger collections, // such as subsets of character sets, or subsets of binary feature spaces. // // This base class provides basic functionality with binary search for the // SparseToCompact mapping to save memory. // For a faster inverse mapping, or to allow a many-to-one mapping, use // IndexMapBiDi below. // NOTE: there are currently no methods to setup an IndexMap on its own! // It must be initialized by copying from an IndexMapBiDi or by DeSerialize. class IndexMap { public: virtual ~IndexMap() {} // SparseToCompact takes a sparse index to an index in the compact space. // Uses a binary search to find the result. For faster speed use // IndexMapBiDi, but that takes more memory. virtual int SparseToCompact(int sparse_index) const; // CompactToSparse takes a compact index to the corresponding index in the // sparse space. int CompactToSparse(int compact_index) const { return compact_map_[compact_index]; } // The size of the sparse space. virtual int SparseSize() const { return sparse_size_; } // The size of the compact space. int CompactSize() const { return compact_map_.size(); } // Copy from the input. void CopyFrom(const IndexMap& src); void CopyFrom(const IndexMapBiDi& src); // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); protected: // The sparse space covers integers in the range [0, sparse_size_-1]. int sparse_size_; // The compact space covers integers in the range [0, compact_map_.size()-1]. // Each element contains the corresponding sparse index. GenericVector<inT32> compact_map_; }; // Bidirectional many-to-one mapping between a sparse and a compact discrete // space. As with IndexMap, many entries may be unmapped, but unlike IndexMap, // of those that are, many may be mapped to the same compact index. // If the map is many-to-one, it is not possible to directly obtain all the // sparse indices that map to a single compact index. // This map is time- rather than space-efficient. It stores the entire sparse // space. // IndexMapBiDi may be initialized in one of 3 ways: // 1. Init(size, true); // Setup(); // Sets a complete 1:1 mapping with no unmapped elements. // 2. Init(size, false); // for ... SetMap(index, true); // Setup(); // Specifies precisely which sparse indices are mapped. The mapping is 1:1. // 3. Either of the above, followed by: // for ... Merge(index1, index2); // CompleteMerges(); // Allows a many-to-one mapping by merging compact space indices. class IndexMapBiDi : public IndexMap { public: virtual ~IndexMapBiDi() {} // Top-level init function in a single call to initialize a map to select // a single contiguous subrange [start, end) of the sparse space to be mapped // 1 to 1 to the compact space, with all other elements of the sparse space // left unmapped. // No need to call Setup after this. void InitAndSetupRange(int sparse_size, int start, int end); // Initializes just the sparse_map_ to the given size with either all // forward indices mapped (all_mapped = true) or none (all_mapped = false). // Call Setup immediately after, or make calls to SetMap first to adjust the // mapping and then call Setup before using the map. void Init(int size, bool all_mapped); // Sets a given index in the sparse_map_ to be mapped or not. void SetMap(int sparse_index, bool mapped); // Sets up the sparse_map_ and compact_map_ properly after Init and // some calls to SetMap. Assumes an ordered 1-1 map from set indices // in the sparse space to the compact space. void Setup(); // Merges the two compact space indices. May be called many times, but // the merges must be concluded by a call to CompleteMerges. // Returns true if a merge was actually performed. bool Merge(int compact_index1, int compact_index2); // Returns true if the given compact index has been deleted. bool IsCompactDeleted(int index) const { return MasterCompactIndex(index) < 0; } // Completes one or more Merge operations by further compacting the // compact space. void CompleteMerges(); // SparseToCompact takes a sparse index to an index in the compact space. virtual int SparseToCompact(int sparse_index) const { return sparse_map_[sparse_index]; } // The size of the sparse space. virtual int SparseSize() const { return sparse_map_.size(); } // Copy from the input. void CopyFrom(const IndexMapBiDi& src); // Writes to the given file. Returns false in case of error. bool Serialize(FILE* fp) const; // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool DeSerialize(bool swap, FILE* fp); // Bulk calls to SparseToCompact. // Maps the given array of sparse indices to an array of compact indices. // Assumes the input is sorted. The output indices are sorted and uniqued. // Return value is the number of "missed" features, being features that // don't map to the compact feature space. int MapFeatures(const GenericVector<int>& sparse, GenericVector<int>* compact) const; private: // Returns the master compact index for a given compact index. // During a multiple merge operation, several compact indices may be // combined, so we need to be able to find the master of all. int MasterCompactIndex(int compact_index) const { while (compact_index >= 0 && sparse_map_[compact_map_[compact_index]] != compact_index) compact_index = sparse_map_[compact_map_[compact_index]]; return compact_index; } // Direct look-up of the compact index for each element in sparse space. GenericVector<inT32> sparse_map_; }; } // namespace tesseract. #endif // TESSERACT_CCUTIL_INDEXMAPBIDI_H_
C++
/////////////////////////////////////////////////////////////////////// // File: universalambigs.h // Description: Data for a universal ambigs file that is useful for // any language. // Author: Ray Smith // Created: Mon Mar 18 11:26:00 PDT 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// namespace tesseract { extern const char kUniversalAmbigsFile[]; extern const int ksizeofUniversalAmbigsFile; } // namespace tesseract
C++
/********************************************************************** * File: tprintf.c * Description: Trace version of printf - portable between UX and NT * Author: Phil Cheatle * Created: Wed Jun 28 15:01:15 BST 1995 * * (C) Copyright 1995, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ // Include automatically generated configuration file if running autoconf. #ifdef HAVE_CONFIG_H #include "config_auto.h" #endif #include <stdio.h> #include <stdarg.h> #include "ccutil.h" #include "params.h" #include "strngs.h" #include "tprintf.h" #define MAX_MSG_LEN 65536 #define EXTERN // Since tprintf is protected by a mutex, these parameters can remain global. DLLSYM STRING_VAR(debug_file, "", "File to send tprintf output to"); DLLSYM void tprintf_internal( // Trace printf const char *format, ... // Message ) { tesseract::tprintfMutex.Lock(); va_list args; // variable args static FILE *debugfp = NULL; // debug file // debug window inT32 offset = 0; // into message static char msg[MAX_MSG_LEN + 1]; va_start(args, format); // variable list // Format into msg #ifdef _WIN32 offset += _vsnprintf(msg + offset, MAX_MSG_LEN - offset, format, args); if (strcmp(debug_file.string(), "/dev/null") == 0) debug_file.set_value("nul"); #else offset += vsnprintf(msg + offset, MAX_MSG_LEN - offset, format, args); #endif va_end(args); if (debugfp == NULL && strlen(debug_file.string()) > 0) { debugfp = fopen(debug_file.string(), "wb"); } else if (debugfp != NULL && strlen(debug_file.string()) == 0) { fclose(debugfp); debugfp = NULL; } if (debugfp != NULL) fprintf(debugfp, "%s", msg); else fprintf(stderr, "%s", msg); tesseract::tprintfMutex.Unlock(); }
C++
/********************************************************************** * File: errcode.c (Formerly error.c) * Description: Generic error handler function * Author: Ray Smith * Created: Tue May 1 16:28:39 BST 1990 * * (C) Copyright 1989, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <signal.h> #ifdef __linux__ #include <sys/syscall.h> // For SYS_gettid. #include <unistd.h> // For syscall itself. #endif #include "allheaders.h" #include "errcode.h" #include "tprintf.h" // Size of thread-id array of pixes to keep in case of crash. const int kMaxNumThreadPixes = 32768; Pix* global_crash_pixes[kMaxNumThreadPixes]; void SavePixForCrash(int resolution, Pix* pix) { #ifdef __linux__ #ifndef ANDROID int thread_id = syscall(SYS_gettid) % kMaxNumThreadPixes; #else int thread_id = gettid() % kMaxNumThreadPixes; #endif pixDestroy(&global_crash_pixes[thread_id]); if (pix != NULL) { Pix* clone = pixClone(pix); pixSetXRes(clone, resolution); pixSetYRes(clone, resolution); global_crash_pixes[thread_id] = clone; } #endif } // CALL ONLY from a signal handler! Writes a crash image to stderr. void signal_exit(int signal_code) { tprintf("Received signal %d!\n", signal_code); #ifdef __linux__ #ifndef ANDROID int thread_id = syscall(SYS_gettid) % kMaxNumThreadPixes; #else int thread_id = gettid() % kMaxNumThreadPixes; #endif if (global_crash_pixes[thread_id] != NULL) { fprintf(stderr, "Crash caused by image with resolution %d\n", pixGetYRes(global_crash_pixes[thread_id])); fprintf(stderr, "<Cut here>\n"); pixWriteStreamPng(stderr, global_crash_pixes[thread_id], 0.0); fprintf(stderr, "\n<End cut>\n"); } // Raise an uncaught signal, so as to get a useful stack trace. raise(SIGILL); #else abort(); #endif } void err_exit() { ASSERT_HOST("Fatal error encountered!" == NULL); } void set_global_loc_code(int loc_code) { // global_loc_code = loc_code; } void set_global_subloc_code(int loc_code) { // global_subloc_code = loc_code; } void set_global_subsubloc_code(int loc_code) { // global_subsubloc_code = loc_code; }
C++
/********************************************************************** * File: elst.c (Formerly elist.c) * Description: Embedded list handling code which is not in the include file. * Author: Phil Cheatle * Created: Fri Jan 04 13:55:49 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdlib.h> #include "elst.h" /*********************************************************************** * MEMBER FUNCTIONS OF CLASS: ELIST * ================================ **********************************************************************/ /*********************************************************************** * ELIST::internal_clear * * Used by the destructor and the "clear" member function of derived list * classes to destroy all the elements on the list. * The calling function passes a "zapper" function which can be called to * delete each element of the list, regardless of its derived type. This * technique permits a generic clear function to destroy elements of * different derived types correctly, without requiring virtual functions and * the consequential memory overhead. **********************************************************************/ void ELIST::internal_clear ( //destroy all links void (*zapper) (ELIST_LINK *)) { //ptr to zapper functn ELIST_LINK *ptr; ELIST_LINK *next; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST::internal_clear", ABORT, NULL); #endif if (!empty ()) { ptr = last->next; //set to first last->next = NULL; //break circle last = NULL; //set list empty while (ptr) { next = ptr->next; zapper(ptr); ptr = next; } } } /*********************************************************************** * ELIST::assign_to_sublist * * The list is set to a sublist of another list. "This" list must be empty * before this function is invoked. The two iterators passed must refer to * the same list, different from "this" one. The sublist removed is the * inclusive list from start_it's current position to end_it's current * position. If this range passes over the end of the source list then the * source list has its end set to the previous element of start_it. The * extracted sublist is unaffected by the end point of the source list, its * end point is always the end_it position. **********************************************************************/ void ELIST::assign_to_sublist( //to this list ELIST_ITERATOR *start_it, //from list start ELIST_ITERATOR *end_it) { //from list end const ERRCODE LIST_NOT_EMPTY = "Destination list must be empty before extracting a sublist"; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST::assign_to_sublist", ABORT, NULL); #endif if (!empty ()) LIST_NOT_EMPTY.error ("ELIST.assign_to_sublist", ABORT, NULL); last = start_it->extract_sublist (end_it); } /*********************************************************************** * ELIST::length * * Return count of elements on list **********************************************************************/ inT32 ELIST::length() const { // count elements ELIST_ITERATOR it(const_cast<ELIST*>(this)); inT32 count = 0; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST::length", ABORT, NULL); #endif for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) count++; return count; } /*********************************************************************** * ELIST::sort * * Sort elements on list * NB If you dont like the const declarations in the comparator, coerce yours: * ( int (*)(const void *, const void *) **********************************************************************/ void ELIST::sort ( //sort elements int comparator ( //comparison routine const void *, const void *)) { ELIST_ITERATOR it(this); inT32 count; ELIST_LINK **base; //ptr array to sort ELIST_LINK **current; inT32 i; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST::sort", ABORT, NULL); #endif /* Allocate an array of pointers, one per list element */ count = length (); base = (ELIST_LINK **) malloc (count * sizeof (ELIST_LINK *)); /* Extract all elements, putting the pointers in the array */ current = base; for (it.mark_cycle_pt (); !it.cycled_list (); it.forward ()) { *current = it.extract (); current++; } /* Sort the pointer array */ qsort ((char *) base, count, sizeof (*base), comparator); /* Rebuild the list from the sorted pointers */ current = base; for (i = 0; i < count; i++) { it.add_to_end (*current); current++; } free(base); } // Assuming list has been sorted already, insert new_link to // keep the list sorted according to the same comparison function. // Comparision function is the same as used by sort, i.e. uses double // indirection. Time is O(1) to add to beginning or end. // Time is linear to add pre-sorted items to an empty list. // If unique is set to true and comparator() returns 0 (an entry with the // same information as the one contained in new_link is already in the // list) - new_link is not added to the list and the function returns the // pointer to the identical entry that already exists in the list // (otherwise the function returns new_link). ELIST_LINK *ELIST::add_sorted_and_find( int comparator(const void*, const void*), bool unique, ELIST_LINK* new_link) { // Check for adding at the end. if (last == NULL || comparator(&last, &new_link) < 0) { if (last == NULL) { new_link->next = new_link; } else { new_link->next = last->next; last->next = new_link; } last = new_link; } else { // Need to use an iterator. ELIST_ITERATOR it(this); for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) { ELIST_LINK* link = it.data(); int compare = comparator(&link, &new_link); if (compare > 0) { break; } else if (unique && compare == 0) { return link; } } if (it.cycled_list()) it.add_to_end(new_link); else it.add_before_then_move(new_link); } return new_link; } /*********************************************************************** * MEMBER FUNCTIONS OF CLASS: ELIST_ITERATOR * ========================================= **********************************************************************/ /*********************************************************************** * ELIST_ITERATOR::forward * * Move the iterator to the next element of the list. * REMEMBER: ALL LISTS ARE CIRCULAR. **********************************************************************/ ELIST_LINK *ELIST_ITERATOR::forward() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST_ITERATOR::forward", ABORT, NULL); if (!list) NO_LIST.error ("ELIST_ITERATOR::forward", ABORT, NULL); #endif if (list->empty ()) return NULL; if (current) { //not removed so //set previous prev = current; started_cycling = TRUE; // In case next is deleted by another iterator, get next from current. current = current->next; } else { if (ex_current_was_cycle_pt) cycle_pt = next; current = next; } next = current->next; #ifndef NDEBUG if (!current) NULL_DATA.error ("ELIST_ITERATOR::forward", ABORT, NULL); if (!next) NULL_NEXT.error ("ELIST_ITERATOR::forward", ABORT, "This is: %p Current is: %p", this, current); #endif return current; } /*********************************************************************** * ELIST_ITERATOR::data_relative * * Return the data pointer to the element "offset" elements from current. * "offset" must not be less than -1. * (This function can't be INLINEd because it contains a loop) **********************************************************************/ ELIST_LINK *ELIST_ITERATOR::data_relative( //get data + or - ... inT8 offset) { //offset from current ELIST_LINK *ptr; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST_ITERATOR::data_relative", ABORT, NULL); if (!list) NO_LIST.error ("ELIST_ITERATOR::data_relative", ABORT, NULL); if (list->empty ()) EMPTY_LIST.error ("ELIST_ITERATOR::data_relative", ABORT, NULL); if (offset < -1) BAD_PARAMETER.error ("ELIST_ITERATOR::data_relative", ABORT, "offset < -l"); #endif if (offset == -1) ptr = prev; else for (ptr = current ? current : prev; offset-- > 0; ptr = ptr->next); #ifndef NDEBUG if (!ptr) NULL_DATA.error ("ELIST_ITERATOR::data_relative", ABORT, NULL); #endif return ptr; } /*********************************************************************** * ELIST_ITERATOR::move_to_last() * * Move current so that it is set to the end of the list. * Return data just in case anyone wants it. * (This function can't be INLINEd because it contains a loop) **********************************************************************/ ELIST_LINK *ELIST_ITERATOR::move_to_last() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST_ITERATOR::move_to_last", ABORT, NULL); if (!list) NO_LIST.error ("ELIST_ITERATOR::move_to_last", ABORT, NULL); #endif while (current != list->last) forward(); return current; } /*********************************************************************** * ELIST_ITERATOR::exchange() * * Given another iterator, whose current element is a different element on * the same list list OR an element of another list, exchange the two current * elements. On return, each iterator points to the element which was the * other iterators current on entry. * (This function hasn't been in-lined because its a bit big!) **********************************************************************/ void ELIST_ITERATOR::exchange( //positions of 2 links ELIST_ITERATOR *other_it) { //other iterator const ERRCODE DONT_EXCHANGE_DELETED = "Can't exchange deleted elements of lists"; ELIST_LINK *old_current; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST_ITERATOR::exchange", ABORT, NULL); if (!list) NO_LIST.error ("ELIST_ITERATOR::exchange", ABORT, NULL); if (!other_it) BAD_PARAMETER.error ("ELIST_ITERATOR::exchange", ABORT, "other_it NULL"); if (!(other_it->list)) NO_LIST.error ("ELIST_ITERATOR::exchange", ABORT, "other_it"); #endif /* Do nothing if either list is empty or if both iterators reference the same link */ if ((list->empty ()) || (other_it->list->empty ()) || (current == other_it->current)) return; /* Error if either current element is deleted */ if (!current || !other_it->current) DONT_EXCHANGE_DELETED.error ("ELIST_ITERATOR.exchange", ABORT, NULL); /* Now handle the 4 cases: doubleton list; non-doubleton adjacent elements (other before this); non-doubleton adjacent elements (this before other); non-adjacent elements. */ //adjacent links if ((next == other_it->current) || (other_it->next == current)) { //doubleton list if ((next == other_it->current) && (other_it->next == current)) { prev = next = current; other_it->prev = other_it->next = other_it->current; } else { //non-doubleton with //adjacent links //other before this if (other_it->next == current) { other_it->prev->next = current; other_it->current->next = next; current->next = other_it->current; other_it->next = other_it->current; prev = current; } else { //this before other prev->next = other_it->current; current->next = other_it->next; other_it->current->next = current; next = current; other_it->prev = other_it->current; } } } else { //no overlap prev->next = other_it->current; current->next = other_it->next; other_it->prev->next = current; other_it->current->next = next; } /* update end of list pointer when necessary (remember that the 2 iterators may iterate over different lists!) */ if (list->last == current) list->last = other_it->current; if (other_it->list->last == other_it->current) other_it->list->last = current; if (current == cycle_pt) cycle_pt = other_it->cycle_pt; if (other_it->current == other_it->cycle_pt) other_it->cycle_pt = cycle_pt; /* The actual exchange - in all cases*/ old_current = current; current = other_it->current; other_it->current = old_current; } /*********************************************************************** * ELIST_ITERATOR::extract_sublist() * * This is a private member, used only by ELIST::assign_to_sublist. * Given another iterator for the same list, extract the links from THIS to * OTHER inclusive, link them into a new circular list, and return a * pointer to the last element. * (Can't inline this function because it contains a loop) **********************************************************************/ ELIST_LINK *ELIST_ITERATOR::extract_sublist( //from this current ELIST_ITERATOR *other_it) { //to other current #ifndef NDEBUG const ERRCODE BAD_EXTRACTION_PTS = "Can't extract sublist from points on different lists"; const ERRCODE DONT_EXTRACT_DELETED = "Can't extract a sublist marked by deleted points"; #endif const ERRCODE BAD_SUBLIST = "Can't find sublist end point in original list"; ELIST_ITERATOR temp_it = *this; ELIST_LINK *end_of_new_list; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("ELIST_ITERATOR::extract_sublist", ABORT, NULL); if (!other_it) BAD_PARAMETER.error ("ELIST_ITERATOR::extract_sublist", ABORT, "other_it NULL"); if (!list) NO_LIST.error ("ELIST_ITERATOR::extract_sublist", ABORT, NULL); if (list != other_it->list) BAD_EXTRACTION_PTS.error ("ELIST_ITERATOR.extract_sublist", ABORT, NULL); if (list->empty ()) EMPTY_LIST.error ("ELIST_ITERATOR::extract_sublist", ABORT, NULL); if (!current || !other_it->current) DONT_EXTRACT_DELETED.error ("ELIST_ITERATOR.extract_sublist", ABORT, NULL); #endif ex_current_was_last = other_it->ex_current_was_last = FALSE; ex_current_was_cycle_pt = FALSE; other_it->ex_current_was_cycle_pt = FALSE; temp_it.mark_cycle_pt (); do { //walk sublist if (temp_it.cycled_list ()) //cant find end pt BAD_SUBLIST.error ("ELIST_ITERATOR.extract_sublist", ABORT, NULL); if (temp_it.at_last ()) { list->last = prev; ex_current_was_last = other_it->ex_current_was_last = TRUE; } if (temp_it.current == cycle_pt) ex_current_was_cycle_pt = TRUE; if (temp_it.current == other_it->cycle_pt) other_it->ex_current_was_cycle_pt = TRUE; temp_it.forward (); } while (temp_it.prev != other_it->current); //circularise sublist other_it->current->next = current; end_of_new_list = other_it->current; //sublist = whole list if (prev == other_it->current) { list->last = NULL; prev = current = next = NULL; other_it->prev = other_it->current = other_it->next = NULL; } else { prev->next = other_it->next; current = other_it->current = NULL; next = other_it->next; other_it->prev = prev; } return end_of_new_list; }
C++
/********************************************************************** * File: ocrclass.h * Description: Class definitions and constants for the OCR API. * Author: Hewlett-Packard Co * * (C) Copyright 1996, Hewlett-Packard Co. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ /********************************************************************** * This file contains typedefs for all the structures used by * the HP OCR interface. * The code is designed to be used with either a C or C++ compiler. * The structures are designed to allow them to be used with any * structure alignment upto 8. **********************************************************************/ #ifndef CCUTIL_OCRCLASS_H_ #define CCUTIL_OCRCLASS_H_ #ifndef __GNUC__ #ifdef _WIN32 #include <windows.h> #include "gettimeofday.h" #endif #else #include <sys/time.h> #endif #include <time.h> #include "host.h" /*Maximum lengths of various strings*/ #define MAX_FONT_NAME 34 /*name of font */ #define MAX_OCR_NAME 32 /*name of engine */ #define MAX_OCR_VERSION 17 /*version code of engine */ /*pitch set definitions are identical to RTF*/ #define PITCH_DEF 0 /*default */ #define PITCH_FIXED 1 /*fixed pitch */ #define PITCH_VAR 2 /*variable pitch */ /********************************************************************** * EANYCODE_CHAR * Description of a single character. The character code is defined by * the character set of the current font. * Output text is sent as an array of these structures. * Spaces and line endings in the output are represented in the * structures of the surrounding characters. They are not directly * represented as characters. * The first character in a word has a positive value of blanks. * Missing information should be set to the defaults in the comments. * If word bounds are known, but not character bounds, then the top and * bottom of each character should be those of the word. The left of the * first and right of the last char in each word should be set. All other * lefts and rights should be set to -1. * If set, the values of right and bottom are left+width and top+height. * Most of the members come directly from the parameters to ocr_append_char. * The formatting member uses the enhancement parameter and combines the * line direction stuff into the top 3 bits. * The coding is 0=RL char, 1=LR char, 2=DR NL, 3=UL NL, 4=DR Para, * 5=UL Para, 6=TB char, 7=BT char. API users do not need to know what * the coding is, only that it is backwards compatible with the previous * version. **********************************************************************/ typedef struct { /*single character */ // It should be noted that the format for char_code for version 2.0 and beyond // is UTF8 which means that ASCII characters will come out as one structure but // other characters will be returned in two or more instances of this structure // with a single byte of the UTF8 code in each, but each will have the same // bounding box. Programs which want to handle languagues with different // characters sets will need to handle extended characters appropriately, but // *all* code needs to be prepared to receive UTF8 coded characters for // characters such as bullet and fancy quotes. uinT16 char_code; /*character itself */ inT16 left; /*of char (-1) */ inT16 right; /*of char (-1) */ inT16 top; /*of char (-1) */ inT16 bottom; /*of char (-1) */ inT16 font_index; /*what font (0) */ uinT8 confidence; /*0=perfect, 100=reject (0/100) */ uinT8 point_size; /*of char, 72=i inch, (10) */ inT8 blanks; /*no of spaces before this char (1) */ uinT8 formatting; /*char formatting (0) */ } EANYCODE_CHAR; /*single character */ /********************************************************************** * ETEXT_DESC * Description of the output of the OCR engine. * This structure is used as both a progress monitor and the final * output header, since it needs to be a valid progress monitor while * the OCR engine is storing its output to shared memory. * During progress, all the buffer info is -1. * Progress starts at 0 and increases to 100 during OCR. No other constraint. * Every progress callback, the OCR engine must set ocr_alive to 1. * The HP side will set ocr_alive to 0. Repeated failure to reset * to 1 indicates that the OCR engine is dead. * If the cancel function is not null then it is called with the number of * user words found. If it returns true then operation is cancelled. **********************************************************************/ typedef bool (*CANCEL_FUNC)(void* cancel_this, int words); class ETEXT_DESC { // output header public: inT16 count; // chars in this buffer(0) inT16 progress; // percent complete increasing (0-100) inT8 more_to_come; // true if not last volatile inT8 ocr_alive; // ocr sets to 1, HP 0 inT8 err_code; // for errcode use CANCEL_FUNC cancel; // returns true to cancel void* cancel_this; // this or other data for cancel struct timeval end_time; // time to stop. expected to be set only by call // to set_deadline_msecs() EANYCODE_CHAR text[1]; // character data ETEXT_DESC() : count(0), progress(0), more_to_come(0), ocr_alive(0), err_code(0), cancel(NULL), cancel_this(NULL) { end_time.tv_sec = 0; end_time.tv_usec = 0; } // Sets the end time to be deadline_msecs milliseconds from now. void set_deadline_msecs(inT32 deadline_msecs) { gettimeofday(&end_time, NULL); inT32 deadline_secs = deadline_msecs / 1000; end_time.tv_sec += deadline_secs; end_time.tv_usec += (deadline_msecs - deadline_secs * 1000) * 1000; if (end_time.tv_usec > 1000000) { end_time.tv_usec -= 1000000; ++end_time.tv_sec; } } // Returns false if we've not passed the end_time, or have not set a deadline. bool deadline_exceeded() const { if (end_time.tv_sec == 0 && end_time.tv_usec == 0) return false; struct timeval now; gettimeofday(&now, NULL); return (now.tv_sec > end_time.tv_sec || (now.tv_sec == end_time.tv_sec && now.tv_usec > end_time.tv_usec)); } }; #endif // CCUTIL_OCRCLASS_H_
C++
/********************************************************************** * File: params.h * Description: Class definitions of the *_VAR classes for tunable constants. * Author: Ray Smith * Created: Fri Feb 22 11:26:25 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef PARAMS_H #define PARAMS_H #include <stdio.h> #include "genericvector.h" #include "strngs.h" namespace tesseract { class IntParam; class BoolParam; class StringParam; class DoubleParam; // Enum for constraints on what kind of params should be set by SetParam(). enum SetParamConstraint { SET_PARAM_CONSTRAINT_NONE, SET_PARAM_CONSTRAINT_DEBUG_ONLY, SET_PARAM_CONSTRAINT_NON_DEBUG_ONLY, SET_PARAM_CONSTRAINT_NON_INIT_ONLY, }; struct ParamsVectors { GenericVector<IntParam *> int_params; GenericVector<BoolParam *> bool_params; GenericVector<StringParam *> string_params; GenericVector<DoubleParam *> double_params; }; // Utility functions for working with Tesseract parameters. class ParamUtils { public: // Reads a file of parameter definitions and set/modify the values therein. // If the filename begins with a + or -, the BoolVariables will be // ORed or ANDed with any current values. // Blank lines and lines beginning # are ignored. // Values may have any whitespace after the name and are the rest of line. static bool ReadParamsFile( const char *file, // filename to read SetParamConstraint constraint, ParamsVectors *member_params); // Read parameters from the given file pointer (stop at end_offset). static bool ReadParamsFromFp(FILE *fp, inT64 end_offset, SetParamConstraint constraint, ParamsVectors *member_params); // Set a parameters to have the given value. static bool SetParam(const char *name, const char* value, SetParamConstraint constraint, ParamsVectors *member_params); // Returns the pointer to the parameter with the given name (of the // appropriate type) if it was found in the vector obtained from // GlobalParams() or in the given member_params. template<class T> static T *FindParam(const char *name, const GenericVector<T *> &global_vec, const GenericVector<T *> &member_vec) { int i; for (i = 0; i < global_vec.size(); ++i) { if (strcmp(global_vec[i]->name_str(), name) == 0) return global_vec[i]; } for (i = 0; i < member_vec.size(); ++i) { if (strcmp(member_vec[i]->name_str(), name) == 0) return member_vec[i]; } return NULL; } // Removes the given pointer to the param from the given vector. template<class T> static void RemoveParam(T *param_ptr, GenericVector<T *> *vec) { for (int i = 0; i < vec->size(); ++i) { if ((*vec)[i] == param_ptr) { vec->remove(i); return; } } } // Fetches the value of the named param as a STRING. Returns false if not // found. static bool GetParamAsString(const char *name, const ParamsVectors* member_params, STRING *value); // Print parameters to the given file. static void PrintParams(FILE *fp, const ParamsVectors *member_params); // Resets all parameters back to default values; static void ResetToDefaults(ParamsVectors* member_params); }; // Definition of various parameter types. class Param { public: ~Param() {} const char *name_str() const { return name_; } const char *info_str() const { return info_; } bool is_init() const { return init_; } bool is_debug() const { return debug_; } bool constraint_ok(SetParamConstraint constraint) const { return (constraint == SET_PARAM_CONSTRAINT_NONE || (constraint == SET_PARAM_CONSTRAINT_DEBUG_ONLY && this->is_debug()) || (constraint == SET_PARAM_CONSTRAINT_NON_DEBUG_ONLY && !this->is_debug()) || (constraint == SET_PARAM_CONSTRAINT_NON_INIT_ONLY && !this->is_init())); } protected: Param(const char *name, const char *comment, bool init) : name_(name), info_(comment), init_(init) { debug_ = (strstr(name, "debug") != NULL) || (strstr(name, "display")); } const char *name_; // name of this parameter const char *info_; // for menus bool init_; // needs to be set before init bool debug_; }; class IntParam : public Param { public: IntParam(inT32 value, const char *name, const char *comment, bool init, ParamsVectors *vec) : Param(name, comment, init) { value_ = value; default_ = value; params_vec_ = &(vec->int_params); vec->int_params.push_back(this); } ~IntParam() { ParamUtils::RemoveParam<IntParam>(this, params_vec_); } operator inT32() const { return value_; } void operator=(inT32 value) { value_ = value; } void set_value(inT32 value) { value_ = value; } void ResetToDefault() { value_ = default_; } private: inT32 value_; inT32 default_; // Pointer to the vector that contains this param (not owened by this class). GenericVector<IntParam *> *params_vec_; }; class BoolParam : public Param { public: BoolParam(bool value, const char *name, const char *comment, bool init, ParamsVectors *vec) : Param(name, comment, init) { value_ = value; default_ = value; params_vec_ = &(vec->bool_params); vec->bool_params.push_back(this); } ~BoolParam() { ParamUtils::RemoveParam<BoolParam>(this, params_vec_); } operator BOOL8() const { return value_; } void operator=(BOOL8 value) { value_ = value; } void set_value(BOOL8 value) { value_ = value; } void ResetToDefault() { value_ = default_; } private: BOOL8 value_; BOOL8 default_; // Pointer to the vector that contains this param (not owned by this class). GenericVector<BoolParam *> *params_vec_; }; class StringParam : public Param { public: StringParam(const char *value, const char *name, const char *comment, bool init, ParamsVectors *vec) : Param(name, comment, init) { value_ = value; default_ = value; params_vec_ = &(vec->string_params); vec->string_params.push_back(this); } ~StringParam() { ParamUtils::RemoveParam<StringParam>(this, params_vec_); } operator STRING &() { return value_; } const char *string() const { return value_.string(); } const char *c_str() const { return value_.string(); } bool empty() { return value_.length() <= 0; } bool operator==(const STRING& other) { return value_ == other; } void operator=(const STRING& value) { value_ = value; } void set_value(const STRING& value) { value_ = value; } void ResetToDefault() { value_ = default_; } private: STRING value_; STRING default_; // Pointer to the vector that contains this param (not owened by this class). GenericVector<StringParam *> *params_vec_; }; class DoubleParam : public Param { public: DoubleParam(double value, const char *name, const char *comment, bool init, ParamsVectors *vec) : Param(name, comment, init) { value_ = value; default_ = value; params_vec_ = &(vec->double_params); vec->double_params.push_back(this); } ~DoubleParam() { ParamUtils::RemoveParam<DoubleParam>(this, params_vec_); } operator double() const { return value_; } void operator=(double value) { value_ = value; } void set_value(double value) { value_ = value; } void ResetToDefault() { value_ = default_; } private: double value_; double default_; // Pointer to the vector that contains this param (not owned by this class). GenericVector<DoubleParam *> *params_vec_; }; } // namespace tesseract // Global parameter lists. // // To avoid the problem of undetermined order of static initialization // global_params are accessed through the GlobalParams function that // initializes the static pointer to global_params only on the first // first time GlobalParams() is called. // // TODO(daria): remove GlobalParams() when all global Tesseract // parameters are converted to members. tesseract::ParamsVectors *GlobalParams(); /************************************************************************* * Note on defining parameters. * * The values of the parameters defined with *_INIT_* macros are guaranteed * to be loaded from config files before Tesseract initialization is done * (there is no such guarantee for parameters defined with the other macros). *************************************************************************/ #define INT_VAR_H(name,val,comment)\ tesseract::IntParam name #define BOOL_VAR_H(name,val,comment)\ tesseract::BoolParam name #define STRING_VAR_H(name,val,comment)\ tesseract::StringParam name #define double_VAR_H(name,val,comment)\ tesseract::DoubleParam name #define INT_VAR(name,val,comment)\ tesseract::IntParam name(val,#name,comment,false,GlobalParams()) #define BOOL_VAR(name,val,comment)\ tesseract::BoolParam name(val,#name,comment,false,GlobalParams()) #define STRING_VAR(name,val,comment)\ tesseract::StringParam name(val,#name,comment,false,GlobalParams()) #define double_VAR(name,val,comment)\ tesseract::DoubleParam name(val,#name,comment,false,GlobalParams()) #define INT_INIT_VAR(name,val,comment)\ tesseract::IntParam name(val,#name,comment,true,GlobalParams()) #define BOOL_INIT_VAR(name,val,comment)\ tesseract::BoolParam name(val,#name,comment,true,GlobalParams()) #define STRING_INIT_VAR(name,val,comment)\ tesseract::StringParam name(val,#name,comment,true,GlobalParams()) #define double_INIT_VAR(name,val,comment)\ tesseract::DoubleParam name(val,#name,comment,true,GlobalParams()) #define INT_MEMBER(name, val, comment, vec)\ name(val, #name, comment, false, vec) #define BOOL_MEMBER(name, val, comment, vec)\ name(val, #name, comment, false, vec) #define STRING_MEMBER(name, val, comment, vec)\ name(val, #name, comment, false, vec) #define double_MEMBER(name, val, comment, vec)\ name(val, #name, comment, false, vec) #define INT_INIT_MEMBER(name, val, comment, vec)\ name(val, #name, comment, true, vec) #define BOOL_INIT_MEMBER(name, val, comment, vec)\ name(val, #name, comment, true, vec) #define STRING_INIT_MEMBER(name, val, comment, vec)\ name(val, #name, comment, true, vec) #define double_INIT_MEMBER(name, val, comment, vec)\ name(val, #name, comment, true, vec) #endif
C++
/********************************************************************** * File: unicodes.h * Description: Unicode related machinery * Author: David Eger * Created: Wed Jun 15 16:37:50 PST 2011 * * (C) Copyright 2011, Google, Inc. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "unicodes.h" #include "host.h" // for NULL namespace tesseract { const char *kUTF8LineSeparator = "\u2028"; // "\xe2\x80\xa8"; const char *kUTF8ParagraphSeparator = "\u2029"; // "\xe2\x80\xa9"; const char *kLRM = "\u200E"; // Left-to-Right Mark const char *kRLM = "\u200F"; // Right-to-Left Mark const char *kRLE = "\u202A"; // Right-to-Left Embedding const char *kPDF = "\u202C"; // Pop Directional Formatting const char *kHyphenLikeUTF8[] = { "-", // ASCII hyphen-minus "\u05BE", // word hyphen in hybrew "\u2010", // hyphen "\u2011", // non-breaking hyphen "\u2012", // a hyphen the same width as digits "\u2013", // en dash "\u2014", // em dash "\u2015", // horizontal bar "\u2212", // arithmetic minus sign "\uFE58", // small em dash "\uFE63", // small hyphen-minus "\uFF0D", // fullwidth hyphen-minus NULL, // end of our list }; const char *kApostropheLikeUTF8[] = { "'", // ASCII apostrophe "`", // ASCII backtick "\u2018", // opening single quote "\u2019", // closing single quote "\u2032", // mathematical prime mark NULL, // end of our list. }; } // namespace
C++
// Copyright 2012 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: doubleptr.h // Description: Double-ended pointer that keeps pointing correctly even // when reallocated or copied. // Author: Ray Smith // Created: Wed Mar 14 12:22:57 PDT 2012 // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_DOUBLEPTR_H_ #define TESSERACT_CCUTIL_DOUBLEPTR_H_ #include "errcode.h" namespace tesseract { // A smart pointer class that implements a double-ended pointer. Each end // points to the other end. The copy constructor and operator= have MOVE // semantics, meaning that the relationship with the other end moves to the // destination of the copy, leaving the source unattached. // For this reason both the copy constructor and the operator= take a non-const // reference argument, and the const reference versions cannot be used. // DoublePtr is useful to incorporate into structures that are part of a // collection such as GenericVector or STL containers, where reallocs can // relocate the members. DoublePtr is also useful in a GenericHeap, where it // can correctly maintain the pointer to an element of the heap despite it // getting moved around on the heap. class DoublePtr { public: DoublePtr() : other_end_(NULL) {} // Copy constructor steals the partner off src and is therefore a non // const reference arg. // Copying a const DoublePtr generates a compiler error. DoublePtr(DoublePtr& src) { other_end_ = src.other_end_; if (other_end_ != NULL) { other_end_->other_end_ = this; src.other_end_ = NULL; } } // Operator= steals the partner off src, and therefore needs src to be a non- // const reference. // Assigning from a const DoublePtr generates a compiler error. void operator=(DoublePtr& src) { Disconnect(); other_end_ = src.other_end_; if (other_end_ != NULL) { other_end_->other_end_ = this; src.other_end_ = NULL; } } // Connects this and other, discarding any existing connections. void Connect(DoublePtr* other) { other->Disconnect(); Disconnect(); other->other_end_ = this; other_end_ = other; } // Disconnects this and other, making OtherEnd() return NULL for both. void Disconnect() { if (other_end_ != NULL) { other_end_->other_end_ = NULL; other_end_ = NULL; } } // Returns the pointer to the other end of the double pointer. DoublePtr* OtherEnd() const { return other_end_; } private: // Pointer to the other end of the link. It is always true that either // other_end_ == NULL or other_end_->other_end_ == this. DoublePtr* other_end_; }; } // namespace tesseract. #endif // THIRD_PARTY_TESSERACT_CCUTIL_DOUBLEPTR_H_
C++
/////////////////////////////////////////////////////////////////////// // File: tesscallback.h // Description: classes and functions to replace pointer-to-functions // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef _TESS_CALLBACK_SPECIALIZATIONS_H #define _TESS_CALLBACK_SPECIALIZATIONS_H #include "host.h" // For NULL. struct TessCallbackUtils_ { static void FailIsRepeatable(const char* name); }; class TessClosure { public: virtual ~TessClosure() { } virtual void Run() = 0; }; template <class R> class TessResultCallback { public: virtual ~TessResultCallback() { } virtual R Run() = 0; }; template <bool del, class R, class T> class _ConstTessMemberResultCallback_0_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)() const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_0( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run() { if (!del) { R result = (object_->*member_)(); return result; } else { R result = (object_->*member_)(); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T> class _ConstTessMemberResultCallback_0_0<del, void, T> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)() const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_0( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run() { if (!del) { (object_->*member_)(); } else { (object_->*member_)(); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R> inline typename _ConstTessMemberResultCallback_0_0<true,R,T1>::base* NewTessCallback( const T1* obj, R (T2::*member)() const) { return new _ConstTessMemberResultCallback_0_0<true,R,T1>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R> inline typename _ConstTessMemberResultCallback_0_0<false,R,T1>::base* NewPermanentTessCallback( const T1* obj, R (T2::*member)() const) { return new _ConstTessMemberResultCallback_0_0<false,R,T1>( obj, member); } #endif template <bool del, class R, class T> class _TessMemberResultCallback_0_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)() ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_0( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run() { if (!del) { R result = (object_->*member_)(); return result; } else { R result = (object_->*member_)(); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T> class _TessMemberResultCallback_0_0<del, void, T> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)() ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_0( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run() { if (!del) { (object_->*member_)(); } else { (object_->*member_)(); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R> inline typename _TessMemberResultCallback_0_0<true,R,T1>::base* NewTessCallback( T1* obj, R (T2::*member)() ) { return new _TessMemberResultCallback_0_0<true,R,T1>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R> inline typename _TessMemberResultCallback_0_0<false,R,T1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)() ) { return new _TessMemberResultCallback_0_0<false,R,T1>( obj, member); } #endif template <bool del, class R> class _TessFunctionResultCallback_0_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_0( FunctionSignature function) : function_(function) { } virtual R Run() { if (!del) { R result = (*function_)(); return result; } else { R result = (*function_)(); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del> class _TessFunctionResultCallback_0_0<del, void> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_0( FunctionSignature function) : function_(function) { } virtual void Run() { if (!del) { (*function_)(); } else { (*function_)(); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R> inline typename _TessFunctionResultCallback_0_0<true,R>::base* NewTessCallback(R (*function)()) { return new _TessFunctionResultCallback_0_0<true,R>(function); } template <class R> inline typename _TessFunctionResultCallback_0_0<false,R>::base* NewPermanentTessCallback(R (*function)()) { return new _TessFunctionResultCallback_0_0<false,R>(function); } // Specified by TR1 [4.7.2] Reference modifications. template <class T> struct remove_reference; template<typename T> struct remove_reference { typedef T type; }; template<typename T> struct remove_reference<T&> { typedef T type; }; // Identity<T>::type is a typedef of T. Useful for preventing the // compiler from inferring the type of an argument in templates. template <typename T> struct Identity { typedef T type; }; template <bool del, class R, class T, class P1> class _ConstTessMemberResultCallback_1_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_0(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_); return result; } else { R result = (object_->*member_)(p1_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1> class _ConstTessMemberResultCallback_1_0<del, void, T, P1> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_0(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run() { if (!del) { (object_->*member_)(p1_); } else { (object_->*member_)(p1_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1> inline typename _ConstTessMemberResultCallback_1_0<true,R,T1,P1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_0<true,R,T1,P1>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1> inline typename _ConstTessMemberResultCallback_1_0<false,R,T1,P1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_0<false,R,T1,P1>(obj, member, p1); } #endif template <bool del, class R, class T, class P1> class _TessMemberResultCallback_1_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_0( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_); return result; } else { R result = (object_->*member_)(p1_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1> class _TessMemberResultCallback_1_0<del, void, T, P1> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_0( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run() { if (!del) { (object_->*member_)(p1_); } else { (object_->*member_)(p1_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1> inline typename _TessMemberResultCallback_1_0<true,R,T1,P1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_0<true,R,T1,P1>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1> inline typename _TessMemberResultCallback_1_0<false,R,T1,P1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_0<false,R,T1,P1>(obj, member, p1); } #endif template <bool del, class R, class P1> class _TessFunctionResultCallback_1_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_0(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run() { if (!del) { R result = (*function_)(p1_); return result; } else { R result = (*function_)(p1_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1> class _TessFunctionResultCallback_1_0<del, void, P1> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_0(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run() { if (!del) { (*function_)(p1_); } else { (*function_)(p1_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1> inline typename _TessFunctionResultCallback_1_0<true,R,P1>::base* NewTessCallback(R (*function)(P1), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_0<true,R,P1>(function, p1); } template <class R, class P1> inline typename _TessFunctionResultCallback_1_0<false,R,P1>::base* NewPermanentTessCallback(R (*function)(P1), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_0<false,R,P1>(function, p1); } template <bool del, class R, class T, class P1, class P2> class _ConstTessMemberResultCallback_2_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_0(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_); return result; } else { R result = (object_->*member_)(p1_,p2_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2> class _ConstTessMemberResultCallback_2_0<del, void, T, P1, P2> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_0(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_); } else { (object_->*member_)(p1_,p2_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2> inline typename _ConstTessMemberResultCallback_2_0<true,R,T1,P1,P2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_0<true,R,T1,P1,P2>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2> inline typename _ConstTessMemberResultCallback_2_0<false,R,T1,P1,P2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_0<false,R,T1,P1,P2>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2> class _TessMemberResultCallback_2_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_0( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_); return result; } else { R result = (object_->*member_)(p1_,p2_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2> class _TessMemberResultCallback_2_0<del, void, T, P1, P2> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_0( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_); } else { (object_->*member_)(p1_,p2_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2> inline typename _TessMemberResultCallback_2_0<true,R,T1,P1,P2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_0<true,R,T1,P1,P2>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2> inline typename _TessMemberResultCallback_2_0<false,R,T1,P1,P2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_0<false,R,T1,P1,P2>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2> class _TessFunctionResultCallback_2_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1,P2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_0(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run() { if (!del) { R result = (*function_)(p1_,p2_); return result; } else { R result = (*function_)(p1_,p2_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2> class _TessFunctionResultCallback_2_0<del, void, P1, P2> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1,P2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_0(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run() { if (!del) { (*function_)(p1_,p2_); } else { (*function_)(p1_,p2_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2> inline typename _TessFunctionResultCallback_2_0<true,R,P1,P2>::base* NewTessCallback(R (*function)(P1,P2), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_0<true,R,P1,P2>(function, p1, p2); } template <class R, class P1, class P2> inline typename _TessFunctionResultCallback_2_0<false,R,P1,P2>::base* NewPermanentTessCallback(R (*function)(P1,P2), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_0<false,R,P1,P2>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3> class _ConstTessMemberResultCallback_3_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3> class _ConstTessMemberResultCallback_3_0<del, void, T, P1, P2, P3> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_); } else { (object_->*member_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3> inline typename _ConstTessMemberResultCallback_3_0<true,R,T1,P1,P2,P3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_0<true,R,T1,P1,P2,P3>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3> inline typename _ConstTessMemberResultCallback_3_0<false,R,T1,P1,P2,P3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_0<false,R,T1,P1,P2,P3>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3> class _TessMemberResultCallback_3_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3> class _TessMemberResultCallback_3_0<del, void, T, P1, P2, P3> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_); } else { (object_->*member_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3> inline typename _TessMemberResultCallback_3_0<true,R,T1,P1,P2,P3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_0<true,R,T1,P1,P2,P3>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3> inline typename _TessMemberResultCallback_3_0<false,R,T1,P1,P2,P3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_0<false,R,T1,P1,P2,P3>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3> class _TessFunctionResultCallback_3_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1,P2,P3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_0(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run() { if (!del) { R result = (*function_)(p1_,p2_,p3_); return result; } else { R result = (*function_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3> class _TessFunctionResultCallback_3_0<del, void, P1, P2, P3> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1,P2,P3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_0(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run() { if (!del) { (*function_)(p1_,p2_,p3_); } else { (*function_)(p1_,p2_,p3_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3> inline typename _TessFunctionResultCallback_3_0<true,R,P1,P2,P3>::base* NewTessCallback(R (*function)(P1,P2,P3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_0<true,R,P1,P2,P3>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3> inline typename _TessFunctionResultCallback_3_0<false,R,P1,P2,P3>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_0<false,R,P1,P2,P3>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4> class _ConstTessMemberResultCallback_4_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4> class _ConstTessMemberResultCallback_4_0<del, void, T, P1, P2, P3, P4> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_); } else { (object_->*member_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4> inline typename _ConstTessMemberResultCallback_4_0<true,R,T1,P1,P2,P3,P4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_0<true,R,T1,P1,P2,P3,P4>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4> inline typename _ConstTessMemberResultCallback_4_0<false,R,T1,P1,P2,P3,P4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_0<false,R,T1,P1,P2,P3,P4>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4> class _TessMemberResultCallback_4_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4> class _TessMemberResultCallback_4_0<del, void, T, P1, P2, P3, P4> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_); } else { (object_->*member_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4> inline typename _TessMemberResultCallback_4_0<true,R,T1,P1,P2,P3,P4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_0<true,R,T1,P1,P2,P3,P4>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4> inline typename _TessMemberResultCallback_4_0<false,R,T1,P1,P2,P3,P4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_0<false,R,T1,P1,P2,P3,P4>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4> class _TessFunctionResultCallback_4_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1,P2,P3,P4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run() { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4> class _TessFunctionResultCallback_4_0<del, void, P1, P2, P3, P4> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1,P2,P3,P4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run() { if (!del) { (*function_)(p1_,p2_,p3_,p4_); } else { (*function_)(p1_,p2_,p3_,p4_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4> inline typename _TessFunctionResultCallback_4_0<true,R,P1,P2,P3,P4>::base* NewTessCallback(R (*function)(P1,P2,P3,P4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_0<true,R,P1,P2,P3,P4>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4> inline typename _TessFunctionResultCallback_4_0<false,R,P1,P2,P3,P4>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_0<false,R,P1,P2,P3,P4>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5> class _ConstTessMemberResultCallback_5_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5> class _ConstTessMemberResultCallback_5_0<del, void, T, P1, P2, P3, P4, P5> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5> inline typename _ConstTessMemberResultCallback_5_0<true,R,T1,P1,P2,P3,P4,P5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_0<true,R,T1,P1,P2,P3,P4,P5>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5> inline typename _ConstTessMemberResultCallback_5_0<false,R,T1,P1,P2,P3,P4,P5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_0<false,R,T1,P1,P2,P3,P4,P5>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5> class _TessMemberResultCallback_5_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5> class _TessMemberResultCallback_5_0<del, void, T, P1, P2, P3, P4, P5> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5> inline typename _TessMemberResultCallback_5_0<true,R,T1,P1,P2,P3,P4,P5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_0<true,R,T1,P1,P2,P3,P4,P5>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5> inline typename _TessMemberResultCallback_5_0<false,R,T1,P1,P2,P3,P4,P5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_0<false,R,T1,P1,P2,P3,P4,P5>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5> class _TessFunctionResultCallback_5_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run() { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5> class _TessFunctionResultCallback_5_0<del, void, P1, P2, P3, P4, P5> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run() { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_); } else { (*function_)(p1_,p2_,p3_,p4_,p5_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5> inline typename _TessFunctionResultCallback_5_0<true,R,P1,P2,P3,P4,P5>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_0<true,R,P1,P2,P3,P4,P5>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5> inline typename _TessFunctionResultCallback_5_0<false,R,P1,P2,P3,P4,P5>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_0<false,R,P1,P2,P3,P4,P5>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6> class _ConstTessMemberResultCallback_6_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6> class _ConstTessMemberResultCallback_6_0<del, void, T, P1, P2, P3, P4, P5, P6> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_0(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _ConstTessMemberResultCallback_6_0<true,R,T1,P1,P2,P3,P4,P5,P6>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_0<true,R,T1,P1,P2,P3,P4,P5,P6>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _ConstTessMemberResultCallback_6_0<false,R,T1,P1,P2,P3,P4,P5,P6>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_0<false,R,T1,P1,P2,P3,P4,P5,P6>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6> class _TessMemberResultCallback_6_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run() { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6> class _TessMemberResultCallback_6_0<del, void, T, P1, P2, P3, P4, P5, P6> : public TessClosure { public: typedef TessClosure base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_0( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run() { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _TessMemberResultCallback_6_0<true,R,T1,P1,P2,P3,P4,P5,P6>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_0<true,R,T1,P1,P2,P3,P4,P5,P6>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _TessMemberResultCallback_6_0<false,R,T1,P1,P2,P3,P4,P5,P6>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_0<false,R,T1,P1,P2,P3,P4,P5,P6>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6> class _TessFunctionResultCallback_6_0 : public TessResultCallback<R> { public: typedef TessResultCallback<R> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run() { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6> class _TessFunctionResultCallback_6_0<del, void, P1, P2, P3, P4, P5, P6> : public TessClosure { public: typedef TessClosure base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_0(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run() { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _TessFunctionResultCallback_6_0<true,R,P1,P2,P3,P4,P5,P6>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_0<true,R,P1,P2,P3,P4,P5,P6>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6> inline typename _TessFunctionResultCallback_6_0<false,R,P1,P2,P3,P4,P5,P6>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_0<false,R,P1,P2,P3,P4,P5,P6>(function, p1, p2, p3, p4, p5, p6); } template <class A1> class TessCallback1 { public: virtual ~TessCallback1() { } virtual void Run(A1) = 0; }; template <class R, class A1> class TessResultCallback1 { public: virtual ~TessResultCallback1() { } virtual R Run(A1) = 0; }; template <class A1,class A2> class TessCallback2 { public: virtual ~TessCallback2() { } virtual void Run(A1,A2) = 0; }; template <class R, class A1,class A2> class TessResultCallback2 { public: virtual ~TessResultCallback2() { } virtual R Run(A1,A2) = 0; }; template <class A1,class A2,class A3> class TessCallback3 { public: virtual ~TessCallback3() { } virtual void Run(A1,A2,A3) = 0; }; template <class R, class A1,class A2,class A3> class TessResultCallback3 { public: virtual ~TessResultCallback3() { } virtual R Run(A1,A2,A3) = 0; }; template <class A1,class A2,class A3,class A4> class TessCallback4 { public: virtual ~TessCallback4() { } virtual void Run(A1,A2,A3,A4) = 0; }; template <class R, class A1,class A2,class A3,class A4> class TessResultCallback4 { public: virtual ~TessResultCallback4() { } virtual R Run(A1,A2,A3,A4) = 0; }; template <bool del, class R, class T, class A1> class _ConstTessMemberResultCallback_0_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(A1) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_1( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(a1); return result; } else { R result = (object_->*member_)(a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1> class _ConstTessMemberResultCallback_0_1<del, void, T, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(A1) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_1( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(a1); } else { (object_->*member_)(a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1> inline typename _ConstTessMemberResultCallback_0_1<true,R,T1,A1>::base* NewTessCallback( const T1* obj, R (T2::*member)(A1) const) { return new _ConstTessMemberResultCallback_0_1<true,R,T1,A1>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1> inline typename _ConstTessMemberResultCallback_0_1<false,R,T1,A1>::base* NewPermanentTessCallback( const T1* obj, R (T2::*member)(A1) const) { return new _ConstTessMemberResultCallback_0_1<false,R,T1,A1>( obj, member); } #endif template <bool del, class R, class T, class A1> class _TessMemberResultCallback_0_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(A1) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_1( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(a1); return result; } else { R result = (object_->*member_)(a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1> class _TessMemberResultCallback_0_1<del, void, T, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(A1) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_1( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(a1); } else { (object_->*member_)(a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1> inline typename _TessMemberResultCallback_0_1<true,R,T1,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(A1) ) { return new _TessMemberResultCallback_0_1<true,R,T1,A1>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1> inline typename _TessMemberResultCallback_0_1<false,R,T1,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(A1) ) { return new _TessMemberResultCallback_0_1<false,R,T1,A1>( obj, member); } #endif template <bool del, class R, class A1> class _TessFunctionResultCallback_0_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(A1); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_1( FunctionSignature function) : function_(function) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(a1); return result; } else { R result = (*function_)(a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class A1> class _TessFunctionResultCallback_0_1<del, void, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(A1); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_1( FunctionSignature function) : function_(function) { } virtual void Run(A1 a1) { if (!del) { (*function_)(a1); } else { (*function_)(a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class A1> inline typename _TessFunctionResultCallback_0_1<true,R,A1>::base* NewTessCallback(R (*function)(A1)) { return new _TessFunctionResultCallback_0_1<true,R,A1>(function); } template <class R, class A1> inline typename _TessFunctionResultCallback_0_1<false,R,A1>::base* NewPermanentTessCallback(R (*function)(A1)) { return new _TessFunctionResultCallback_0_1<false,R,A1>(function); } template <bool del, class R, class T, class P1, class A1> class _ConstTessMemberResultCallback_1_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_1(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,a1); return result; } else { R result = (object_->*member_)(p1_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1> class _ConstTessMemberResultCallback_1_1<del, void, T, P1, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_1(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,a1); } else { (object_->*member_)(p1_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1> inline typename _ConstTessMemberResultCallback_1_1<true,R,T1,P1,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,A1) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_1<true,R,T1,P1,A1>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1> inline typename _ConstTessMemberResultCallback_1_1<false,R,T1,P1,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,A1) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_1<false,R,T1,P1,A1>(obj, member, p1); } #endif template <bool del, class R, class T, class P1, class A1> class _TessMemberResultCallback_1_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_1( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,a1); return result; } else { R result = (object_->*member_)(p1_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1> class _TessMemberResultCallback_1_1<del, void, T, P1, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_1( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,a1); } else { (object_->*member_)(p1_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1> inline typename _TessMemberResultCallback_1_1<true,R,T1,P1,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_1<true,R,T1,P1,A1>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1> inline typename _TessMemberResultCallback_1_1<false,R,T1,P1,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_1<false,R,T1,P1,A1>(obj, member, p1); } #endif template <bool del, class R, class P1, class A1> class _TessFunctionResultCallback_1_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_1(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,a1); return result; } else { R result = (*function_)(p1_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class A1> class _TessFunctionResultCallback_1_1<del, void, P1, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_1(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,a1); } else { (*function_)(p1_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class A1> inline typename _TessFunctionResultCallback_1_1<true,R,P1,A1>::base* NewTessCallback(R (*function)(P1,A1), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_1<true,R,P1,A1>(function, p1); } template <class R, class P1, class A1> inline typename _TessFunctionResultCallback_1_1<false,R,P1,A1>::base* NewPermanentTessCallback(R (*function)(P1,A1), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_1<false,R,P1,A1>(function, p1); } template <bool del, class R, class T, class P1, class P2, class A1> class _ConstTessMemberResultCallback_2_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_1(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1> class _ConstTessMemberResultCallback_2_1<del, void, T, P1, P2, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_1(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,a1); } else { (object_->*member_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1> inline typename _ConstTessMemberResultCallback_2_1<true,R,T1,P1,P2,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_1<true,R,T1,P1,P2,A1>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1> inline typename _ConstTessMemberResultCallback_2_1<false,R,T1,P1,P2,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_1<false,R,T1,P1,P2,A1>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2, class A1> class _TessMemberResultCallback_2_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_1( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1> class _TessMemberResultCallback_2_1<del, void, T, P1, P2, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_1( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,a1); } else { (object_->*member_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1> inline typename _TessMemberResultCallback_2_1<true,R,T1,P1,P2,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_1<true,R,T1,P1,P2,A1>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1> inline typename _TessMemberResultCallback_2_1<false,R,T1,P1,P2,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_1<false,R,T1,P1,P2,A1>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2, class A1> class _TessFunctionResultCallback_2_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,P2,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_1(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,p2_,a1); return result; } else { R result = (*function_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class A1> class _TessFunctionResultCallback_2_1<del, void, P1, P2, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,P2,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_1(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,p2_,a1); } else { (*function_)(p1_,p2_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class A1> inline typename _TessFunctionResultCallback_2_1<true,R,P1,P2,A1>::base* NewTessCallback(R (*function)(P1,P2,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_1<true,R,P1,P2,A1>(function, p1, p2); } template <class R, class P1, class P2, class A1> inline typename _TessFunctionResultCallback_2_1<false,R,P1,P2,A1>::base* NewPermanentTessCallback(R (*function)(P1,P2,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_1<false,R,P1,P2,A1>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3, class A1> class _ConstTessMemberResultCallback_3_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1> class _ConstTessMemberResultCallback_3_1<del, void, T, P1, P2, P3, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1); } else { (object_->*member_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1> inline typename _ConstTessMemberResultCallback_3_1<true,R,T1,P1,P2,P3,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_1<true,R,T1,P1,P2,P3,A1>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1> inline typename _ConstTessMemberResultCallback_3_1<false,R,T1,P1,P2,P3,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_1<false,R,T1,P1,P2,P3,A1>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class A1> class _TessMemberResultCallback_3_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1> class _TessMemberResultCallback_3_1<del, void, T, P1, P2, P3, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1); } else { (object_->*member_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1> inline typename _TessMemberResultCallback_3_1<true,R,T1,P1,P2,P3,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_1<true,R,T1,P1,P2,P3,A1>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1> inline typename _TessMemberResultCallback_3_1<false,R,T1,P1,P2,P3,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_1<false,R,T1,P1,P2,P3,A1>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3, class A1> class _TessFunctionResultCallback_3_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,P2,P3,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_1(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,p2_,p3_,a1); return result; } else { R result = (*function_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class A1> class _TessFunctionResultCallback_3_1<del, void, P1, P2, P3, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,P2,P3,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_1(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,p2_,p3_,a1); } else { (*function_)(p1_,p2_,p3_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class A1> inline typename _TessFunctionResultCallback_3_1<true,R,P1,P2,P3,A1>::base* NewTessCallback(R (*function)(P1,P2,P3,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_1<true,R,P1,P2,P3,A1>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3, class A1> inline typename _TessFunctionResultCallback_3_1<false,R,P1,P2,P3,A1>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_1<false,R,P1,P2,P3,A1>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1> class _ConstTessMemberResultCallback_4_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1> class _ConstTessMemberResultCallback_4_1<del, void, T, P1, P2, P3, P4, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1> inline typename _ConstTessMemberResultCallback_4_1<true,R,T1,P1,P2,P3,P4,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_1<true,R,T1,P1,P2,P3,P4,A1>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1> inline typename _ConstTessMemberResultCallback_4_1<false,R,T1,P1,P2,P3,P4,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_1<false,R,T1,P1,P2,P3,P4,A1>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1> class _TessMemberResultCallback_4_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1> class _TessMemberResultCallback_4_1<del, void, T, P1, P2, P3, P4, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1> inline typename _TessMemberResultCallback_4_1<true,R,T1,P1,P2,P3,P4,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_1<true,R,T1,P1,P2,P3,P4,A1>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1> inline typename _TessMemberResultCallback_4_1<false,R,T1,P1,P2,P3,P4,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_1<false,R,T1,P1,P2,P3,P4,A1>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class A1> class _TessFunctionResultCallback_4_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,a1); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class A1> class _TessFunctionResultCallback_4_1<del, void, P1, P2, P3, P4, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,a1); } else { (*function_)(p1_,p2_,p3_,p4_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class A1> inline typename _TessFunctionResultCallback_4_1<true,R,P1,P2,P3,P4,A1>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_1<true,R,P1,P2,P3,P4,A1>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4, class A1> inline typename _TessFunctionResultCallback_4_1<false,R,P1,P2,P3,P4,A1>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_1<false,R,P1,P2,P3,P4,A1>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1> class _ConstTessMemberResultCallback_5_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1> class _ConstTessMemberResultCallback_5_1<del, void, T, P1, P2, P3, P4, P5, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _ConstTessMemberResultCallback_5_1<true,R,T1,P1,P2,P3,P4,P5,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_1<true,R,T1,P1,P2,P3,P4,P5,A1>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _ConstTessMemberResultCallback_5_1<false,R,T1,P1,P2,P3,P4,P5,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_1<false,R,T1,P1,P2,P3,P4,P5,A1>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1> class _TessMemberResultCallback_5_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1> class _TessMemberResultCallback_5_1<del, void, T, P1, P2, P3, P4, P5, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _TessMemberResultCallback_5_1<true,R,T1,P1,P2,P3,P4,P5,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_1<true,R,T1,P1,P2,P3,P4,P5,A1>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _TessMemberResultCallback_5_1<false,R,T1,P1,P2,P3,P4,P5,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_1<false,R,T1,P1,P2,P3,P4,P5,A1>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class A1> class _TessFunctionResultCallback_5_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class A1> class _TessFunctionResultCallback_5_1<del, void, P1, P2, P3, P4, P5, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,a1); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _TessFunctionResultCallback_5_1<true,R,P1,P2,P3,P4,P5,A1>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_1<true,R,P1,P2,P3,P4,P5,A1>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5, class A1> inline typename _TessFunctionResultCallback_5_1<false,R,P1,P2,P3,P4,P5,A1>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_1<false,R,P1,P2,P3,P4,P5,A1>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _ConstTessMemberResultCallback_6_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _ConstTessMemberResultCallback_6_1<del, void, T, P1, P2, P3, P4, P5, P6, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_1(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _ConstTessMemberResultCallback_6_1<true,R,T1,P1,P2,P3,P4,P5,P6,A1>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_1<true,R,T1,P1,P2,P3,P4,P5,P6,A1>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _ConstTessMemberResultCallback_6_1<false,R,T1,P1,P2,P3,P4,P5,P6,A1>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_1<false,R,T1,P1,P2,P3,P4,P5,P6,A1>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _TessMemberResultCallback_6_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _TessMemberResultCallback_6_1<del, void, T, P1, P2, P3, P4, P5, P6, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_1( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _TessMemberResultCallback_6_1<true,R,T1,P1,P2,P3,P4,P5,P6,A1>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_1<true,R,T1,P1,P2,P3,P4,P5,P6,A1>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _TessMemberResultCallback_6_1<false,R,T1,P1,P2,P3,P4,P5,P6,A1>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_1<false,R,T1,P1,P2,P3,P4,P5,P6,A1>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _TessFunctionResultCallback_6_1 : public TessResultCallback1<R,A1> { public: typedef TessResultCallback1<R,A1> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6, class A1> class _TessFunctionResultCallback_6_1<del, void, P1, P2, P3, P4, P5, P6, A1> : public TessCallback1<A1> { public: typedef TessCallback1<A1> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_1(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _TessFunctionResultCallback_6_1<true,R,P1,P2,P3,P4,P5,P6,A1>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_1<true,R,P1,P2,P3,P4,P5,P6,A1>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1> inline typename _TessFunctionResultCallback_6_1<false,R,P1,P2,P3,P4,P5,P6,A1>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_1<false,R,P1,P2,P3,P4,P5,P6,A1>(function, p1, p2, p3, p4, p5, p6); } template <bool del, class R, class T, class A1, class A2> class _ConstTessMemberResultCallback_0_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(A1,A2) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_2( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(a1,a2); return result; } else { R result = (object_->*member_)(a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2> class _ConstTessMemberResultCallback_0_2<del, void, T, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(A1,A2) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_2( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(a1,a2); } else { (object_->*member_)(a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2> inline typename _ConstTessMemberResultCallback_0_2<true,R,T1,A1,A2>::base* NewTessCallback( const T1* obj, R (T2::*member)(A1,A2) const) { return new _ConstTessMemberResultCallback_0_2<true,R,T1,A1,A2>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2> inline typename _ConstTessMemberResultCallback_0_2<false,R,T1,A1,A2>::base* NewPermanentTessCallback( const T1* obj, R (T2::*member)(A1,A2) const) { return new _ConstTessMemberResultCallback_0_2<false,R,T1,A1,A2>( obj, member); } #endif template <bool del, class R, class T, class A1, class A2> class _TessMemberResultCallback_0_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(A1,A2) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_2( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(a1,a2); return result; } else { R result = (object_->*member_)(a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2> class _TessMemberResultCallback_0_2<del, void, T, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(A1,A2) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_2( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(a1,a2); } else { (object_->*member_)(a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2> inline typename _TessMemberResultCallback_0_2<true,R,T1,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(A1,A2) ) { return new _TessMemberResultCallback_0_2<true,R,T1,A1,A2>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2> inline typename _TessMemberResultCallback_0_2<false,R,T1,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(A1,A2) ) { return new _TessMemberResultCallback_0_2<false,R,T1,A1,A2>( obj, member); } #endif template <bool del, class R, class A1, class A2> class _TessFunctionResultCallback_0_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(A1,A2); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_2( FunctionSignature function) : function_(function) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(a1,a2); return result; } else { R result = (*function_)(a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class A1, class A2> class _TessFunctionResultCallback_0_2<del, void, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(A1,A2); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_2( FunctionSignature function) : function_(function) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(a1,a2); } else { (*function_)(a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class A1, class A2> inline typename _TessFunctionResultCallback_0_2<true,R,A1,A2>::base* NewTessCallback(R (*function)(A1,A2)) { return new _TessFunctionResultCallback_0_2<true,R,A1,A2>(function); } template <class R, class A1, class A2> inline typename _TessFunctionResultCallback_0_2<false,R,A1,A2>::base* NewPermanentTessCallback(R (*function)(A1,A2)) { return new _TessFunctionResultCallback_0_2<false,R,A1,A2>(function); } template <bool del, class R, class T, class P1, class A1, class A2> class _ConstTessMemberResultCallback_1_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_2(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2> class _ConstTessMemberResultCallback_1_2<del, void, T, P1, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_2(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,a1,a2); } else { (object_->*member_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2> inline typename _ConstTessMemberResultCallback_1_2<true,R,T1,P1,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_2<true,R,T1,P1,A1,A2>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2> inline typename _ConstTessMemberResultCallback_1_2<false,R,T1,P1,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_2<false,R,T1,P1,A1,A2>(obj, member, p1); } #endif template <bool del, class R, class T, class P1, class A1, class A2> class _TessMemberResultCallback_1_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_2( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2> class _TessMemberResultCallback_1_2<del, void, T, P1, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_2( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,a1,a2); } else { (object_->*member_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2> inline typename _TessMemberResultCallback_1_2<true,R,T1,P1,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1,A2) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_2<true,R,T1,P1,A1,A2>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2> inline typename _TessMemberResultCallback_1_2<false,R,T1,P1,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1,A2) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_2<false,R,T1,P1,A1,A2>(obj, member, p1); } #endif template <bool del, class R, class P1, class A1, class A2> class _TessFunctionResultCallback_1_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_2(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,a1,a2); return result; } else { R result = (*function_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class A1, class A2> class _TessFunctionResultCallback_1_2<del, void, P1, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_2(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,a1,a2); } else { (*function_)(p1_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class A1, class A2> inline typename _TessFunctionResultCallback_1_2<true,R,P1,A1,A2>::base* NewTessCallback(R (*function)(P1,A1,A2), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_2<true,R,P1,A1,A2>(function, p1); } template <class R, class P1, class A1, class A2> inline typename _TessFunctionResultCallback_1_2<false,R,P1,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,A1,A2), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_2<false,R,P1,A1,A2>(function, p1); } template <bool del, class R, class T, class P1, class P2, class A1, class A2> class _ConstTessMemberResultCallback_2_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_2(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2> class _ConstTessMemberResultCallback_2_2<del, void, T, P1, P2, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_2(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2); } else { (object_->*member_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2> inline typename _ConstTessMemberResultCallback_2_2<true,R,T1,P1,P2,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_2<true,R,T1,P1,P2,A1,A2>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2> inline typename _ConstTessMemberResultCallback_2_2<false,R,T1,P1,P2,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_2<false,R,T1,P1,P2,A1,A2>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2, class A1, class A2> class _TessMemberResultCallback_2_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_2( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2> class _TessMemberResultCallback_2_2<del, void, T, P1, P2, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_2( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2); } else { (object_->*member_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2> inline typename _TessMemberResultCallback_2_2<true,R,T1,P1,P2,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_2<true,R,T1,P1,P2,A1,A2>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2> inline typename _TessMemberResultCallback_2_2<false,R,T1,P1,P2,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_2<false,R,T1,P1,P2,A1,A2>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2, class A1, class A2> class _TessFunctionResultCallback_2_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,P2,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_2(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,p2_,a1,a2); return result; } else { R result = (*function_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class A1, class A2> class _TessFunctionResultCallback_2_2<del, void, P1, P2, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,P2,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_2(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,p2_,a1,a2); } else { (*function_)(p1_,p2_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class A1, class A2> inline typename _TessFunctionResultCallback_2_2<true,R,P1,P2,A1,A2>::base* NewTessCallback(R (*function)(P1,P2,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_2<true,R,P1,P2,A1,A2>(function, p1, p2); } template <class R, class P1, class P2, class A1, class A2> inline typename _TessFunctionResultCallback_2_2<false,R,P1,P2,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,P2,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_2<false,R,P1,P2,A1,A2>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2> class _ConstTessMemberResultCallback_3_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2> class _ConstTessMemberResultCallback_3_2<del, void, T, P1, P2, P3, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2> inline typename _ConstTessMemberResultCallback_3_2<true,R,T1,P1,P2,P3,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_2<true,R,T1,P1,P2,P3,A1,A2>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2> inline typename _ConstTessMemberResultCallback_3_2<false,R,T1,P1,P2,P3,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_2<false,R,T1,P1,P2,P3,A1,A2>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2> class _TessMemberResultCallback_3_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2> class _TessMemberResultCallback_3_2<del, void, T, P1, P2, P3, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2> inline typename _TessMemberResultCallback_3_2<true,R,T1,P1,P2,P3,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_2<true,R,T1,P1,P2,P3,A1,A2>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2> inline typename _TessMemberResultCallback_3_2<false,R,T1,P1,P2,P3,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_2<false,R,T1,P1,P2,P3,A1,A2>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3, class A1, class A2> class _TessFunctionResultCallback_3_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,P2,P3,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_2(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,p2_,p3_,a1,a2); return result; } else { R result = (*function_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class A1, class A2> class _TessFunctionResultCallback_3_2<del, void, P1, P2, P3, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,P2,P3,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_2(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,p2_,p3_,a1,a2); } else { (*function_)(p1_,p2_,p3_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class A1, class A2> inline typename _TessFunctionResultCallback_3_2<true,R,P1,P2,P3,A1,A2>::base* NewTessCallback(R (*function)(P1,P2,P3,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_2<true,R,P1,P2,P3,A1,A2>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3, class A1, class A2> inline typename _TessFunctionResultCallback_3_2<false,R,P1,P2,P3,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_2<false,R,P1,P2,P3,A1,A2>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2> class _ConstTessMemberResultCallback_4_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2> class _ConstTessMemberResultCallback_4_2<del, void, T, P1, P2, P3, P4, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _ConstTessMemberResultCallback_4_2<true,R,T1,P1,P2,P3,P4,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_2<true,R,T1,P1,P2,P3,P4,A1,A2>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _ConstTessMemberResultCallback_4_2<false,R,T1,P1,P2,P3,P4,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_2<false,R,T1,P1,P2,P3,P4,A1,A2>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2> class _TessMemberResultCallback_4_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2> class _TessMemberResultCallback_4_2<del, void, T, P1, P2, P3, P4, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _TessMemberResultCallback_4_2<true,R,T1,P1,P2,P3,P4,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_2<true,R,T1,P1,P2,P3,P4,A1,A2>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _TessMemberResultCallback_4_2<false,R,T1,P1,P2,P3,P4,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_2<false,R,T1,P1,P2,P3,P4,A1,A2>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class A1, class A2> class _TessFunctionResultCallback_4_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class A1, class A2> class _TessFunctionResultCallback_4_2<del, void, P1, P2, P3, P4, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,a1,a2); } else { (*function_)(p1_,p2_,p3_,p4_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _TessFunctionResultCallback_4_2<true,R,P1,P2,P3,P4,A1,A2>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_2<true,R,P1,P2,P3,P4,A1,A2>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4, class A1, class A2> inline typename _TessFunctionResultCallback_4_2<false,R,P1,P2,P3,P4,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_2<false,R,P1,P2,P3,P4,A1,A2>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _ConstTessMemberResultCallback_5_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _ConstTessMemberResultCallback_5_2<del, void, T, P1, P2, P3, P4, P5, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _ConstTessMemberResultCallback_5_2<true,R,T1,P1,P2,P3,P4,P5,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_2<true,R,T1,P1,P2,P3,P4,P5,A1,A2>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _ConstTessMemberResultCallback_5_2<false,R,T1,P1,P2,P3,P4,P5,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_2<false,R,T1,P1,P2,P3,P4,P5,A1,A2>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _TessMemberResultCallback_5_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _TessMemberResultCallback_5_2<del, void, T, P1, P2, P3, P4, P5, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _TessMemberResultCallback_5_2<true,R,T1,P1,P2,P3,P4,P5,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_2<true,R,T1,P1,P2,P3,P4,P5,A1,A2>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _TessMemberResultCallback_5_2<false,R,T1,P1,P2,P3,P4,P5,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_2<false,R,T1,P1,P2,P3,P4,P5,A1,A2>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _TessFunctionResultCallback_5_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class A1, class A2> class _TessFunctionResultCallback_5_2<del, void, P1, P2, P3, P4, P5, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _TessFunctionResultCallback_5_2<true,R,P1,P2,P3,P4,P5,A1,A2>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_2<true,R,P1,P2,P3,P4,P5,A1,A2>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2> inline typename _TessFunctionResultCallback_5_2<false,R,P1,P2,P3,P4,P5,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_2<false,R,P1,P2,P3,P4,P5,A1,A2>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _ConstTessMemberResultCallback_6_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _ConstTessMemberResultCallback_6_2<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_2(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _ConstTessMemberResultCallback_6_2<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_2<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _ConstTessMemberResultCallback_6_2<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_2<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _TessMemberResultCallback_6_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _TessMemberResultCallback_6_2<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_2( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _TessMemberResultCallback_6_2<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_2<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _TessMemberResultCallback_6_2<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_2<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _TessFunctionResultCallback_6_2 : public TessResultCallback2<R,A1,A2> { public: typedef TessResultCallback2<R,A1,A2> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> class _TessFunctionResultCallback_6_2<del, void, P1, P2, P3, P4, P5, P6, A1, A2> : public TessCallback2<A1,A2> { public: typedef TessCallback2<A1,A2> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_2(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _TessFunctionResultCallback_6_2<true,R,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_2<true,R,P1,P2,P3,P4,P5,P6,A1,A2>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2> inline typename _TessFunctionResultCallback_6_2<false,R,P1,P2,P3,P4,P5,P6,A1,A2>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_2<false,R,P1,P2,P3,P4,P5,P6,A1,A2>(function, p1, p2, p3, p4, p5, p6); } template <bool del, class R, class T, class A1, class A2, class A3> class _ConstTessMemberResultCallback_0_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(A1,A2,A3) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_3( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(a1,a2,a3); return result; } else { R result = (object_->*member_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3> class _ConstTessMemberResultCallback_0_3<del, void, T, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(A1,A2,A3) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_3( const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(a1,a2,a3); } else { (object_->*member_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_0_3<true,R,T1,A1,A2,A3>::base* NewTessCallback( const T1* obj, R (T2::*member)(A1,A2,A3) const) { return new _ConstTessMemberResultCallback_0_3<true,R,T1,A1,A2,A3>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_0_3<false,R,T1,A1,A2,A3>::base* NewPermanentTessCallback( const T1* obj, R (T2::*member)(A1,A2,A3) const) { return new _ConstTessMemberResultCallback_0_3<false,R,T1,A1,A2,A3>( obj, member); } #endif template <bool del, class R, class T, class A1, class A2, class A3> class _TessMemberResultCallback_0_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(A1,A2,A3) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_3( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(a1,a2,a3); return result; } else { R result = (object_->*member_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3> class _TessMemberResultCallback_0_3<del, void, T, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(A1,A2,A3) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_3( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(a1,a2,a3); } else { (object_->*member_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3> inline typename _TessMemberResultCallback_0_3<true,R,T1,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(A1,A2,A3) ) { return new _TessMemberResultCallback_0_3<true,R,T1,A1,A2,A3>( obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3> inline typename _TessMemberResultCallback_0_3<false,R,T1,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(A1,A2,A3) ) { return new _TessMemberResultCallback_0_3<false,R,T1,A1,A2,A3>( obj, member); } #endif template <bool del, class R, class A1, class A2, class A3> class _TessFunctionResultCallback_0_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(A1,A2,A3); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_3( FunctionSignature function) : function_(function) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(a1,a2,a3); return result; } else { R result = (*function_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class A1, class A2, class A3> class _TessFunctionResultCallback_0_3<del, void, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(A1,A2,A3); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_3( FunctionSignature function) : function_(function) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(a1,a2,a3); } else { (*function_)(a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_0_3<true,R,A1,A2,A3>::base* NewTessCallback(R (*function)(A1,A2,A3)) { return new _TessFunctionResultCallback_0_3<true,R,A1,A2,A3>(function); } template <class R, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_0_3<false,R,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(A1,A2,A3)) { return new _TessFunctionResultCallback_0_3<false,R,A1,A2,A3>(function); } template <bool del, class R, class T, class P1, class A1, class A2, class A3> class _ConstTessMemberResultCallback_1_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3) const; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_3(T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1, A2 a2, A3 a3) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3> class _ConstTessMemberResultCallback_1_3<del, void, T, P1, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3) const; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_3(T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1, A2 a2, A3 a3) { if (!del) { (object_->*member_)(p1_,a1,a2,a3); } else { (object_->*member_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_1_3<true,R,T1,P1,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3) , typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_3<true,R,T1,P1,A1,A2,A3>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_1_3<false,R,T1,P1,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3) , typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_3<false,R,T1,P1,A1,A2,A3>(obj, member, p1); } #endif template <bool del, class R, class T, class P1, class A1, class A2, class A3> class _TessMemberResultCallback_1_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_3(T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1, A2 a2, A3 a3) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3> class _TessMemberResultCallback_1_3<del, void, T, P1, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_3(T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1, A2 a2, A3 a3) { if (!del) { (object_->*member_)(p1_,a1,a2,a3); } else { (object_->*member_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3> inline typename _TessMemberResultCallback_1_3<true,R,T1,P1,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_3<true,R,T1,P1,A1,A2,A3>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3> inline typename _TessMemberResultCallback_1_3<false,R,T1,P1,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_3<false,R,T1,P1,A1,A2,A3>(obj, member, p1); } #endif template <bool del, class R, class P1, class A1, class A2, class A3> class _TessFunctionResultCallback_1_3 : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef R (*FunctionSignature)(P1,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_3(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run(A1 a1, A2 a2, A3 a3) { if (!del) { R result = (*function_)(p1_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class A1, class A2, class A3> class _TessFunctionResultCallback_1_3<del, void, P1, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_3(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run(A1 a1, A2 a2, A3 a3) { if (!del) { (*function_)(p1_,a1,a2,a3); } else { (*function_)(p1_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_1_3<true,R,P1,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,A1,A2,A3), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_3<true,R,P1,A1,A2,A3>(function, p1); } template <class R, class P1, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_1_3<false,R,P1,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,A1,A2,A3), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_3<false,R,P1,A1,A2,A3>(function, p1); } template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3> class _ConstTessMemberResultCallback_2_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_3(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3> class _ConstTessMemberResultCallback_2_3<del, void, T, P1, P2, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_3(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_2_3<true,R,T1,P1,P2,A1,A2,A3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_3<true,R,T1,P1,P2,A1,A2,A3>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_2_3<false,R,T1,P1,P2,A1,A2,A3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_3<false,R,T1,P1,P2,A1,A2,A3>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3> class _TessMemberResultCallback_2_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_3( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3> class _TessMemberResultCallback_2_3<del, void, T, P1, P2, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_3( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3> inline typename _TessMemberResultCallback_2_3<true,R,T1,P1,P2,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_3<true,R,T1,P1,P2,A1,A2,A3>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3> inline typename _TessMemberResultCallback_2_3<false,R,T1,P1,P2,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_3<false,R,T1,P1,P2,A1,A2,A3>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2, class A1, class A2, class A3> class _TessFunctionResultCallback_2_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(P1,P2,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_3(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(p1_,p2_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class A1, class A2, class A3> class _TessFunctionResultCallback_2_3<del, void, P1, P2, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,P2,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_3(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(p1_,p2_,a1,a2,a3); } else { (*function_)(p1_,p2_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_2_3<true,R,P1,P2,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,P2,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_3<true,R,P1,P2,A1,A2,A3>(function, p1, p2); } template <class R, class P1, class P2, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_2_3<false,R,P1,P2,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,P2,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_3<false,R,P1,P2,A1,A2,A3>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3> class _ConstTessMemberResultCallback_3_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3> class _ConstTessMemberResultCallback_3_3<del, void, T, P1, P2, P3, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_3_3<true,R,T1,P1,P2,P3,A1,A2,A3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_3<true,R,T1,P1,P2,P3,A1,A2,A3>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_3_3<false,R,T1,P1,P2,P3,A1,A2,A3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_3<false,R,T1,P1,P2,P3,A1,A2,A3>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3> class _TessMemberResultCallback_3_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3> class _TessMemberResultCallback_3_3<del, void, T, P1, P2, P3, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _TessMemberResultCallback_3_3<true,R,T1,P1,P2,P3,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_3<true,R,T1,P1,P2,P3,A1,A2,A3>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _TessMemberResultCallback_3_3<false,R,T1,P1,P2,P3,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_3<false,R,T1,P1,P2,P3,A1,A2,A3>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3, class A1, class A2, class A3> class _TessFunctionResultCallback_3_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(P1,P2,P3,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_3(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class A1, class A2, class A3> class _TessFunctionResultCallback_3_3<del, void, P1, P2, P3, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,P2,P3,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_3(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(p1_,p2_,p3_,a1,a2,a3); } else { (*function_)(p1_,p2_,p3_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_3_3<true,R,P1,P2,P3,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,P2,P3,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_3<true,R,P1,P2,P3,A1,A2,A3>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_3_3<false,R,P1,P2,P3,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_3<false,R,P1,P2,P3,A1,A2,A3>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _ConstTessMemberResultCallback_4_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _ConstTessMemberResultCallback_4_3<del, void, T, P1, P2, P3, P4, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_4_3<true,R,T1,P1,P2,P3,P4,A1,A2,A3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_3<true,R,T1,P1,P2,P3,P4,A1,A2,A3>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_4_3<false,R,T1,P1,P2,P3,P4,A1,A2,A3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_3<false,R,T1,P1,P2,P3,P4,A1,A2,A3>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _TessMemberResultCallback_4_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _TessMemberResultCallback_4_3<del, void, T, P1, P2, P3, P4, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _TessMemberResultCallback_4_3<true,R,T1,P1,P2,P3,P4,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_3<true,R,T1,P1,P2,P3,P4,A1,A2,A3>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _TessMemberResultCallback_4_3<false,R,T1,P1,P2,P3,P4,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_3<false,R,T1,P1,P2,P3,P4,A1,A2,A3>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _TessFunctionResultCallback_4_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class A1, class A2, class A3> class _TessFunctionResultCallback_4_3<del, void, P1, P2, P3, P4, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3); } else { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_4_3<true,R,P1,P2,P3,P4,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_3<true,R,P1,P2,P3,P4,A1,A2,A3>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_4_3<false,R,P1,P2,P3,P4,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_3<false,R,P1,P2,P3,P4,A1,A2,A3>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _ConstTessMemberResultCallback_5_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _ConstTessMemberResultCallback_5_3<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_5_3<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_3<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_5_3<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_3<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _TessMemberResultCallback_5_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _TessMemberResultCallback_5_3<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _TessMemberResultCallback_5_3<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_3<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _TessMemberResultCallback_5_3<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_3<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _TessFunctionResultCallback_5_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> class _TessFunctionResultCallback_5_3<del, void, P1, P2, P3, P4, P5, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_5_3<true,R,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_3<true,R,P1,P2,P3,P4,P5,A1,A2,A3>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_5_3<false,R,P1,P2,P3,P4,P5,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_3<false,R,P1,P2,P3,P4,P5,A1,A2,A3>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _ConstTessMemberResultCallback_6_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _ConstTessMemberResultCallback_6_3<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_3(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_6_3<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_3<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _ConstTessMemberResultCallback_6_3<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_3<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _TessMemberResultCallback_6_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _TessMemberResultCallback_6_3<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_3( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _TessMemberResultCallback_6_3<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_3<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _TessMemberResultCallback_6_3<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_3<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _TessFunctionResultCallback_6_3 : public TessResultCallback3<R,A1,A2,A3> { public: typedef TessResultCallback3<R,A1,A2,A3> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> class _TessFunctionResultCallback_6_3<del, void, P1, P2, P3, P4, P5, P6, A1, A2, A3> : public TessCallback3<A1,A2,A3> { public: typedef TessCallback3<A1,A2,A3> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_3(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_6_3<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_3<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3> inline typename _TessFunctionResultCallback_6_3<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_3<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3>(function, p1, p2, p3, p4, p5, p6); } template <bool del, class R, class T, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_0_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_4(const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_0_4<del, void, T, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_4(const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(a1,a2,a3,a4); } else { (object_->*member_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_0_4<true,R,T1,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(A1,A2,A3,A4) const) { return new _ConstTessMemberResultCallback_0_4<true,R,T1,A1,A2,A3,A4>(obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_0_4<false,R,T1,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(A1,A2,A3,A4) const) { return new _ConstTessMemberResultCallback_0_4<false,R,T1,A1,A2,A3,A4>(obj, member); } #endif template <bool del, class R, class T, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_0_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_4( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_0_4<del, void, T, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_4( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(a1,a2,a3,a4); } else { (object_->*member_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_0_4<true,R,T1,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(A1,A2,A3,A4) ) { return new _TessMemberResultCallback_0_4<true,R,T1,A1,A2,A3,A4>(obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_0_4<false,R,T1,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(A1,A2,A3,A4) ) { return new _TessMemberResultCallback_0_4<false,R,T1,A1,A2,A3,A4>(obj, member); } #endif template <bool del, class R, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_0_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(A1,A2,A3,A4); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_4(FunctionSignature function) : function_(function) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(a1,a2,a3,a4); return result; } else { R result = (*function_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_0_4<del, void, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(A1,A2,A3,A4); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_4(FunctionSignature function) : function_(function) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(a1,a2,a3,a4); } else { (*function_)(a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_0_4<true,R,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(A1,A2,A3,A4)) { return new _TessFunctionResultCallback_0_4<true,R,A1,A2,A3,A4>(function); } template <class R, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_0_4<false,R,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(A1,A2,A3,A4)) { return new _TessFunctionResultCallback_0_4<false,R,A1,A2,A3,A4>(function); } template <bool del, class R, class T, class P1, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_1_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_4(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_1_4<del, void, T, P1, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_4(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_1_4<true,R,T1,P1,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2,A3,A4) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_4<true,R,T1,P1,A1,A2,A3,A4>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_1_4<false,R,T1,P1,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2,A3,A4) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_4<false,R,T1,P1,A1,A2,A3,A4>(obj, member, p1); } #endif template <bool del, class R, class T, class P1, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_1_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_4( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_1_4<del, void, T, P1, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_4( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_1_4<true,R,T1,P1,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3,A4) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_4<true,R,T1,P1,A1,A2,A3,A4>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_1_4<false,R,T1,P1,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3,A4) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_4<false,R,T1,P1,A1,A2,A3,A4>(obj, member, p1); } #endif template <bool del, class R, class P1, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_1_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_4(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_1_4<del, void, P1, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_4(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,a1,a2,a3,a4); } else { (*function_)(p1_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_1_4<true,R,P1,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,A1,A2,A3,A4), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_4<true,R,P1,A1,A2,A3,A4>(function, p1); } template <class R, class P1, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_1_4<false,R,P1,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,A1,A2,A3,A4), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_4<false,R,P1,A1,A2,A3,A4>(function, p1); } template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_2_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_4(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_2_4<del, void, T, P1, P2, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_4(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_2_4<true,R,T1,P1,P2,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_4<true,R,T1,P1,P2,A1,A2,A3,A4>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_2_4<false,R,T1,P1,P2,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_4<false,R,T1,P1,P2,A1,A2,A3,A4>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_2_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_4( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_2_4<del, void, T, P1, P2, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_4( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_2_4<true,R,T1,P1,P2,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_4<true,R,T1,P1,P2,A1,A2,A3,A4>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_2_4<false,R,T1,P1,P2,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_4<false,R,T1,P1,P2,A1,A2,A3,A4>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_2_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,P2,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_4(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,p2_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_2_4<del, void, P1, P2, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,P2,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_4(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,p2_,a1,a2,a3,a4); } else { (*function_)(p1_,p2_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_2_4<true,R,P1,P2,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,P2,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_4<true,R,P1,P2,A1,A2,A3,A4>(function, p1, p2); } template <class R, class P1, class P2, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_2_4<false,R,P1,P2,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,P2,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_4<false,R,P1,P2,A1,A2,A3,A4>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_3_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_3_4<del, void, T, P1, P2, P3, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_3_4<true,R,T1,P1,P2,P3,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_4<true,R,T1,P1,P2,P3,A1,A2,A3,A4>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_3_4<false,R,T1,P1,P2,P3,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_4<false,R,T1,P1,P2,P3,A1,A2,A3,A4>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_3_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_3_4<del, void, T, P1, P2, P3, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_3_4<true,R,T1,P1,P2,P3,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_4<true,R,T1,P1,P2,P3,A1,A2,A3,A4>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_3_4<false,R,T1,P1,P2,P3,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_4<false,R,T1,P1,P2,P3,A1,A2,A3,A4>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_3_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,P2,P3,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_4(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_3_4<del, void, P1, P2, P3, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,P2,P3,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_4(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,p2_,p3_,a1,a2,a3,a4); } else { (*function_)(p1_,p2_,p3_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_3_4<true,R,P1,P2,P3,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,P2,P3,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_4<true,R,P1,P2,P3,A1,A2,A3,A4>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_3_4<false,R,P1,P2,P3,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_4<false,R,P1,P2,P3,A1,A2,A3,A4>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_4_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_4_4<del, void, T, P1, P2, P3, P4, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_4_4<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_4<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_4_4<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_4<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_4_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_4_4<del, void, T, P1, P2, P3, P4, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_4_4<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_4<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_4_4<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_4<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_4_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_4_4<del, void, P1, P2, P3, P4, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); } else { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_4_4<true,R,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_4<true,R,P1,P2,P3,P4,A1,A2,A3,A4>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_4_4<false,R,P1,P2,P3,P4,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_4<false,R,P1,P2,P3,P4,A1,A2,A3,A4>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_5_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_5_4<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_5_4<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_4<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_5_4<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_4<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_5_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_5_4<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_5_4<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_4<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_5_4<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_4<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_5_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_5_4<del, void, P1, P2, P3, P4, P5, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_5_4<true,R,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_4<true,R,P1,P2,P3,P4,P5,A1,A2,A3,A4>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_5_4<false,R,P1,P2,P3,P4,P5,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_4<false,R,P1,P2,P3,P4,P5,A1,A2,A3,A4>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_6_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _ConstTessMemberResultCallback_6_4<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_4(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_6_4<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_4<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _ConstTessMemberResultCallback_6_4<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_4<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_6_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _TessMemberResultCallback_6_4<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_4( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_6_4<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_4<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _TessMemberResultCallback_6_4<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_4<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_6_4 : public TessResultCallback4<R,A1,A2,A3,A4> { public: typedef TessResultCallback4<R,A1,A2,A3,A4> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> class _TessFunctionResultCallback_6_4<del, void, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4> : public TessCallback4<A1,A2,A3,A4> { public: typedef TessCallback4<A1,A2,A3,A4> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_4(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_6_4<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_4<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4> inline typename _TessFunctionResultCallback_6_4<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_4<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4>(function, p1, p2, p3, p4, p5, p6); } template <class A1,class A2,class A3,class A4,class A5> class TessCallback5 { public: virtual ~TessCallback5() { } virtual void Run(A1,A2,A3,A4,A5) = 0; }; template <class R, class A1,class A2,class A3,class A4,class A5> class TessResultCallback5 { public: virtual ~TessResultCallback5() { } virtual R Run(A1,A2,A3,A4,A5) = 0; }; template <bool del, class R, class T, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_0_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_5(const T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_0_5<del, void, T, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; public: inline _ConstTessMemberResultCallback_0_5(const T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(a1,a2,a3,a4,a5); } else { (object_->*member_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_0_5<true,R,T1,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(A1,A2,A3,A4,A5) const) { return new _ConstTessMemberResultCallback_0_5<true,R,T1,A1,A2,A3,A4,A5>(obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_0_5<false,R,T1,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(A1,A2,A3,A4,A5) const) { return new _ConstTessMemberResultCallback_0_5<false,R,T1,A1,A2,A3,A4,A5>(obj, member); } #endif template <bool del, class R, class T, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_0_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_5( T* object, MemberSignature member) : object_(object), member_(member) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_0_5<del, void, T, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; public: inline _TessMemberResultCallback_0_5( T* object, MemberSignature member) : object_(object), member_(member) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(a1,a2,a3,a4,a5); } else { (object_->*member_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_0_5<true,R,T1,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(A1,A2,A3,A4,A5) ) { return new _TessMemberResultCallback_0_5<true,R,T1,A1,A2,A3,A4,A5>(obj, member); } #endif #ifndef SWIG template <class T1, class T2, class R, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_0_5<false,R,T1,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(A1,A2,A3,A4,A5) ) { return new _TessMemberResultCallback_0_5<false,R,T1,A1,A2,A3,A4,A5>(obj, member); } #endif template <bool del, class R, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_0_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(A1,A2,A3,A4,A5); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_5(FunctionSignature function) : function_(function) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_0_5<del, void, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(A1,A2,A3,A4,A5); private: FunctionSignature function_; public: inline _TessFunctionResultCallback_0_5(FunctionSignature function) : function_(function) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(a1,a2,a3,a4,a5); } else { (*function_)(a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_0_5<true,R,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(A1,A2,A3,A4,A5)) { return new _TessFunctionResultCallback_0_5<true,R,A1,A2,A3,A4,A5>(function); } template <class R, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_0_5<false,R,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(A1,A2,A3,A4,A5)) { return new _TessFunctionResultCallback_0_5<false,R,A1,A2,A3,A4,A5>(function); } template <bool del, class R, class T, class P1, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_1_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_5(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_1_5<del, void, T, P1, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _ConstTessMemberResultCallback_1_5(const T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_1_5<true,R,T1,P1,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_5<true,R,T1,P1,A1,A2,A3,A4,A5>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_1_5<false,R,T1,P1,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1) { return new _ConstTessMemberResultCallback_1_5<false,R,T1,P1,A1,A2,A3,A4,A5>(obj, member, p1); } #endif template <bool del, class R, class T, class P1, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_1_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_5( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_1_5<del, void, T, P1, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; public: inline _TessMemberResultCallback_1_5( T* object, MemberSignature member, P1 p1) : object_(object), member_(member), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_1_5<true,R,T1,P1,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_5<true,R,T1,P1,A1,A2,A3,A4,A5>(obj, member, p1); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_1_5<false,R,T1,P1,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1) { return new _TessMemberResultCallback_1_5<false,R,T1,P1,A1,A2,A3,A4,A5>(obj, member, p1); } #endif template <bool del, class R, class P1, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_1_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_5(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_1_5<del, void, P1, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; public: inline _TessFunctionResultCallback_1_5(FunctionSignature function, P1 p1) : function_(function), p1_(p1) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_1_5<true,R,P1,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,A1,A2,A3,A4,A5), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_5<true,R,P1,A1,A2,A3,A4,A5>(function, p1); } template <class R, class P1, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_1_5<false,R,P1,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,A1,A2,A3,A4,A5), typename Identity<P1>::type p1) { return new _TessFunctionResultCallback_1_5<false,R,P1,A1,A2,A3,A4,A5>(function, p1); } template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_2_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_5(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_2_5<del, void, T, P1, P2, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _ConstTessMemberResultCallback_2_5(const T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_2_5<true,R,T1,P1,P2,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_5<true,R,T1,P1,P2,A1,A2,A3,A4,A5>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_2_5<false,R,T1,P1,P2,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _ConstTessMemberResultCallback_2_5<false,R,T1,P1,P2,A1,A2,A3,A4,A5>(obj, member, p1, p2); } #endif template <bool del, class R, class T, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_2_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_5( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_2_5<del, void, T, P1, P2, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessMemberResultCallback_2_5( T* object, MemberSignature member, P1 p1, P2 p2) : object_(object), member_(member), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_2_5<true,R,T1,P1,P2,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_5<true,R,T1,P1,P2,A1,A2,A3,A4,A5>(obj, member, p1, p2); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_2_5<false,R,T1,P1,P2,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessMemberResultCallback_2_5<false,R,T1,P1,P2,A1,A2,A3,A4,A5>(obj, member, p1, p2); } #endif template <bool del, class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_2_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,P2,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_5(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,p2_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_2_5<del, void, P1, P2, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,P2,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; public: inline _TessFunctionResultCallback_2_5(FunctionSignature function, P1 p1, P2 p2) : function_(function), p1_(p1), p2_(p2) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,p2_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,p2_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_2_5<true,R,P1,P2,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,P2,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_5<true,R,P1,P2,A1,A2,A3,A4,A5>(function, p1, p2); } template <class R, class P1, class P2, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_2_5<false,R,P1,P2,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,P2,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2) { return new _TessFunctionResultCallback_2_5<false,R,P1,P2,A1,A2,A3,A4,A5>(function, p1, p2); } template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_3_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_3_5<del, void, T, P1, P2, P3, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _ConstTessMemberResultCallback_3_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_3_5<true,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_5<true,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_3_5<false,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _ConstTessMemberResultCallback_3_5<false,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_3_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_3_5<del, void, T, P1, P2, P3, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessMemberResultCallback_3_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_3_5<true,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_5<true,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_3_5<false,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessMemberResultCallback_3_5<false,R,T1,P1,P2,P3,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3); } #endif template <bool del, class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_3_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,P2,P3,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_5(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_3_5<del, void, P1, P2, P3, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,P2,P3,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; public: inline _TessFunctionResultCallback_3_5(FunctionSignature function, P1 p1, P2 p2, P3 p3) : function_(function), p1_(p1), p2_(p2), p3_(p3) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,p2_,p3_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_3_5<true,R,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,P2,P3,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_5<true,R,P1,P2,P3,A1,A2,A3,A4,A5>(function, p1, p2, p3); } template <class R, class P1, class P2, class P3, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_3_5<false,R,P1,P2,P3,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3) { return new _TessFunctionResultCallback_3_5<false,R,P1,P2,P3,A1,A2,A3,A4,A5>(function, p1, p2, p3); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_4_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_4_5<del, void, T, P1, P2, P3, P4, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _ConstTessMemberResultCallback_4_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_4_5<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_5<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_4_5<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _ConstTessMemberResultCallback_4_5<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_4_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_4_5<del, void, T, P1, P2, P3, P4, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessMemberResultCallback_4_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_4_5<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_5<true,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_4_5<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessMemberResultCallback_4_5<false,R,T1,P1,P2,P3,P4,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_4_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_4_5<del, void, P1, P2, P3, P4, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; public: inline _TessFunctionResultCallback_4_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,p2_,p3_,p4_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_4_5<true,R,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_5<true,R,P1,P2,P3,P4,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4); } template <class R, class P1, class P2, class P3, class P4, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_4_5<false,R,P1,P2,P3,P4,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4) { return new _TessFunctionResultCallback_4_5<false,R,P1,P2,P3,P4,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_5_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_5_5<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _ConstTessMemberResultCallback_5_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_5_5<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_5<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_5_5<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _ConstTessMemberResultCallback_5_5<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_5_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_5_5<del, void, T, P1, P2, P3, P4, P5, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessMemberResultCallback_5_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_5_5<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_5<true,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_5_5<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessMemberResultCallback_5_5<false,R,T1,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_5_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_5_5<del, void, P1, P2, P3, P4, P5, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; public: inline _TessFunctionResultCallback_5_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_5_5<true,R,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_5<true,R,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4, p5); } template <class R, class P1, class P2, class P3, class P4, class P5, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_5_5<false,R,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5) { return new _TessFunctionResultCallback_5_5<false,R,P1,P2,P3,P4,P5,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4, p5); } template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_6_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _ConstTessMemberResultCallback_6_5<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) const; private: const T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _ConstTessMemberResultCallback_6_5(const T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_6_5<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_5<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _ConstTessMemberResultCallback_6_5<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(const T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) const, typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _ConstTessMemberResultCallback_6_5<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_6_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); return result; } else { R result = (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; return result; } } }; template <bool del, class T, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _TessMemberResultCallback_6_5<del, void, T, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (T::*MemberSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) ; private: T* object_; MemberSignature member_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessMemberResultCallback_6_5( T* object, MemberSignature member, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : object_(object), member_(member), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); } else { (object_->*member_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again member_ = NULL; delete this; } } }; #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_6_5<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_5<true,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5, p6); } #endif #ifndef SWIG template <class T1, class T2, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _TessMemberResultCallback_6_5<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback( T1* obj, R (T2::*member)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5) , typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessMemberResultCallback_6_5<false,R,T1,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(obj, member, p1, p2, p3, p4, p5, p6); } #endif template <bool del, class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_6_5 : public TessResultCallback5<R,A1,A2,A3,A4,A5> { public: typedef TessResultCallback5<R,A1,A2,A3,A4,A5> base; typedef R (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual R Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); return result; } else { R result = (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; return result; } } }; template <bool del, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> class _TessFunctionResultCallback_6_5<del, void, P1, P2, P3, P4, P5, P6, A1, A2, A3, A4, A5> : public TessCallback5<A1,A2,A3,A4,A5> { public: typedef TessCallback5<A1,A2,A3,A4,A5> base; typedef void (*FunctionSignature)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5); private: FunctionSignature function_; typename remove_reference<P1>::type p1_; typename remove_reference<P2>::type p2_; typename remove_reference<P3>::type p3_; typename remove_reference<P4>::type p4_; typename remove_reference<P5>::type p5_; typename remove_reference<P6>::type p6_; public: inline _TessFunctionResultCallback_6_5(FunctionSignature function, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6) : function_(function), p1_(p1), p2_(p2), p3_(p3), p4_(p4), p5_(p5), p6_(p6) { } virtual void Run(A1 a1,A2 a2,A3 a3,A4 a4,A5 a5) { if (!del) { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); } else { (*function_)(p1_,p2_,p3_,p4_,p5_,p6_,a1,a2,a3,a4,a5); // zero out the pointer to ensure segfault if used again function_ = NULL; delete this; } } }; template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_6_5<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_5<true,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4, p5, p6); } template <class R, class P1, class P2, class P3, class P4, class P5, class P6, class A1, class A2, class A3, class A4, class A5> inline typename _TessFunctionResultCallback_6_5<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>::base* NewPermanentTessCallback(R (*function)(P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5), typename Identity<P1>::type p1, typename Identity<P2>::type p2, typename Identity<P3>::type p3, typename Identity<P4>::type p4, typename Identity<P5>::type p5, typename Identity<P6>::type p6) { return new _TessFunctionResultCallback_6_5<false,R,P1,P2,P3,P4,P5,P6,A1,A2,A3,A4,A5>(function, p1, p2, p3, p4, p5, p6); } #endif /* _TESS_CALLBACK_SPECIALIZATIONS_H */
C++
// Copyright 2012 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: genericheap.h // Description: Template heap class. // Author: Ray Smith, based on Dan Johnson's original code. // Created: Wed Mar 14 08:13:00 PDT 2012 // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "errcode.h" #include "genericvector.h" #ifndef TESSERACT_CCUTIL_GENERICHEAP_H_ #define TESSERACT_CCUTIL_GENERICHEAP_H_ namespace tesseract { // GenericHeap requires 1 template argument: // Pair will normally be either KDPairInc<Key, Data> or KDPairDec<Key, Data> // for some arbitrary Key and scalar, smart pointer, or non-ownership pointer // Data type, according to whether a MIN heap or a MAX heap is desired, // respectively. Using KDPtrPairInc<Key, Data> or KDPtrPairDec<Key, Data>, // GenericHeap can also handle simple Data pointers and own them. // If no additional data is required, Pair can also be a scalar, since // GenericHeap doesn't look inside it except for operator<. // // The heap is stored as a packed binary tree in an array hosted by a // GenericVector<Pair>, with the invariant that the children of each node are // both NOT Pair::operator< the parent node. KDPairInc defines Pair::operator< // to use Key::operator< to generate a MIN heap and KDPairDec defines // Pair::operator< to use Key::operator> to generate a MAX heap by reversing // all the comparisons. // See http://en.wikipedia.org/wiki/Heap_(data_structure) for more detail on // the basic heap implementation. // // Insertion and removal are both O(log n) and, unlike the STL heap, an // explicit Reshuffle function allows a node to be repositioned in time O(log n) // after changing its value. // // Accessing the element for revaluation is a more complex matter, since the // index and pointer can be changed arbitrarily by heap operations. // Revaluation can be done by making the Data type in the Pair derived from or // contain a DoublePtr as its first data element, making it possible to convert // the pointer to a Pair using KDPairInc::RecastDataPointer. template <typename Pair> class GenericHeap { public: GenericHeap() {} // The initial size is only a GenericVector::reserve. It is not enforced as // the size limit of the heap. Caller must implement their own enforcement. explicit GenericHeap(int initial_size) { heap_.reserve(initial_size); } // Simple accessors. bool empty() const { return heap_.empty(); } int size() const { return heap_.size(); } int size_reserved() const { return heap_.size_reserved(); } void clear() { // Clear truncates to 0 to keep the number reserved in tact. heap_.truncate(0); } // Provides access to the underlying vector. // Caution! any changes that modify the keys will invalidate the heap! GenericVector<Pair>* heap() { return &heap_; } // Provides read-only access to an element of the underlying vector. const Pair& get(int index) const { return heap_[index]; } // Add entry to the heap, keeping the smallest item at the top, by operator<. // Note that *entry is used as the source of operator=, but it is non-const // to allow for a smart pointer to be contained within. // Time = O(log n). void Push(Pair* entry) { int hole_index = heap_.size(); // Make a hole in the end of heap_ and sift it up to be the correct // location for the new *entry. To avoid needing a default constructor // for primitive types, and to allow for use of DoublePtr in the Pair // somewhere, we have to incur a double copy here. heap_.push_back(*entry); *entry = heap_.back(); hole_index = SiftUp(hole_index, *entry); heap_[hole_index] = *entry; } // Get the value of the top (smallest, defined by operator< ) element. const Pair& PeekTop() const { return heap_[0]; } // Removes the top element of the heap. If entry is not NULL, the element // is copied into *entry, otherwise it is discarded. // Returns false if the heap was already empty. // Time = O(log n). bool Pop(Pair* entry) { int new_size = heap_.size() - 1; if (new_size < 0) return false; // Already empty. if (entry != NULL) *entry = heap_[0]; if (new_size > 0) { // Sift the hole at the start of the heap_ downwards to match the last // element. Pair hole_pair = heap_[new_size]; heap_.truncate(new_size); int hole_index = SiftDown(0, hole_pair); heap_[hole_index] = hole_pair; } else { heap_.truncate(new_size); } return true; } // Removes the MAXIMUM element of the heap. (MIN from a MAX heap.) If entry is // not NULL, the element is copied into *entry, otherwise it is discarded. // Time = O(n). Returns false if the heap was already empty. bool PopWorst(Pair* entry) { int heap_size = heap_.size(); if (heap_size == 0) return false; // It cannot be empty! // Find the maximum element. Its index is guaranteed to be greater than // the index of the parent of the last element, since by the heap invariant // the parent must be less than or equal to the children. int worst_index = heap_size - 1; int end_parent = ParentNode(worst_index); for (int i = worst_index - 1; i > end_parent; --i) { if (heap_[worst_index] < heap_[i]) worst_index = i; } // Extract the worst element from the heap, leaving a hole at worst_index. if (entry != NULL) *entry = heap_[worst_index]; --heap_size; if (heap_size > 0) { // Sift the hole upwards to match the last element of the heap_ Pair hole_pair = heap_[heap_size]; int hole_index = SiftUp(worst_index, hole_pair); heap_[hole_index] = hole_pair; } heap_.truncate(heap_size); return true; } // The pointed-to Pair has changed its key value, so the location of pair // is reshuffled to maintain the heap invariant. // Must be a valid pointer to an element of the heap_! // Caution! Since GenericHeap is based on GenericVector, reallocs may occur // whenever the vector is extended and elements may get shuffled by any // Push or Pop operation. Therefore use this function only if Data in Pair is // of type DoublePtr, derived (first) from DoublePtr, or has a DoublePtr as // its first element. Reshuffles the heap to maintain the invariant. // Time = O(log n). void Reshuffle(Pair* pair) { int index = pair - &heap_[0]; Pair hole_pair = heap_[index]; index = SiftDown(index, hole_pair); index = SiftUp(index, hole_pair); heap_[index] = hole_pair; } private: // A hole in the heap exists at hole_index, and we want to fill it with the // given pair. SiftUp sifts the hole upward to the correct position and // returns the destination index without actually putting pair there. int SiftUp(int hole_index, const Pair& pair) { int parent; while (hole_index > 0 && pair < heap_[parent = ParentNode(hole_index)]) { heap_[hole_index] = heap_[parent]; hole_index = parent; } return hole_index; } // A hole in the heap exists at hole_index, and we want to fill it with the // given pair. SiftDown sifts the hole downward to the correct position and // returns the destination index without actually putting pair there. int SiftDown(int hole_index, const Pair& pair) { int heap_size = heap_.size(); int child; while ((child = LeftChild(hole_index)) < heap_size) { if (child + 1 < heap_size && heap_[child + 1] < heap_[child]) ++child; if (heap_[child] < pair) { heap_[hole_index] = heap_[child]; hole_index = child; } else { break; } } return hole_index; } // Functions to navigate the tree. Unlike the original implementation, we // store the root at index 0. int ParentNode(int index) const { return (index + 1) / 2 - 1; } int LeftChild(int index) const { return index * 2 + 1; } private: GenericVector<Pair> heap_; }; } // namespace tesseract #endif // TESSERACT_CCUTIL_GENERICHEAP_H_
C++
/////////////////////////////////////////////////////////////////////// // File: indexmapbidi.cpp // Description: Bi-directional mapping between a sparse and compact space. // Author: rays@google.com (Ray Smith) // Created: Tue Apr 06 11:33:59 PDT 2010 // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "indexmapbidi.h" namespace tesseract { // SparseToCompact takes a sparse index to an index in the compact space. // Uses a binary search to find the result. For faster speed use // IndexMapBiDi, but that takes more memory. int IndexMap::SparseToCompact(int sparse_index) const { int result = compact_map_.binary_search(sparse_index); return compact_map_[result] == sparse_index ? result : -1; } // Copy from the input. void IndexMap::CopyFrom(const IndexMap& src) { sparse_size_ = src.sparse_size_; compact_map_ = src.compact_map_; } void IndexMap::CopyFrom(const IndexMapBiDi& src) { sparse_size_ = src.SparseSize(); compact_map_ = src.compact_map_; } // Writes to the given file. Returns false in case of error. bool IndexMap::Serialize(FILE* fp) const { inT32 sparse_size = sparse_size_; if (fwrite(&sparse_size, sizeof(sparse_size), 1, fp) != 1) return false; if (!compact_map_.Serialize(fp)) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool IndexMap::DeSerialize(bool swap, FILE* fp) { inT32 sparse_size; if (fread(&sparse_size, sizeof(sparse_size), 1, fp) != 1) return false; if (swap) ReverseN(&sparse_size, sizeof(sparse_size)); sparse_size_ = sparse_size; if (!compact_map_.DeSerialize(swap, fp)) return false; return true; } // Top-level init function in a single call to initialize a map to select // a single contiguous subrange [start, end) of the sparse space to be mapped // 1 to 1 to the compact space, with all other elements of the sparse space // left unmapped. // No need to call Setup after this. void IndexMapBiDi::InitAndSetupRange(int sparse_size, int start, int end) { Init(sparse_size, false); for (int i = start; i < end; ++i) SetMap(i, true); Setup(); } // Initializes just the sparse_map_ to the given size with either all // forward indices mapped (all_mapped = true) or none (all_mapped = false). // Call Setup immediately after, or make calls to SetMap first to adjust the // mapping and then call Setup before using the map. void IndexMapBiDi::Init(int size, bool all_mapped) { sparse_map_.init_to_size(size, -1); if (all_mapped) { for (int i = 0; i < size; ++i) sparse_map_[i] = i; } } // Sets a given index in the sparse_map_ to be mapped or not. void IndexMapBiDi::SetMap(int sparse_index, bool mapped) { sparse_map_[sparse_index] = mapped ? 0 : -1; } // Sets up the sparse_map_ and compact_map_ properly after Init and // some calls to SetMap. Assumes an ordered 1-1 map from set indices // in the forward map to the compact space. void IndexMapBiDi::Setup() { int compact_size = 0; for (int i = 0; i < sparse_map_.size(); ++i) { if (sparse_map_[i] >= 0) { sparse_map_[i] = compact_size++; } } compact_map_.init_to_size(compact_size, -1); for (int i = 0; i < sparse_map_.size(); ++i) { if (sparse_map_[i] >= 0) { compact_map_[sparse_map_[i]] = i; } } sparse_size_ = sparse_map_.size(); } // Copy from the input. void IndexMapBiDi::CopyFrom(const IndexMapBiDi& src) { sparse_map_ = src.sparse_map_; compact_map_ = src.compact_map_; sparse_size_ = sparse_map_.size(); } // Merges the two compact space indices. May be called many times, but // the merges must be concluded by a call to CompleteMerges. // Returns true if a merge was actually performed. bool IndexMapBiDi::Merge(int compact_index1, int compact_index2) { // Find the current master index for index1 and index2. compact_index1 = MasterCompactIndex(compact_index1); compact_index2 = MasterCompactIndex(compact_index2); // Be sure that index1 < index2. if (compact_index1 > compact_index2) { int tmp = compact_index1; compact_index1 = compact_index2; compact_index2 = tmp; } else if (compact_index1 == compact_index2) { return false; } // To save iterating over all sparse_map_ entries, simply make the master // entry for index2 point to index1. // This leaves behind a potential chain of parents that needs to be chased, // as above. sparse_map_[compact_map_[compact_index2]] = compact_index1; if (compact_index1 >= 0) compact_map_[compact_index2] = compact_map_[compact_index1]; return true; } // Completes one or more Merge operations by further compacting the // compact space. Unused compact space indices are removed, and the used // ones above shuffled down to fill the gaps. // Example: // Input sparse_map_: (x indicates -1) // x x 0 x 2 x x 4 x 0 x 2 x // Output sparse_map_: // x x 0 x 1 x x 2 x 0 x 1 x // Output compact_map_: // 2 4 7. void IndexMapBiDi::CompleteMerges() { // Ensure each sparse_map_entry contains a master compact_map_ index. int compact_size = 0; for (int i = 0; i < sparse_map_.size(); ++i) { int compact_index = MasterCompactIndex(sparse_map_[i]); sparse_map_[i] = compact_index; if (compact_index >= compact_size) compact_size = compact_index + 1; } // Re-generate the compact_map leaving holes for unused indices. compact_map_.init_to_size(compact_size, -1); for (int i = 0; i < sparse_map_.size(); ++i) { if (sparse_map_[i] >= 0) { if (compact_map_[sparse_map_[i]] == -1) compact_map_[sparse_map_[i]] = i; } } // Compact the compact_map, leaving tmp_compact_map saying where each // index went to in the compacted map. GenericVector<inT32> tmp_compact_map; tmp_compact_map.init_to_size(compact_size, -1); compact_size = 0; for (int i = 0; i < compact_map_.size(); ++i) { if (compact_map_[i] >= 0) { tmp_compact_map[i] = compact_size; compact_map_[compact_size++] = compact_map_[i]; } } compact_map_.truncate(compact_size); // Now modify the entries in the sparse map to point to the new locations. for (int i = 0; i < sparse_map_.size(); ++i) { if (sparse_map_[i] >= 0) { sparse_map_[i] = tmp_compact_map[sparse_map_[i]]; } } } // Writes to the given file. Returns false in case of error. bool IndexMapBiDi::Serialize(FILE* fp) const { if (!IndexMap::Serialize(fp)) return false; // Make a vector containing the rest of the map. If the map is many-to-one // then each additional sparse entry needs to be stored. // Normally we store only the compact map to save space. GenericVector<inT32> remaining_pairs; for (int i = 0; i < sparse_map_.size(); ++i) { if (sparse_map_[i] >= 0 && compact_map_[sparse_map_[i]] != i) { remaining_pairs.push_back(i); remaining_pairs.push_back(sparse_map_[i]); } } if (!remaining_pairs.Serialize(fp)) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool IndexMapBiDi::DeSerialize(bool swap, FILE* fp) { if (!IndexMap::DeSerialize(swap, fp)) return false; GenericVector<inT32> remaining_pairs; if (!remaining_pairs.DeSerialize(swap, fp)) return false; sparse_map_.init_to_size(sparse_size_, -1); for (int i = 0; i < compact_map_.size(); ++i) { sparse_map_[compact_map_[i]] = i; } for (int i = 0; i < remaining_pairs.size(); ++i) { int sparse_index = remaining_pairs[i++]; sparse_map_[sparse_index] = remaining_pairs[i]; } return true; } // Bulk calls to SparseToCompact. // Maps the given array of sparse indices to an array of compact indices. // Assumes the input is sorted. The output indices are sorted and uniqued. // Return value is the number of "missed" features, being features that // don't map to the compact feature space. int IndexMapBiDi::MapFeatures(const GenericVector<int>& sparse, GenericVector<int>* compact) const { compact->truncate(0); int num_features = sparse.size(); int missed_features = 0; int prev_good_feature = -1; for (int f = 0; f < num_features; ++f) { int feature = sparse_map_[sparse[f]]; if (feature >= 0) { if (feature != prev_good_feature) { compact->push_back(feature); prev_good_feature = feature; } } else { ++missed_features; } } return missed_features; } } // namespace tesseract.
C++
/********************************************************************** * File: errcode.c (Formerly error.c) * Description: Generic error handler function * Author: Ray Smith * Created: Tue May 1 16:28:39 BST 1990 * * (C) Copyright 1989, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #ifdef __UNIX__ #include <signal.h> #endif #include "tprintf.h" #include "errcode.h" const ERRCODE BADERRACTION = "Illegal error action"; #define MAX_MSG 1024 /********************************************************************** * error * * Print an error message and continue, exit or abort according to action. * Makes use of error messages and numbers in a common place. * **********************************************************************/ void ERRCODE::error( // handle error const char *caller, // name of caller TessErrorLogCode action, // action to take const char *format, ... // special message ) const { va_list args; // variable args char msg[MAX_MSG]; char *msgptr = msg; if (caller != NULL) //name of caller msgptr += sprintf (msgptr, "%s:", caller); //actual message msgptr += sprintf (msgptr, "Error:%s", message); if (format != NULL) { msgptr += sprintf (msgptr, ":"); va_start(args, format); //variable list #ifdef _WIN32 //print remainder msgptr += _vsnprintf (msgptr, MAX_MSG - 2 - (msgptr - msg), format, args); msg[MAX_MSG - 2] = '\0'; //ensure termination strcat (msg, "\n"); #else //print remainder msgptr += vsprintf (msgptr, format, args); //no specific msgptr += sprintf (msgptr, "\n"); #endif va_end(args); } else //no specific msgptr += sprintf (msgptr, "\n"); // %s is needed here so msg is printed correctly! fprintf(stderr, "%s", msg); int* p = NULL; switch (action) { case DBG: case TESSLOG: return; //report only case TESSEXIT: //err_exit(); case ABORT: // Create a deliberate segv as the stack trace is more useful that way. if (!*p) abort(); default: BADERRACTION.error ("error", ABORT, NULL); } }
C++
/********************************************************************** * File: params.cpp * Description: Initialization and setting of Tesseract parameters. * Author: Ray Smith * Created: Fri Feb 22 16:22:34 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "genericvector.h" #include "scanutils.h" #include "tprintf.h" #include "params.h" #define PLUS '+' //flag states #define MINUS '-' #define EQUAL '=' tesseract::ParamsVectors *GlobalParams() { static tesseract::ParamsVectors *global_params = new tesseract::ParamsVectors(); return global_params; } namespace tesseract { bool ParamUtils::ReadParamsFile(const char *file, SetParamConstraint constraint, ParamsVectors *member_params) { inT16 nameoffset; // offset for real name FILE *fp; // file pointer // iterators if (*file == PLUS) { nameoffset = 1; } else if (*file == MINUS) { nameoffset = 1; } else { nameoffset = 0; } fp = fopen(file + nameoffset, "rb"); if (fp == NULL) { tprintf("read_params_file: Can't open %s\n", file + nameoffset); return true; } const bool anyerr = ReadParamsFromFp(fp, -1, constraint, member_params); fclose(fp); return anyerr; } bool ParamUtils::ReadParamsFromFp(FILE *fp, inT64 end_offset, SetParamConstraint constraint, ParamsVectors *member_params) { char line[MAX_PATH]; // input line bool anyerr = false; // true if any error bool foundit; // found parameter char *valptr; // value field while ((end_offset < 0 || ftell(fp) < end_offset) && fgets(line, MAX_PATH, fp)) { if (line[0] != '\n' && line[0] != '#') { chomp_string(line); // remove newline for (valptr = line; *valptr && *valptr != ' ' && *valptr != '\t'; valptr++); if (*valptr) { // found blank *valptr = '\0'; // make name a string do valptr++; // find end of blanks while (*valptr == ' ' || *valptr == '\t'); } foundit = SetParam(line, valptr, constraint, member_params); if (!foundit) { anyerr = true; // had an error tprintf("read_params_file: parameter not found: %s\n", line); exit(1); } } } return anyerr; } bool ParamUtils::SetParam(const char *name, const char* value, SetParamConstraint constraint, ParamsVectors *member_params) { // Look for the parameter among string parameters. StringParam *sp = FindParam<StringParam>(name, GlobalParams()->string_params, member_params->string_params); if (sp != NULL && sp->constraint_ok(constraint)) sp->set_value(value); if (*value == '\0') return (sp != NULL); // Look for the parameter among int parameters. int intval; IntParam *ip = FindParam<IntParam>(name, GlobalParams()->int_params, member_params->int_params); if (ip && ip->constraint_ok(constraint) && sscanf(value, INT32FORMAT, &intval) == 1) ip->set_value(intval); // Look for the parameter among bool parameters. BoolParam *bp = FindParam<BoolParam>(name, GlobalParams()->bool_params, member_params->bool_params); if (bp != NULL && bp->constraint_ok(constraint)) { if (*value == 'T' || *value == 't' || *value == 'Y' || *value == 'y' || *value == '1') { bp->set_value(true); } else if (*value == 'F' || *value == 'f' || *value == 'N' || *value == 'n' || *value == '0') { bp->set_value(false); } } // Look for the parameter among double parameters. double doubleval; DoubleParam *dp = FindParam<DoubleParam>(name, GlobalParams()->double_params, member_params->double_params); if (dp != NULL && dp->constraint_ok(constraint)) { #ifdef EMBEDDED doubleval = strtofloat(value); #else if (sscanf(value, "%lf", &doubleval) == 1) #endif dp->set_value(doubleval); } return (sp || ip || bp || dp); } bool ParamUtils::GetParamAsString(const char *name, const ParamsVectors* member_params, STRING *value) { // Look for the parameter among string parameters. StringParam *sp = FindParam<StringParam>(name, GlobalParams()->string_params, member_params->string_params); if (sp) { *value = sp->string(); return true; } // Look for the parameter among int parameters. IntParam *ip = FindParam<IntParam>(name, GlobalParams()->int_params, member_params->int_params); if (ip) { char buf[128]; snprintf(buf, sizeof(buf), "%d", inT32(*ip)); *value = buf; return true; } // Look for the parameter among bool parameters. BoolParam *bp = FindParam<BoolParam>(name, GlobalParams()->bool_params, member_params->bool_params); if (bp != NULL) { *value = BOOL8(*bp) ? "1": "0"; return true; } // Look for the parameter among double parameters. DoubleParam *dp = FindParam<DoubleParam>(name, GlobalParams()->double_params, member_params->double_params); if (dp != NULL) { char buf[128]; snprintf(buf, sizeof(buf), "%g", double(*dp)); *value = buf; return true; } return false; } void ParamUtils::PrintParams(FILE *fp, const ParamsVectors *member_params) { int v, i; int num_iterations = (member_params == NULL) ? 1 : 2; for (v = 0; v < num_iterations; ++v) { const ParamsVectors *vec = (v == 0) ? GlobalParams() : member_params; for (i = 0; i < vec->int_params.size(); ++i) { fprintf(fp, "%s\t%d\t%s\n", vec->int_params[i]->name_str(), (inT32)(*vec->int_params[i]), vec->int_params[i]->info_str()); } for (i = 0; i < vec->bool_params.size(); ++i) { fprintf(fp, "%s\t%d\t%s\n", vec->bool_params[i]->name_str(), (BOOL8)(*vec->bool_params[i]), vec->bool_params[i]->info_str()); } for (int i = 0; i < vec->string_params.size(); ++i) { fprintf(fp, "%s\t%s\t%s\n", vec->string_params[i]->name_str(), vec->string_params[i]->string(), vec->string_params[i]->info_str()); } for (int i = 0; i < vec->double_params.size(); ++i) { fprintf(fp, "%s\t%g\t%s\n", vec->double_params[i]->name_str(), (double)(*vec->double_params[i]), vec->double_params[i]->info_str()); } } } // Resets all parameters back to default values; void ParamUtils::ResetToDefaults(ParamsVectors* member_params) { int v, i; int num_iterations = (member_params == NULL) ? 1 : 2; for (v = 0; v < num_iterations; ++v) { ParamsVectors *vec = (v == 0) ? GlobalParams() : member_params; for (i = 0; i < vec->int_params.size(); ++i) { vec->int_params[i]->ResetToDefault(); } for (i = 0; i < vec->bool_params.size(); ++i) { vec->bool_params[i]->ResetToDefault(); } for (int i = 0; i < vec->string_params.size(); ++i) { vec->string_params[i]->ResetToDefault(); } for (int i = 0; i < vec->double_params.size(); ++i) { vec->double_params[i]->ResetToDefault(); } } } } // namespace tesseract
C++
/////////////////////////////////////////////////////////////////////// // File: ccutil.h // Description: ccutil class. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_CCUTIL_H__ #define TESSERACT_CCUTIL_CCUTIL_H__ #include "ambigs.h" #include "errcode.h" #include "strngs.h" #include "tessdatamanager.h" #include "params.h" #include "unicharset.h" #ifdef _WIN32 #include <windows.h> #else #include <pthread.h> #include <semaphore.h> #endif namespace tesseract { class CCUtilMutex { public: CCUtilMutex(); void Lock(); void Unlock(); private: #ifdef _WIN32 HANDLE mutex_; #else pthread_mutex_t mutex_; #endif }; class CCUtil { public: CCUtil(); virtual ~CCUtil(); public: // Read the arguments and set up the data path. void main_setup( const char *argv0, // program name const char *basename // name of image ); ParamsVectors *params() { return &params_; } STRING datadir; // dir for data files STRING imagebasename; // name of image STRING lang; STRING language_data_path_prefix; TessdataManager tessdata_manager; UNICHARSET unicharset; UnicharAmbigs unichar_ambigs; STRING imagefile; // image file name STRING directory; // main directory private: ParamsVectors params_; public: // Member parameters. // These have to be declared and initialized after params_ member, since // params_ should be initialized before parameters are added to it. STRING_VAR_H(m_data_sub_dir, "tessdata/", "Directory for data files"); #ifdef _WIN32 STRING_VAR_H(tessedit_module_name, WINDLLNAME, "Module colocated with tessdata dir"); #endif INT_VAR_H(ambigs_debug_level, 0, "Debug level for unichar ambiguities"); BOOL_VAR_H(use_definite_ambigs_for_classifier, 0, "Use definite ambiguities when running character classifier"); BOOL_VAR_H(use_ambigs_for_adaption, 0, "Use ambigs for deciding whether to adapt to a character"); }; extern CCUtilMutex tprintfMutex; // should remain global } // namespace tesseract #endif // TESSERACT_CCUTIL_CCUTIL_H__
C++
/////////////////////////////////////////////////////////////////////// // File: object_cache.h // Description: A string indexed object cache. // Author: David Eger // Created: Fri Jan 27 12:08:00 PST 2012 // // (C) Copyright 2012, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_OBJECT_CACHE_H_ #define TESSERACT_CCUTIL_OBJECT_CACHE_H_ #include "ccutil.h" #include "errcode.h" #include "genericvector.h" #include "tesscallback.h" namespace tesseract { // A simple object cache which maps a string to an object of type T. // Usually, these are expensive objects that are loaded from disk. // Reference counting is performed, so every Get() needs to be followed later // by a Free(). Actual deletion is accomplished by DeleteUnusedObjects(). template<typename T> class ObjectCache { public: ObjectCache() {} ~ObjectCache() { mu_.Lock(); for (int i = 0; i < cache_.size(); i++) { if (cache_[i].count > 0) { tprintf("ObjectCache(%p)::~ObjectCache(): WARNING! LEAK! object %p " "still has count %d (id %s)\n", this, cache_[i].object, cache_[i].count, cache_[i].id.string()); } else { delete cache_[i].object; cache_[i].object = NULL; } } mu_.Unlock(); } // Return a pointer to the object identified by id. // If we haven't yet loaded the object, use loader to load it. // If loader fails to load it, record a NULL entry in the cache // and return NULL -- further attempts to load will fail (even // with a different loader) until DeleteUnusedObjects() is called. // We delete the given loader. T *Get(STRING id, TessResultCallback<T *> *loader) { T *retval = NULL; mu_.Lock(); for (int i = 0; i < cache_.size(); i++) { if (id == cache_[i].id) { retval = cache_[i].object; if (cache_[i].object != NULL) { cache_[i].count++; } mu_.Unlock(); delete loader; return retval; } } cache_.push_back(ReferenceCount()); ReferenceCount &rc = cache_.back(); rc.id = id; retval = rc.object = loader->Run(); rc.count = (retval != NULL) ? 1 : 0; mu_.Unlock(); return retval; } // Decrement the count for t. // Return whether we knew about the given pointer. bool Free(T *t) { if (t == NULL) return false; mu_.Lock(); for (int i = 0; i < cache_.size(); i++) { if (cache_[i].object == t) { --cache_[i].count; mu_.Unlock(); return true; } } mu_.Unlock(); return false; } void DeleteUnusedObjects() { mu_.Lock(); for (int i = cache_.size() - 1; i >= 0; i--) { if (cache_[i].count <= 0) { delete cache_[i].object; cache_.remove(i); } } mu_.Unlock(); } private: struct ReferenceCount { STRING id; // A unique ID to identify the object (think path on disk) T *object; // A copy of the object in memory. Can be delete'd. int count; // A count of the number of active users of this object. }; CCUtilMutex mu_; GenericVector<ReferenceCount> cache_; }; } // namespace tesseract #endif // TESSERACT_CCUTIL_OBJECT_CACHE_H_
C++
/////////////////////////////////////////////////////////////////////// // File: tessdatamanager.h // Description: Functions to handle loading/combining tesseract data files. // Author: Daria Antonova // Created: Wed Jun 03 11:26:43 PST 2009 // // (C) Copyright 2009, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_TESSDATAMANAGER_H_ #define TESSERACT_CCUTIL_TESSDATAMANAGER_H_ #include <stdio.h> #include "host.h" #include "strngs.h" #include "tprintf.h" static const char kTrainedDataSuffix[] = "traineddata"; // When adding new tessdata types and file suffixes, please make sure to // update TessdataType enum, kTessdataFileSuffixes and kTessdataFileIsText. static const char kLangConfigFileSuffix[] = "config"; static const char kUnicharsetFileSuffix[] = "unicharset"; static const char kAmbigsFileSuffix[] = "unicharambigs"; static const char kBuiltInTemplatesFileSuffix[] = "inttemp"; static const char kBuiltInCutoffsFileSuffix[] = "pffmtable"; static const char kNormProtoFileSuffix[] = "normproto"; static const char kPuncDawgFileSuffix[] = "punc-dawg"; static const char kSystemDawgFileSuffix[] = "word-dawg"; static const char kNumberDawgFileSuffix[] = "number-dawg"; static const char kFreqDawgFileSuffix[] = "freq-dawg"; static const char kFixedLengthDawgsFileSuffix[] = "fixed-length-dawgs"; static const char kCubeUnicharsetFileSuffix[] = "cube-unicharset"; static const char kCubeSystemDawgFileSuffix[] = "cube-word-dawg"; static const char kShapeTableFileSuffix[] = "shapetable"; static const char kBigramDawgFileSuffix[] = "bigram-dawg"; static const char kUnambigDawgFileSuffix[] = "unambig-dawg"; static const char kParamsModelFileSuffix[] = "params-model"; namespace tesseract { enum TessdataType { TESSDATA_LANG_CONFIG, // 0 TESSDATA_UNICHARSET, // 1 TESSDATA_AMBIGS, // 2 TESSDATA_INTTEMP, // 3 TESSDATA_PFFMTABLE, // 4 TESSDATA_NORMPROTO, // 5 TESSDATA_PUNC_DAWG, // 6 TESSDATA_SYSTEM_DAWG, // 7 TESSDATA_NUMBER_DAWG, // 8 TESSDATA_FREQ_DAWG, // 9 TESSDATA_FIXED_LENGTH_DAWGS, // 10 // deprecated TESSDATA_CUBE_UNICHARSET, // 11 TESSDATA_CUBE_SYSTEM_DAWG, // 12 TESSDATA_SHAPE_TABLE, // 13 TESSDATA_BIGRAM_DAWG, // 14 TESSDATA_UNAMBIG_DAWG, // 15 TESSDATA_PARAMS_MODEL, // 16 TESSDATA_NUM_ENTRIES }; /** * kTessdataFileSuffixes[i] indicates the file suffix for * tessdata of type i (from TessdataType enum). */ static const char * const kTessdataFileSuffixes[] = { kLangConfigFileSuffix, // 0 kUnicharsetFileSuffix, // 1 kAmbigsFileSuffix, // 2 kBuiltInTemplatesFileSuffix, // 3 kBuiltInCutoffsFileSuffix, // 4 kNormProtoFileSuffix, // 5 kPuncDawgFileSuffix, // 6 kSystemDawgFileSuffix, // 7 kNumberDawgFileSuffix, // 8 kFreqDawgFileSuffix, // 9 kFixedLengthDawgsFileSuffix, // 10 // deprecated kCubeUnicharsetFileSuffix, // 11 kCubeSystemDawgFileSuffix, // 12 kShapeTableFileSuffix, // 13 kBigramDawgFileSuffix, // 14 kUnambigDawgFileSuffix, // 15 kParamsModelFileSuffix, // 16 }; /** * If kTessdataFileIsText[i] is true - the tessdata component * of type i (from TessdataType enum) is text, and is binary otherwise. */ static const bool kTessdataFileIsText[] = { true, // 0 true, // 1 true, // 2 false, // 3 true, // 4 true, // 5 false, // 6 false, // 7 false, // 8 false, // 9 false, // 10 // deprecated true, // 11 false, // 12 false, // 13 false, // 14 false, // 15 true, // 16 }; /** * TessdataType could be updated to contain more entries, however * we do not expect that number to be astronomically high. * In order to automatically detect endianness TessdataManager will * flip the bits if actual_tessdata_num_entries_ is larger than * kMaxNumTessdataEntries. */ static const int kMaxNumTessdataEntries = 1000; class TessdataManager { public: TessdataManager() { data_file_ = NULL; actual_tessdata_num_entries_ = 0; for (int i = 0; i < TESSDATA_NUM_ENTRIES; ++i) { offset_table_[i] = -1; } } ~TessdataManager() {} int DebugLevel() { return debug_level_; } /** * Opens the given data file and reads the offset table. * Returns true on success. */ bool Init(const char *data_file_name, int debug_level); // Return the name of the underlying data file. const STRING &GetDataFileName() const { return data_file_name_; } /** Returns data file pointer. */ inline FILE *GetDataFilePtr() const { return data_file_; } /** * Returns false if there is no data of the given type. * Otherwise does a seek on the data_file_ to position the pointer * at the start of the data of the given type. */ inline bool SeekToStart(TessdataType tessdata_type) { if (debug_level_) { tprintf("TessdataManager: seek to offset %lld - start of tessdata" "type %d (%s))\n", offset_table_[tessdata_type], tessdata_type, kTessdataFileSuffixes[tessdata_type]); } if (offset_table_[tessdata_type] < 0) { return false; } else { ASSERT_HOST(fseek(data_file_, static_cast<size_t>(offset_table_[tessdata_type]), SEEK_SET) == 0); return true; } } /** Returns the end offset for the given tesseract data file type. */ inline inT64 GetEndOffset(TessdataType tessdata_type) const { int index = tessdata_type + 1; while (index < actual_tessdata_num_entries_ && offset_table_[index] == -1) { ++index; // skip tessdata types not present in the combined file } if (debug_level_) { tprintf("TessdataManager: end offset for type %d is %lld\n", tessdata_type, (index == actual_tessdata_num_entries_) ? -1 : offset_table_[index]); } return (index == actual_tessdata_num_entries_) ? -1 : offset_table_[index] - 1; } /** Closes data_file_ (if it was opened by Init()). */ inline void End() { if (data_file_ != NULL) { fclose(data_file_); data_file_ = NULL; } } bool swap() const { return swap_; } /** Writes the number of entries and the given offset table to output_file. * Returns false on error. */ static bool WriteMetadata(inT64 *offset_table, const char *language_data_path_prefix, FILE *output_file); /** * Reads all the standard tesseract config and data files for a language * at the given path and bundles them up into one binary data file. * Returns true if the combined traineddata file was successfully written. */ static bool CombineDataFiles(const char *language_data_path_prefix, const char *output_filename); /** * Gets the individual components from the data_file_ with which the class was * initialized. Overwrites the components specified by component_filenames. * Writes the updated traineddata file to new_traineddata_filename. */ bool OverwriteComponents(const char *new_traineddata_filename, char **component_filenames, int num_new_components); /** * Extracts tessdata component implied by the name of the input file from * the combined traineddata loaded into TessdataManager. * Writes the extracted component to the file indicated by the file name. * E.g. if the filename given is somepath/somelang.unicharset, unicharset * will be extracted from the data loaded into the TessdataManager and will * be written to somepath/somelang.unicharset. * @return true if the component was successfully extracted, false if the * component was not present in the traineddata loaded into TessdataManager. */ bool ExtractToFile(const char *filename); /** * Copies data from the given input file to the output_file provided. * If num_bytes_to_copy is >= 0, only num_bytes_to_copy is copied from * the input file, otherwise all the data in the input file is copied. */ static void CopyFile(FILE *input_file, FILE *output_file, bool newline_end, inT64 num_bytes_to_copy); /** * Fills type with TessdataType of the tessdata component represented by the * given file name. E.g. tessdata/eng.unicharset -> TESSDATA_UNICHARSET. * Sets *text_file to true if the component is in text format (e.g. * unicharset, unichar ambigs, config, etc). * @return true if the tessdata component type could be determined * from the given file name. */ static bool TessdataTypeFromFileSuffix(const char *suffix, TessdataType *type, bool *text_file); /** * Tries to determine tessdata component file suffix from filename, * returns true on success. */ static bool TessdataTypeFromFileName(const char *filename, TessdataType *type, bool *text_file); private: /** * Opens the file whose name is a concatenation of language_data_path_prefix * and file_suffix. Returns a file pointer to the opened file. */ static FILE *GetFilePtr(const char *language_data_path_prefix, const char *file_suffix, bool text_file); /** * Each offset_table_[i] contains a file offset in the combined data file * where the data of TessdataFileType i is stored. */ inT64 offset_table_[TESSDATA_NUM_ENTRIES]; /** * Actual number of entries in the tessdata table. This value can only be * same or smaller than TESSDATA_NUM_ENTRIES, but can never be larger, * since then it would be impossible to interpret the type of tessdata at * indices same and higher than TESSDATA_NUM_ENTRIES. * This parameter is used to allow for backward compatiblity * when new tessdata types are introduced. */ inT32 actual_tessdata_num_entries_; STRING data_file_name_; // name of the data file. FILE *data_file_; ///< pointer to the data file. int debug_level_; // True if the bytes need swapping. bool swap_; }; } // namespace tesseract #endif // TESSERACT_CCUTIL_TESSDATAMANAGER_H_
C++
/********************************************************************** * File: serialis.h (Formerly serialmac.h) * Description: Inline routines and macros for serialisation functions * Author: Phil Cheatle * Created: Tue Oct 08 08:33:12 BST 1991 * * (C) Copyright 1990, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #include "serialis.h" #include <stdio.h> #include "genericvector.h" namespace tesseract { TFile::TFile() : offset_(0), data_(NULL), data_is_owned_(false), is_writing_(false) { } TFile::~TFile() { if (data_is_owned_) delete data_; } bool TFile::Open(const STRING& filename, FileReader reader) { if (!data_is_owned_) { data_ = new GenericVector<char>; data_is_owned_ = true; } offset_ = 0; is_writing_ = false; if (reader == NULL) return LoadDataFromFile(filename, data_); else return (*reader)(filename, data_); } bool TFile::Open(const char* data, int size) { offset_ = 0; if (!data_is_owned_) { data_ = new GenericVector<char>; data_is_owned_ = true; } is_writing_ = false; data_->init_to_size(size, 0); memcpy(&(*data_)[0], data, size); return true; } bool TFile::Open(FILE* fp, inT64 end_offset) { offset_ = 0; inT64 current_pos = ftell(fp); if (end_offset < 0) { if (fseek(fp, 0, SEEK_END)) return false; end_offset = ftell(fp); if (fseek(fp, current_pos, SEEK_SET)) return false; } int size = end_offset - current_pos; is_writing_ = false; if (!data_is_owned_) { data_ = new GenericVector<char>; data_is_owned_ = true; } data_->init_to_size(size, 0); return static_cast<int>(fread(&(*data_)[0], 1, size, fp)) == size; } char* TFile::FGets(char* buffer, int buffer_size) { ASSERT_HOST(!is_writing_); int size = 0; while (size + 1 < buffer_size && offset_ < data_->size()) { buffer[size++] = (*data_)[offset_++]; if ((*data_)[offset_ - 1] == '\n') break; } if (size < buffer_size) buffer[size] = '\0'; return size > 0 ? buffer : NULL; } int TFile::FRead(void* buffer, int size, int count) { ASSERT_HOST(!is_writing_); int required_size = size * count; if (required_size <= 0) return 0; char* char_buffer = reinterpret_cast<char*>(buffer); if (data_->size() - offset_ < required_size) required_size = data_->size() - offset_; if (required_size > 0) memcpy(char_buffer, &(*data_)[offset_], required_size); offset_ += required_size; return required_size / size; } void TFile::Rewind() { ASSERT_HOST(!is_writing_); offset_ = 0; } void TFile::OpenWrite(GenericVector<char>* data) { offset_ = 0; if (data != NULL) { if (data_is_owned_) delete data_; data_ = data; data_is_owned_ = false; } else if (!data_is_owned_) { data_ = new GenericVector<char>; data_is_owned_ = true; } is_writing_ = true; data_->truncate(0); } bool TFile::CloseWrite(const STRING& filename, FileWriter writer) { ASSERT_HOST(is_writing_); if (writer == NULL) return SaveDataToFile(*data_, filename); else return (*writer)(*data_, filename); } int TFile::FWrite(const void* buffer, int size, int count) { ASSERT_HOST(is_writing_); int total = size * count; if (total <= 0) return 0; const char* buf = reinterpret_cast<const char*>(buffer); // This isn't very efficient, but memory is so fast compared to disk // that it is relatively unimportant, and very simple. for (int i = 0; i < total; ++i) data_->push_back(buf[i]); return count; } } // namespace tesseract.
C++
/********************************************************************** * File: errcode.h (Formerly error.h) * Description: Header file for generic error handler class * Author: Ray Smith * Created: Tue May 1 16:23:36 BST 1990 * * (C) Copyright 1990, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef ERRCODE_H #define ERRCODE_H #include "host.h" /*Control parameters for error()*/ enum TessErrorLogCode { DBG = -1, /*log without alert */ TESSLOG = 0, /*alert user */ TESSEXIT = 1, /*exit after erro */ ABORT = 2 /*abort after error */ }; /* Explicit Error Abort codes */ #define NO_ABORT_CODE 0 #define LIST_ABORT 1 #define MEMORY_ABORT 2 #define FILE_ABORT 3 /* Location of code at error codes Reserve 0..2 (status codes 0..23 for UNLV)*/ #define LOC_UNUSED0 0 #define LOC_UNUSED1 1 #define LOC_UNUSED2 2 #define LOC_INIT 3 #define LOC_EDGE_PROG 4 #define LOC_TEXT_ORD_ROWS 5 #define LOC_TEXT_ORD_WORDS 6 #define LOC_PASS1 7 #define LOC_PASS2 8 /* Reserve up to 8..13 for adding subloc 0/3 plus subsubloc 0/1/2 */ #define LOC_FUZZY_SPACE 14 /* Reserve up to 14..20 for adding subloc 0/3 plus subsubloc 0/1/2 */ #define LOC_MM_ADAPT 21 #define LOC_DOC_BLK_REJ 22 #define LOC_WRITE_RESULTS 23 #define LOC_ADAPTIVE 24 /* DONT DEFINE ANY LOCATION > 31 !!! */ /* Sub locatation determines whether pass2 was in normal mode or fix xht mode*/ #define SUBLOC_NORM 0 #define SUBLOC_FIX_XHT 3 /* Sub Sub locatation determines whether match_word_pass2 was in Tess matcher, NN matcher or somewhere else */ #define SUBSUBLOC_OTHER 0 #define SUBSUBLOC_TESS 1 #define SUBSUBLOC_NN 2 class TESS_API ERRCODE { // error handler class const char *message; // error message public: void error( // error print function const char *caller, // function location TessErrorLogCode action, // action to take const char *format, ... // fprintf format ) const; ERRCODE(const char *string) { message = string; } // initialize with string }; const ERRCODE ASSERT_FAILED = "Assert failed"; #define ASSERT_HOST(x) if (!(x)) \ { \ ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", \ __FILE__, __LINE__); \ } #ifdef _MSC_VER #define ASSERT_HOST_MSG(x, msg, ...) if (!(x)) \ { \ tprintf(msg); \ ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", \ __FILE__, __LINE__); \ } #else #define ASSERT_HOST_MSG(x, msg...) if (!(x)) \ { \ tprintf(msg); \ ASSERT_FAILED.error(#x, ABORT, "in file %s, line %d", \ __FILE__, __LINE__); \ } #endif void signal_exit(int signal_code); void set_global_loc_code(int loc_code); void set_global_subloc_code(int loc_code); void set_global_subsubloc_code(int loc_code); #endif
C++
/////////////////////////////////////////////////////////////////////// // File: universalambigs.cpp // Description: Data for a universal ambigs file that is useful for // any language. // Author: Ray Smith // Created: Mon Mar 18 11:26:00 PDT 2013 // // (C) Copyright 2013, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// namespace tesseract { extern const char kUniversalAmbigsFile[] = { '\166', '\062', '\012', '\047', '\047', '\040', '\042', '\040', '\061', '\012', '\140', '\047', '\040', '\042', '\040', '\061', '\012', '\047', '\140', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\230', '\047', '\040', '\042', '\040', '\061', '\012', '\047', '\342', '\200', '\230', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\231', '\047', '\040', '\042', '\040', '\061', '\012', '\047', '\342', '\200', '\231', '\040', '\042', '\040', '\061', '\012', '\140', '\140', '\040', '\042', '\040', '\061', '\012', '\140', '\342', '\200', '\230', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\230', '\140', '\040', '\042', '\040', '\061', '\012', '\140', '\342', '\200', '\231', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\231', '\140', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\230', '\342', '\200', '\230', '\040', '\342', '\200', '\234', '\040', '\061', '\012', '\342', '\200', '\230', '\342', '\200', '\231', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\231', '\342', '\200', '\230', '\040', '\042', '\040', '\061', '\012', '\342', '\200', '\231', '\342', '\200', '\231', '\040', '\342', '\200', '\235', '\040', '\061', '\012', '\054', '\054', '\040', '\342', '\200', '\236', '\040', '\061', '\012', '\155', '\040', '\162', '\156', '\040', '\060', '\012', '\162', '\156', '\040', '\155', '\040', '\060', '\012', '\155', '\040', '\151', '\156', '\040', '\060', '\012', '\151', '\156', '\040', '\155', '\040', '\060', '\012', '\144', '\040', '\143', '\154', '\040', '\060', '\012', '\143', '\154', '\040', '\144', '\040', '\060', '\012', '\156', '\156', '\040', '\162', '\155', '\040', '\060', '\012', '\162', '\155', '\040', '\156', '\156', '\040', '\060', '\012', '\156', '\040', '\162', '\151', '\040', '\060', '\012', '\162', '\151', '\040', '\156', '\040', '\060', '\012', '\154', '\151', '\040', '\150', '\040', '\060', '\012', '\154', '\162', '\040', '\150', '\040', '\060', '\012', '\151', '\151', '\040', '\165', '\040', '\060', '\012', '\151', '\151', '\040', '\156', '\040', '\060', '\012', '\156', '\151', '\040', '\155', '\040', '\060', '\012', '\151', '\151', '\151', '\040', '\155', '\040', '\060', '\012', '\154', '\154', '\040', '\110', '\040', '\060', '\012', '\111', '\055', '\111', '\040', '\110', '\040', '\060', '\012', '\166', '\166', '\040', '\167', '\040', '\060', '\012', '\126', '\126', '\040', '\127', '\040', '\060', '\012', '\164', '\040', '\146', '\040', '\060', '\012', '\146', '\040', '\164', '\040', '\060', '\012', '\141', '\040', '\157', '\040', '\060', '\012', '\157', '\040', '\141', '\040', '\060', '\012', '\145', '\040', '\143', '\040', '\060', '\012', '\143', '\040', '\145', '\040', '\060', '\012', '\162', '\162', '\040', '\156', '\040', '\060', '\012', '\105', '\040', '\146', '\151', '\040', '\060', '\012', '\154', '\074', '\040', '\153', '\040', '\060', '\012', '\154', '\144', '\040', '\153', '\151', '\040', '\060', '\012', '\154', '\170', '\040', '\150', '\040', '\060', '\012', '\170', '\156', '\040', '\155', '\040', '\060', '\012', '\165', '\170', '\040', '\151', '\156', '\040', '\060', '\012', '\162', '\040', '\164', '\040', '\060', '\012', '\144', '\040', '\164', '\154', '\040', '\060', '\012', '\144', '\151', '\040', '\164', '\150', '\040', '\060', '\012', '\165', '\162', '\040', '\151', '\156', '\040', '\060', '\012', '\165', '\156', '\040', '\151', '\155', '\040', '\060', '\012', '\165', '\040', '\141', '\040', '\060', '\012', '\157', '\040', '\303', '\263', '\040', '\060', '\012', '\303', '\263', '\040', '\157', '\040', '\060', '\012', '\151', '\040', '\303', '\255', '\040', '\060', '\012', '\303', '\255', '\040', '\151', '\040', '\060', '\012', '\141', '\040', '\303', '\241', '\040', '\060', '\012', '\303', '\241', '\040', '\141', '\040', '\060', '\012', '\145', '\040', '\303', '\251', '\040', '\060', '\012', '\303', '\251', '\040', '\145', '\040', '\060', '\012', '\165', '\040', '\303', '\272', '\040', '\060', '\012', '\303', '\272', '\040', '\165', '\040', '\060', '\012', '\156', '\040', '\303', '\261', '\040', '\060', '\012', '\303', '\261', '\040', '\156', '\040', '\060', '\012', '\060', '\040', '\157', '\040', '\060', '\012', '\144', '\040', '\164', '\162', '\040', '\060', '\012', '\156', '\040', '\164', '\162', '\040', '\060', '\012', '\303', '\261', '\040', '\146', '\151', '\040', '\060', '\012', '\165', '\040', '\164', '\151', '\040', '\060', '\012', '\303', '\261', '\040', '\164', '\151', '\040', '\060', '\012', '\144', '\040', '\164', '\151', '\040', '\060', '\012', '\144', '\040', '\164', '\303', '\255', '\040', '\060', '\012', '\144', '\040', '\162', '\303', '\255', '\040', '\060', '\012', '\141', '\040', '\303', '\240', '\040', '\060', '\012', '\145', '\040', '\303', '\250', '\040', '\060', '\012', '\156', '\040', '\151', '\152', '\040', '\060', '\012', '\147', '\040', '\151', '\152', '\040', '\060', '\012', '\157', '\040', '\303', '\262', '\040', '\060', '\012', '\105', '\040', '\303', '\211', '\040', '\060', '\012', '\105', '\040', '\303', '\210', '\040', '\060', '\012', '\165', '\040', '\303', '\274', '\040', '\060', '\012', '\170', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\131', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\164', '\105', '\040', '\156', '\164', '\040', '\061', '\012', '\124', '\154', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\170', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\152', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\160', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\162', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\161', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\142', '\114', '\040', '\142', '\145', '\040', '\061', '\012', '\116', '\166', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\112', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\170', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\172', '\164', '\040', '\164', '\141', '\040', '\061', '\012', '\161', '\113', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\143', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\130', '\160', '\040', '\160', '\157', '\040', '\061', '\012', '\126', '\161', '\151', '\040', '\164', '\151', '\040', '\061', '\012', '\125', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\112', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\153', '\144', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\160', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\102', '\166', '\040', '\164', '\151', '\040', '\061', '\012', '\172', '\122', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\124', '\155', '\040', '\155', '\151', '\040', '\061', '\012', '\155', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\164', '\160', '\040', '\164', '\151', '\040', '\061', '\012', '\155', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\104', '\161', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\170', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\102', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\166', '\143', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\103', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\101', '\157', '\040', '\166', '\157', '\040', '\061', '\012', '\161', '\165', '\102', '\040', '\164', '\165', '\040', '\061', '\012', '\142', '\164', '\126', '\040', '\164', '\151', '\040', '\061', '\012', '\114', '\155', '\143', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\126', '\167', '\040', '\164', '\151', '\040', '\061', '\012', '\131', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\120', '\152', '\040', '\164', '\165', '\040', '\061', '\012', '\146', '\124', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\122', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\144', '\101', '\040', '\144', '\151', '\040', '\061', '\012', '\152', '\172', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\170', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\166', '\147', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\165', '\126', '\040', '\164', '\165', '\040', '\061', '\012', '\163', '\127', '\153', '\040', '\153', '\165', '\040', '\061', '\012', '\120', '\147', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\110', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\153', '\125', '\040', '\153', '\165', '\040', '\061', '\012', '\147', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\144', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\126', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\147', '\144', '\040', '\144', '\151', '\040', '\061', '\012', '\172', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\161', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\163', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\146', '\116', '\040', '\144', '\151', '\040', '\061', '\012', '\144', '\147', '\127', '\040', '\144', '\151', '\040', '\061', '\012', '\167', '\116', '\162', '\040', '\162', '\151', '\040', '\061', '\012', '\172', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\131', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\110', '\171', '\040', '\164', '\165', '\040', '\061', '\012', '\164', '\116', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\170', '\112', '\040', '\154', '\151', '\040', '\061', '\012', '\110', '\142', '\153', '\040', '\153', '\165', '\040', '\061', '\012', '\170', '\163', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\123', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\106', '\142', '\040', '\142', '\165', '\040', '\061', '\012', '\116', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\153', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\132', '\146', '\040', '\164', '\157', '\040', '\061', '\012', '\153', '\143', '\125', '\040', '\153', '\157', '\040', '\061', '\012', '\146', '\106', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\161', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\156', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\170', '\115', '\040', '\160', '\157', '\040', '\061', '\012', '\145', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\112', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\156', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\103', '\161', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\146', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\161', '\156', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\123', '\163', '\040', '\151', '\163', '\040', '\061', '\012', '\163', '\102', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\106', '\150', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\116', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\115', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\170', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\144', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\162', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\105', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\126', '\143', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\124', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\101', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\154', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\142', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\126', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\121', '\154', '\040', '\164', '\145', '\040', '\061', '\012', '\163', '\127', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\102', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\125', '\143', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\117', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\110', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\116', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\106', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\155', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\146', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\170', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\131', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\146', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\144', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\116', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\120', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\126', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\112', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\160', '\110', '\040', '\160', '\157', '\040', '\061', '\012', '\170', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\155', '\102', '\040', '\156', '\164', '\040', '\061', '\012', '\172', '\143', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\146', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\146', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\132', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\122', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\165', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\142', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\166', '\152', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\103', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\167', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\107', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\142', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\103', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\157', '\121', '\040', '\160', '\157', '\040', '\061', '\012', '\161', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\166', '\147', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\101', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\146', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\147', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\160', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\121', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\152', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\170', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\120', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\116', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\107', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\165', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\131', '\145', '\040', '\164', '\145', '\040', '\061', '\012', '\146', '\132', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\131', '\040', '\146', '\157', '\040', '\061', '\012', '\171', '\120', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\155', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\146', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\170', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\172', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\141', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\153', '\126', '\144', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\152', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\153', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\121', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\166', '\152', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\160', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\153', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\112', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\167', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\155', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\103', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\167', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\107', '\146', '\040', '\156', '\164', '\040', '\061', '\012', '\152', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\127', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\170', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\161', '\156', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\144', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\116', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\117', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\102', '\171', '\040', '\146', '\157', '\040', '\061', '\012', '\156', '\125', '\152', '\040', '\156', '\164', '\040', '\061', '\012', '\154', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\154', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\130', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\126', '\167', '\040', '\166', '\145', '\040', '\061', '\012', '\172', '\127', '\156', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\112', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\115', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\155', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\123', '\163', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\127', '\154', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\152', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\113', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\143', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\153', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\125', '\145', '\040', '\164', '\145', '\040', '\061', '\012', '\154', '\125', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\102', '\147', '\040', '\156', '\164', '\040', '\061', '\012', '\144', '\110', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\160', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\102', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\144', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\146', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\147', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\153', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\121', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\160', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\102', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\155', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\127', '\146', '\040', '\166', '\145', '\040', '\061', '\012', '\152', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\171', '\111', '\040', '\156', '\171', '\040', '\061', '\012', '\132', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\117', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\153', '\112', '\040', '\153', '\157', '\040', '\061', '\012', '\144', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\142', '\127', '\040', '\151', '\163', '\040', '\061', '\012', '\172', '\115', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\112', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\115', '\143', '\040', '\153', '\157', '\040', '\061', '\012', '\172', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\106', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\132', '\170', '\040', '\170', '\145', '\040', '\061', '\012', '\161', '\166', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\162', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\152', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\167', '\111', '\040', '\167', '\141', '\040', '\061', '\012', '\151', '\104', '\167', '\040', '\164', '\151', '\040', '\061', '\012', '\102', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\120', '\172', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\106', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\121', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\102', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\166', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\152', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\172', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\110', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\142', '\115', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\127', '\147', '\040', '\156', '\164', '\040', '\061', '\012', '\131', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\170', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\142', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\127', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\164', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\156', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\152', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\171', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\106', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\157', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\167', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\156', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\142', '\167', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\156', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\172', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\160', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\124', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\144', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\167', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\125', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\113', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\152', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\124', '\156', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\164', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\155', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\142', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\163', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\170', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\170', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\121', '\164', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\170', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\144', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\167', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\126', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\166', '\154', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\115', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\117', '\141', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\131', '\160', '\040', '\164', '\151', '\040', '\061', '\012', '\166', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\157', '\126', '\040', '\162', '\157', '\040', '\061', '\012', '\146', '\132', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\161', '\121', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\127', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\167', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\163', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\156', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\171', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\122', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\165', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\167', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\126', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\132', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\162', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\163', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\166', '\163', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\103', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\166', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\167', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\107', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\127', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\113', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\127', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\155', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\160', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\172', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\155', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\116', '\153', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\160', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\167', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\110', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\172', '\103', '\040', '\152', '\157', '\040', '\061', '\012', '\157', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\130', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\105', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\165', '\127', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\163', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\123', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\113', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\171', '\145', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\155', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\165', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\144', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\116', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\172', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\152', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\160', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\114', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\142', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\170', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\126', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\120', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\121', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\155', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\106', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\141', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\124', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\116', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\167', '\131', '\040', '\164', '\151', '\040', '\061', '\012', '\116', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\124', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\172', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\152', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\127', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\114', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\161', '\172', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\172', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\132', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\125', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\107', '\170', '\040', '\164', '\151', '\040', '\061', '\012', '\170', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\170', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\152', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\107', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\147', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\156', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\146', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\165', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\132', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\104', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\163', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\126', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\104', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\101', '\157', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\155', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\127', '\156', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\122', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\166', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\151', '\131', '\040', '\164', '\151', '\040', '\061', '\012', '\170', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\144', '\156', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\170', '\132', '\040', '\170', '\145', '\040', '\061', '\012', '\130', '\144', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\156', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\127', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\121', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\167', '\107', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\155', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\107', '\171', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\172', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\107', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\152', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\126', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\167', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\150', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\156', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\127', '\143', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\117', '\156', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\156', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\164', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\127', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\101', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\132', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\124', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\131', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\167', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\121', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\126', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\154', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\102', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\111', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\121', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\142', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\125', '\157', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\126', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\144', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\161', '\103', '\040', '\166', '\157', '\040', '\061', '\012', '\152', '\153', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\166', '\172', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\120', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\103', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\146', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\167', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\124', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\154', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\164', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\114', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\121', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\166', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\147', '\145', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\112', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\116', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\113', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\131', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\152', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\101', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\155', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\107', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\126', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\127', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\160', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\167', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\127', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\111', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\142', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\161', '\143', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\145', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\120', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\167', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\110', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\167', '\120', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\166', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\123', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\131', '\160', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\104', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\102', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\116', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\125', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\122', '\154', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\102', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\154', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\167', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\101', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\104', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\102', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\146', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\157', '\116', '\040', '\157', '\156', '\040', '\061', '\012', '\131', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\126', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\120', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\147', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\170', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\146', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\127', '\144', '\040', '\144', '\157', '\040', '\061', '\012', '\170', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\117', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\153', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\155', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\101', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\110', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\113', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\110', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\170', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\171', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\157', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\115', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\120', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\167', '\107', '\040', '\167', '\141', '\040', '\061', '\012', '\103', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\157', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\161', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\120', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\156', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\146', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\171', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\114', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\152', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\155', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\145', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\171', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\163', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\167', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\156', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\103', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\160', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\117', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\106', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\113', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\110', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\162', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\114', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\131', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\103', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\167', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\114', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\115', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\113', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\115', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\143', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\170', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\132', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\167', '\104', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\146', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\170', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\120', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\101', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\113', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\103', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\167', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\166', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\125', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\120', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\152', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\160', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\172', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\132', '\163', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\113', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\143', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\126', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\127', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\114', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\113', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\147', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\132', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\112', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\153', '\146', '\115', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\113', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\147', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\107', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\122', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\117', '\141', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\167', '\104', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\130', '\163', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\154', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\155', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\127', '\155', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\126', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\152', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\170', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\166', '\163', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\126', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\170', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\120', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\146', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\160', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\106', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\167', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\117', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\132', '\162', '\040', '\151', '\156', '\040', '\061', '\012', '\126', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\114', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\106', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\171', '\125', '\040', '\156', '\171', '\040', '\061', '\012', '\155', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\113', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\115', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\111', '\152', '\040', '\164', '\145', '\040', '\061', '\012', '\126', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\103', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\125', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\132', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\131', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\163', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\110', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\102', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\117', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\152', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\146', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\117', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\130', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\115', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\111', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\120', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\167', '\127', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\115', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\124', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\111', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\152', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\120', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\154', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\131', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\126', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\160', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\144', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\114', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\144', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\102', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\162', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\124', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\131', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\143', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\103', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\120', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\160', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\142', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\170', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\123', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\105', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\130', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\155', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\153', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\167', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\125', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\146', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\160', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\124', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\132', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\102', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\107', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\103', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\116', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\161', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\130', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\123', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\130', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\147', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\143', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\155', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\170', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\106', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\162', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\116', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\170', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\167', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\114', '\164', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\160', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\111', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\120', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\160', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\104', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\146', '\112', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\102', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\110', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\101', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\116', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\152', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\123', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\115', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\113', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\155', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\172', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\110', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\112', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\127', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\166', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\153', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\105', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\125', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\114', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\107', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\107', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\106', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\106', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\123', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\130', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\110', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\165', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\112', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\127', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\160', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\161', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\162', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\147', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\171', '\120', '\040', '\156', '\171', '\040', '\061', '\012', '\132', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\106', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\156', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\120', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\106', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\146', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\146', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\107', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\122', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\127', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\131', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\105', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\110', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\106', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\104', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\114', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\113', '\163', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\167', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\126', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\165', '\111', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\167', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\120', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\122', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\146', '\104', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\103', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\112', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\103', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\142', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\103', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\155', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\145', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\156', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\167', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\111', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\152', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\167', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\112', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\156', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\106', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\147', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\104', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\110', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\171', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\114', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\170', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\115', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\167', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\146', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\164', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\124', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\103', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\103', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\146', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\111', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\167', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\167', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\132', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\126', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\124', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\115', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\110', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\152', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\167', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\113', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\146', '\107', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\146', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\167', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\125', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\153', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\155', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\155', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\164', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\171', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\171', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\122', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\115', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\167', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\120', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\167', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\171', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\163', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\124', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\155', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\160', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\102', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\165', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\114', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\146', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\125', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\103', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\125', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\102', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\155', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\164', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\121', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\172', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\162', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\170', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\131', '\153', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\153', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\120', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\165', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\120', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\167', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\167', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\170', '\120', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\155', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\141', '\167', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\126', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\167', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\131', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\103', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\146', '\121', '\040', '\156', '\171', '\040', '\061', '\012', '\172', '\107', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\166', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\103', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\120', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\150', '\166', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\172', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\146', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\131', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\116', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\101', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\170', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\117', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\167', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\121', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\127', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\170', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\130', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\166', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\130', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\103', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\122', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\141', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\110', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\120', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\152', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\132', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\156', '\161', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\126', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\110', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\112', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\124', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\153', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\167', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\155', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\146', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\155', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\117', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\165', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\104', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\122', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\155', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\170', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\164', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\106', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\126', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\144', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\115', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\167', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\153', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\122', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\166', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\167', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\121', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\162', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\125', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\167', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\147', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\110', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\121', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\132', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\171', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\105', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\114', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\170', '\125', '\040', '\156', '\171', '\040', '\061', '\012', '\147', '\166', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\163', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\142', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\115', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\153', '\130', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\162', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\117', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\107', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\107', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\103', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\161', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\104', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\105', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\132', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\131', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\120', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\147', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\170', '\113', '\040', '\146', '\157', '\040', '\061', '\012', '\110', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\122', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\155', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\170', '\122', '\040', '\142', '\145', '\040', '\061', '\012', '\114', '\163', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\122', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\167', '\121', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\146', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\167', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\106', '\143', '\040', '\164', '\151', '\040', '\061', '\012', '\167', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\142', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\146', '\123', '\040', '\146', '\157', '\040', '\061', '\012', '\120', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\131', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\104', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\103', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\170', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\115', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\147', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\161', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\164', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\125', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\156', '\116', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\124', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\163', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\112', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\155', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\152', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\170', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\144', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\101', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\125', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\130', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\102', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\147', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\132', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\112', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\155', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\131', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\167', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\131', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\110', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\154', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\103', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\104', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\103', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\170', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\145', '\130', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\153', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\122', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\167', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\121', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\106', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\145', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\167', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\167', '\104', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\160', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\165', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\162', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\163', '\156', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\120', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\122', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\152', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\143', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\145', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\106', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\142', '\127', '\040', '\142', '\145', '\040', '\061', '\012', '\165', '\125', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\164', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\160', '\124', '\040', '\151', '\156', '\040', '\061', '\012', '\130', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\167', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\130', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\114', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\106', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\114', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\142', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\155', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\156', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\116', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\160', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\154', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\110', '\161', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\167', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\152', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\120', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\122', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\112', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\132', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\166', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\120', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\116', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\155', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\151', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\154', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\170', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\167', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\144', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\132', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\146', '\112', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\121', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\161', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\114', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\152', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\132', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\131', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\126', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\167', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\167', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\145', '\107', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\123', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\163', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\155', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\146', '\121', '\040', '\146', '\157', '\040', '\061', '\012', '\126', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\155', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\101', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\142', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\112', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\170', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\142', '\103', '\040', '\142', '\145', '\040', '\061', '\012', '\122', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\112', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\171', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\153', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\157', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\132', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\120', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\107', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\122', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\114', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\170', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\143', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\167', '\160', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\124', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\146', '\107', '\040', '\156', '\171', '\040', '\061', '\012', '\160', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\152', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\144', '\147', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\167', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\152', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\124', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\113', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\122', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\131', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\123', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\154', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\125', '\165', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\117', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\102', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\122', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\127', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\110', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\146', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\152', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\170', '\107', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\160', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\172', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\102', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\170', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\111', '\152', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\105', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\106', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\111', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\106', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\172', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\111', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\153', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\146', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\153', '\111', '\040', '\153', '\165', '\040', '\061', '\012', '\146', '\111', '\157', '\040', '\162', '\157', '\040', '\061', '\012', '\154', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\101', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\104', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\110', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\112', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\103', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\166', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\114', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\132', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\124', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\126', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\106', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\167', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\107', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\165', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\106', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\124', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\110', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\121', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\104', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\153', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\102', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\155', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\144', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\153', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\123', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\144', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\147', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\116', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\146', '\101', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\170', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\170', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\121', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\167', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\170', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\167', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\111', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\172', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\161', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\115', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\160', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\117', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\153', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\152', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\165', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\155', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\165', '\112', '\040', '\157', '\165', '\040', '\061', '\012', '\171', '\127', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\125', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\172', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\123', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\147', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\152', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\123', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\146', '\101', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\153', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\144', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\142', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\102', '\155', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\170', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\111', '\161', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\147', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\122', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\106', '\167', '\040', '\166', '\157', '\040', '\061', '\012', '\146', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\167', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\112', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\170', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\132', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\110', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\165', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\160', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\121', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\107', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\163', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\167', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\171', '\121', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\113', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\155', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\132', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\111', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\171', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\104', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\111', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\152', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\102', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\167', '\142', '\040', '\157', '\167', '\040', '\061', '\012', '\126', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\152', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\107', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\102', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\160', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\131', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\170', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\150', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\160', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\104', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\116', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\122', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\115', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\160', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\104', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\171', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\113', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\153', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\167', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\104', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\155', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\144', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\112', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\125', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\124', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\110', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\155', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\106', '\150', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\163', '\122', '\040', '\163', '\164', '\040', '\061', '\012', '\151', '\127', '\147', '\040', '\151', '\156', '\040', '\061', '\012', '\130', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\172', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\126', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\111', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\104', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\146', '\125', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\157', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\143', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\127', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\121', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\145', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\152', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\124', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\122', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\142', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\111', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\170', '\116', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\103', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\144', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\113', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\124', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\155', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\124', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\114', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\111', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\143', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\165', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\103', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\161', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\152', '\172', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\151', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\156', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\155', '\116', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\142', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\153', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\172', '\103', '\040', '\160', '\157', '\040', '\061', '\012', '\154', '\146', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\102', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\155', '\114', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\152', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\111', '\165', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\146', '\104', '\040', '\156', '\171', '\040', '\061', '\012', '\143', '\154', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\144', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\124', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\130', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\160', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\155', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\153', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\125', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\170', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\124', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\132', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\126', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\146', '\104', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\120', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\130', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\105', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\142', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\157', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\153', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\142', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\160', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\146', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\104', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\115', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\172', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\155', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\152', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\153', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\144', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\142', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\170', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\131', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\112', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\114', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\102', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\145', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\167', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\120', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\111', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\142', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\144', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\115', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\170', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\106', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\167', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\162', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\131', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\126', '\143', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\122', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\160', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\116', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\113', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\166', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\167', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\171', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\102', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\123', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\115', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\152', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\131', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\106', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\153', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\167', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\152', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\121', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\115', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\112', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\124', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\155', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\131', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\112', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\124', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\146', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\170', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\142', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\170', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\167', '\117', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\166', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\166', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\153', '\106', '\040', '\153', '\165', '\040', '\061', '\012', '\151', '\171', '\124', '\040', '\151', '\156', '\040', '\061', '\012', '\125', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\156', '\172', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\142', '\110', '\040', '\142', '\165', '\040', '\061', '\012', '\154', '\123', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\125', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\171', '\106', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\170', '\120', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\131', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\170', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\167', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\125', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\163', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\144', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\131', '\163', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\146', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\122', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\160', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\170', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\142', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\153', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\113', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\121', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\127', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\167', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\143', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\146', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\130', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\147', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\152', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\107', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\142', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\160', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\115', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\167', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\116', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\103', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\154', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\102', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\106', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\146', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\106', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\170', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\147', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\106', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\170', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\152', '\172', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\166', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\171', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\106', '\150', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\107', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\114', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\114', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\113', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\112', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\121', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\160', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\151', '\117', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\117', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\152', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\126', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\166', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\164', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\111', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\160', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\170', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\166', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\160', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\156', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\147', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\146', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\110', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\144', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\124', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\147', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\170', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\120', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\170', '\127', '\040', '\156', '\171', '\040', '\061', '\012', '\110', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\110', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\166', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\147', '\156', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\142', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\161', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\122', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\146', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\130', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\155', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\121', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\163', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\111', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\154', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\160', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\155', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\153', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\104', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\131', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\153', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\106', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\171', '\112', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\111', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\131', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\144', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\142', '\116', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\167', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\121', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\112', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\147', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\170', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\115', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\146', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\153', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\110', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\141', '\112', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\127', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\155', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\102', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\116', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\101', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\110', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\122', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\127', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\124', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\170', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\113', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\124', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\156', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\157', '\145', '\117', '\040', '\157', '\156', '\040', '\061', '\012', '\156', '\103', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\130', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\101', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\107', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\170', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\122', '\172', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\124', '\163', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\110', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\114', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\116', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\107', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\171', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\104', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\172', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\105', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\142', '\106', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\163', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\156', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\113', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\165', '\121', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\170', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\113', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\143', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\146', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\102', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\112', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\131', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\123', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\121', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\160', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\146', '\113', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\120', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\130', '\162', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\152', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\172', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\155', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\112', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\111', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\130', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\146', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\126', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\112', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\114', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\167', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\167', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\106', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\127', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\114', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\170', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\146', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\120', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\144', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\167', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\115', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\120', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\172', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\106', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\113', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\153', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\107', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\132', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\153', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\122', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\154', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\116', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\131', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\132', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\164', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\120', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\127', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\146', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\105', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\152', '\172', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\170', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\154', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\131', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\115', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\115', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\122', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\114', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\106', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\116', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\106', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\113', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\112', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\113', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\170', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\120', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\172', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\110', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\106', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\166', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\130', '\145', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\111', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\142', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\132', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\113', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\160', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\113', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\121', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\106', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\127', '\166', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\153', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\152', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\146', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\142', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\167', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\127', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\123', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\162', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\166', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\161', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\142', '\107', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\172', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\106', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\170', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\141', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\124', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\102', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\126', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\146', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\170', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\110', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\126', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\121', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\167', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\110', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\172', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\146', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\127', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\161', '\105', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\160', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\127', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\154', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\131', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\166', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\146', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\142', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\166', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\110', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\160', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\146', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\145', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\142', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\127', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\144', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\166', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\167', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\115', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\143', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\164', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\160', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\153', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\165', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\142', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\123', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\155', '\107', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\141', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\167', '\110', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\104', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\107', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\150', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\153', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\146', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\155', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\115', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\131', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\167', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\170', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\142', '\123', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\162', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\112', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\130', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\104', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\160', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\147', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\141', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\162', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\112', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\115', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\143', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\116', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\132', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\170', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\126', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\142', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\123', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\121', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\126', '\167', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\124', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\162', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\112', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\114', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\153', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\142', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\153', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\160', '\105', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\132', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\167', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\103', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\162', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\155', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\146', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\102', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\142', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\144', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\102', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\121', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\154', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\164', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\122', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\162', '\161', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\127', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\172', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\107', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\127', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\126', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\165', '\120', '\040', '\165', '\156', '\040', '\061', '\012', '\144', '\110', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\147', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\115', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\110', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\132', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\153', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\116', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\160', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\152', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\170', '\126', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\147', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\115', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\107', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\142', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\162', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\165', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\153', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\170', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\126', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\113', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\154', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\102', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\121', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\131', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\166', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\107', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\164', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\166', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\152', '\172', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\165', '\040', '\153', '\165', '\040', '\061', '\012', '\121', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\155', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\111', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\132', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\114', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\115', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\120', '\155', '\040', '\165', '\155', '\040', '\061', '\012', '\160', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\172', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\142', '\117', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\166', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\143', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\155', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\106', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\170', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\102', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\126', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\157', '\110', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\127', '\147', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\104', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\167', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\104', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\113', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\166', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\165', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\103', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\144', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\142', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\142', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\142', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\146', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\142', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\142', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\122', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\132', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\112', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\132', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\142', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\112', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\126', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\167', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\167', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\146', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\164', '\130', '\040', '\164', '\151', '\040', '\061', '\012', '\144', '\113', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\121', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\104', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\160', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\153', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\144', '\104', '\040', '\144', '\151', '\040', '\061', '\012', '\146', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\150', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\102', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\105', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\146', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\132', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\170', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\102', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\143', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\122', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\126', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\102', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\117', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\107', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\166', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\147', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\162', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\106', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\126', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\146', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\144', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\156', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\172', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\101', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\101', '\167', '\040', '\153', '\157', '\040', '\061', '\012', '\170', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\116', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\160', '\144', '\040', '\144', '\151', '\040', '\061', '\012', '\157', '\125', '\171', '\040', '\153', '\157', '\040', '\061', '\012', '\146', '\160', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\122', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\154', '\130', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\127', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\127', '\166', '\040', '\166', '\151', '\040', '\061', '\012', '\106', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\147', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\127', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\126', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\120', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\167', '\101', '\040', '\144', '\145', '\040', '\061', '\012', '\117', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\151', '\132', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\172', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\167', '\114', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\127', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\124', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\142', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\165', '\117', '\040', '\151', '\156', '\040', '\061', '\012', '\121', '\144', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\165', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\163', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\111', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\147', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\123', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\170', '\121', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\143', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\142', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\122', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\132', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\103', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\155', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\132', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\104', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\142', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\123', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\126', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\121', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\115', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\103', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\156', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\166', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\146', '\112', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\103', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\163', '\121', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\165', '\103', '\040', '\165', '\156', '\040', '\061', '\012', '\103', '\164', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\152', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\155', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\130', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\163', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\142', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\167', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\170', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\150', '\151', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\113', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\151', '\161', '\116', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\153', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\116', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\167', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\107', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\162', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\153', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\122', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\112', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\161', '\106', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\170', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\163', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\146', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\162', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\130', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\126', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\115', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\110', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\113', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\111', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\116', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\167', '\114', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\132', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\117', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\162', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\125', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\155', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\172', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\166', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\170', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\123', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\110', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\116', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\123', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\111', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\146', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\172', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\112', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\152', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\141', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\104', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\121', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\112', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\122', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\112', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\153', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\142', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\102', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\126', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\131', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\126', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\172', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\113', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\120', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\170', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\142', '\124', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\166', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\155', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\170', '\114', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\123', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\116', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\124', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\114', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\166', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\106', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\147', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\104', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\117', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\146', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\160', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\170', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\126', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\106', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\170', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\167', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\144', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\127', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\124', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\155', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\166', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\153', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\103', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\164', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\110', '\150', '\040', '\154', '\157', '\040', '\061', '\012', '\131', '\166', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\126', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\127', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\115', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\131', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\106', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\121', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\113', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\114', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\111', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\147', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\106', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\170', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\152', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\120', '\147', '\040', '\151', '\156', '\040', '\061', '\012', '\130', '\156', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\153', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\146', '\120', '\040', '\160', '\162', '\040', '\061', '\012', '\104', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\172', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\167', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\142', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\167', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\146', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\126', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\125', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\172', '\124', '\040', '\152', '\157', '\040', '\061', '\012', '\153', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\127', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\142', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\141', '\102', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\101', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\144', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\102', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\130', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\155', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\171', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\107', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\112', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\155', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\142', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\167', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\101', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\121', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\157', '\132', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\120', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\171', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\130', '\152', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\167', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\156', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\113', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\142', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\107', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\127', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\131', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\104', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\121', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\121', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\142', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\165', '\122', '\040', '\165', '\156', '\040', '\061', '\012', '\143', '\115', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\130', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\116', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\110', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\112', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\103', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\117', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\155', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\160', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\131', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\162', '\123', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\155', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\167', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\130', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\131', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\103', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\115', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\126', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\117', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\114', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\131', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\160', '\106', '\040', '\157', '\156', '\040', '\061', '\012', '\162', '\127', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\132', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\131', '\142', '\040', '\146', '\157', '\040', '\061', '\012', '\172', '\142', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\102', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\111', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\167', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\164', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\122', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\171', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\155', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\111', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\111', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\142', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\146', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\127', '\160', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\115', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\123', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\154', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\103', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\172', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\146', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\117', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\146', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\107', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\101', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\146', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\104', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\106', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\124', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\116', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\113', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\155', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\146', '\122', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\151', '\125', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\163', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\164', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\120', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\163', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\170', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\151', '\125', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\104', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\170', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\141', '\107', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\120', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\142', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\126', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\170', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\126', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\110', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\101', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\111', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\155', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\155', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\154', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\153', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\166', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\161', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\114', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\121', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\167', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\171', '\122', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\171', '\111', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\147', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\156', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\121', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\160', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\172', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\111', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\130', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\160', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\153', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\153', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\155', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\162', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\142', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\160', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\103', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\106', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\121', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\152', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\126', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\105', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\161', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\154', '\131', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\107', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\104', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\117', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\162', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\146', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\120', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\126', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\126', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\142', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\122', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\170', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\104', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\147', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\167', '\120', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\162', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\126', '\161', '\040', '\144', '\151', '\040', '\061', '\012', '\170', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\147', '\103', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\117', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\116', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\130', '\161', '\040', '\151', '\156', '\040', '\061', '\012', '\121', '\156', '\154', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\120', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\111', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\120', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\166', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\161', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\167', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\167', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\155', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\122', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\170', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\142', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\146', '\116', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\160', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\155', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\113', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\142', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\116', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\154', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\102', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\141', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\146', '\115', '\040', '\146', '\157', '\040', '\061', '\012', '\162', '\132', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\121', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\166', '\121', '\040', '\151', '\156', '\040', '\061', '\012', '\125', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\160', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\120', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\107', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\106', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\165', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\102', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\111', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\102', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\125', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\172', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\132', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\126', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\170', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\111', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\102', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\113', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\171', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\157', '\102', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\127', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\146', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\121', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\146', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\130', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\112', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\141', '\123', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\122', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\170', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\107', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\163', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\142', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\156', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\142', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\132', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\171', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\102', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\152', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\130', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\124', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\116', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\126', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\124', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\124', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\170', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\167', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\126', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\122', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\117', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\110', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\152', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\116', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\154', '\167', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\160', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\106', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\110', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\105', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\167', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\127', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\146', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\160', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\166', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\130', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\105', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\116', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\115', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\171', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\160', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\157', '\101', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\154', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\170', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\164', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\114', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\125', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\106', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\163', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\166', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\106', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\156', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\142', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\120', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\163', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\146', '\120', '\040', '\156', '\171', '\040', '\061', '\012', '\147', '\131', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\146', '\103', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\115', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\154', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\152', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\121', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\124', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\125', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\167', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\115', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\172', '\153', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\154', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\141', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\113', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\126', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\156', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\170', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\172', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\170', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\166', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\167', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\105', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\172', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\120', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\101', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\172', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\146', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\147', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\163', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\121', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\153', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\117', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\115', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\152', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\105', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\145', '\121', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\123', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\125', '\170', '\040', '\155', '\142', '\040', '\061', '\012', '\172', '\144', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\160', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\122', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\147', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\146', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\154', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\142', '\126', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\155', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\131', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\116', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\166', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\166', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\114', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\161', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\170', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\161', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\110', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\146', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\163', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\122', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\142', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\125', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\143', '\131', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\144', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\153', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\142', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\166', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\142', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\120', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\160', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\117', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\120', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\101', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\153', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\153', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\156', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\116', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\130', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\155', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\125', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\163', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\160', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\145', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\122', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\112', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\163', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\167', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\120', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\101', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\167', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\152', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\132', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\104', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\123', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\121', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\102', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\114', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\162', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\120', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\110', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\130', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\142', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\116', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\112', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\112', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\122', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\166', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\166', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\110', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\124', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\104', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\117', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\121', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\166', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\146', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\167', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\130', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\154', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\170', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\167', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\166', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\146', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\101', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\150', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\115', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\110', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\120', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\112', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\127', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\126', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\146', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\106', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\127', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\166', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\111', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\106', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\170', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\114', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\122', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\170', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\152', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\112', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\106', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\105', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\122', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\146', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\167', '\126', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\146', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\127', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\152', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\106', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\126', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\165', '\107', '\040', '\165', '\156', '\040', '\061', '\012', '\154', '\103', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\170', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\107', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\166', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\131', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\160', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\113', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\160', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\114', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\127', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\162', '\123', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\126', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\116', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\120', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\144', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\125', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\164', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\107', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\104', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\146', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\146', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\115', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\152', '\123', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\143', '\161', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\127', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\165', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\146', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\171', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\162', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\110', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\171', '\116', '\040', '\156', '\171', '\040', '\061', '\012', '\121', '\162', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\113', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\146', '\125', '\040', '\142', '\145', '\040', '\061', '\012', '\121', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\117', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\152', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\130', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\142', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\155', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\127', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\167', '\124', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\132', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\106', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\160', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\146', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\167', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\160', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\147', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\114', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\170', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\112', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\132', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\116', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\115', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\146', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\125', '\165', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\107', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\160', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\127', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\152', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\165', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\163', '\111', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\162', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\153', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\127', '\165', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\111', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\155', '\116', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\112', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\115', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\123', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\172', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\166', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\155', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\156', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\160', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\114', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\165', '\171', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\145', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\105', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\155', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\152', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\115', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\167', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\161', '\115', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\166', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\142', '\120', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\115', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\165', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\170', '\130', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\166', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\120', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\163', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\146', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\121', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\167', '\146', '\040', '\157', '\167', '\040', '\061', '\012', '\154', '\152', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\166', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\110', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\122', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\154', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\132', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\123', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\126', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\127', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\103', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\167', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\105', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\125', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\143', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\104', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\152', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\154', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\171', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\142', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\117', '\141', '\145', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\142', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\172', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\131', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\102', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\122', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\152', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\142', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\107', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\116', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\125', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\152', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\155', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\105', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\110', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\107', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\146', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\132', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\171', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\144', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\141', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\123', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\101', '\157', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\114', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\103', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\153', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\131', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\153', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\147', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\127', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\114', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\160', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\167', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\154', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\147', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\142', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\161', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\106', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\102', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\127', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\116', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\115', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\146', '\103', '\040', '\156', '\171', '\040', '\061', '\012', '\105', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\152', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\147', '\157', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\102', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\146', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\170', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\126', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\126', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\127', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\123', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\167', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\126', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\170', '\120', '\040', '\156', '\171', '\040', '\061', '\012', '\131', '\171', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\120', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\117', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\121', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\106', '\040', '\146', '\157', '\040', '\061', '\012', '\144', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\164', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\160', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\147', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\167', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\131', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\123', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\101', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\105', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\113', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\155', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\130', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\130', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\121', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\157', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\122', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\171', '\114', '\040', '\156', '\171', '\040', '\061', '\012', '\153', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\171', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\155', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\111', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\130', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\121', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\115', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\127', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\127', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\116', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\142', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\124', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\113', '\144', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\146', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\146', '\132', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\126', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\124', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\166', '\166', '\040', '\166', '\151', '\040', '\061', '\012', '\120', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\110', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\142', '\122', '\040', '\142', '\145', '\040', '\061', '\012', '\143', '\106', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\167', '\120', '\040', '\167', '\141', '\040', '\061', '\012', '\126', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\106', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\102', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\142', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\162', '\123', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\153', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\113', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\120', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\114', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\162', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\166', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\127', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\127', '\165', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\161', '\111', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\160', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\120', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\155', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\166', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\144', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\131', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\167', '\142', '\040', '\157', '\167', '\040', '\061', '\012', '\127', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\166', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\104', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\167', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\124', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\103', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\167', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\160', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\103', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\170', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\167', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\144', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\147', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\166', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\166', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\165', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\106', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\126', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\112', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\111', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\167', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\113', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\167', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\121', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\142', '\126', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\160', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\125', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\172', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\141', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\147', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\127', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\155', '\123', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\132', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\152', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\154', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\167', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\122', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\105', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\160', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\112', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\117', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\160', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\124', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\146', '\161', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\132', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\143', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\126', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\116', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\131', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\106', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\167', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\167', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\130', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\130', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\153', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\147', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\110', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\166', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\151', '\101', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\171', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\171', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\157', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\121', '\153', '\172', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\122', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\106', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\132', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\103', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\113', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\142', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\142', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\146', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\126', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\132', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\132', '\142', '\040', '\147', '\141', '\040', '\061', '\012', '\167', '\164', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\106', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\104', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\113', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\153', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\123', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\171', '\103', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\126', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\110', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\154', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\105', '\167', '\040', '\150', '\141', '\040', '\061', '\012', '\172', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\111', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\172', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\163', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\142', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\171', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\167', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\121', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\154', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\126', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\117', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\153', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\102', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\103', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\107', '\155', '\040', '\155', '\141', '\040', '\061', '\012', '\160', '\141', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\125', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\114', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\146', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\167', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\120', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\170', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\143', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\161', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\172', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\161', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\132', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\154', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\171', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\110', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\164', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\107', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\110', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\106', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\144', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\103', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\152', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\154', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\111', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\130', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\142', '\105', '\040', '\142', '\145', '\040', '\061', '\012', '\110', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\142', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\125', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\153', '\145', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\157', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\103', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\114', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\147', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\117', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\117', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\127', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\116', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\146', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\126', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\146', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\162', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\104', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\117', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\167', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\121', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\161', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\166', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\163', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\121', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\115', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\142', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\152', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\142', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\116', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\132', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\103', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\110', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\115', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\111', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\154', '\110', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\105', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\112', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\122', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\112', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\106', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\110', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\167', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\121', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\112', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\144', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\117', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\114', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\172', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\162', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\155', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\170', '\105', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\130', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\142', '\125', '\040', '\142', '\145', '\040', '\061', '\012', '\141', '\145', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\166', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\122', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\170', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\121', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\130', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\112', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\166', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\126', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\127', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\130', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\102', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\153', '\115', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\110', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\142', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\122', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\166', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\102', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\157', '\120', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\164', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\167', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\106', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\153', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\157', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\166', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\131', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\152', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\127', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\154', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\146', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\142', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\131', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\144', '\124', '\040', '\144', '\141', '\040', '\061', '\012', '\166', '\124', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\116', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\142', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\125', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\130', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\122', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\161', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\117', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\104', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\112', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\163', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\145', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\105', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\155', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\111', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\132', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\167', '\122', '\040', '\151', '\156', '\040', '\061', '\012', '\157', '\112', '\166', '\040', '\153', '\157', '\040', '\061', '\012', '\165', '\146', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\127', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\165', '\126', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\130', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\112', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\105', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\112', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\105', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\161', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\126', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\120', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\127', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\153', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\141', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\126', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\123', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\122', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\142', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\167', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\146', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\147', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\167', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\172', '\112', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\131', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\121', '\154', '\040', '\151', '\156', '\040', '\061', '\012', '\121', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\106', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\156', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\131', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\111', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\130', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\162', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\152', '\111', '\040', '\163', '\164', '\040', '\061', '\012', '\151', '\171', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\132', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\130', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\112', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\142', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\165', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\157', '\125', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\156', '\127', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\167', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\171', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\111', '\157', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\160', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\112', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\144', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\126', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\152', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\142', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\113', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\163', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\153', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\142', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\114', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\166', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\113', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\132', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\162', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\122', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\115', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\125', '\170', '\040', '\141', '\162', '\040', '\061', '\012', '\161', '\110', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\153', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\170', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\172', '\127', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\155', '\102', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\172', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\111', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\157', '\113', '\040', '\157', '\156', '\040', '\061', '\012', '\107', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\107', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\132', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\167', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\146', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\111', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\105', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\114', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\122', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\153', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\166', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\161', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\167', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\126', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\103', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\171', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\147', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\114', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\116', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\112', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\130', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\114', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\167', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\166', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\160', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\126', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\142', '\105', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\121', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\144', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\111', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\110', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\163', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\166', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\146', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\114', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\172', '\153', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\152', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\151', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\114', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\112', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\117', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\127', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\101', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\111', '\171', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\112', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\122', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\146', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\127', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\160', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\111', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\107', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\143', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\170', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\115', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\147', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\155', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\104', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\157', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\102', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\127', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\155', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\131', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\165', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\114', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\147', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\153', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\112', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\115', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\146', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\117', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\153', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\161', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\112', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\155', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\163', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\144', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\156', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\155', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\115', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\142', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\104', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\152', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\144', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\125', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\165', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\103', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\164', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\112', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\146', '\130', '\040', '\146', '\157', '\040', '\061', '\012', '\116', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\102', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\142', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\171', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\127', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\146', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\154', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\111', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\113', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\124', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\121', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\155', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\160', '\105', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\123', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\147', '\151', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\111', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\167', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\117', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\167', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\163', '\120', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\132', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\154', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\170', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\132', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\171', '\123', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\132', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\154', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\171', '\106', '\040', '\151', '\156', '\040', '\061', '\012', '\103', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\167', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\146', '\126', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\142', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\165', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\114', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\155', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\131', '\157', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\162', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\171', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\165', '\171', '\127', '\040', '\165', '\156', '\040', '\061', '\012', '\153', '\107', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\167', '\113', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\153', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\130', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\103', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\121', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\120', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\102', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\102', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\105', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\105', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\110', '\167', '\040', '\165', '\163', '\040', '\061', '\012', '\106', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\151', '\131', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\120', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\121', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\125', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\114', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\122', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\153', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\131', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\167', '\131', '\040', '\151', '\163', '\040', '\061', '\012', '\162', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\110', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\127', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\157', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\146', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\104', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\142', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\126', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\101', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\160', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\160', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\157', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\122', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\131', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\125', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\104', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\104', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\107', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\146', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\122', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\146', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\132', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\154', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\127', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\111', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\113', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\122', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\163', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\142', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\103', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\162', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\166', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\146', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\161', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\155', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\127', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\111', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\155', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\171', '\116', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\132', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\125', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\103', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\153', '\162', '\040', '\162', '\151', '\040', '\061', '\012', '\146', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\122', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\103', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\142', '\103', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\115', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\120', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\171', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\145', '\130', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\126', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\103', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\143', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\146', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\142', '\132', '\040', '\151', '\156', '\040', '\061', '\012', '\116', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\130', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\126', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\170', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\170', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\115', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\160', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\132', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\130', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\166', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\126', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\103', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\146', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\121', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\146', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\121', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\126', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\107', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\115', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\170', '\166', '\167', '\040', '\167', '\151', '\040', '\061', '\012', '\172', '\111', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\146', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\127', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\155', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\132', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\147', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\141', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\123', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\124', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\123', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\104', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\167', '\166', '\040', '\167', '\151', '\040', '\061', '\012', '\162', '\160', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\120', '\163', '\040', '\151', '\163', '\040', '\061', '\012', '\113', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\104', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\162', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\142', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\121', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\131', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\170', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\163', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\130', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\167', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\163', '\122', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\146', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\111', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\144', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\103', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\172', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\121', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\152', '\130', '\040', '\157', '\156', '\040', '\061', '\012', '\126', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\127', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\112', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\122', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\130', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\145', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\131', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\170', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\132', '\162', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\146', '\126', '\040', '\165', '\163', '\040', '\061', '\012', '\162', '\130', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\132', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\124', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\154', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\161', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\127', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\146', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\170', '\115', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\152', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\115', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\153', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\131', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\166', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\167', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\167', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\130', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\117', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\105', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\110', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\110', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\170', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\111', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\155', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\123', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\146', '\130', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\106', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\156', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\153', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\152', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\127', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\115', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\115', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\142', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\112', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\104', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\152', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\151', '\107', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\154', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\106', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\155', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\104', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\162', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\114', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\142', '\115', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\163', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\161', '\154', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\112', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\107', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\157', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\163', '\111', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\131', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\105', '\157', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\143', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\167', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\153', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\110', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\145', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\165', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\167', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\131', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\166', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\102', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\163', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\113', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\123', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\142', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\141', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\142', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\110', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\131', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\160', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\152', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\107', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\121', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\154', '\112', '\040', '\154', '\151', '\040', '\061', '\012', '\143', '\161', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\121', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\145', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\142', '\124', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\121', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\104', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\146', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\123', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\112', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\170', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\113', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\142', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\116', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\145', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\130', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\113', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\103', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\113', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\161', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\172', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\152', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\147', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\157', '\111', '\040', '\157', '\156', '\040', '\061', '\012', '\131', '\171', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\146', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\162', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\121', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\142', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\155', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\142', '\106', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\127', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\170', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\116', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\146', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\157', '\130', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\114', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\152', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\147', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\113', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\151', '\132', '\040', '\151', '\156', '\040', '\061', '\012', '\162', '\130', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\132', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\126', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\123', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\172', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\161', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\121', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\167', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\116', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\105', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\163', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\114', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\124', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\162', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\111', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\111', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\114', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\161', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\127', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\131', '\143', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\130', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\161', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\170', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\154', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\151', '\104', '\170', '\040', '\154', '\151', '\040', '\061', '\012', '\132', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\142', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\122', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\123', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\145', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\113', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\127', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\160', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\105', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\163', '\113', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\115', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\146', '\132', '\040', '\153', '\165', '\040', '\061', '\012', '\127', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\155', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\102', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\103', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\167', '\116', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\146', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\110', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\167', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\152', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\155', '\126', '\040', '\144', '\151', '\040', '\061', '\012', '\143', '\103', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\130', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\155', '\122', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\170', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\162', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\170', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\154', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\103', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\146', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\107', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\142', '\105', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\127', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\170', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\157', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\122', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\147', '\151', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\104', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\127', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\127', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\122', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\164', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\167', '\127', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\162', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\146', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\146', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\113', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\127', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\165', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\153', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\131', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\101', '\157', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\122', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\127', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\107', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\143', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\103', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\155', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\121', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\127', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\124', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\141', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\167', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\160', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\154', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\114', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\163', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\106', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\155', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\154', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\170', '\101', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\106', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\146', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\160', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\104', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\124', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\127', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\123', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\160', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\124', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\102', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\156', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\161', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\154', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\122', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\126', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\165', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\162', '\102', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\120', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\106', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\120', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\112', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\162', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\102', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\124', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\167', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\127', '\147', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\117', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\142', '\102', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\166', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\142', '\106', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\127', '\165', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\152', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\142', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\145', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\130', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\110', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\146', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\167', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\110', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\107', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\167', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\115', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\112', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\107', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\142', '\113', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\124', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\127', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\172', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\167', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\110', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\161', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\124', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\120', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\144', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\141', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\167', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\122', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\114', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\171', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\161', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\160', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\153', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\146', '\102', '\040', '\142', '\145', '\040', '\061', '\012', '\127', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\130', '\145', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\130', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\170', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\170', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\142', '\142', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\120', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\103', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\151', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\107', '\160', '\040', '\160', '\157', '\040', '\061', '\012', '\150', '\120', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\103', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\172', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\110', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\167', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\103', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\121', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\142', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\130', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\153', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\171', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\107', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\172', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\166', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\130', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\130', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\171', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\155', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\142', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\171', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\155', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\116', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\161', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\131', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\160', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\171', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\101', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\102', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\160', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\130', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\115', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\114', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\106', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\166', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\170', '\113', '\040', '\142', '\145', '\040', '\061', '\012', '\102', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\160', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\112', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\113', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\110', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\112', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\132', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\156', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\170', '\131', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\125', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\160', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\111', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\132', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\160', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\155', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\146', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\127', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\142', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\104', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\144', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\167', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\172', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\105', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\170', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\153', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\130', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\103', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\147', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\125', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\123', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\153', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\112', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\162', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\126', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\171', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\112', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\170', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\146', '\131', '\040', '\146', '\157', '\040', '\061', '\012', '\130', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\147', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\171', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\142', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\124', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\163', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\154', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\160', '\121', '\040', '\160', '\157', '\040', '\061', '\012', '\161', '\112', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\150', '\131', '\151', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\154', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\166', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\116', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\113', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\113', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\110', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\125', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\170', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\111', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\124', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\146', '\120', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\170', '\111', '\040', '\146', '\157', '\040', '\061', '\012', '\166', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\167', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\141', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\170', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\160', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\160', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\116', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\114', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\113', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\125', '\171', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\146', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\163', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\130', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\155', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\121', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\117', '\141', '\171', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\125', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\103', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\111', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\121', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\112', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\102', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\126', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\106', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\165', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\167', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\144', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\161', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\127', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\163', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\114', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\144', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\147', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\131', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\132', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\146', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\166', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\126', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\115', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\121', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\125', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\107', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\166', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\162', '\101', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\115', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\171', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\114', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\105', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\130', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\110', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\120', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\111', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\103', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\104', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\107', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\162', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\104', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\121', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\144', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\121', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\121', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\167', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\144', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\156', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\151', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\113', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\153', '\105', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\132', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\142', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\142', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\160', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\141', '\112', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\146', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\103', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\170', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\107', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\152', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\146', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\160', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\124', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\132', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\105', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\131', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\122', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\123', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\112', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\103', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\166', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\167', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\155', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\124', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\153', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\111', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\163', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\123', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\155', '\111', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\127', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\113', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\157', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\147', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\167', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\153', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\167', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\121', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\125', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\113', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\121', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\126', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\167', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\154', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\115', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\142', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\132', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\124', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\167', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\162', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\167', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\167', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\107', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\132', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\106', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\166', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\111', '\171', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\104', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\131', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\162', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\105', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\107', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\107', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\104', '\155', '\040', '\160', '\157', '\040', '\061', '\012', '\161', '\155', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\126', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\105', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\110', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\141', '\161', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\120', '\166', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\104', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\144', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\124', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\132', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\146', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\153', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\123', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\104', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\112', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\114', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\106', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\166', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\131', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\116', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\112', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\146', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\155', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\107', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\111', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\111', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\102', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\171', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\167', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\120', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\124', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\160', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\132', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\142', '\101', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\124', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\170', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\106', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\116', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\115', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\117', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\170', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\163', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\157', '\152', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\105', '\157', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\167', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\152', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\124', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\146', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\143', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\167', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\151', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\121', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\106', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\166', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\131', '\145', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\167', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\110', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\170', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\111', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\146', '\105', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\122', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\170', '\116', '\040', '\142', '\145', '\040', '\061', '\012', '\153', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\103', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\170', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\103', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\114', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\170', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\120', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\131', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\124', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\126', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\167', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\124', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\105', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\160', '\120', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\152', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\171', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\117', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\147', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\115', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\167', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\111', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\146', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\163', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\125', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\171', '\110', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\167', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\103', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\144', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\124', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\171', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\171', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\127', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\115', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\110', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\126', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\172', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\115', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\155', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\160', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\102', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\160', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\130', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\121', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\164', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\142', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\160', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\155', '\130', '\163', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\153', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\155', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\167', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\142', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\160', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\122', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\171', '\104', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\120', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\142', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\170', '\121', '\040', '\170', '\145', '\040', '\061', '\012', '\104', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\153', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\155', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\162', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\167', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\167', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\121', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\155', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\172', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\131', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\170', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\125', '\170', '\040', '\170', '\145', '\040', '\061', '\012', '\167', '\155', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\131', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\126', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\131', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\116', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\164', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\114', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\153', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\127', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\147', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\120', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\161', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\157', '\125', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\167', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\155', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\167', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\113', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\154', '\122', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\110', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\112', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\155', '\111', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\103', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\131', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\146', '\131', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\142', '\131', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\155', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\110', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\152', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\131', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\160', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\170', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\144', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\152', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\106', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\123', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\104', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\162', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\131', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\144', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\153', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\110', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\126', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\153', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\106', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\127', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\160', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\116', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\116', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\113', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\132', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\152', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\152', '\131', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\164', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\110', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\147', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\117', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\130', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\113', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\123', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\111', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\113', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\146', '\103', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\113', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\123', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\121', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\151', '\107', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\120', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\153', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\110', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\130', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\155', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\126', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\170', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\121', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\166', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\110', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\170', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\112', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\115', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\103', '\171', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\160', '\130', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\130', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\111', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\152', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\170', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\104', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\130', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\152', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\172', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\147', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\156', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\126', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\142', '\111', '\040', '\142', '\145', '\040', '\061', '\012', '\132', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\146', '\117', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\123', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\141', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\130', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\123', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\144', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\124', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\113', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\164', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\157', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\113', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\121', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\114', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\107', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\155', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\144', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\116', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\130', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\104', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\115', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\112', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\144', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\103', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\130', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\161', '\124', '\040', '\165', '\156', '\040', '\061', '\012', '\102', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\102', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\130', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\142', '\106', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\164', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\126', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\120', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\157', '\110', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\130', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\124', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\167', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\132', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\125', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\103', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\115', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\142', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\107', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\167', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\172', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\172', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\170', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\126', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\155', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\156', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\152', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\104', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\146', '\121', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\170', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\170', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\121', '\156', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\167', '\104', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\106', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\142', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\110', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\126', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\117', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\127', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\167', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\156', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\121', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\122', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\113', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\152', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\160', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\153', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\142', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\153', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\161', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\120', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\107', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\111', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\125', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\161', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\146', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\146', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\106', '\143', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\130', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\161', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\102', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\124', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\144', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\152', '\112', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\132', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\172', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\146', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\125', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\170', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\154', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\104', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\166', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\162', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\171', '\131', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\120', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\167', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\171', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\124', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\102', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\113', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\126', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\101', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\170', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\166', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\150', '\155', '\040', '\155', '\141', '\040', '\061', '\012', '\132', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\166', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\144', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\131', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\130', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\126', '\170', '\040', '\166', '\151', '\040', '\061', '\012', '\122', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\104', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\171', '\166', '\040', '\166', '\151', '\040', '\061', '\012', '\103', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\122', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\121', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\142', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\154', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\167', '\123', '\040', '\160', '\162', '\040', '\061', '\012', '\113', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\166', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\167', '\107', '\040', '\151', '\156', '\040', '\061', '\012', '\162', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\102', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\131', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\105', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\163', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\166', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\153', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\151', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\107', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\101', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\126', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\170', '\124', '\040', '\142', '\145', '\040', '\061', '\012', '\121', '\150', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\154', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\142', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\145', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\113', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\124', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\167', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\106', '\161', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\114', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\163', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\104', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\170', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\112', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\103', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\104', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\121', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\110', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\115', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\117', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\146', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\115', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\131', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\153', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\131', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\161', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\107', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\113', '\147', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\111', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\104', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\146', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\146', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\124', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\125', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\171', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\124', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\170', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\131', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\115', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\115', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\110', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\146', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\147', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\167', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\150', '\143', '\040', '\151', '\143', '\040', '\061', '\012', '\170', '\111', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\106', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\147', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\111', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\170', '\116', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\101', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\103', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\126', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\157', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\130', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\121', '\164', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\127', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\130', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\127', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\145', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\112', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\155', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\154', '\122', '\040', '\151', '\163', '\040', '\061', '\012', '\125', '\141', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\142', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\126', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\167', '\125', '\040', '\151', '\156', '\040', '\061', '\012', '\103', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\130', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\107', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\142', '\131', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\172', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\127', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\145', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\170', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\121', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\166', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\124', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\167', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\146', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\145', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\102', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\123', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\171', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\152', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\164', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\164', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\167', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\127', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\170', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\110', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\102', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\166', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\155', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\121', '\167', '\040', '\167', '\151', '\040', '\061', '\012', '\170', '\141', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\146', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\107', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\166', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\167', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\155', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\112', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\110', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\121', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\102', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\160', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\144', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\101', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\167', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\104', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\132', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\102', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\121', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\157', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\131', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\163', '\104', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\122', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\104', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\146', '\170', '\101', '\040', '\146', '\157', '\040', '\061', '\012', '\170', '\120', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\112', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\160', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\170', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\114', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\123', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\125', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\127', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\131', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\152', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\167', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\120', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\101', '\157', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\166', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\117', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\155', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\153', '\111', '\040', '\153', '\165', '\040', '\061', '\012', '\160', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\104', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\122', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\165', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\105', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\146', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\165', '\112', '\040', '\165', '\156', '\040', '\061', '\012', '\156', '\122', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\170', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\146', '\132', '\040', '\156', '\171', '\040', '\061', '\012', '\157', '\161', '\124', '\040', '\150', '\157', '\040', '\061', '\012', '\143', '\147', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\142', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\130', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\146', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\167', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\103', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\172', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\147', '\152', '\040', '\152', '\157', '\040', '\061', '\012', '\107', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\107', '\040', '\146', '\157', '\040', '\061', '\012', '\155', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\144', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\110', '\153', '\040', '\151', '\156', '\040', '\061', '\012', '\107', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\104', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\106', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\142', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\166', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\144', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\155', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\130', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\117', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\172', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\160', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\132', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\106', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\156', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\130', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\142', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\120', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\132', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\160', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\153', '\117', '\040', '\153', '\157', '\040', '\061', '\012', '\147', '\163', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\167', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\165', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\127', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\170', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\124', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\126', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\152', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\166', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\110', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\101', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\146', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\115', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\167', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\142', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\152', '\132', '\040', '\157', '\156', '\040', '\061', '\012', '\163', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\170', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\171', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\105', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\117', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\124', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\127', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\110', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\167', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\103', '\142', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\167', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\111', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\107', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\152', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\171', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\170', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\166', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\154', '\162', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\103', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\105', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\114', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\166', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\142', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\131', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\146', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\146', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\102', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\171', '\112', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\155', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\130', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\131', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\170', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\116', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\172', '\125', '\040', '\146', '\157', '\040', '\061', '\012', '\122', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\115', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\167', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\116', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\155', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\125', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\123', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\153', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\102', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\112', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\124', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\130', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\167', '\102', '\040', '\157', '\167', '\040', '\061', '\012', '\153', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\146', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\132', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\155', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\114', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\113', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\161', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\113', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\146', '\122', '\040', '\142', '\145', '\040', '\061', '\012', '\122', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\116', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\144', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\160', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\127', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\101', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\162', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\155', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\114', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\167', '\102', '\040', '\151', '\156', '\040', '\061', '\012', '\145', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\157', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\142', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\160', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\172', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\127', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\152', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\167', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\127', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\162', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\171', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\123', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\153', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\167', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\107', '\142', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\102', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\127', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\155', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\107', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\112', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\152', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\116', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\104', '\144', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\162', '\102', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\113', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\161', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\102', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\165', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\104', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\147', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\144', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\171', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\117', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\121', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\110', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\121', '\153', '\040', '\153', '\157', '\040', '\061', '\012', '\107', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\132', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\166', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\167', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\115', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\152', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\102', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\102', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\143', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\121', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\155', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\146', '\110', '\040', '\146', '\157', '\040', '\061', '\012', '\160', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\127', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\132', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\116', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\142', '\116', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\126', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\112', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\147', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\170', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\166', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\155', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\116', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\113', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\122', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\154', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\121', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\155', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\142', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\126', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\146', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\126', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\113', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\124', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\166', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\107', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\166', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\160', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\172', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\170', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\115', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\152', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\146', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\152', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\125', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\127', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\107', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\167', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\171', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\155', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\130', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\155', '\167', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\111', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\107', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\131', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\126', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\156', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\155', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\121', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\113', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\125', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\123', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\126', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\146', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\116', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\124', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\102', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\167', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\121', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\104', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\124', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\127', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\152', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\103', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\171', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\127', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\156', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\102', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\111', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\132', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\116', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\106', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\127', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\142', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\163', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\146', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\126', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\124', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\147', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\165', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\146', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\102', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\142', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\146', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\132', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\103', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\155', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\161', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\147', '\165', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\110', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\145', '\121', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\154', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\107', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\111', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\170', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\121', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\117', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\142', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\112', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\155', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\143', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\167', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\132', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\162', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\130', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\167', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\111', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\165', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\104', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\121', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\166', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\110', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\170', '\111', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\117', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\160', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\155', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\127', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\107', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\123', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\132', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\113', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\122', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\167', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\160', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\155', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\110', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\146', '\113', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\147', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\124', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\153', '\172', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\164', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\130', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\172', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\154', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\146', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\122', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\163', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\103', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\106', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\151', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\123', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\104', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\161', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\110', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\144', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\156', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\146', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\171', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\112', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\103', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\113', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\167', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\110', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\142', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\125', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\171', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\160', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\152', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\167', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\126', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\163', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\156', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\160', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\104', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\120', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\151', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\153', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\165', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\157', '\110', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\167', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\102', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\157', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\170', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\167', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\112', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\115', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\170', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\172', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\160', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\124', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\163', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\167', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\130', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\146', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\123', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\113', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\127', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\162', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\155', '\107', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\143', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\123', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\145', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\107', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\154', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\155', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\154', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\167', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\152', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\102', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\102', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\130', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\107', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\130', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\157', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\151', '\126', '\164', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\166', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\103', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\121', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\103', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\166', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\126', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\120', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\146', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\142', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\123', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\122', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\143', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\170', '\112', '\040', '\156', '\171', '\040', '\061', '\012', '\154', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\131', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\127', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\107', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\172', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\147', '\126', '\040', '\147', '\151', '\040', '\061', '\012', '\122', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\106', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\121', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\116', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\146', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\102', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\147', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\123', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\103', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\155', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\166', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\141', '\104', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\107', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\152', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\124', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\115', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\160', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\142', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\132', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\121', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\153', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\171', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\155', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\146', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\160', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\113', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\154', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\132', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\122', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\160', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\167', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\107', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\122', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\153', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\125', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\152', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\113', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\160', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\125', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\152', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\122', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\150', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\164', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\152', '\161', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\167', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\171', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\122', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\106', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\105', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\120', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\146', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\115', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\113', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\110', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\106', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\160', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\116', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\104', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\160', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\156', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\146', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\172', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\116', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\102', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\143', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\115', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\112', '\152', '\040', '\162', '\151', '\040', '\061', '\012', '\141', '\130', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\163', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\121', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\113', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\166', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\107', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\103', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\122', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\151', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\106', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\105', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\172', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\104', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\170', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\107', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\166', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\160', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\170', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\132', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\157', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\115', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\107', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\116', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\143', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\111', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\114', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\122', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\162', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\171', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\143', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\105', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\123', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\162', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\126', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\166', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\144', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\155', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\114', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\160', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\167', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\144', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\132', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\167', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\142', '\115', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\147', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\113', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\112', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\160', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\161', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\125', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\124', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\115', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\126', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\110', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\126', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\154', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\162', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\114', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\166', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\145', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\116', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\172', '\142', '\040', '\142', '\151', '\040', '\061', '\012', '\127', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\156', '\143', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\126', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\123', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\161', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\104', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\171', '\111', '\040', '\151', '\156', '\040', '\061', '\012', '\145', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\161', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\124', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\155', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\106', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\156', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\127', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\172', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\121', '\145', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\154', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\107', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\147', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\115', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\123', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\147', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\114', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\166', '\132', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\146', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\103', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\132', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\111', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\132', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\170', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\144', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\131', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\171', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\107', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\106', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\166', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\167', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\166', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\122', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\172', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\160', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\120', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\171', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\155', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\154', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\105', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\114', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\101', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\172', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\117', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\144', '\163', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\166', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\120', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\132', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\146', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\146', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\154', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\126', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\155', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\144', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\155', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\121', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\150', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\104', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\144', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\166', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\171', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\112', '\146', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\141', '\102', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\127', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\107', '\142', '\040', '\142', '\151', '\040', '\061', '\012', '\147', '\152', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\152', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\166', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\124', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\127', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\127', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\113', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\115', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\153', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\167', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\167', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\167', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\114', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\115', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\160', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\166', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\152', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\126', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\126', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\172', '\156', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\171', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\113', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\105', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\160', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\104', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\165', '\113', '\040', '\165', '\156', '\040', '\061', '\012', '\166', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\127', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\114', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\160', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\114', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\160', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\104', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\167', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\102', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\107', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\146', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\154', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\125', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\146', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\121', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\107', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\102', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\104', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\115', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\146', '\115', '\040', '\156', '\171', '\040', '\061', '\012', '\107', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\116', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\162', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\146', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\124', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\166', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\120', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\115', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\170', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\132', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\106', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\163', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\122', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\163', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\102', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\127', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\153', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\161', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\153', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\144', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\170', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\130', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\152', '\113', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\106', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\110', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\120', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\144', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\164', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\171', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\156', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\112', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\127', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\164', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\172', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\170', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\155', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\160', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\152', '\170', '\040', '\172', '\152', '\040', '\061', '\012', '\164', '\166', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\104', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\171', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\116', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\166', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\120', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\167', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\160', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\104', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\105', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\143', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\104', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\127', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\164', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\151', '\121', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\106', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\146', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\123', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\155', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\106', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\120', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\161', '\121', '\040', '\164', '\151', '\040', '\061', '\012', '\155', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\170', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\166', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\154', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\106', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\146', '\132', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\103', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\143', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\104', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\130', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\115', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\103', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\132', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\121', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\106', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\167', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\157', '\111', '\040', '\157', '\156', '\040', '\061', '\012', '\163', '\112', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\164', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\126', '\146', '\040', '\147', '\151', '\040', '\061', '\012', '\160', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\107', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\172', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\130', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\115', '\154', '\040', '\154', '\151', '\040', '\061', '\012', '\142', '\131', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\113', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\154', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\120', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\164', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\154', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\121', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\144', '\143', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\125', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\112', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\115', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\167', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\164', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\172', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\172', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\102', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\163', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\125', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\163', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\163', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\130', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\154', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\126', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\146', '\101', '\040', '\153', '\141', '\040', '\061', '\012', '\126', '\155', '\153', '\040', '\155', '\107', '\040', '\061', '\012', '\152', '\113', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\120', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\120', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\131', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\170', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\153', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\143', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\132', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\142', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\121', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\153', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\153', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\114', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\116', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\142', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\145', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\132', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\166', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\103', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\172', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\154', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\106', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\115', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\146', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\110', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\170', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\112', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\172', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\127', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\162', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\170', '\132', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\130', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\151', '\107', '\153', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\105', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\121', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\112', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\156', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\167', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\145', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\144', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\127', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\154', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\102', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\146', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\164', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\115', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\117', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\104', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\155', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\163', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\163', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\130', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\145', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\106', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\130', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\101', '\157', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\153', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\142', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\157', '\103', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\131', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\116', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\156', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\167', '\112', '\040', '\143', '\155', '\040', '\061', '\012', '\161', '\112', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\116', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\167', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\143', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\102', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\114', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\162', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\102', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\172', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\152', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\170', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\146', '\115', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\121', '\155', '\040', '\121', '\117', '\040', '\061', '\012', '\172', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\142', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\125', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\131', '\151', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\116', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\102', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\132', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\107', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\103', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\167', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\142', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\105', '\161', '\164', '\040', '\145', '\161', '\040', '\061', '\012', '\130', '\150', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\125', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\170', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\117', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\103', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\147', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\163', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\107', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\153', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\122', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\167', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\112', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\126', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\131', '\154', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\154', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\104', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\113', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\120', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\146', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\146', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\113', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\111', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\165', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\113', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\132', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\160', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\146', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\152', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\130', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\167', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\131', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\161', '\131', '\040', '\145', '\161', '\040', '\061', '\012', '\165', '\111', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\107', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\167', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\110', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\146', '\127', '\040', '\150', '\127', '\040', '\061', '\012', '\151', '\171', '\107', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\145', '\106', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\152', '\151', '\040', '\152', '\123', '\040', '\061', '\012', '\155', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\110', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\170', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\127', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\123', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\172', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\160', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\166', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\131', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\161', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\107', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\122', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\124', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\132', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\117', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\152', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\120', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\167', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\167', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\160', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\124', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\117', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\160', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\131', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\152', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\172', '\156', '\040', '\114', '\107', '\040', '\061', '\012', '\131', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\131', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\130', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\111', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\112', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\170', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\104', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\163', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\152', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\125', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\154', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\102', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\142', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\154', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\103', '\160', '\040', '\107', '\103', '\040', '\061', '\012', '\156', '\126', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\142', '\107', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\144', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\125', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\132', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\122', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\167', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\167', '\123', '\040', '\163', '\164', '\040', '\061', '\012', '\105', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\105', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\153', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\152', '\127', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\130', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\166', '\131', '\040', '\166', '\113', '\040', '\061', '\012', '\154', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\170', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\126', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\113', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\167', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\160', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\147', '\145', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\104', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\160', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\155', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\125', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\127', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\162', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\132', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\121', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\107', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\167', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\160', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\115', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\160', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\104', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\113', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\143', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\170', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\120', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\155', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\155', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\170', '\103', '\040', '\107', '\103', '\040', '\061', '\012', '\154', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\153', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\154', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\120', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\166', '\121', '\040', '\121', '\117', '\040', '\061', '\012', '\152', '\107', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\115', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\117', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\144', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\166', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\142', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\146', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\160', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\170', '\106', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\132', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\107', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\120', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\107', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\142', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\152', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\123', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\111', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\111', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\160', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\125', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\125', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\167', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\110', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\152', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\120', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\162', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\131', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\117', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\126', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\106', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\166', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\142', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\120', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\121', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\105', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\163', '\102', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\155', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\164', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\167', '\111', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\160', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\130', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\131', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\106', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\102', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\103', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\162', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\113', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\116', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\122', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\141', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\141', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\170', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\125', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\117', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\132', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\105', '\161', '\040', '\166', '\113', '\040', '\061', '\012', '\130', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\120', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\143', '\132', '\040', '\143', '\155', '\040', '\061', '\012', '\154', '\104', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\167', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\162', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\113', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\115', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\144', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\146', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\144', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\120', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\172', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\106', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\122', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\110', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\145', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\153', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\132', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\124', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\110', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\154', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\113', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\142', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\142', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\165', '\106', '\040', '\165', '\156', '\040', '\061', '\012', '\161', '\172', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\141', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\141', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\153', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\157', '\103', '\161', '\040', '\107', '\103', '\040', '\061', '\012', '\161', '\121', '\150', '\040', '\121', '\117', '\040', '\061', '\012', '\143', '\167', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\115', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\113', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\113', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\161', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\107', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\130', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\115', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\132', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\171', '\105', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\125', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\126', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\115', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\127', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\132', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\157', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\122', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\120', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\131', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\145', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\152', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\161', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\166', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\110', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\132', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\162', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\104', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\145', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\172', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\172', '\143', '\040', '\143', '\155', '\040', '\061', '\012', '\170', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\167', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\170', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\126', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\147', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\152', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\132', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\110', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\154', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\160', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\121', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\122', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\160', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\126', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\121', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\121', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\162', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\161', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\112', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\170', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\146', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\126', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\102', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\130', '\154', '\040', '\130', '\155', '\040', '\061', '\012', '\150', '\167', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\162', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\154', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\117', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\103', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\106', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\127', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\123', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\102', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\166', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\146', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\113', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\153', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\111', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\146', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\142', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\104', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\110', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\126', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\162', '\113', '\040', '\110', '\113', '\040', '\061', '\012', '\127', '\170', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\142', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\152', '\143', '\040', '\152', '\123', '\040', '\061', '\012', '\152', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\166', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\171', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\146', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\142', '\114', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\166', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\114', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\120', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\170', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\146', '\125', '\040', '\146', '\157', '\040', '\061', '\012', '\151', '\116', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\120', '\142', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\151', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\122', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\142', '\102', '\040', '\142', '\145', '\040', '\061', '\012', '\163', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\170', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\115', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\170', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\142', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\141', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\155', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\151', '\117', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\117', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\146', '\123', '\040', '\142', '\145', '\040', '\061', '\012', '\121', '\150', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\131', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\145', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\164', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\123', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\146', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\123', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\123', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\103', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\167', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\107', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\102', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\163', '\127', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\132', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\167', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\115', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\163', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\127', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\170', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\126', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\162', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\142', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\124', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\162', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\112', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\132', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\125', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\106', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\142', '\116', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\115', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\123', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\113', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\170', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\152', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\162', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\166', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\170', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\166', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\106', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\163', '\146', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\111', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\170', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\110', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\130', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\127', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\145', '\113', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\142', '\126', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\130', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\167', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\166', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\142', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\125', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\155', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\170', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\152', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\155', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\161', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\112', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\122', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\126', '\143', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\155', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\121', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\146', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\142', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\106', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\127', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\156', '\110', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\170', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\155', '\110', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\172', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\155', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\166', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\121', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\110', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\110', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\115', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\167', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\146', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\106', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\130', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\126', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\110', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\107', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\167', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\172', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\164', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\167', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\162', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\155', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\155', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\151', '\131', '\040', '\151', '\156', '\040', '\061', '\012', '\160', '\124', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\160', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\150', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\117', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\146', '\106', '\040', '\146', '\157', '\040', '\061', '\012', '\143', '\124', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\160', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\147', '\167', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\103', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\124', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\155', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\170', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\101', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\110', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\146', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\157', '\111', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\104', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\151', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\170', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\155', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\155', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\126', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\146', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\171', '\121', '\040', '\156', '\171', '\040', '\061', '\012', '\155', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\121', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\106', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\167', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\127', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\112', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\157', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\171', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\152', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\142', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\131', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\120', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\103', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\126', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\170', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\132', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\142', '\111', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\101', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\167', '\146', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\146', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\165', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\161', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\154', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\162', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\170', '\127', '\040', '\146', '\157', '\040', '\061', '\012', '\123', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\166', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\116', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\130', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\104', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\113', '\172', '\040', '\165', '\163', '\040', '\061', '\012', '\161', '\152', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\153', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\106', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\115', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\121', '\145', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\131', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\142', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\126', '\153', '\040', '\156', '\144', '\040', '\061', '\012', '\142', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\161', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\123', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\172', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\130', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\112', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\127', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\142', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\167', '\120', '\040', '\151', '\156', '\040', '\061', '\012', '\154', '\127', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\110', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\143', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\144', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\115', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\171', '\131', '\040', '\156', '\171', '\040', '\061', '\012', '\141', '\106', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\171', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\142', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\152', '\101', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\155', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\157', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\170', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\122', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\116', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\151', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\131', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\170', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\152', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\103', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\102', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\131', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\110', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\166', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\121', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\142', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\170', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\170', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\155', '\106', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\102', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\110', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\126', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\146', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\166', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\115', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\156', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\121', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\157', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\153', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\110', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\167', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\160', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\125', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\170', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\126', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\112', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\102', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\155', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\113', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\103', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\125', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\115', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\107', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\110', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\132', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\166', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\154', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\155', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\106', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\166', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\161', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\166', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\143', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\153', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\105', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\167', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\147', '\130', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\123', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\167', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\172', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\162', '\123', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\110', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\142', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\146', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\167', '\102', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\155', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\172', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\126', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\167', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\111', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\160', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\167', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\153', '\101', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\125', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\113', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\170', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\141', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\146', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\132', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\130', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\104', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\146', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\141', '\121', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\152', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\160', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\115', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\113', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\167', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\160', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\170', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\115', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\167', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\102', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\101', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\123', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\142', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\157', '\124', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\111', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\172', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\172', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\121', '\040', '\153', '\165', '\040', '\061', '\012', '\154', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\167', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\122', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\117', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\165', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\132', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\142', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\104', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\167', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\117', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\167', '\111', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\152', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\117', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\146', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\161', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\104', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\155', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\165', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\146', '\116', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\146', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\142', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\170', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\130', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\125', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\166', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\112', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\126', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\142', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\146', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\107', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\117', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\152', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\120', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\160', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\163', '\102', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\170', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\106', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\157', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\155', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\142', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\106', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\171', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\152', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\131', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\165', '\112', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\145', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\162', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\156', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\155', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\166', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\172', '\117', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\121', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\120', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\127', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\103', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\145', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\132', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\103', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\166', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\122', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\172', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\154', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\127', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\113', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\143', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\103', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\101', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\125', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\115', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\125', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\132', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\167', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\164', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\122', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\102', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\147', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\127', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\167', '\120', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\111', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\167', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\114', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\151', '\130', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\163', '\114', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\105', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\107', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\125', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\155', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\153', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\167', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\155', '\123', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\171', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\142', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\127', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\167', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\104', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\123', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\121', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\162', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\107', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\162', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\154', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\142', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\116', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\121', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\126', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\160', '\120', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\154', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\153', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\106', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\121', '\157', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\154', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\154', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\155', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\127', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\155', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\114', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\154', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\161', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\147', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\107', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\167', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\155', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\142', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\153', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\117', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\146', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\146', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\116', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\104', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\142', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\153', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\101', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\106', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\167', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\125', '\157', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\104', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\107', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\122', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\142', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\146', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\104', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\106', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\163', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\152', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\126', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\166', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\116', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\122', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\107', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\132', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\132', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\115', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\120', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\172', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\172', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\103', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\167', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\153', '\115', '\040', '\153', '\157', '\040', '\061', '\012', '\166', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\120', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\112', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\155', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\115', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\116', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\162', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\163', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\144', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\127', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\167', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\152', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\113', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\160', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\164', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\171', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\113', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\126', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\120', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\106', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\170', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\131', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\167', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\121', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\142', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\131', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\170', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\160', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\142', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\121', '\171', '\040', '\164', '\157', '\040', '\061', '\012', '\166', '\170', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\160', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\120', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\110', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\146', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\103', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\147', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\106', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\104', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\111', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\164', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\122', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\103', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\152', '\124', '\040', '\162', '\157', '\040', '\061', '\012', '\162', '\152', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\101', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\114', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\152', '\123', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\126', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\105', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\107', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\117', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\120', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\163', '\113', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\114', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\103', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\116', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\124', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\106', '\166', '\040', '\162', '\157', '\040', '\061', '\012', '\122', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\161', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\155', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\165', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\147', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\144', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\101', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\167', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\145', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\141', '\106', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\146', '\102', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\160', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\107', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\127', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\172', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\163', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\121', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\146', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\142', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\113', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\130', '\141', '\040', '\141', '\162', '\040', '\061', '\012', '\167', '\152', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\127', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\152', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\122', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\147', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\172', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\145', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\152', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\155', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\107', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\113', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\127', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\113', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\157', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\171', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\112', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\107', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\123', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\106', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\144', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\124', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\152', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\110', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\122', '\156', '\040', '\141', '\162', '\040', '\061', '\012', '\130', '\154', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\116', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\106', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\116', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\120', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\172', '\112', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\123', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\127', '\147', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\114', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\111', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\157', '\113', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\114', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\110', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\170', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\127', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\107', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\152', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\146', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\132', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\157', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\170', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\131', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\132', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\130', '\154', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\121', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\142', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\105', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\116', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\162', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\170', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\121', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\160', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\116', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\142', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\147', '\115', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\145', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\126', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\126', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\115', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\124', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\120', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\103', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\166', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\115', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\152', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\155', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\154', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\163', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\167', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\120', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\122', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\106', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\170', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\110', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\113', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\160', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\131', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\170', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\157', '\153', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\160', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\104', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\147', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\113', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\104', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\167', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\104', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\147', '\146', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\125', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\153', '\106', '\040', '\153', '\157', '\040', '\061', '\012', '\120', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\142', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\123', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\146', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\167', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\114', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\112', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\122', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\130', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\114', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\115', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\166', '\107', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\164', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\170', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\147', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\143', '\117', '\040', '\152', '\141', '\040', '\061', '\012', '\163', '\103', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\102', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\132', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\117', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\112', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\152', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\103', '\167', '\040', '\155', '\141', '\040', '\061', '\012', '\150', '\170', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\124', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\144', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\115', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\166', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\151', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\167', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\164', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\111', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\131', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\146', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\121', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\130', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\105', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\120', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\142', '\127', '\040', '\142', '\145', '\040', '\061', '\012', '\153', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\110', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\130', '\157', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\170', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\127', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\132', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\117', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\124', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\162', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\116', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\105', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\112', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\110', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\160', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\104', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\170', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\154', '\126', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\113', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\166', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\170', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\126', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\121', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\130', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\150', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\153', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\150', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\104', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\114', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\154', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\124', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\144', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\110', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\104', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\120', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\110', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\160', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\120', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\116', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\171', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\123', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\121', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\146', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\155', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\107', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\106', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\113', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\121', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\157', '\116', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\165', '\130', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\146', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\111', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\153', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\116', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\165', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\120', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\113', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\114', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\120', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\160', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\152', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\170', '\102', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\143', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\126', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\155', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\152', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\172', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\164', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\113', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\130', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\122', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\147', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\160', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\127', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\167', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\170', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\172', '\115', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\142', '\112', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\160', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\145', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\146', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\170', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\102', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\164', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\102', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\127', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\123', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\124', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\162', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\112', '\142', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\130', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\156', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\163', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\126', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\111', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\126', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\122', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\150', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\124', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\160', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\130', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\131', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\106', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\167', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\111', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\167', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\106', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\127', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\105', '\141', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\153', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\156', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\146', '\105', '\040', '\153', '\141', '\040', '\061', '\012', '\111', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\162', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\120', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\120', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\121', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\103', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\132', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\127', '\154', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\125', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\142', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\142', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\170', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\153', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\142', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\152', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\130', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\116', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\112', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\104', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\125', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\127', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\120', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\116', '\142', '\040', '\153', '\157', '\040', '\061', '\012', '\127', '\144', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\112', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\155', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\124', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\155', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\121', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\120', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\170', '\172', '\040', '\172', '\145', '\040', '\061', '\012', '\104', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\115', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\115', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\112', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\146', '\116', '\040', '\146', '\157', '\040', '\061', '\012', '\144', '\121', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\165', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\120', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\146', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\167', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\141', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\155', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\146', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\152', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\162', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\170', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\170', '\110', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\122', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\152', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\123', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\155', '\110', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\146', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\112', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\167', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\122', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\161', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\172', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\154', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\142', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\160', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\124', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\120', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\171', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\102', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\111', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\104', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\112', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\101', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\106', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\104', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\144', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\167', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\131', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\155', '\107', '\040', '\155', '\145', '\040', '\061', '\012', '\113', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\164', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\112', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\167', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\126', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\115', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\170', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\112', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\156', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\146', '\123', '\040', '\156', '\171', '\040', '\061', '\012', '\115', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\163', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\112', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\167', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\170', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\112', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\107', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\123', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\112', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\105', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\161', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\112', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\127', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\166', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\152', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\153', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\166', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\171', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\116', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\114', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\126', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\117', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\170', '\114', '\040', '\146', '\157', '\040', '\061', '\012', '\163', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\124', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\126', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\132', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\126', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\123', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\116', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\146', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\143', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\124', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\141', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\152', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\115', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\164', '\102', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\146', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\170', '\117', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\132', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\103', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\160', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\153', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\113', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\160', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\116', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\160', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\130', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\146', '\113', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\160', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\165', '\167', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\156', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\166', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\107', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\132', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\142', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\166', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\154', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\167', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\146', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\103', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\127', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\166', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\167', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\107', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\166', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\122', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\121', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\153', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\155', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\104', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\125', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\130', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\130', '\171', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\142', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\131', '\144', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\157', '\130', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\147', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\121', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\126', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\171', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\102', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\170', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\120', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\127', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\142', '\120', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\101', '\157', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\146', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\163', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\115', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\122', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\152', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\117', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\167', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\114', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\120', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\103', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\104', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\106', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\160', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\155', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\103', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\106', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\160', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\146', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\132', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\122', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\104', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\120', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\166', '\120', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\153', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\116', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\113', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\121', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\170', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\107', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\152', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\151', '\106', '\040', '\164', '\151', '\040', '\061', '\012', '\132', '\172', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\131', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\152', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\167', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\153', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\171', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\151', '\171', '\102', '\040', '\151', '\156', '\040', '\061', '\012', '\150', '\121', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\160', '\121', '\040', '\151', '\156', '\040', '\061', '\012', '\125', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\153', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\160', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\167', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\121', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\167', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\104', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\144', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\105', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\141', '\166', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\172', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\110', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\106', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\116', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\102', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\122', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\154', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\172', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\131', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\155', '\122', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\130', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\171', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\130', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\112', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\172', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\152', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\161', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\167', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\152', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\146', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\122', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\144', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\101', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\153', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\116', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\116', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\155', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\107', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\163', '\110', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\167', '\106', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\120', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\104', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\121', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\111', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\103', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\106', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\112', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\151', '\111', '\040', '\151', '\156', '\040', '\061', '\012', '\122', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\116', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\120', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\113', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\104', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\106', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\126', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\123', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\167', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\157', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\102', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\107', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\132', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\142', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\132', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\172', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\104', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\146', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\161', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\123', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\170', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\130', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\142', '\124', '\040', '\142', '\145', '\040', '\061', '\012', '\163', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\113', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\124', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\125', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\104', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\125', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\171', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\103', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\130', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\107', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\120', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\146', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\126', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\104', '\172', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\146', '\107', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\130', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\147', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\170', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\141', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\130', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\166', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\121', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\166', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\170', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\112', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\123', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\122', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\103', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\107', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\116', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\110', '\153', '\040', '\157', '\156', '\040', '\061', '\012', '\127', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\166', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\153', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\157', '\132', '\040', '\157', '\156', '\040', '\061', '\012', '\156', '\107', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\155', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\103', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\130', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\113', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\105', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\167', '\123', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\171', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\121', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\127', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\155', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\144', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\162', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\102', '\160', '\040', '\160', '\157', '\040', '\061', '\012', '\146', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\145', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\107', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\146', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\123', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\121', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\160', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\115', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\141', '\161', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\127', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\171', '\112', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\131', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\162', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\113', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\113', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\172', '\163', '\124', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\111', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\146', '\125', '\040', '\146', '\157', '\040', '\061', '\012', '\127', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\127', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\116', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\146', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\162', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\126', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\126', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\171', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\163', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\103', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\167', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\146', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\105', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\117', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\160', '\123', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\111', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\164', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\166', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\146', '\113', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\131', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\115', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\157', '\102', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\163', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\155', '\111', '\040', '\155', '\145', '\040', '\061', '\012', '\164', '\155', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\116', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\165', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\152', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\117', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\107', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\110', '\160', '\040', '\141', '\154', '\040', '\061', '\012', '\161', '\147', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\142', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\161', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\153', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\104', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\121', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\112', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\115', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\152', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\153', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\116', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\157', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\152', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\106', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\152', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\156', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\112', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\132', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\167', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\111', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\167', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\102', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\167', '\106', '\040', '\151', '\156', '\040', '\061', '\012', '\162', '\110', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\123', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\113', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\102', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\155', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\131', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\107', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\170', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\116', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\154', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\154', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\142', '\104', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\101', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\110', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\170', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\126', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\160', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\151', '\171', '\120', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\155', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\155', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\102', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\105', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\103', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\172', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\111', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\131', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\161', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\155', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\132', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\123', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\113', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\127', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\166', '\102', '\040', '\160', '\157', '\040', '\061', '\012', '\164', '\147', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\125', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\132', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\144', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\157', '\111', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\167', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\112', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\170', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\111', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\171', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\142', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\153', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\145', '\157', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\130', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\106', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\112', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\115', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\156', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\161', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\103', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\117', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\154', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\152', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\125', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\126', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\155', '\115', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\132', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\142', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\155', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\106', '\143', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\123', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\155', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\156', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\171', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\172', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\147', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\126', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\127', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\164', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\111', '\157', '\040', '\150', '\157', '\040', '\061', '\012', '\153', '\146', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\112', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\145', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\165', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\130', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\124', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\172', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\153', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\105', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\167', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\104', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\167', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\130', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\146', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\116', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\154', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\125', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\124', '\144', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\131', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\143', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\102', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\112', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\162', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\131', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\114', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\156', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\106', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\120', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\116', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\154', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\114', '\170', '\040', '\152', '\157', '\040', '\061', '\012', '\152', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\167', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\107', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\164', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\156', '\127', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\111', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\117', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\142', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\172', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\127', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\170', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\160', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\163', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\111', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\106', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\107', '\153', '\040', '\157', '\156', '\040', '\061', '\012', '\110', '\156', '\143', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\122', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\107', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\131', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\121', '\157', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\116', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\144', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\107', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\162', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\166', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\132', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\104', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\120', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\147', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\127', '\167', '\040', '\157', '\167', '\040', '\061', '\012', '\155', '\112', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\130', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\131', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\110', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\144', '\120', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\106', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\163', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\101', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\154', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\171', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\126', '\162', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\102', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\161', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\153', '\163', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\120', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\146', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\112', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\127', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\120', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\170', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\120', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\162', '\152', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\167', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\163', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\127', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\102', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\142', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\160', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\155', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\131', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\142', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\171', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\102', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\107', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\170', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\142', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\153', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\127', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\117', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\120', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\163', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\157', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\167', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\164', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\162', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\126', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\164', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\110', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\147', '\163', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\154', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\152', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\166', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\111', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\131', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\126', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\156', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\155', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\152', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\121', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\116', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\146', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\102', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\112', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\107', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\132', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\107', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\127', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\163', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\170', '\123', '\040', '\156', '\171', '\040', '\061', '\012', '\162', '\170', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\116', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\116', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\160', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\130', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\154', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\152', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\112', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\167', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\156', '\126', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\172', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\167', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\161', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\116', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\165', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\113', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\111', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\115', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\127', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\115', '\143', '\040', '\156', '\144', '\040', '\061', '\012', '\132', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\154', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\125', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\110', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\124', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\152', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\170', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\116', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\144', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\112', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\130', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\167', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\145', '\166', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\160', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\101', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\142', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\146', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\130', '\144', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\101', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\155', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\172', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\147', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\112', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\132', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\146', '\101', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\155', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\116', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\126', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\122', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\152', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\152', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\155', '\111', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\115', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\153', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\101', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\113', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\105', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\170', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\166', '\101', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\143', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\123', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\102', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\127', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\167', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\116', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\125', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\146', '\120', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\170', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\166', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\125', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\170', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\120', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\170', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\105', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\142', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\167', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\115', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\106', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\146', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\122', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\161', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\160', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\110', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\124', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\152', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\141', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\120', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\154', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\172', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\102', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\170', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\166', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\103', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\122', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\153', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\120', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\107', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\114', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\107', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\107', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\144', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\152', '\110', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\115', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\127', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\142', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\107', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\145', '\170', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\127', '\152', '\040', '\152', '\157', '\040', '\061', '\012', '\160', '\121', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\117', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\162', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\130', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\125', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\113', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\127', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\161', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\112', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\125', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\112', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\166', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\120', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\111', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\146', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\132', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\155', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\155', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\103', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\106', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\142', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\121', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\121', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\131', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\120', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\117', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\116', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\110', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\144', '\105', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\126', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\120', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\122', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\157', '\105', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\156', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\166', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\157', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\155', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\104', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\104', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\153', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\170', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\131', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\124', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\154', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\163', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\146', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\142', '\107', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\127', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\104', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\127', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\130', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\166', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\166', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\104', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\155', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\101', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\146', '\123', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\171', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\121', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\160', '\130', '\040', '\160', '\162', '\040', '\061', '\012', '\132', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\105', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\121', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\160', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\132', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\167', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\122', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\151', '\127', '\040', '\151', '\156', '\040', '\061', '\012', '\150', '\161', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\102', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\160', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\110', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\150', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\115', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\127', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\107', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\152', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\166', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\166', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\153', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\116', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\147', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\167', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\131', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\124', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\112', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\172', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\171', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\171', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\102', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\166', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\142', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\142', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\167', '\125', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\112', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\111', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\166', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\122', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\117', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\105', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\170', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\111', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\102', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\124', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\103', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\147', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\160', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\146', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\170', '\122', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\106', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\102', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\126', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\166', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\131', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\116', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\121', '\151', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\167', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\120', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\166', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\153', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\155', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\144', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\163', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\166', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\127', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\131', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\131', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\110', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\142', '\115', '\040', '\160', '\162', '\040', '\061', '\012', '\110', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\161', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\127', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\156', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\115', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\113', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\157', '\126', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\117', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\154', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\146', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\113', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\151', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\123', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\147', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\143', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\116', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\120', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\155', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\170', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\162', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\120', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\161', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\103', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\155', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\167', '\120', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\116', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\166', '\107', '\040', '\166', '\145', '\040', '\061', '\012', '\126', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\154', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\121', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\164', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\145', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\114', '\146', '\040', '\160', '\157', '\040', '\061', '\012', '\170', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\146', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\151', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\163', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\162', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\122', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\172', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\142', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\153', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\106', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\110', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\162', '\102', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\116', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\107', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\105', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\126', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\167', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\111', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\152', '\166', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\123', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\170', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\110', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\126', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\125', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\170', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\144', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\146', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\142', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\172', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\110', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\170', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\155', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\155', '\110', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\172', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\155', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\130', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\146', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\142', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\154', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\160', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\155', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\131', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\113', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\144', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\110', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\130', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\166', '\124', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\151', '\103', '\040', '\151', '\156', '\040', '\061', '\012', '\147', '\153', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\112', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\160', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\120', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\122', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\115', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\111', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\132', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\161', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\157', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\121', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\106', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\110', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\103', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\142', '\123', '\040', '\142', '\145', '\040', '\061', '\012', '\151', '\110', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\107', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\167', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\104', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\166', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\116', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\131', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\110', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\106', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\155', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\102', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\147', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\167', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\167', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\105', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\107', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\153', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\112', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\146', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\126', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\167', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\156', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\125', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\102', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\115', '\167', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\126', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\166', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\131', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\102', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\111', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\117', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\104', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\124', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\112', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\167', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\144', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\152', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\127', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\142', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\144', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\167', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\101', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\171', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\120', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\153', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\125', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\120', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\157', '\106', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\131', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\131', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\167', '\127', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\102', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\113', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\146', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\115', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\114', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\167', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\172', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\111', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\144', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\147', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\167', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\171', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\102', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\117', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\114', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\144', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\146', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\161', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\110', '\142', '\040', '\160', '\157', '\040', '\061', '\012', '\166', '\122', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\160', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\127', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\142', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\132', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\102', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\152', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\166', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\167', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\102', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\170', '\110', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\170', '\110', '\040', '\146', '\157', '\040', '\061', '\012', '\164', '\130', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\102', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\112', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\152', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\126', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\122', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\104', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\155', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\141', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\111', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\155', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\155', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\154', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\151', '\126', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\132', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\125', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\144', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\157', '\125', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\112', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\125', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\166', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\121', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\111', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\107', '\147', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\116', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\166', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\155', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\160', '\117', '\040', '\160', '\157', '\040', '\061', '\012', '\164', '\105', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\146', '\114', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\131', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\127', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\124', '\164', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\126', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\167', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\157', '\112', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\104', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\106', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\154', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\142', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\102', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\160', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\116', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\123', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\157', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\113', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\154', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\144', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\160', '\112', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\147', '\161', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\150', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\165', '\131', '\040', '\165', '\156', '\040', '\061', '\012', '\152', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\165', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\172', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\106', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\146', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\111', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\131', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\124', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\165', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\110', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\122', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\120', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\113', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\160', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\153', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\123', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\170', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\152', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\151', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\171', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\104', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\171', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\126', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\127', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\101', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\132', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\121', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\142', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\170', '\104', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\170', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\110', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\167', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\142', '\101', '\040', '\142', '\145', '\040', '\061', '\012', '\122', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\123', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\121', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\155', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\156', '\101', '\040', '\141', '\156', '\040', '\061', '\012', '\120', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\163', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\161', '\130', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\124', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\160', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\131', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\102', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\105', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\111', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\116', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\117', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\130', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\106', '\155', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\153', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\146', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\142', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\166', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\155', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\106', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\106', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\106', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\142', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\155', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\106', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\104', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\106', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\107', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\164', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\172', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\115', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\167', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\156', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\142', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\110', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\125', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\152', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\104', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\142', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\123', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\164', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\167', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\115', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\152', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\120', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\170', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\131', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\162', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\143', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\112', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\125', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\130', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\104', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\170', '\107', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\117', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\147', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\160', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\116', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\121', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\106', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\104', '\142', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\163', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\132', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\170', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\121', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\113', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\170', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\167', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\107', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\122', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\166', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\126', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\155', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\144', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\112', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\150', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\164', '\121', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\171', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\132', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\113', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\152', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\116', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\112', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\160', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\167', '\107', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\145', '\112', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\162', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\154', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\103', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\121', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\114', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\167', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\121', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\146', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\122', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\125', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\160', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\127', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\102', '\161', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\127', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\146', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\127', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\162', '\166', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\142', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\156', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\106', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\155', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\156', '\111', '\040', '\156', '\164', '\040', '\061', '\012', '\161', '\117', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\171', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\116', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\105', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\160', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\170', '\114', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\145', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\125', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\167', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\162', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\124', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\170', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\112', '\163', '\040', '\157', '\156', '\040', '\061', '\012', '\163', '\122', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\121', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\144', '\116', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\170', '\122', '\040', '\155', '\145', '\040', '\061', '\012', '\130', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\160', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\132', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\156', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\132', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\127', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\125', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\144', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\172', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\162', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\155', '\116', '\040', '\155', '\145', '\040', '\061', '\012', '\117', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\114', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\112', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\107', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\115', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\124', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\110', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\127', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\170', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\170', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\166', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\103', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\146', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\160', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\154', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\170', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\132', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\153', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\127', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\161', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\113', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\107', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\103', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\171', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\117', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\132', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\117', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\127', '\164', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\170', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\102', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\116', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\124', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\104', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\122', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\125', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\102', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\152', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\111', '\171', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\111', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\132', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\117', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\162', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\105', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\153', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\152', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\155', '\127', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\124', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\114', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\167', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\144', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\163', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\125', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\162', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\142', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\166', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\170', '\111', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\103', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\130', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\104', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\144', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\130', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\165', '\121', '\040', '\165', '\156', '\040', '\061', '\012', '\153', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\127', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\103', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\144', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\131', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\110', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\126', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\141', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\170', '\127', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\156', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\106', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\167', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\167', '\111', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\154', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\103', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\162', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\131', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\154', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\114', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\154', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\143', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\162', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\152', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\112', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\114', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\121', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\150', '\153', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\114', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\130', '\147', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\113', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\112', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\156', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\153', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\127', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\164', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\145', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\162', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\104', '\160', '\040', '\160', '\157', '\040', '\061', '\012', '\103', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\170', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\130', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\102', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\115', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\170', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\160', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\113', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\167', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\102', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\156', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\155', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\113', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\107', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\114', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\120', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\115', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\105', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\155', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\103', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\166', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\126', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\121', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\112', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\172', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\162', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\102', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\122', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\111', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\106', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\113', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\102', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\104', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\106', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\166', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\122', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\152', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\104', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\146', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\107', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\107', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\170', '\126', '\040', '\146', '\157', '\040', '\061', '\012', '\151', '\120', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\147', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\111', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\150', '\165', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\104', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\164', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\106', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\152', '\123', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\160', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\104', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\113', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\132', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\170', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\124', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\105', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\110', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\104', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\161', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\170', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\170', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\124', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\121', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\125', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\163', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\107', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\113', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\167', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\167', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\162', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\160', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\106', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\171', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\167', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\147', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\164', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\161', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\155', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\121', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\105', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\166', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\166', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\112', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\171', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\164', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\132', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\105', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\172', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\146', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\113', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\170', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\124', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\107', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\127', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\162', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\160', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\121', '\163', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\142', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\126', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\114', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\162', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\163', '\122', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\167', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\120', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\125', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\167', '\162', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\146', '\104', '\040', '\146', '\157', '\040', '\061', '\012', '\167', '\171', '\110', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\102', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\115', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\163', '\171', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\160', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\147', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\156', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\126', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\113', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\144', '\127', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\116', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\111', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\110', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\147', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\146', '\103', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\153', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\125', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\103', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\102', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\122', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\107', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\166', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\102', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\170', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\115', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\127', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\121', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\127', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\165', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\166', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\155', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\110', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\132', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\150', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\143', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\102', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\127', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\130', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\172', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\170', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\157', '\130', '\040', '\160', '\157', '\040', '\061', '\012', '\170', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\127', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\127', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\123', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\146', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\152', '\144', '\040', '\144', '\157', '\040', '\061', '\012', '\121', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\171', '\113', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\165', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\157', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\114', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\115', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\103', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\130', '\157', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\153', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\124', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\116', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\126', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\111', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\167', '\103', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\157', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\104', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\116', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\131', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\123', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\111', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\141', '\152', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\131', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\113', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\111', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\146', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\146', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\154', '\155', '\040', '\154', '\145', '\040', '\061', '\012', '\103', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\161', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\106', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\126', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\103', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\145', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\110', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\116', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\155', '\130', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\106', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\131', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\147', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\167', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\171', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\172', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\121', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\142', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\123', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\131', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\161', '\147', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\131', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\160', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\126', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\166', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\146', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\167', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\127', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\161', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\143', '\112', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\167', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\144', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\160', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\143', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\111', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\144', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\106', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\114', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\160', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\112', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\112', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\113', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\145', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\170', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\103', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\122', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\115', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\113', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\153', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\122', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\170', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\103', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\131', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\153', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\142', '\121', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\162', '\104', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\152', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\155', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\112', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\143', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\172', '\126', '\040', '\157', '\156', '\040', '\061', '\012', '\155', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\132', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\147', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\104', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\110', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\111', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\164', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\144', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\103', '\155', '\040', '\157', '\167', '\040', '\061', '\012', '\166', '\126', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\142', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\170', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\147', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\127', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\131', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\164', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\130', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\151', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\102', '\160', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\130', '\166', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\112', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\172', '\160', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\143', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\167', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\117', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\117', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\163', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\122', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\104', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\146', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\166', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\127', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\172', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\160', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\121', '\145', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\131', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\121', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\166', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\125', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\151', '\142', '\110', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\166', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\106', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\160', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\114', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\167', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\171', '\113', '\040', '\156', '\171', '\040', '\061', '\012', '\123', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\170', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\112', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\164', '\152', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\120', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\162', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\170', '\131', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\163', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\155', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\155', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\106', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\126', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\155', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\144', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\127', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\131', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\157', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\152', '\102', '\040', '\145', '\162', '\040', '\061', '\012', '\104', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\127', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\154', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\167', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\132', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\121', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\167', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\131', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\101', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\157', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\167', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\167', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\115', '\152', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\162', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\130', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\105', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\156', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\121', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\152', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\115', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\126', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\166', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\110', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\142', '\113', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\124', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\156', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\170', '\117', '\040', '\156', '\171', '\040', '\061', '\012', '\106', '\161', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\106', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\104', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\125', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\110', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\120', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\110', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\106', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\171', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\105', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\144', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\161', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\110', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\126', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\110', '\167', '\040', '\165', '\156', '\040', '\061', '\012', '\132', '\143', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\110', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\104', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\164', '\154', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\161', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\162', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\123', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\103', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\165', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\115', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\127', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\160', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\121', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\170', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\146', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\152', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\132', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\103', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\162', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\157', '\111', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\162', '\146', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\102', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\171', '\171', '\126', '\040', '\156', '\171', '\040', '\061', '\012', '\121', '\151', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\104', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\147', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\116', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\144', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\166', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\142', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\151', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\142', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\115', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\110', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\127', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\120', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\114', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\157', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\160', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\124', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\143', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\120', '\171', '\040', '\153', '\165', '\040', '\061', '\012', '\146', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\131', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\123', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\104', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\142', '\112', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\146', '\117', '\040', '\156', '\171', '\040', '\061', '\012', '\165', '\121', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\144', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\167', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\124', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\112', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\127', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\143', '\125', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\125', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\116', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\132', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\163', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\131', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\131', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\107', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\170', '\112', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\114', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\102', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\112', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\146', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\142', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\110', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\113', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\102', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\160', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\144', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\115', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\132', '\146', '\040', '\160', '\151', '\040', '\061', '\012', '\145', '\131', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\124', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\104', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\170', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\156', '\146', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\160', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\103', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\120', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\103', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\116', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\122', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\141', '\145', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\102', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\117', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\142', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\130', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\147', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\130', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\116', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\141', '\117', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\146', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\167', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\152', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\152', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\115', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\106', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\146', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\132', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\102', '\142', '\040', '\142', '\151', '\040', '\061', '\012', '\163', '\152', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\104', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\152', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\162', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\106', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\121', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\142', '\105', '\040', '\166', '\151', '\040', '\061', '\012', '\125', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\123', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\105', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\146', '\110', '\040', '\142', '\145', '\040', '\061', '\012', '\116', '\162', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\166', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\151', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\142', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\170', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\166', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\162', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\131', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\153', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\103', '\170', '\040', '\166', '\151', '\040', '\061', '\012', '\132', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\127', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\104', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\146', '\105', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\166', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\157', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\142', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\116', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\124', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\152', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\112', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\153', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\130', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\113', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\120', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\110', '\143', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\152', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\171', '\105', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\102', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\120', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\147', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\144', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\166', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\162', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\166', '\146', '\040', '\166', '\151', '\040', '\061', '\012', '\171', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\167', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\161', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\113', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\112', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\114', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\144', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\116', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\112', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\141', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\113', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\116', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\120', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\122', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\156', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\132', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\132', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\115', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\170', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\120', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\167', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\120', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\146', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\167', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\142', '\107', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\172', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\132', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\103', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\124', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\123', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\154', '\116', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\127', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\167', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\116', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\124', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\106', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\112', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\143', '\122', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\142', '\124', '\040', '\142', '\145', '\040', '\061', '\012', '\106', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\167', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\142', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\123', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\154', '\142', '\102', '\040', '\154', '\145', '\040', '\061', '\012', '\117', '\143', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\142', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\163', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\171', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\160', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\117', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\162', '\122', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\155', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\103', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\152', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\106', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\123', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\142', '\113', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\144', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\106', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\155', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\103', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\110', '\172', '\040', '\164', '\172', '\040', '\061', '\012', '\150', '\152', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\155', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\103', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\111', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\116', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\142', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\106', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\122', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\162', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\167', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\126', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\147', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\101', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\120', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\160', '\120', '\040', '\151', '\156', '\040', '\061', '\012', '\112', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\112', '\142', '\040', '\142', '\151', '\040', '\061', '\012', '\152', '\170', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\167', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\122', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\146', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\124', '\144', '\160', '\040', '\160', '\157', '\040', '\061', '\012', '\167', '\105', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\161', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\170', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\125', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\121', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\124', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\154', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\121', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\113', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\167', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\153', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\121', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\114', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\101', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\144', '\155', '\107', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\113', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\125', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\172', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\116', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\147', '\131', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\146', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\132', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\124', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\130', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\104', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\144', '\122', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\115', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\170', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\146', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\117', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\116', '\166', '\170', '\040', '\166', '\151', '\040', '\061', '\012', '\161', '\141', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\107', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\132', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\106', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\160', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\161', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\171', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\155', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\103', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\126', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\121', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\110', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\172', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\131', '\171', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\170', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\164', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\127', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\103', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\106', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\145', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\152', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\150', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\103', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\153', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\124', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\170', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\166', '\113', '\040', '\166', '\151', '\040', '\061', '\012', '\114', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\167', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\124', '\153', '\040', '\144', '\151', '\040', '\061', '\012', '\146', '\163', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\152', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\121', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\120', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\155', '\103', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\163', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\104', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\110', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\106', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\144', '\114', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\131', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\113', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\103', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\116', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\157', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\144', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\160', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\127', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\102', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\154', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\146', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\155', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\107', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\162', '\171', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\110', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\114', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\154', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\142', '\102', '\040', '\142', '\151', '\040', '\061', '\012', '\151', '\131', '\162', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\104', '\172', '\040', '\164', '\172', '\040', '\061', '\012', '\170', '\163', '\112', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\115', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\125', '\165', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\170', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\167', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\120', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\104', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\126', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\113', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\157', '\132', '\152', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\101', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\115', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\166', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\106', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\126', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\114', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\130', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\150', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\154', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\142', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\120', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\104', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\152', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\152', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\131', '\142', '\040', '\151', '\156', '\040', '\061', '\012', '\106', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\157', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\114', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\125', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\112', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\113', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\132', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\103', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\165', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\126', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\144', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\123', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\123', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\104', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\142', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\146', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\166', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\130', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\106', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\160', '\122', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\124', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\120', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\151', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\106', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\170', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\103', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\126', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\154', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\126', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\103', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\167', '\126', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\142', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\166', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\131', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\123', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\143', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\103', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\156', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\167', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\130', '\165', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\102', '\167', '\040', '\155', '\142', '\040', '\061', '\012', '\167', '\155', '\106', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\112', '\170', '\040', '\170', '\145', '\040', '\061', '\012', '\144', '\130', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\102', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\142', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\153', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\117', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\121', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\166', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\103', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\113', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\126', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\132', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\102', '\166', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\170', '\122', '\040', '\146', '\157', '\040', '\061', '\012', '\166', '\155', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\120', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\106', '\153', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\131', '\171', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\125', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\155', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\166', '\132', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\142', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\131', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\106', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\160', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\170', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\115', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\162', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\107', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\143', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\113', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\170', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\121', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\142', '\105', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\131', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\113', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\160', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\103', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\122', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\111', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\116', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\166', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\107', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\102', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\115', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\103', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\166', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\170', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\115', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\142', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\103', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\124', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\142', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\152', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\131', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\166', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\157', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\126', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\110', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\142', '\123', '\040', '\142', '\145', '\040', '\061', '\012', '\110', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\170', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\153', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\155', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\142', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\122', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\147', '\126', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\102', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\130', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\162', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\166', '\117', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\104', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\121', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\146', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\132', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\156', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\145', '\116', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\170', '\123', '\040', '\146', '\157', '\040', '\061', '\012', '\163', '\116', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\125', '\165', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\172', '\127', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\172', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\146', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\106', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\157', '\110', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\166', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\157', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\170', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\115', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\150', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\152', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\152', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\155', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\111', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\153', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\124', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\126', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\121', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\113', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\125', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\165', '\124', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\144', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\170', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\147', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\144', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\161', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\145', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\107', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\166', '\155', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\113', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\166', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\110', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\115', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\163', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\113', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\120', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\147', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\167', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\131', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\172', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\152', '\040', '\152', '\157', '\040', '\061', '\012', '\113', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\160', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\144', '\101', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\127', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\123', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\142', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\162', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\125', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\105', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\152', '\110', '\040', '\152', '\157', '\040', '\061', '\012', '\163', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\125', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\117', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\142', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\120', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\122', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\166', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\171', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\167', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\112', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\166', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\106', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\116', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\142', '\160', '\102', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\131', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\107', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\124', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\146', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\172', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\144', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\130', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\115', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\124', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\113', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\115', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\115', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\154', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\155', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\117', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\142', '\111', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\160', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\105', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\127', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\166', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\131', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\170', '\115', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\120', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\167', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\143', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\112', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\150', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\170', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\156', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\171', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\102', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\123', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\161', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\131', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\162', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\110', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\142', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\121', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\170', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\147', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\144', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\131', '\144', '\172', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\120', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\121', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\167', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\131', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\126', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\170', '\114', '\040', '\156', '\171', '\040', '\061', '\012', '\131', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\111', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\121', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\161', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\146', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\124', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\146', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\113', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\130', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\131', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\157', '\143', '\040', '\162', '\157', '\040', '\061', '\012', '\166', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\132', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\144', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\147', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\156', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\146', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\142', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\142', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\160', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\157', '\127', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\112', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\121', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\166', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\104', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\167', '\106', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\113', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\111', '\165', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\147', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\112', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\147', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\150', '\040', '\150', '\157', '\040', '\061', '\012', '\143', '\166', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\147', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\116', '\163', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\132', '\156', '\040', '\157', '\156', '\040', '\061', '\012', '\165', '\125', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\132', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\107', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\123', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\143', '\107', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\161', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\142', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\145', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\165', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\167', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\120', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\123', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\120', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\172', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\143', '\110', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\154', '\131', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\166', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\166', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\122', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\116', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\113', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\112', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\117', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\162', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\124', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\103', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\141', '\117', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\110', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\153', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\130', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\170', '\111', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\132', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\154', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\167', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\110', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\127', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\121', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\145', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\121', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\122', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\102', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\170', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\115', '\166', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\143', '\122', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\102', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\127', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\171', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\103', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\162', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\171', '\121', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\163', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\166', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\162', '\114', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\166', '\130', '\040', '\157', '\156', '\040', '\061', '\012', '\125', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\126', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\160', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\121', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\171', '\127', '\040', '\156', '\171', '\040', '\061', '\012', '\162', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\130', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\143', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\155', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\152', '\102', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\144', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\153', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\116', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\127', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\127', '\164', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\146', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\132', '\142', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\167', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\125', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\107', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\167', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\142', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\121', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\132', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\115', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\106', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\104', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\125', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\110', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\124', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\132', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\106', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\154', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\153', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\166', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\111', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\114', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\145', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\154', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\143', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\164', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\153', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\112', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\121', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\120', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\155', '\117', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\164', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\102', '\153', '\040', '\151', '\156', '\040', '\061', '\012', '\165', '\172', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\116', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\145', '\126', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\107', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\160', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\104', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\126', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\155', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\166', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\146', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\121', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\124', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\120', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\170', '\112', '\040', '\146', '\157', '\040', '\061', '\012', '\161', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\112', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\122', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\143', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\126', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\161', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\152', '\113', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\153', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\115', '\152', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\142', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\114', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\121', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\155', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\113', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\161', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\126', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\130', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\117', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\110', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\121', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\106', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\131', '\142', '\040', '\157', '\156', '\040', '\061', '\012', '\106', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\111', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\115', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\161', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\142', '\132', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\163', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\152', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\120', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\102', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\142', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\131', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\170', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\171', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\172', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\115', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\150', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\117', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\111', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\131', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\170', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\146', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\153', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\131', '\153', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\122', '\147', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\117', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\101', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\113', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\103', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\151', '\126', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\162', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\105', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\122', '\162', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\142', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\115', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\132', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\106', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\153', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\113', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\142', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\110', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\172', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\115', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\153', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\113', '\155', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\160', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\143', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\127', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\144', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\155', '\111', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\143', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\167', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\144', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\132', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\113', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\172', '\101', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\171', '\124', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\145', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\160', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\171', '\107', '\040', '\156', '\171', '\040', '\061', '\012', '\154', '\114', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\154', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\155', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\113', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\122', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\114', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\120', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\153', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\170', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\127', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\143', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\112', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\167', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\122', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\167', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\114', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\130', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\146', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\152', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\172', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\125', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\123', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\170', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\170', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\126', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\125', '\143', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\141', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\110', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\151', '\171', '\103', '\040', '\151', '\156', '\040', '\061', '\012', '\124', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\112', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\112', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\112', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\116', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\144', '\101', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\152', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\161', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\107', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\121', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\164', '\114', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\126', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\113', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\141', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\111', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\130', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\106', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\167', '\115', '\040', '\151', '\156', '\040', '\061', '\012', '\107', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\154', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\116', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\127', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\156', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\123', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\103', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\124', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\104', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\102', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\172', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\160', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\103', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\122', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\153', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\104', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\142', '\104', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\154', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\122', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\106', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\120', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\152', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\123', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\165', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\120', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\112', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\160', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\107', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\130', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\121', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\150', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\131', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\166', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\167', '\132', '\040', '\151', '\156', '\040', '\061', '\012', '\172', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\155', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\113', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\146', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\125', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\161', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\167', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\130', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\120', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\111', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\146', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\160', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\116', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\130', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\172', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\155', '\102', '\040', '\155', '\145', '\040', '\061', '\012', '\127', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\130', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\131', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\121', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\144', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\162', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\146', '\114', '\040', '\156', '\171', '\040', '\061', '\012', '\171', '\131', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\142', '\110', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\113', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\146', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\112', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\102', '\172', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\141', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\112', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\110', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\141', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\150', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\131', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\155', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\150', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\147', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\155', '\171', '\040', '\155', '\145', '\040', '\061', '\012', '\122', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\163', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\150', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\111', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\111', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\143', '\106', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\156', '\126', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\145', '\161', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\153', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\115', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\167', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\101', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\155', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\167', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\156', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\146', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\170', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\143', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\146', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\161', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\172', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\162', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\161', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\147', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\121', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\167', '\102', '\040', '\167', '\141', '\040', '\061', '\012', '\154', '\107', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\144', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\104', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\114', '\163', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\116', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\114', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\127', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\152', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\131', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\145', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\166', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\153', '\101', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\152', '\115', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\147', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\130', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\124', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\122', '\150', '\172', '\040', '\150', '\141', '\040', '\061', '\012', '\167', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\150', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\154', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\170', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\120', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\106', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\161', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\115', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\142', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\160', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\155', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\142', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\115', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\146', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\121', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\105', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\155', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\121', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\113', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\106', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\120', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\115', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\172', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\106', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\112', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\126', '\172', '\040', '\151', '\156', '\040', '\061', '\012', '\157', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\143', '\116', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\124', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\111', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\132', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\172', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\131', '\154', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\110', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\163', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\172', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\102', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\124', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\113', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\142', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\166', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\146', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\103', '\163', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\107', '\146', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\142', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\166', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\154', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\124', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\107', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\124', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\160', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\167', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\107', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\161', '\124', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\115', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\113', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\116', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\154', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\126', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\115', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\167', '\103', '\040', '\154', '\145', '\040', '\061', '\012', '\104', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\152', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\124', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\170', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\167', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\162', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\167', '\132', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\156', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\112', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\153', '\112', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\126', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\101', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\150', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\122', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\154', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\106', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\167', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\103', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\130', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\124', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\106', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\142', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\166', '\123', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\102', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\116', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\121', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\114', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\126', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\125', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\132', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\111', '\171', '\040', '\145', '\147', '\040', '\061', '\012', '\150', '\126', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\121', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\146', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\113', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\150', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\107', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\142', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\131', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\166', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\110', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\130', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\163', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\126', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\160', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\127', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\103', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\155', '\146', '\110', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\111', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\146', '\130', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\152', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\155', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\147', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\105', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\117', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\110', '\152', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\132', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\114', '\163', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\153', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\167', '\121', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\162', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\142', '\110', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\166', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\122', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\150', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\160', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\106', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\123', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\144', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\107', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\126', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\166', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\167', '\117', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\127', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\121', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\156', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\146', '\111', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\123', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\160', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\146', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\131', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\102', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\112', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\144', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\121', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\146', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\164', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\113', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\172', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\142', '\167', '\111', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\163', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\154', '\122', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\154', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\142', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\163', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\156', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\172', '\132', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\107', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\167', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\117', '\171', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\122', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\132', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\112', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\153', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\107', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\122', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\166', '\114', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\107', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\151', '\111', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\107', '\172', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\114', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\125', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\166', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\156', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\130', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\103', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\156', '\114', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\146', '\110', '\040', '\146', '\157', '\040', '\061', '\012', '\151', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\110', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\131', '\167', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\155', '\104', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\123', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\103', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\141', '\132', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\142', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\172', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\110', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\161', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\105', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\146', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\166', '\123', '\040', '\166', '\141', '\040', '\061', '\012', '\160', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\112', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\144', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\122', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\154', '\123', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\154', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\141', '\157', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\154', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\120', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\164', '\111', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\155', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\112', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\147', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\125', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\164', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\164', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\172', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\170', '\121', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\162', '\120', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\143', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\165', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\120', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\106', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\152', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\107', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\131', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\124', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\117', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\114', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\115', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\157', '\126', '\154', '\040', '\157', '\156', '\040', '\061', '\012', '\143', '\167', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\147', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\142', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\167', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\145', '\121', '\157', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\121', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\113', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\166', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\126', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\163', '\120', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\121', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\132', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\150', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\127', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\154', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\160', '\114', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\105', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\163', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\154', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\154', '\172', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\165', '\112', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\126', '\146', '\040', '\156', '\171', '\040', '\061', '\012', '\132', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\142', '\123', '\040', '\142', '\145', '\040', '\061', '\012', '\157', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\143', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\167', '\125', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\120', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\112', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\155', '\116', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\144', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\101', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\170', '\113', '\040', '\156', '\171', '\040', '\061', '\012', '\110', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\111', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\147', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\114', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\115', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\106', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\102', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\166', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\147', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\154', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\115', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\123', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\105', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\146', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\103', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\110', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\153', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\165', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\142', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\111', '\160', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\120', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\160', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\160', '\116', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\172', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\157', '\121', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\154', '\103', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\115', '\150', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\125', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\150', '\147', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\143', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\160', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\111', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\120', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\130', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\162', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\110', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\146', '\127', '\040', '\156', '\171', '\040', '\061', '\012', '\131', '\171', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\166', '\122', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\122', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\113', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\156', '\170', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\144', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\142', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\145', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\123', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\111', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\113', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\160', '\120', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\121', '\171', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\146', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\120', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\101', '\157', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\131', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\146', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\166', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\145', '\110', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\121', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\145', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\160', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\146', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\144', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\116', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\102', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\105', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\146', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\157', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\145', '\106', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\120', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\104', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\132', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\125', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\121', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\132', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\152', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\152', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\113', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\115', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\115', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\172', '\171', '\040', '\163', '\172', '\040', '\061', '\012', '\116', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\167', '\124', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\163', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\125', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\102', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\146', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\126', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\107', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\146', '\107', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\126', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\144', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\172', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\172', '\121', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\126', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\114', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\124', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\155', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\166', '\131', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\121', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\111', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\107', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\110', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\103', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\112', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\143', '\127', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\130', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\150', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\152', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\154', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\172', '\162', '\105', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\153', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\110', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\146', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\114', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\125', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\104', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\114', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\131', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\113', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\111', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\162', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\106', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\142', '\103', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\130', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\120', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\103', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\167', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\112', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\102', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\111', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\144', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\121', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\160', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\170', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\153', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\153', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\122', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\115', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\145', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\110', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\170', '\125', '\040', '\142', '\145', '\040', '\061', '\012', '\170', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\131', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\154', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\122', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\107', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\106', '\172', '\040', '\172', '\145', '\040', '\061', '\012', '\161', '\117', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\147', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\157', '\107', '\155', '\040', '\157', '\156', '\040', '\061', '\012', '\130', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\131', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\165', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\103', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\150', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\121', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\167', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\127', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\160', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\143', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\146', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\141', '\130', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\107', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\125', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\144', '\113', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\132', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\167', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\166', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\154', '\142', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\172', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\144', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\112', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\127', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\130', '\171', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\130', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\115', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\116', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\121', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\106', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\160', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\116', '\167', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\150', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\131', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\166', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\111', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\142', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\115', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\124', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\150', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\127', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\114', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\163', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\114', '\155', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\153', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\101', '\170', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\172', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\113', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\121', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\171', '\130', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\146', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\160', '\125', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\167', '\112', '\040', '\167', '\141', '\040', '\061', '\012', '\101', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\165', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\164', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\122', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\124', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\125', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\125', '\151', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\112', '\154', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\103', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\117', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\154', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\146', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\112', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\153', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\154', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\171', '\104', '\040', '\156', '\171', '\040', '\061', '\012', '\152', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\162', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\160', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\120', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\125', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\142', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\144', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\121', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\155', '\104', '\040', '\155', '\145', '\040', '\061', '\012', '\112', '\153', '\152', '\040', '\153', '\141', '\040', '\061', '\012', '\152', '\124', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\131', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\132', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\153', '\121', '\040', '\145', '\162', '\040', '\061', '\012', '\142', '\104', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\123', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\130', '\162', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\132', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\161', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\112', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\144', '\112', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\167', '\105', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\170', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\152', '\170', '\124', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\115', '\146', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\122', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\131', '\171', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\126', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\155', '\122', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\106', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\171', '\121', '\040', '\156', '\171', '\040', '\061', '\012', '\170', '\145', '\111', '\040', '\145', '\162', '\040', '\061', '\012', '\127', '\161', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\154', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\104', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\131', '\172', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\170', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\147', '\113', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\163', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\130', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\103', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\130', '\162', '\144', '\040', '\145', '\162', '\040', '\061', '\012', '\122', '\172', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\146', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\164', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\124', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\165', '\146', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\154', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\150', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\113', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\106', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\121', '\165', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\130', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\126', '\153', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\106', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\111', '\165', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\124', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\115', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\113', '\160', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\122', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\130', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\166', '\172', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\112', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\124', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\122', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\112', '\162', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\122', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\160', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\151', '\116', '\167', '\040', '\151', '\156', '\040', '\061', '\012', '\165', '\152', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\110', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\110', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\161', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\160', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\110', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\103', '\147', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\127', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\165', '\126', '\040', '\165', '\156', '\040', '\061', '\012', '\142', '\152', '\116', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\121', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\170', '\105', '\040', '\142', '\145', '\040', '\061', '\012', '\165', '\126', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\162', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\114', '\162', '\170', '\040', '\145', '\162', '\040', '\061', '\012', '\111', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\141', '\161', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\107', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\147', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\163', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\126', '\170', '\163', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\123', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\157', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\160', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\113', '\143', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\167', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\131', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\112', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\166', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\106', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\152', '\170', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\160', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\126', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\116', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\166', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\170', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\160', '\165', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\170', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\101', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\155', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\155', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\103', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\106', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\144', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\114', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\115', '\170', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\143', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\126', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\153', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\170', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\115', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\107', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\152', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\152', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\167', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\113', '\170', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\150', '\132', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\172', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\166', '\113', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\120', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\161', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\171', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\103', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\152', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\122', '\142', '\040', '\154', '\145', '\040', '\061', '\012', '\164', '\146', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\160', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\160', '\146', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\164', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\157', '\124', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\123', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\170', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\127', '\162', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\117', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\144', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\161', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\130', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\102', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\152', '\130', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\142', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\167', '\123', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\126', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\167', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\163', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\120', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\167', '\107', '\040', '\167', '\141', '\040', '\061', '\012', '\130', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\155', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\166', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\146', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\160', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\161', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\121', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\166', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\114', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\143', '\145', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\102', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\144', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\156', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\115', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\146', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\146', '\117', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\141', '\112', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\114', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\131', '\146', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\144', '\112', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\105', '\141', '\171', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\123', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\116', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\112', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\166', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\160', '\110', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\170', '\117', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\120', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\142', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\157', '\105', '\040', '\157', '\156', '\040', '\061', '\012', '\147', '\164', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\146', '\106', '\040', '\142', '\145', '\040', '\061', '\012', '\155', '\166', '\127', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\163', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\167', '\110', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\103', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\114', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\153', '\130', '\167', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\150', '\103', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\125', '\153', '\040', '\157', '\156', '\040', '\061', '\012', '\172', '\143', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\115', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\162', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\146', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\171', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\130', '\141', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\115', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\146', '\103', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\167', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\145', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\152', '\107', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\107', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\131', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\111', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\166', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\160', '\116', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\116', '\162', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\153', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\111', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\146', '\116', '\040', '\167', '\141', '\040', '\061', '\012', '\126', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\153', '\121', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\111', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\161', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\163', '\170', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\161', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\146', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\171', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\166', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\131', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\147', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\130', '\141', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\102', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\131', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\152', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\152', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\141', '\152', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\130', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\150', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\107', '\155', '\040', '\145', '\162', '\040', '\061', '\012', '\121', '\164', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\120', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\122', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\117', '\147', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\114', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\121', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\150', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\170', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\156', '\160', '\111', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\156', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\103', '\144', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\146', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\142', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\167', '\116', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\114', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\143', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\126', '\166', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\153', '\170', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\155', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\107', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\112', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\106', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\103', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\166', '\127', '\040', '\154', '\145', '\040', '\061', '\012', '\123', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\132', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\111', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\124', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\104', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\124', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\160', '\103', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\153', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\160', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\121', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\151', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\121', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\125', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\152', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\130', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\130', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\147', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\162', '\112', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\167', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\164', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\110', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\110', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\142', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\146', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\122', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\155', '\131', '\040', '\155', '\145', '\040', '\061', '\012', '\167', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\106', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\127', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\171', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\147', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\155', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\146', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\172', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\147', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\163', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\157', '\127', '\170', '\040', '\157', '\156', '\040', '\061', '\012', '\120', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\144', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\130', '\155', '\160', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\147', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\103', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\164', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\142', '\121', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\165', '\115', '\040', '\165', '\156', '\040', '\061', '\012', '\146', '\114', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\150', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\156', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\144', '\123', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\106', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\106', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\127', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\161', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\155', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\142', '\153', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\121', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\120', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\171', '\114', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\170', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\172', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\146', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\153', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\156', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\125', '\161', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\165', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\125', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\102', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\116', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\150', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\127', '\160', '\040', '\144', '\145', '\040', '\061', '\012', '\131', '\166', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\122', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\172', '\107', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\165', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\152', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\132', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\112', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\156', '\117', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\143', '\101', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\146', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\152', '\123', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\146', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\163', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\144', '\130', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\122', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\105', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\107', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\110', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\166', '\101', '\040', '\166', '\141', '\040', '\061', '\012', '\102', '\146', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\126', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\151', '\113', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\141', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\103', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\147', '\101', '\040', '\156', '\147', '\040', '\061', '\012', '\151', '\167', '\112', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\107', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\164', '\146', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\152', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\172', '\107', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\155', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\156', '\125', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\107', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\126', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\123', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\161', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\156', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\126', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\126', '\163', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\116', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\156', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\112', '\163', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\154', '\115', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\172', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\143', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\126', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\127', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\110', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\117', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\125', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\127', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\161', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\156', '\103', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\126', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\164', '\115', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\150', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\164', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\143', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\167', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\144', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\163', '\117', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\122', '\156', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\155', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\107', '\166', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\126', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\144', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\144', '\105', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\132', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\102', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\110', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\153', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\170', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\154', '\162', '\101', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\162', '\124', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\152', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\142', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\124', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\155', '\126', '\040', '\155', '\145', '\040', '\061', '\012', '\162', '\104', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\144', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\141', '\126', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\116', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\130', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\162', '\107', '\163', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\141', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\162', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\112', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\170', '\105', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\166', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\122', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\160', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\112', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\142', '\121', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\172', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\106', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\167', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\141', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\163', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\147', '\155', '\117', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\107', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\122', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\101', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\104', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\107', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\124', '\166', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\155', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\164', '\105', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\172', '\120', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\163', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\107', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\171', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\170', '\106', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\132', '\040', '\146', '\157', '\040', '\061', '\012', '\163', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\155', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\110', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\150', '\155', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\167', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\165', '\112', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\120', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\130', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\125', '\161', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\106', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\116', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\170', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\123', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\122', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\167', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\146', '\155', '\102', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\123', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\120', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\110', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\115', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\153', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\130', '\144', '\163', '\040', '\144', '\145', '\040', '\061', '\012', '\171', '\142', '\102', '\040', '\142', '\145', '\040', '\061', '\012', '\147', '\160', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\170', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\147', '\120', '\155', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\160', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\160', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\154', '\112', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\171', '\160', '\120', '\040', '\160', '\162', '\040', '\061', '\012', '\116', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\147', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\105', '\161', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\122', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\125', '\142', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\112', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\166', '\116', '\040', '\166', '\141', '\040', '\061', '\012', '\121', '\146', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\163', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\153', '\130', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\160', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\160', '\152', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\153', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\115', '\146', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\163', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\117', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\104', '\161', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\156', '\142', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\166', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\106', '\156', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\160', '\126', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\164', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\105', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\150', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\130', '\171', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\144', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\155', '\104', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\151', '\126', '\153', '\040', '\151', '\156', '\040', '\061', '\012', '\110', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\160', '\132', '\040', '\160', '\157', '\040', '\061', '\012', '\141', '\145', '\125', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\152', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\163', '\107', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\127', '\161', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\161', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\120', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\130', '\172', '\040', '\163', '\164', '\040', '\061', '\012', '\170', '\166', '\120', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\142', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\152', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\150', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\161', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\131', '\146', '\040', '\144', '\145', '\040', '\061', '\012', '\160', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\163', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\150', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\154', '\105', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\161', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\156', '\162', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\110', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\110', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\161', '\112', '\040', '\141', '\156', '\040', '\061', '\012', '\157', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\142', '\171', '\040', '\142', '\145', '\040', '\061', '\012', '\164', '\142', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\123', '\146', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\110', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\160', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\121', '\172', '\160', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\151', '\125', '\040', '\151', '\156', '\040', '\061', '\012', '\162', '\152', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\164', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\131', '\147', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\121', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\127', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\126', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\121', '\170', '\040', '\160', '\162', '\040', '\061', '\012', '\114', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\127', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\110', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\166', '\160', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\170', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\110', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\166', '\125', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\161', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\126', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\132', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\165', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\170', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\110', '\154', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\104', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\144', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\166', '\115', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\127', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\151', '\117', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\104', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\110', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\120', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\130', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\146', '\114', '\040', '\146', '\157', '\040', '\061', '\012', '\171', '\107', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\102', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\103', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\114', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\115', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\162', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\144', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\170', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\155', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\122', '\172', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\102', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\127', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\165', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\171', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\106', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\122', '\155', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\126', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\113', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\114', '\150', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\123', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\162', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\102', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\103', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\171', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\165', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\146', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\144', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\143', '\130', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\152', '\111', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\147', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\167', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\172', '\125', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\132', '\162', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\112', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\104', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\125', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\170', '\105', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\170', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\143', '\167', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\160', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\122', '\167', '\040', '\163', '\164', '\040', '\061', '\012', '\113', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\170', '\101', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\121', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\120', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\110', '\167', '\165', '\040', '\153', '\165', '\040', '\061', '\012', '\163', '\165', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\170', '\127', '\040', '\163', '\164', '\040', '\061', '\012', '\141', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\142', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\161', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\164', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\115', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\107', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\162', '\153', '\040', '\145', '\162', '\040', '\061', '\012', '\117', '\143', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\113', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\162', '\101', '\040', '\145', '\162', '\040', '\061', '\012', '\147', '\170', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\127', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\170', '\121', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\130', '\157', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\155', '\120', '\040', '\155', '\145', '\040', '\061', '\012', '\153', '\144', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\102', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\160', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\156', '\115', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\110', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\123', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\155', '\130', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\143', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\141', '\130', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\144', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\142', '\131', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\146', '\132', '\040', '\160', '\162', '\040', '\061', '\012', '\126', '\155', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\132', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\114', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\161', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\160', '\113', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\146', '\107', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\152', '\122', '\040', '\151', '\156', '\040', '\061', '\012', '\151', '\112', '\171', '\040', '\151', '\156', '\040', '\061', '\012', '\161', '\146', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\162', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\147', '\124', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\117', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\156', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\127', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\144', '\117', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\131', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\162', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\155', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\110', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\172', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\105', '\171', '\040', '\156', '\171', '\040', '\061', '\012', '\150', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\160', '\121', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\131', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\144', '\170', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\146', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\142', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\142', '\117', '\040', '\142', '\145', '\040', '\061', '\012', '\130', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\103', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\155', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\112', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\104', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\172', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\163', '\170', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\113', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\123', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\114', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\144', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\172', '\127', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\167', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\115', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\142', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\163', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\110', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\132', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\164', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\161', '\160', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\154', '\104', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\166', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\132', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\164', '\150', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\164', '\114', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\117', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\111', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\150', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\166', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\152', '\103', '\040', '\151', '\152', '\040', '\061', '\012', '\117', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\166', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\110', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\170', '\112', '\040', '\151', '\152', '\040', '\061', '\012', '\107', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\121', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\104', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\121', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\112', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\172', '\142', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\122', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\105', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\141', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\152', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\123', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\112', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\127', '\162', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\113', '\160', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\141', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\103', '\166', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\142', '\122', '\040', '\142', '\145', '\040', '\061', '\012', '\160', '\124', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\144', '\111', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\146', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\122', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\142', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\172', '\106', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\167', '\117', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\162', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\164', '\167', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\114', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\156', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\165', '\123', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\111', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\124', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\113', '\144', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\153', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\102', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\117', '\172', '\040', '\153', '\141', '\040', '\061', '\012', '\172', '\117', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\172', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\115', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\146', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\147', '\104', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\164', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\152', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\142', '\130', '\040', '\142', '\145', '\040', '\061', '\012', '\172', '\146', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\167', '\110', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\121', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\163', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\114', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\155', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\116', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\115', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\107', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\103', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\160', '\166', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\116', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\160', '\120', '\040', '\160', '\162', '\040', '\061', '\012', '\154', '\130', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\114', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\144', '\130', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\172', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\170', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\166', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\162', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\105', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\131', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\163', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\146', '\153', '\103', '\040', '\153', '\141', '\040', '\061', '\012', '\155', '\170', '\113', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\155', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\102', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\103', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\163', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\152', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\164', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\102', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\152', '\106', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\147', '\125', '\040', '\164', '\150', '\040', '\061', '\012', '\127', '\162', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\106', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\143', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\145', '\161', '\101', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\142', '\107', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\167', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\104', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\124', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\162', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\121', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\167', '\115', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\103', '\156', '\040', '\156', '\144', '\040', '\061', '\012', '\145', '\107', '\160', '\040', '\145', '\162', '\040', '\061', '\012', '\165', '\120', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\151', '\111', '\040', '\151', '\156', '\040', '\061', '\012', '\162', '\161', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\152', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\167', '\113', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\152', '\121', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\111', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\170', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\107', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\114', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\122', '\144', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\171', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\122', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\113', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\150', '\142', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\161', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\155', '\106', '\040', '\155', '\145', '\040', '\061', '\012', '\166', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\161', '\116', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\114', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\166', '\112', '\040', '\166', '\141', '\040', '\061', '\012', '\142', '\147', '\112', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\166', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\110', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\126', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\150', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\154', '\114', '\040', '\154', '\145', '\040', '\061', '\012', '\153', '\144', '\110', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\146', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\104', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\103', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\121', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\127', '\156', '\172', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\112', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\167', '\122', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\160', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\120', '\152', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\160', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\143', '\154', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\103', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\162', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\103', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\141', '\102', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\165', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\132', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\107', '\164', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\142', '\127', '\040', '\167', '\141', '\040', '\061', '\012', '\166', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\127', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\142', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\127', '\155', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\170', '\131', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\121', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\116', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\144', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\131', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\154', '\130', '\040', '\154', '\145', '\040', '\061', '\012', '\162', '\167', '\106', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\132', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\142', '\112', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\141', '\102', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\126', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\146', '\103', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\170', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\124', '\142', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\157', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\124', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\102', '\153', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\145', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\102', '\145', '\040', '\144', '\145', '\040', '\061', '\012', '\144', '\160', '\103', '\040', '\144', '\145', '\040', '\061', '\012', '\153', '\160', '\127', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\167', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\162', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\165', '\130', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\157', '\171', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\146', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\113', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\150', '\123', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\142', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\143', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\102', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\147', '\132', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\120', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\102', '\146', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\162', '\170', '\103', '\040', '\145', '\162', '\040', '\061', '\012', '\163', '\114', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\150', '\107', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\166', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\122', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\116', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\104', '\146', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\156', '\122', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\150', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\116', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\167', '\101', '\040', '\167', '\141', '\040', '\061', '\012', '\167', '\115', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\123', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\146', '\104', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\107', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\130', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\121', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\117', '\171', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\166', '\102', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\126', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\110', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\163', '\142', '\125', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\106', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\153', '\146', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\162', '\166', '\127', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\106', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\114', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\157', '\121', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\146', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\162', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\112', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\120', '\156', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\116', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\146', '\105', '\040', '\156', '\171', '\040', '\061', '\012', '\153', '\155', '\111', '\040', '\153', '\141', '\040', '\061', '\012', '\107', '\155', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\170', '\123', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\165', '\125', '\040', '\165', '\156', '\040', '\061', '\012', '\161', '\131', '\146', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\113', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\150', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\157', '\146', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\160', '\162', '\110', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\130', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\121', '\155', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\127', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\172', '\103', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\131', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\141', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\147', '\142', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\123', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\162', '\121', '\172', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\153', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\126', '\156', '\154', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\164', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\115', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\171', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\161', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\156', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\106', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\153', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\127', '\143', '\153', '\040', '\143', '\150', '\040', '\061', '\012', '\146', '\115', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\172', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\112', '\172', '\040', '\157', '\156', '\040', '\061', '\012', '\170', '\166', '\110', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\121', '\171', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\131', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\170', '\104', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\104', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\120', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\162', '\110', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\171', '\115', '\040', '\151', '\156', '\040', '\061', '\012', '\171', '\170', '\104', '\040', '\156', '\171', '\040', '\061', '\012', '\153', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\130', '\166', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\155', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\153', '\116', '\040', '\153', '\141', '\040', '\061', '\012', '\154', '\106', '\152', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\155', '\125', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\132', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\101', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\102', '\143', '\171', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\161', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\122', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\162', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\101', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\132', '\152', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\170', '\106', '\040', '\156', '\171', '\040', '\061', '\012', '\166', '\132', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\120', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\103', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\131', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\102', '\160', '\040', '\164', '\150', '\040', '\061', '\012', '\112', '\142', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\147', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\146', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\155', '\142', '\112', '\040', '\155', '\145', '\040', '\061', '\012', '\146', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\167', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\165', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\131', '\172', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\104', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\155', '\111', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\150', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\165', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\130', '\146', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\120', '\171', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\117', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\116', '\155', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\104', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\103', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\152', '\120', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\162', '\105', '\040', '\141', '\156', '\040', '\061', '\012', '\113', '\155', '\167', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\147', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\172', '\122', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\125', '\151', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\156', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\132', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\123', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\101', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\132', '\166', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\160', '\122', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\116', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\102', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\115', '\152', '\171', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\152', '\132', '\040', '\151', '\152', '\040', '\061', '\012', '\164', '\114', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\131', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\167', '\142', '\117', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\130', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\113', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\165', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\154', '\121', '\040', '\154', '\145', '\040', '\061', '\012', '\171', '\146', '\102', '\040', '\156', '\171', '\040', '\061', '\012', '\121', '\163', '\153', '\040', '\163', '\164', '\040', '\061', '\012', '\125', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\155', '\131', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\130', '\167', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\126', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\111', '\167', '\040', '\156', '\147', '\040', '\061', '\012', '\110', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\147', '\171', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\121', '\166', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\170', '\164', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\143', '\145', '\040', '\143', '\150', '\040', '\061', '\012', '\116', '\152', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\107', '\164', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\112', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\104', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\114', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\157', '\145', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\166', '\131', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\142', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\124', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\141', '\124', '\160', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\144', '\124', '\040', '\144', '\145', '\040', '\061', '\012', '\127', '\153', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\170', '\101', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\104', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\146', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\162', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\110', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\126', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\115', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\126', '\155', '\040', '\163', '\164', '\040', '\061', '\012', '\156', '\172', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\166', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\132', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\156', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\132', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\120', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\116', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\162', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\114', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\126', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\105', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\161', '\103', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\132', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\116', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\106', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\170', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\120', '\152', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\131', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\106', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\166', '\114', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\112', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\126', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\143', '\132', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\143', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\114', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\171', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\150', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\164', '\113', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\122', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\103', '\170', '\040', '\142', '\145', '\040', '\061', '\012', '\156', '\112', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\152', '\167', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\120', '\144', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\170', '\105', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\114', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\172', '\126', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\107', '\161', '\040', '\154', '\145', '\040', '\061', '\012', '\121', '\142', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\142', '\131', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\123', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\160', '\122', '\040', '\160', '\162', '\040', '\061', '\012', '\147', '\103', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\151', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\146', '\170', '\040', '\146', '\157', '\040', '\061', '\012', '\156', '\152', '\111', '\040', '\156', '\144', '\040', '\061', '\012', '\131', '\160', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\154', '\170', '\124', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\126', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\112', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\170', '\101', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\104', '\154', '\040', '\156', '\147', '\040', '\061', '\012', '\105', '\141', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\143', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\107', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\114', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\153', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\142', '\113', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\116', '\170', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\161', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\122', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\162', '\125', '\040', '\145', '\162', '\040', '\061', '\012', '\146', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\172', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\143', '\156', '\040', '\143', '\150', '\040', '\061', '\012', '\161', '\142', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\126', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\166', '\106', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\112', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\170', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\151', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\115', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\142', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\147', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\155', '\123', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\132', '\152', '\155', '\040', '\151', '\152', '\040', '\061', '\012', '\116', '\152', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\144', '\161', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\131', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\113', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\170', '\125', '\040', '\143', '\150', '\040', '\061', '\012', '\103', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\146', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\164', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\162', '\120', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\105', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\170', '\117', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\132', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\142', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\130', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\143', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\153', '\117', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\116', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\130', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\126', '\153', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\166', '\106', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\106', '\170', '\040', '\170', '\145', '\040', '\061', '\012', '\144', '\123', '\152', '\040', '\144', '\145', '\040', '\061', '\012', '\170', '\120', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\157', '\106', '\160', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\101', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\107', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\172', '\103', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\111', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\114', '\150', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\167', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\160', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\101', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\102', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\113', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\120', '\146', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\165', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\124', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\164', '\127', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\144', '\116', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\162', '\116', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\154', '\123', '\040', '\154', '\145', '\040', '\061', '\012', '\161', '\105', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\161', '\122', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\156', '\155', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\130', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\116', '\040', '\146', '\157', '\040', '\061', '\012', '\142', '\166', '\114', '\040', '\166', '\141', '\040', '\061', '\012', '\157', '\107', '\146', '\040', '\157', '\156', '\040', '\061', '\012', '\150', '\132', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\146', '\110', '\040', '\156', '\171', '\040', '\061', '\012', '\144', '\143', '\105', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\147', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\167', '\162', '\102', '\040', '\145', '\162', '\040', '\061', '\012', '\153', '\127', '\155', '\040', '\153', '\141', '\040', '\061', '\012', '\123', '\150', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\167', '\120', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\166', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\121', '\147', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\116', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\110', '\160', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\154', '\106', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\161', '\172', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\147', '\107', '\040', '\156', '\147', '\040', '\061', '\012', '\153', '\144', '\132', '\040', '\144', '\145', '\040', '\061', '\012', '\145', '\152', '\130', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\170', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\166', '\124', '\040', '\166', '\141', '\040', '\061', '\012', '\113', '\161', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\155', '\142', '\040', '\155', '\145', '\040', '\061', '\012', '\170', '\106', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\121', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\120', '\147', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\160', '\114', '\040', '\160', '\162', '\040', '\061', '\012', '\142', '\167', '\105', '\040', '\167', '\141', '\040', '\061', '\012', '\170', '\110', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\155', '\106', '\040', '\151', '\152', '\040', '\061', '\012', '\111', '\170', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\171', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\126', '\166', '\040', '\145', '\162', '\040', '\061', '\012', '\131', '\164', '\167', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\160', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\160', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\152', '\130', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\150', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\146', '\126', '\040', '\161', '\165', '\040', '\061', '\012', '\112', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\124', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\102', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\152', '\122', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\147', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\155', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\103', '\142', '\040', '\153', '\141', '\040', '\061', '\012', '\160', '\131', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\166', '\153', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\166', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\126', '\146', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\154', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\116', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\142', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\161', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\162', '\104', '\040', '\145', '\162', '\040', '\061', '\012', '\154', '\142', '\107', '\040', '\154', '\145', '\040', '\061', '\012', '\170', '\150', '\106', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\170', '\132', '\040', '\153', '\141', '\040', '\061', '\012', '\111', '\165', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\106', '\170', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\126', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\143', '\107', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\127', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\102', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\171', '\112', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\143', '\172', '\114', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\125', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\160', '\132', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\164', '\127', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\170', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\144', '\131', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\151', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\146', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\126', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\146', '\121', '\040', '\166', '\141', '\040', '\061', '\012', '\150', '\166', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\144', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\110', '\172', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\131', '\163', '\040', '\143', '\150', '\040', '\061', '\012', '\106', '\164', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\160', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\114', '\154', '\144', '\040', '\154', '\145', '\040', '\061', '\012', '\107', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\144', '\122', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\130', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\163', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\116', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\152', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\126', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\112', '\155', '\170', '\040', '\155', '\145', '\040', '\061', '\012', '\160', '\104', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\151', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\114', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\156', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\124', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\116', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\125', '\141', '\167', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\172', '\116', '\040', '\163', '\172', '\040', '\061', '\012', '\147', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\152', '\115', '\040', '\151', '\152', '\040', '\061', '\012', '\154', '\156', '\113', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\170', '\142', '\040', '\163', '\172', '\040', '\061', '\012', '\153', '\143', '\123', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\152', '\115', '\040', '\141', '\156', '\040', '\061', '\012', '\107', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\154', '\156', '\132', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\150', '\113', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\160', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\161', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\152', '\130', '\040', '\151', '\156', '\040', '\061', '\012', '\152', '\107', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\142', '\170', '\111', '\040', '\142', '\145', '\040', '\061', '\012', '\166', '\130', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\162', '\167', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\167', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\156', '\102', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\166', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\170', '\102', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\126', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\103', '\172', '\170', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\171', '\126', '\040', '\156', '\171', '\040', '\061', '\012', '\143', '\130', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\121', '\156', '\146', '\040', '\141', '\156', '\040', '\061', '\012', '\131', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\161', '\110', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\142', '\131', '\040', '\144', '\145', '\040', '\061', '\012', '\123', '\161', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\113', '\161', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\160', '\112', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\142', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\106', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\113', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\162', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\156', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\146', '\161', '\116', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\146', '\101', '\040', '\164', '\150', '\040', '\061', '\012', '\161', '\157', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\117', '\167', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\156', '\154', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\111', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\161', '\162', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\167', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\161', '\141', '\127', '\040', '\141', '\156', '\040', '\061', '\012', '\150', '\143', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\153', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\116', '\144', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\172', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\170', '\102', '\040', '\156', '\147', '\040', '\061', '\012', '\102', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\124', '\146', '\040', '\166', '\141', '\040', '\061', '\012', '\152', '\106', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\165', '\146', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\160', '\107', '\040', '\141', '\156', '\040', '\061', '\012', '\165', '\132', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\124', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\107', '\154', '\167', '\040', '\154', '\145', '\040', '\061', '\012', '\113', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\103', '\170', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\152', '\132', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\123', '\161', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\171', '\120', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\145', '\121', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\111', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\104', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\111', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\116', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\117', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\153', '\115', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\106', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\143', '\146', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\113', '\152', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\153', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\112', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\120', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\157', '\172', '\121', '\040', '\157', '\156', '\040', '\061', '\012', '\104', '\154', '\153', '\040', '\154', '\145', '\040', '\061', '\012', '\166', '\130', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\153', '\164', '\131', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\127', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\121', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\124', '\160', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\150', '\143', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\165', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\156', '\142', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\121', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\147', '\132', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\165', '\127', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\115', '\146', '\040', '\155', '\145', '\040', '\061', '\012', '\132', '\143', '\144', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\102', '\160', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\172', '\131', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\167', '\103', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\103', '\161', '\171', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\152', '\106', '\040', '\143', '\150', '\040', '\061', '\012', '\107', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\155', '\143', '\127', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\161', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\165', '\112', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\125', '\152', '\040', '\151', '\156', '\040', '\061', '\012', '\166', '\153', '\122', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\147', '\111', '\040', '\156', '\147', '\040', '\061', '\012', '\166', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\144', '\156', '\040', '\144', '\145', '\040', '\061', '\012', '\163', '\152', '\106', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\120', '\166', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\122', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\154', '\126', '\040', '\154', '\145', '\040', '\061', '\012', '\163', '\142', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\155', '\146', '\124', '\040', '\155', '\145', '\040', '\061', '\012', '\144', '\142', '\126', '\040', '\144', '\145', '\040', '\061', '\012', '\106', '\155', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\147', '\146', '\125', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\142', '\102', '\040', '\143', '\150', '\040', '\061', '\012', '\131', '\170', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\104', '\167', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\167', '\147', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\163', '\120', '\166', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\156', '\142', '\110', '\040', '\141', '\156', '\040', '\061', '\012', '\143', '\106', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\161', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\106', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\105', '\142', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\106', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\105', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\143', '\111', '\040', '\143', '\150', '\040', '\061', '\012', '\142', '\115', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\132', '\167', '\040', '\163', '\172', '\040', '\061', '\012', '\150', '\152', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\113', '\170', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\103', '\040', '\156', '\147', '\040', '\061', '\012', '\143', '\156', '\114', '\040', '\141', '\156', '\040', '\061', '\012', '\106', '\144', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\107', '\146', '\040', '\142', '\145', '\040', '\061', '\012', '\123', '\152', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\142', '\115', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\130', '\167', '\040', '\166', '\141', '\040', '\061', '\012', '\107', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\103', '\167', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\163', '\121', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\154', '\120', '\146', '\040', '\154', '\145', '\040', '\061', '\012', '\156', '\155', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\126', '\144', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\143', '\130', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\152', '\124', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\167', '\105', '\040', '\155', '\145', '\040', '\061', '\012', '\161', '\114', '\155', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\110', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\164', '\156', '\040', '\164', '\150', '\040', '\061', '\012', '\116', '\164', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\147', '\127', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\120', '\161', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\160', '\120', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\122', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\160', '\114', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\156', '\104', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\160', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\144', '\172', '\123', '\040', '\163', '\172', '\040', '\061', '\012', '\164', '\132', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\171', '\147', '\115', '\040', '\156', '\147', '\040', '\061', '\012', '\142', '\170', '\103', '\040', '\142', '\145', '\040', '\061', '\012', '\144', '\146', '\125', '\040', '\144', '\145', '\040', '\061', '\012', '\142', '\155', '\102', '\040', '\155', '\145', '\040', '\061', '\012', '\154', '\102', '\172', '\040', '\154', '\145', '\040', '\061', '\012', '\147', '\112', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\131', '\153', '\166', '\040', '\153', '\141', '\040', '\061', '\012', '\132', '\144', '\153', '\040', '\144', '\145', '\040', '\061', '\012', '\167', '\156', '\121', '\040', '\141', '\156', '\040', '\061', '\012', '\164', '\132', '\152', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\146', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\115', '\167', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\162', '\125', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\161', '\167', '\160', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\143', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\146', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\165', '\157', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\103', '\167', '\040', '\167', '\141', '\040', '\061', '\012', '\151', '\121', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\102', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\126', '\142', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\152', '\125', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\160', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\166', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\132', '\160', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\160', '\151', '\126', '\040', '\151', '\156', '\040', '\061', '\012', '\153', '\142', '\120', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\161', '\115', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\126', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\161', '\132', '\162', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\170', '\117', '\040', '\164', '\150', '\040', '\061', '\012', '\167', '\124', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\112', '\172', '\146', '\040', '\163', '\172', '\040', '\061', '\012', '\121', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\165', '\131', '\166', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\167', '\113', '\040', '\160', '\162', '\040', '\061', '\012', '\150', '\166', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\104', '\161', '\145', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\146', '\111', '\040', '\160', '\162', '\040', '\061', '\012', '\155', '\150', '\126', '\040', '\164', '\150', '\040', '\061', '\012', '\152', '\147', '\105', '\040', '\156', '\147', '\040', '\061', '\012', '\162', '\143', '\121', '\040', '\143', '\150', '\040', '\061', '\012', '\153', '\155', '\124', '\040', '\153', '\141', '\040', '\061', '\012', '\127', '\172', '\152', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\116', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\120', '\142', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\172', '\166', '\102', '\040', '\163', '\172', '\040', '\061', '\012', '\170', '\150', '\112', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\166', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\116', '\166', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\163', '\167', '\132', '\040', '\163', '\164', '\040', '\061', '\012', '\152', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\155', '\146', '\114', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\153', '\114', '\040', '\163', '\172', '\040', '\061', '\012', '\152', '\126', '\160', '\040', '\151', '\152', '\040', '\061', '\012', '\104', '\153', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\170', '\165', '\131', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\110', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\123', '\146', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\172', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\154', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\115', '\144', '\040', '\161', '\165', '\040', '\061', '\012', '\121', '\147', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\146', '\170', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\164', '\122', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\106', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\105', '\157', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\157', '\131', '\040', '\157', '\156', '\040', '\061', '\012', '\101', '\167', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\124', '\170', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\143', '\111', '\147', '\040', '\143', '\150', '\040', '\061', '\012', '\170', '\125', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\122', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\170', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\151', '\120', '\146', '\040', '\151', '\156', '\040', '\061', '\012', '\145', '\152', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\130', '\164', '\163', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\146', '\124', '\040', '\160', '\162', '\040', '\061', '\012', '\120', '\161', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\163', '\126', '\040', '\163', '\164', '\040', '\061', '\012', '\171', '\160', '\103', '\040', '\160', '\162', '\040', '\061', '\012', '\167', '\115', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\105', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\170', '\131', '\040', '\166', '\141', '\040', '\061', '\012', '\146', '\125', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\104', '\146', '\146', '\040', '\146', '\157', '\040', '\061', '\012', '\147', '\161', '\121', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\115', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\166', '\112', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\146', '\120', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\114', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\144', '\115', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\116', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\141', '\107', '\166', '\040', '\141', '\156', '\040', '\061', '\012', '\166', '\166', '\104', '\040', '\166', '\141', '\040', '\061', '\012', '\144', '\112', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\170', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\127', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\120', '\166', '\170', '\040', '\166', '\141', '\040', '\061', '\012', '\162', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\122', '\144', '\040', '\163', '\172', '\040', '\061', '\012', '\113', '\147', '\166', '\040', '\156', '\147', '\040', '\061', '\012', '\130', '\166', '\171', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\132', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\153', '\160', '\113', '\040', '\153', '\141', '\040', '\061', '\012', '\120', '\146', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\167', '\125', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\167', '\127', '\170', '\040', '\167', '\141', '\040', '\061', '\012', '\152', '\120', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\147', '\114', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\112', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\147', '\120', '\170', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\110', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\166', '\112', '\142', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\150', '\102', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\121', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\105', '\157', '\141', '\040', '\141', '\156', '\040', '\061', '\012', '\160', '\152', '\117', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\106', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\163', '\130', '\157', '\040', '\157', '\156', '\040', '\061', '\012', '\167', '\142', '\131', '\040', '\167', '\141', '\040', '\061', '\012', '\143', '\152', '\117', '\040', '\143', '\150', '\040', '\061', '\012', '\155', '\154', '\132', '\040', '\154', '\145', '\040', '\061', '\012', '\142', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\153', '\152', '\120', '\040', '\151', '\152', '\040', '\061', '\012', '\171', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\126', '\152', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\116', '\166', '\040', '\166', '\141', '\040', '\061', '\012', '\147', '\152', '\127', '\040', '\156', '\147', '\040', '\061', '\012', '\156', '\130', '\152', '\040', '\141', '\156', '\040', '\061', '\012', '\144', '\161', '\112', '\040', '\161', '\165', '\040', '\061', '\012', '\110', '\156', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\171', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\153', '\166', '\102', '\040', '\153', '\141', '\040', '\061', '\012', '\161', '\171', '\102', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\104', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\172', '\147', '\120', '\040', '\156', '\147', '\040', '\061', '\012', '\132', '\172', '\153', '\040', '\163', '\172', '\040', '\061', '\012', '\146', '\115', '\153', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\172', '\131', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\142', '\124', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\117', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\163', '\101', '\040', '\163', '\164', '\040', '\061', '\012', '\147', '\114', '\152', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\170', '\110', '\040', '\163', '\172', '\040', '\061', '\012', '\143', '\114', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\104', '\156', '\153', '\040', '\141', '\156', '\040', '\061', '\012', '\172', '\111', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\153', '\160', '\112', '\040', '\153', '\141', '\040', '\061', '\012', '\170', '\162', '\113', '\040', '\145', '\162', '\040', '\061', '\012', '\145', '\111', '\142', '\040', '\145', '\162', '\040', '\061', '\012', '\112', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\102', '\161', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\130', '\147', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\152', '\153', '\040', '\151', '\152', '\040', '\061', '\012', '\144', '\122', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\164', '\152', '\132', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\121', '\154', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\171', '\127', '\040', '\151', '\156', '\040', '\061', '\012', '\112', '\167', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\112', '\160', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\102', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\172', '\162', '\107', '\040', '\145', '\162', '\040', '\061', '\012', '\150', '\127', '\146', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\144', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\161', '\163', '\132', '\040', '\161', '\165', '\040', '\061', '\012', '\143', '\121', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\143', '\143', '\116', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\167', '\115', '\040', '\167', '\141', '\040', '\061', '\012', '\147', '\142', '\130', '\040', '\156', '\147', '\040', '\061', '\012', '\164', '\146', '\124', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\167', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\121', '\142', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\171', '\145', '\131', '\040', '\145', '\162', '\040', '\061', '\012', '\141', '\125', '\142', '\040', '\141', '\156', '\040', '\061', '\012', '\161', '\110', '\167', '\040', '\161', '\165', '\040', '\061', '\012', '\106', '\150', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\106', '\156', '\147', '\040', '\141', '\156', '\040', '\061', '\012', '\154', '\166', '\111', '\040', '\154', '\145', '\040', '\061', '\012', '\152', '\103', '\146', '\040', '\151', '\152', '\040', '\061', '\012', '\150', '\161', '\110', '\040', '\164', '\150', '\040', '\061', '\012', '\164', '\124', '\161', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\146', '\111', '\040', '\163', '\164', '\040', '\061', '\012', '\166', '\163', '\115', '\040', '\163', '\164', '\040', '\061', '\012', '\154', '\104', '\160', '\040', '\154', '\145', '\040', '\061', '\012', '\167', '\112', '\142', '\040', '\167', '\141', '\040', '\061', '\012', '\142', '\150', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\122', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\164', '\123', '\040', '\164', '\150', '\040', '\061', '\012', '\132', '\167', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\112', '\142', '\150', '\040', '\164', '\150', '\040', '\061', '\012', '\150', '\110', '\142', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\104', '\171', '\040', '\160', '\162', '\040', '\061', '\012', '\163', '\152', '\104', '\040', '\163', '\164', '\040', '\061', '\012', '\117', '\171', '\160', '\040', '\160', '\162', '\040', '\061', '\012', '\161', '\167', '\104', '\040', '\161', '\165', '\040', '\061', '\012', '\152', '\142', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\160', '\107', '\040', '\166', '\141', '\040', '\061', '\012', '\127', '\152', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\160', '\102', '\040', '\166', '\141', '\040', '\061', '\012', '\141', '\130', '\161', '\040', '\141', '\156', '\040', '\061', '\012', '\155', '\127', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\110', '\151', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\171', '\116', '\040', '\156', '\171', '\040', '\061', '\012', '\155', '\142', '\121', '\040', '\155', '\145', '\040', '\061', '\012', '\171', '\167', '\103', '\040', '\167', '\141', '\040', '\061', '\012', '\157', '\126', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\170', '\155', '\132', '\040', '\155', '\145', '\040', '\061', '\012', '\163', '\154', '\117', '\040', '\154', '\145', '\040', '\061', '\012', '\146', '\130', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\153', '\131', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\160', '\126', '\165', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\153', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\102', '\162', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\103', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\143', '\170', '\040', '\143', '\150', '\040', '\061', '\012', '\172', '\115', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\122', '\167', '\040', '\143', '\150', '\040', '\061', '\012', '\147', '\172', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\142', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\152', '\165', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\170', '\123', '\172', '\040', '\163', '\172', '\040', '\061', '\012', '\126', '\147', '\172', '\040', '\156', '\147', '\040', '\061', '\012', '\157', '\115', '\167', '\040', '\157', '\156', '\040', '\061', '\012', '\146', '\160', '\105', '\040', '\160', '\162', '\040', '\061', '\012', '\170', '\152', '\130', '\040', '\151', '\152', '\040', '\061', '\012', '\161', '\103', '\147', '\040', '\161', '\165', '\040', '\061', '\012', '\172', '\167', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\165', '\121', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\161', '\120', '\153', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\152', '\104', '\040', '\151', '\152', '\040', '\061', '\012', '\121', '\172', '\155', '\040', '\163', '\172', '\040', '\061', '\012', '\163', '\111', '\160', '\040', '\163', '\164', '\040', '\061', '\012', '\165', '\157', '\107', '\040', '\161', '\165', '\040', '\061', '\012', '\162', '\126', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\143', '\142', '\113', '\040', '\143', '\150', '\040', '\061', '\012', '\150', '\130', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\113', '\163', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\153', '\142', '\106', '\040', '\153', '\141', '\040', '\061', '\012', '\167', '\102', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\151', '\131', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\163', '\147', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\107', '\172', '\166', '\040', '\163', '\172', '\040', '\061', '\012', '\171', '\166', '\105', '\040', '\166', '\141', '\040', '\061', '\012', '\170', '\113', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\127', '\146', '\040', '\163', '\164', '\040', '\061', '\012', '\172', '\102', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\171', '\153', '\110', '\040', '\153', '\141', '\040', '\061', '\012', '\166', '\152', '\110', '\040', '\151', '\152', '\040', '\061', '\012', '\167', '\150', '\111', '\040', '\164', '\150', '\040', '\061', '\012', '\166', '\120', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\132', '\150', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\151', '\112', '\170', '\040', '\151', '\156', '\040', '\061', '\012', '\143', '\132', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\115', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\143', '\125', '\152', '\040', '\143', '\150', '\040', '\061', '\012', '\166', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\143', '\112', '\040', '\143', '\150', '\040', '\061', '\012', '\102', '\143', '\155', '\040', '\143', '\150', '\040', '\061', '\012', '\152', '\130', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\170', '\157', '\111', '\040', '\157', '\156', '\040', '\061', '\012', '\132', '\153', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\130', '\172', '\162', '\040', '\145', '\162', '\040', '\061', '\012', '\171', '\172', '\115', '\040', '\163', '\172', '\040', '\061', '\012', '\161', '\152', '\130', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\116', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\150', '\160', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\164', '\130', '\144', '\040', '\164', '\150', '\040', '\061', '\012', '\130', '\153', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\110', '\163', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\142', '\161', '\125', '\040', '\161', '\165', '\040', '\061', '\012', '\163', '\147', '\106', '\040', '\156', '\147', '\040', '\061', '\012', '\144', '\120', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\112', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\125', '\147', '\160', '\040', '\156', '\147', '\040', '\061', '\012', '\122', '\170', '\151', '\040', '\151', '\156', '\040', '\061', '\012', '\113', '\167', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\172', '\153', '\104', '\040', '\163', '\172', '\040', '\061', '\012', '\122', '\161', '\154', '\040', '\161', '\165', '\040', '\061', '\012', '\160', '\112', '\142', '\040', '\160', '\162', '\040', '\061', '\012', '\146', '\143', '\126', '\040', '\143', '\150', '\040', '\061', '\012', '\151', '\126', '\144', '\040', '\151', '\156', '\040', '\061', '\012', '\142', '\102', '\160', '\040', '\142', '\145', '\040', '\061', '\012', '\117', '\152', '\167', '\040', '\151', '\152', '\040', '\061', '\012', '\166', '\132', '\154', '\040', '\154', '\145', '\040', '\061', '\012', '\111', '\171', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\146', '\153', '\125', '\040', '\153', '\141', '\040', '\061', '\012', '\113', '\143', '\161', '\040', '\143', '\150', '\040', '\061', '\012', '\144', '\102', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\115', '\161', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\151', '\115', '\147', '\040', '\156', '\147', '\040', '\061', '\012', '\127', '\167', '\163', '\040', '\163', '\164', '\040', '\061', '\012', '\164', '\161', '\130', '\040', '\164', '\150', '\040', '\061', '\012', '\170', '\150', '\104', '\040', '\164', '\150', '\040', '\061', '\012', '\162', '\116', '\154', '\040', '\145', '\162', '\040', '\061', '\012', '\160', '\127', '\144', '\040', '\144', '\145', '\040', '\061', '\012', '\152', '\162', '\126', '\040', '\145', '\162', '\040', '\061', '\012', '\102', '\155', '\152', '\040', '\151', '\152', '\040', '\061', '\012', '\110', '\155', '\161', '\040', '\161', '\165', '\040', '\061', '\012', '\166', '\154', '\110', '\040', '\154', '\145', '\040', '\061', '\012', '\115', '\170', '\142', '\040', '\142', '\145', '\040', '\061', '\012', '\171', '\171', '\123', '\040', '\156', '\171', '\040', '\061', '\012', '\161', '\166', '\127', '\040', '\161', '\165', '\040', '\061', '\012', '\146', '\166', '\130', '\040', '\166', '\141', '\040', '\061', '\012', '\126', '\146', '\145', '\040', '\145', '\162', '\040', '\061', '\012', '\103', '\144', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\113', '\147', '\145', '\040', '\156', '\147', '\040', '\061', '\012', '\121', '\145', '\152', '\040', '\145', '\162', '\040', '\061', '\012', '\162', '\166', '\132', '\040', '\145', '\162', '\040', '\061', '\012', '\166', '\172', '\111', '\040', '\163', '\172', '\040', '\061', '\012', '\144', '\104', '\156', '\040', '\141', '\156', '\040', '\061', '\012', '\156', '\167', '\123', '\040', '\141', '\156', '\040', '\061', '\012', '\121', '\143', '\142', '\040', '\143', '\150', '\040', '\061', '\012', '\167', '\153', '\126', '\040', '\153', '\141', '\040', '\061', '\012', '\165', '\103', '\170', '\040', '\161', '\165', '\040', '\061', '\012', '\111', '\147', '\153', '\040', '\156', '\147', '\040', '\061', '\012', '\126', '\160', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\150', '\102', '\155', '\040', '\164', '\150', '\040', '\061', '\012', '\160', '\144', '\121', '\040', '\144', '\145', '\040', '\061', '\012', '\146', '\147', '\121', '\040', '\156', '\147', '\040', '\061', '\012', '\171', '\121', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\147', '\170', '\110', '\040', '\156', '\147', '\040', '\061', '\012', '\160', '\161', '\113', '\040', '\161', '\165', '\040', '\061', '\012', '\154', '\122', '\143', '\040', '\143', '\150', '\040', '\061', '\012', '\130', '\144', '\166', '\040', '\144', '\145', '\040', '\061', '\012', '\150', '\104', '\172', '\040', '\164', '\150', '\040', '\061', '\012', '\144', '\106', '\167', '\040', '\144', '\145', '\040', '\061', '\012', '\161', '\121', '\165', '\040', '\165', '\156', '\040', '\061', '\012', '\170', '\142', '\104', '\040', '\142', '\145', '\040', '\061', '\012', '\161', '\155', '\105', '\040', '\161', '\165', '\040', '\061', '\012', '\155', '\127', '\155', '\040', '\155', '\145', '\040', '\061', '\012', '\152', '\102', '\142', '\040', '\151', '\152', '\040', '\061', '\012', '\152', '\130', '\164', '\040', '\164', '\150', '\040', '\061', '\012', '\146', '\170', '\125', '\040', '\146', }; extern const int ksizeofUniversalAmbigsFile = sizeof(kUniversalAmbigsFile); } // namespace tesseract
C++
/////////////////////////////////////////////////////////////////////// // File: unicharset.h // Description: Unicode character/ligature set class. // Author: Thomas Kielbus // Created: Wed Jun 28 17:05:01 PDT 2006 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_UNICHARSET_H__ #define TESSERACT_CCUTIL_UNICHARSET_H__ #include "errcode.h" #include "genericvector.h" #include "helpers.h" #include "serialis.h" #include "strngs.h" #include "tesscallback.h" #include "unichar.h" #include "unicharmap.h" // Enum holding special values of unichar_id. Every unicharset has these. // Warning! Keep in sync with kSpecialUnicharCodes. enum SpecialUnicharCodes { UNICHAR_SPACE, UNICHAR_JOINED, UNICHAR_BROKEN, SPECIAL_UNICHAR_CODES_COUNT }; class CHAR_FRAGMENT { public: // Minimum number of characters used for fragment representation. static const int kMinLen = 6; // Maximum number of characters used for fragment representation. static const int kMaxLen = 3 + UNICHAR_LEN + 2; // Maximum number of fragments per character. static const int kMaxChunks = 5; // Setters and Getters. inline void set_all(const char *unichar, int pos, int total, bool natural) { set_unichar(unichar); set_pos(pos); set_total(total); set_natural(natural); } inline void set_unichar(const char *uch) { strncpy(this->unichar, uch, UNICHAR_LEN); this->unichar[UNICHAR_LEN] = '\0'; } inline void set_pos(int p) { this->pos = p; } inline void set_total(int t) { this->total = t; } inline const char* get_unichar() const { return this->unichar; } inline int get_pos() const { return this->pos; } inline int get_total() const { return this->total; } // Returns the string that represents a fragment // with the given unichar, pos and total. static STRING to_string(const char *unichar, int pos, int total, bool natural); // Returns the string that represents this fragment. STRING to_string() const { return to_string(unichar, pos, total, natural); } // Checks whether a fragment has the same unichar, // position and total as the given inputs. inline bool equals(const char *other_unichar, int other_pos, int other_total) const { return (strcmp(this->unichar, other_unichar) == 0 && this->pos == other_pos && this->total == other_total); } inline bool equals(const CHAR_FRAGMENT *other) const { return this->equals(other->get_unichar(), other->get_pos(), other->get_total()); } // Checks whether a given fragment is a continuation of this fragment. // Assumes that the given fragment pointer is not NULL. inline bool is_continuation_of(const CHAR_FRAGMENT *fragment) const { return (strcmp(this->unichar, fragment->get_unichar()) == 0 && this->total == fragment->get_total() && this->pos == fragment->get_pos() + 1); } // Returns true if this fragment is a beginning fragment. inline bool is_beginning() const { return this->pos == 0; } // Returns true if this fragment is an ending fragment. inline bool is_ending() const { return this->pos == this->total-1; } // Returns true if the fragment was a separate component to begin with, // ie did not need chopping to be isolated, but may have been separated // out from a multi-outline blob. inline bool is_natural() const { return natural; } void set_natural(bool value) { natural = value; } // Parses the string to see whether it represents a character fragment // (rather than a regular character). If so, allocates memory for a new // CHAR_FRAGMENT instance and fills it in with the corresponding fragment // information. Fragments are of the form: // |m|1|2, meaning chunk 1 of 2 of character m, or // |:|1n2, meaning chunk 1 of 2 of character :, and no chopping was needed // to divide the parts, as they were already separate connected components. // // If parsing succeeded returns the pointer to the allocated CHAR_FRAGMENT // instance, otherwise (if the string does not represent a fragment or it // looks like it does, but parsing it as a fragment fails) returns NULL. // // Note: The caller is responsible for deallocating memory // associated with the returned pointer. static CHAR_FRAGMENT *parse_from_string(const char *str); private: char unichar[UNICHAR_LEN + 1]; // True if the fragment was a separate component to begin with, // ie did not need chopping to be isolated, but may have been separated // out from a multi-outline blob. bool natural; inT16 pos; // fragment position in the character inT16 total; // total number of fragments in the character }; // The UNICHARSET class is an utility class for Tesseract that holds the // set of characters that are used by the engine. Each character is identified // by a unique number, from 0 to (size - 1). class UNICHARSET { public: // Custom list of characters and their ligature forms (UTF8) // These map to unicode values in the private use area (PUC) and are supported // by only few font families (eg. Wyld, Adobe Caslon Pro). static const char* kCustomLigatures[][2]; // List of strings for the SpecialUnicharCodes. Keep in sync with the enum. static const char* kSpecialUnicharCodes[SPECIAL_UNICHAR_CODES_COUNT]; // ICU 2.0 UCharDirection enum (from third_party/icu/include/unicode/uchar.h) enum Direction { U_LEFT_TO_RIGHT = 0, U_RIGHT_TO_LEFT = 1, U_EUROPEAN_NUMBER = 2, U_EUROPEAN_NUMBER_SEPARATOR = 3, U_EUROPEAN_NUMBER_TERMINATOR = 4, U_ARABIC_NUMBER = 5, U_COMMON_NUMBER_SEPARATOR = 6, U_BLOCK_SEPARATOR = 7, U_SEGMENT_SEPARATOR = 8, U_WHITE_SPACE_NEUTRAL = 9, U_OTHER_NEUTRAL = 10, U_LEFT_TO_RIGHT_EMBEDDING = 11, U_LEFT_TO_RIGHT_OVERRIDE = 12, U_RIGHT_TO_LEFT_ARABIC = 13, U_RIGHT_TO_LEFT_EMBEDDING = 14, U_RIGHT_TO_LEFT_OVERRIDE = 15, U_POP_DIRECTIONAL_FORMAT = 16, U_DIR_NON_SPACING_MARK = 17, U_BOUNDARY_NEUTRAL = 18, U_CHAR_DIRECTION_COUNT }; // Create an empty UNICHARSET UNICHARSET(); ~UNICHARSET(); // Return the UNICHAR_ID of a given unichar representation within the // UNICHARSET. const UNICHAR_ID unichar_to_id(const char* const unichar_repr) const; // Return the UNICHAR_ID of a given unichar representation within the // UNICHARSET. Only the first length characters from unichar_repr are used. const UNICHAR_ID unichar_to_id(const char* const unichar_repr, int length) const; // Return the minimum number of bytes that matches a legal UNICHAR_ID, // while leaving the rest of the string encodable. Returns 0 if the // beginning of the string is not encodable. // WARNING: this function now encodes the whole string for precision. // Use encode_string in preference to repeatedly calling step. int step(const char* str) const; // As step except constraining the search to unichar-ids that are // self-normalized. Unlike step, does not encode the whole string, therefore // should be used on short strings (like those obtained from // get_normed_unichar.) int normed_step(const char* str) const; // Return whether the given UTF-8 string is encodable with this UNICHARSET. // If not encodable, write the first byte offset which cannot be converted // into the second (return) argument. bool encodable_string(const char *str, int *first_bad_position) const; // Encodes the given UTF-8 string with this UNICHARSET. // Any part of the string that cannot be encoded (because the utf8 can't // be broken up into pieces that are in the unicharset) then: // if give_up_on_failure, stops and returns a partial encoding, // else continues and inserts an INVALID_UNICHAR_ID in the returned encoding. // Returns true if the encoding succeeds completely, false if there is at // least one failure. // If lengths is not NULL, then it is filled with the corresponding // byte length of each encoded UNICHAR_ID. // If encoded_length is not NULL then on return it contains the length of // str that was encoded. (if give_up_on_failure the location of the first // failure, otherwise strlen(str).) bool encode_string(const char* str, bool give_up_on_failure, GenericVector<UNICHAR_ID>* encoding, GenericVector<char>* lengths, int* encoded_length) const; // Return the unichar representation corresponding to the given UNICHAR_ID // within the UNICHARSET. const char* const id_to_unichar(UNICHAR_ID id) const; // Return the UTF8 representation corresponding to the given UNICHAR_ID after // resolving any private encodings internal to Tesseract. This method is // preferrable to id_to_unichar for outputting text that will be visible to // external applications. const char* const id_to_unichar_ext(UNICHAR_ID id) const; // Return a STRING that reformats the utf8 str into the str followed // by its hex unicodes. static STRING debug_utf8_str(const char* str); // Return a STRING containing debug information on the unichar, including // the id_to_unichar, its hex unicodes and the properties. STRING debug_str(UNICHAR_ID id) const; STRING debug_str(const char * unichar_repr) const { return debug_str(unichar_to_id(unichar_repr)); } // Add a unichar representation to the set. void unichar_insert(const char* const unichar_repr); // Return true if the given unichar id exists within the set. // Relies on the fact that unichar ids are contiguous in the unicharset. bool contains_unichar_id(UNICHAR_ID unichar_id) const { return unichar_id != INVALID_UNICHAR_ID && unichar_id < size_used && unichar_id >= 0; } // Return true if the given unichar representation exists within the set. bool contains_unichar(const char* const unichar_repr) const; bool contains_unichar(const char* const unichar_repr, int length) const; // Return true if the given unichar representation corresponds to the given // UNICHAR_ID within the set. bool eq(UNICHAR_ID unichar_id, const char* const unichar_repr) const; // Delete CHAR_FRAGMENTs stored in properties of unichars array. void delete_pointers_in_unichars() { for (int i = 0; i < size_used; ++i) { if (unichars[i].properties.fragment != NULL) { delete unichars[i].properties.fragment; unichars[i].properties.fragment = NULL; } } } // Clear the UNICHARSET (all the previous data is lost). void clear() { if (script_table != NULL) { for (int i = 0; i < script_table_size_used; ++i) delete[] script_table[i]; delete[] script_table; script_table = NULL; script_table_size_used = 0; } if (unichars != NULL) { delete_pointers_in_unichars(); delete[] unichars; unichars = NULL; } script_table_size_reserved = 0; size_reserved = 0; size_used = 0; ids.clear(); top_bottom_set_ = false; script_has_upper_lower_ = false; script_has_xheight_ = false; null_sid_ = 0; common_sid_ = 0; latin_sid_ = 0; cyrillic_sid_ = 0; greek_sid_ = 0; han_sid_ = 0; hiragana_sid_ = 0; katakana_sid_ = 0; } // Return the size of the set (the number of different UNICHAR it holds). int size() const { return size_used; } // Reserve enough memory space for the given number of UNICHARS void reserve(int unichars_number); // Opens the file indicated by filename and saves unicharset to that file. // Returns true if the operation is successful. bool save_to_file(const char * const filename) const { FILE* file = fopen(filename, "w+b"); if (file == NULL) return false; bool result = save_to_file(file); fclose(file); return result; } // Saves the content of the UNICHARSET to the given file. // Returns true if the operation is successful. bool save_to_file(FILE *file) const { STRING str; if (!save_to_string(&str)) return false; if (fwrite(&str[0], str.length(), 1, file) != 1) return false; return true; } bool save_to_file(tesseract::TFile *file) const { STRING str; if (!save_to_string(&str)) return false; if (file->FWrite(&str[0], str.length(), 1) != 1) return false; return true; } // Saves the content of the UNICHARSET to the given STRING. // Returns true if the operation is successful. bool save_to_string(STRING *str) const; // Load a unicharset from a unicharset file that has been loaded into // the given memory buffer. // Returns true if the operation is successful. bool load_from_inmemory_file(const char* const memory, int mem_size, bool skip_fragments); // Returns true if the operation is successful. bool load_from_inmemory_file(const char* const memory, int mem_size) { return load_from_inmemory_file(memory, mem_size, false); } // Opens the file indicated by filename and loads the UNICHARSET // from the given file. The previous data is lost. // Returns true if the operation is successful. bool load_from_file(const char* const filename, bool skip_fragments) { FILE* file = fopen(filename, "rb"); if (file == NULL) return false; bool result = load_from_file(file, skip_fragments); fclose(file); return result; } // returns true if the operation is successful. bool load_from_file(const char* const filename) { return load_from_file(filename, false); } // Loads the UNICHARSET from the given file. The previous data is lost. // Returns true if the operation is successful. bool load_from_file(FILE *file, bool skip_fragments); bool load_from_file(FILE *file) { return load_from_file(file, false); } bool load_from_file(tesseract::TFile *file, bool skip_fragments); // Sets up internal data after loading the file, based on the char // properties. Called from load_from_file, but also needs to be run // during set_unicharset_properties. void post_load_setup(); // Returns true if right_to_left scripts are significant in the unicharset, // but without being so sensitive that "universal" unicharsets containing // characters from many scripts, like orientation and script detection, // look like they are right_to_left. bool major_right_to_left() const; // Set a whitelist and/or blacklist of characters to recognize. // An empty or NULL whitelist enables everything (minus any blacklist). // An empty or NULL blacklist disables nothing. // An empty or NULL unblacklist has no effect. // The blacklist overrides the whitelist. // The unblacklist overrides the blacklist. // Each list is a string of utf8 character strings. Boundaries between // unicharset units are worked out automatically, and characters not in // the unicharset are silently ignored. void set_black_and_whitelist(const char* blacklist, const char* whitelist, const char* unblacklist); // Set the isalpha property of the given unichar to the given value. void set_isalpha(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.isalpha = value; } // Set the islower property of the given unichar to the given value. void set_islower(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.islower = value; } // Set the isupper property of the given unichar to the given value. void set_isupper(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.isupper = value; } // Set the isdigit property of the given unichar to the given value. void set_isdigit(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.isdigit = value; } // Set the ispunctuation property of the given unichar to the given value. void set_ispunctuation(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.ispunctuation = value; } // Set the isngram property of the given unichar to the given value. void set_isngram(UNICHAR_ID unichar_id, bool value) { unichars[unichar_id].properties.isngram = value; } // Set the script name of the given unichar to the given value. // Value is copied and thus can be a temporary; void set_script(UNICHAR_ID unichar_id, const char* value) { unichars[unichar_id].properties.script_id = add_script(value); } // Set other_case unichar id in the properties for the given unichar id. void set_other_case(UNICHAR_ID unichar_id, UNICHAR_ID other_case) { unichars[unichar_id].properties.other_case = other_case; } // Set the direction property of the given unichar to the given value. void set_direction(UNICHAR_ID unichar_id, UNICHARSET::Direction value) { unichars[unichar_id].properties.direction = value; } // Set mirror unichar id in the properties for the given unichar id. void set_mirror(UNICHAR_ID unichar_id, UNICHAR_ID mirror) { unichars[unichar_id].properties.mirror = mirror; } // Record normalized version of unichar with the given unichar_id. void set_normed(UNICHAR_ID unichar_id, const char* normed) { unichars[unichar_id].properties.normed = normed; unichars[unichar_id].properties.normed_ids.truncate(0); } // Sets the normed_ids vector from the normed string. normed_ids is not // stored in the file, and needs to be set when the UNICHARSET is loaded. void set_normed_ids(UNICHAR_ID unichar_id); // Return the isalpha property of the given unichar. bool get_isalpha(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.isalpha; } // Return the islower property of the given unichar. bool get_islower(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.islower; } // Return the isupper property of the given unichar. bool get_isupper(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.isupper; } // Return the isdigit property of the given unichar. bool get_isdigit(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.isdigit; } // Return the ispunctuation property of the given unichar. bool get_ispunctuation(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.ispunctuation; } // Return the isngram property of the given unichar. bool get_isngram(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return false; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.isngram; } // Returns whether the unichar id represents a unicode value in the private // use area. bool get_isprivate(UNICHAR_ID unichar_id) const; // Returns true if the ids have useful min/max top/bottom values. bool top_bottom_useful() const { return top_bottom_set_; } // Sets all ranges to empty, so they can be expanded to set the values. void set_ranges_empty(); // Sets all the properties for this unicharset given a src_unicharset with // everything set. The unicharsets don't have to be the same, and graphemes // are correctly accounted for. void SetPropertiesFromOther(const UNICHARSET& src) { PartialSetPropertiesFromOther(0, src); } // Sets properties from Other, starting only at the given index. void PartialSetPropertiesFromOther(int start_index, const UNICHARSET& src); // Expands the tops and bottoms and widths for this unicharset given a // src_unicharset with ranges in it. The unicharsets don't have to be the // same, and graphemes are correctly accounted for. void ExpandRangesFromOther(const UNICHARSET& src); // Makes this a copy of src. Clears this completely first, so the automattic // ids will not be present in this if not in src. void CopyFrom(const UNICHARSET& src); // For each id in src, if it does not occur in this, add it, as in // SetPropertiesFromOther, otherwise expand the ranges, as in // ExpandRangesFromOther. void AppendOtherUnicharset(const UNICHARSET& src); // Returns true if the acceptable ranges of the tops of the characters do // not overlap, making their x-height calculations distinct. bool SizesDistinct(UNICHAR_ID id1, UNICHAR_ID id2) const; // Returns the min and max bottom and top of the given unichar in // baseline-normalized coordinates, ie, where the baseline is // kBlnBaselineOffset and the meanline is kBlnBaselineOffset + kBlnXHeight // (See normalis.h for the definitions). void get_top_bottom(UNICHAR_ID unichar_id, int* min_bottom, int* max_bottom, int* min_top, int* max_top) const { if (INVALID_UNICHAR_ID == unichar_id) { *min_bottom = *min_top = 0; *max_bottom = *max_top = 256; // kBlnCellHeight return; } ASSERT_HOST(contains_unichar_id(unichar_id)); *min_bottom = unichars[unichar_id].properties.min_bottom; *max_bottom = unichars[unichar_id].properties.max_bottom; *min_top = unichars[unichar_id].properties.min_top; *max_top = unichars[unichar_id].properties.max_top; } void set_top_bottom(UNICHAR_ID unichar_id, int min_bottom, int max_bottom, int min_top, int max_top) { unichars[unichar_id].properties.min_bottom = static_cast<uinT8>(ClipToRange(min_bottom, 0, MAX_UINT8)); unichars[unichar_id].properties.max_bottom = static_cast<uinT8>(ClipToRange(max_bottom, 0, MAX_UINT8)); unichars[unichar_id].properties.min_top = static_cast<uinT8>(ClipToRange(min_top, 0, MAX_UINT8)); unichars[unichar_id].properties.max_top = static_cast<uinT8>(ClipToRange(max_top, 0, MAX_UINT8)); } // Returns the width range of the given unichar in baseline-normalized // coordinates, ie, where the baseline is kBlnBaselineOffset and the // meanline is kBlnBaselineOffset + kBlnXHeight. // (See normalis.h for the definitions). void get_width_range(UNICHAR_ID unichar_id, int* min_width, int* max_width) const { if (INVALID_UNICHAR_ID == unichar_id) { *min_width = 0; *max_width = 256; // kBlnCellHeight; return; } ASSERT_HOST(contains_unichar_id(unichar_id)); *min_width = unichars[unichar_id].properties.min_width; *max_width = unichars[unichar_id].properties.max_width; } void set_width_range(UNICHAR_ID unichar_id, int min_width, int max_width) { unichars[unichar_id].properties.min_width = static_cast<inT16>(ClipToRange(min_width, 0, MAX_INT16)); unichars[unichar_id].properties.max_width = static_cast<inT16>(ClipToRange(max_width, 0, MAX_INT16)); } // Returns the range of the x-bearing of the given unichar in // baseline-normalized coordinates, ie, where the baseline is // kBlnBaselineOffset and the meanline is kBlnBaselineOffset + kBlnXHeight. // (See normalis.h for the definitions). void get_bearing_range(UNICHAR_ID unichar_id, int* min_bearing, int* max_bearing) const { if (INVALID_UNICHAR_ID == unichar_id) { *min_bearing = *max_bearing = 0; return; } ASSERT_HOST(contains_unichar_id(unichar_id)); *min_bearing = unichars[unichar_id].properties.min_bearing; *max_bearing = unichars[unichar_id].properties.max_bearing; } void set_bearing_range(UNICHAR_ID unichar_id, int min_bearing, int max_bearing) { unichars[unichar_id].properties.min_bearing = static_cast<inT16>(ClipToRange(min_bearing, 0, MAX_INT16)); unichars[unichar_id].properties.max_bearing = static_cast<inT16>(ClipToRange(max_bearing, 0, MAX_INT16)); } // Returns the range of the x-advance of the given unichar in // baseline-normalized coordinates, ie, where the baseline is // kBlnBaselineOffset and the meanline is kBlnBaselineOffset + kBlnXHeight. // (See normalis.h for the definitions). void get_advance_range(UNICHAR_ID unichar_id, int* min_advance, int* max_advance) const { if (INVALID_UNICHAR_ID == unichar_id) { *min_advance = *max_advance = 0; return; } ASSERT_HOST(contains_unichar_id(unichar_id)); *min_advance = unichars[unichar_id].properties.min_advance; *max_advance = unichars[unichar_id].properties.max_advance; } void set_advance_range(UNICHAR_ID unichar_id, int min_advance, int max_advance) { unichars[unichar_id].properties.min_advance = static_cast<inT16>(ClipToRange(min_advance, 0, MAX_INT16)); unichars[unichar_id].properties.max_advance = static_cast<inT16>(ClipToRange(max_advance, 0, MAX_INT16)); } // Return the script name of the given unichar. // The returned pointer will always be the same for the same script, it's // managed by unicharset and thus MUST NOT be deleted int get_script(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return null_sid_; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.script_id; } // Return the character properties, eg. alpha/upper/lower/digit/punct, // as a bit field of unsigned int. unsigned int get_properties(UNICHAR_ID unichar_id) const; // Return the character property as a single char. If a character has // multiple attributes, the main property is defined by the following order: // upper_case : 'A' // lower_case : 'a' // alpha : 'x' // digit : '0' // punctuation: 'p' char get_chartype(UNICHAR_ID unichar_id) const; // Get other_case unichar id in the properties for the given unichar id. UNICHAR_ID get_other_case(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return INVALID_UNICHAR_ID; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.other_case; } // Returns the direction property of the given unichar. Direction get_direction(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return UNICHARSET::U_OTHER_NEUTRAL; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.direction; } // Get mirror unichar id in the properties for the given unichar id. UNICHAR_ID get_mirror(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return INVALID_UNICHAR_ID; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.mirror; } // Returns UNICHAR_ID of the corresponding lower-case unichar. UNICHAR_ID to_lower(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return INVALID_UNICHAR_ID; ASSERT_HOST(contains_unichar_id(unichar_id)); if (unichars[unichar_id].properties.islower) return unichar_id; return unichars[unichar_id].properties.other_case; } // Returns UNICHAR_ID of the corresponding upper-case unichar. UNICHAR_ID to_upper(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return INVALID_UNICHAR_ID; ASSERT_HOST(contains_unichar_id(unichar_id)); if (unichars[unichar_id].properties.isupper) return unichar_id; return unichars[unichar_id].properties.other_case; } // Returns true if this UNICHARSET has the special codes in // SpecialUnicharCodes available. If false then there are normal unichars // at these codes and they should not be used. bool has_special_codes() const { return get_fragment(UNICHAR_BROKEN) != NULL && strcmp(id_to_unichar(UNICHAR_BROKEN), kSpecialUnicharCodes[UNICHAR_BROKEN]) == 0; } // Return a pointer to the CHAR_FRAGMENT class if the given // unichar id represents a character fragment. const CHAR_FRAGMENT *get_fragment(UNICHAR_ID unichar_id) const { if (INVALID_UNICHAR_ID == unichar_id) return NULL; ASSERT_HOST(contains_unichar_id(unichar_id)); return unichars[unichar_id].properties.fragment; } // Return the isalpha property of the given unichar representation. bool get_isalpha(const char* const unichar_repr) const { return get_isalpha(unichar_to_id(unichar_repr)); } // Return the islower property of the given unichar representation. bool get_islower(const char* const unichar_repr) const { return get_islower(unichar_to_id(unichar_repr)); } // Return the isupper property of the given unichar representation. bool get_isupper(const char* const unichar_repr) const { return get_isupper(unichar_to_id(unichar_repr)); } // Return the isdigit property of the given unichar representation. bool get_isdigit(const char* const unichar_repr) const { return get_isdigit(unichar_to_id(unichar_repr)); } // Return the ispunctuation property of the given unichar representation. bool get_ispunctuation(const char* const unichar_repr) const { return get_ispunctuation(unichar_to_id(unichar_repr)); } // Return the character properties, eg. alpha/upper/lower/digit/punct, // of the given unichar representation unsigned int get_properties(const char* const unichar_repr) const { return get_properties(unichar_to_id(unichar_repr)); } char get_chartype(const char* const unichar_repr) const { return get_chartype(unichar_to_id(unichar_repr)); } // Return the script name of the given unichar representation. // The returned pointer will always be the same for the same script, it's // managed by unicharset and thus MUST NOT be deleted int get_script(const char* const unichar_repr) const { return get_script(unichar_to_id(unichar_repr)); } // Return a pointer to the CHAR_FRAGMENT class struct if the given // unichar representation represents a character fragment. const CHAR_FRAGMENT *get_fragment(const char* const unichar_repr) const { if (unichar_repr == NULL || unichar_repr[0] == '\0' || !ids.contains(unichar_repr)) { return NULL; } return get_fragment(unichar_to_id(unichar_repr)); } // Return the isalpha property of the given unichar representation. // Only the first length characters from unichar_repr are used. bool get_isalpha(const char* const unichar_repr, int length) const { return get_isalpha(unichar_to_id(unichar_repr, length)); } // Return the islower property of the given unichar representation. // Only the first length characters from unichar_repr are used. bool get_islower(const char* const unichar_repr, int length) const { return get_islower(unichar_to_id(unichar_repr, length)); } // Return the isupper property of the given unichar representation. // Only the first length characters from unichar_repr are used. bool get_isupper(const char* const unichar_repr, int length) const { return get_isupper(unichar_to_id(unichar_repr, length)); } // Return the isdigit property of the given unichar representation. // Only the first length characters from unichar_repr are used. bool get_isdigit(const char* const unichar_repr, int length) const { return get_isdigit(unichar_to_id(unichar_repr, length)); } // Return the ispunctuation property of the given unichar representation. // Only the first length characters from unichar_repr are used. bool get_ispunctuation(const char* const unichar_repr, int length) const { return get_ispunctuation(unichar_to_id(unichar_repr, length)); } // Returns normalized version of unichar with the given unichar_id. const char *get_normed_unichar(UNICHAR_ID unichar_id) const { return unichars[unichar_id].properties.normed.string(); } // Returns a vector of UNICHAR_IDs that represent the ids of the normalized // version of the given id. There may be more than one UNICHAR_ID in the // vector if unichar_id represents a ligature. const GenericVector<UNICHAR_ID>& normed_ids(UNICHAR_ID unichar_id) const { return unichars[unichar_id].properties.normed_ids; } // Return the script name of the given unichar representation. // Only the first length characters from unichar_repr are used. // The returned pointer will always be the same for the same script, it's // managed by unicharset and thus MUST NOT be deleted int get_script(const char* const unichar_repr, int length) const { return get_script(unichar_to_id(unichar_repr, length)); } // Return the (current) number of scripts in the script table int get_script_table_size() const { return script_table_size_used; } // Return the script string from its id const char* get_script_from_script_id(int id) const { if (id >= script_table_size_used || id < 0) return null_script; return script_table[id]; } // Returns the id from the name of the script, or 0 if script is not found. // Note that this is an expensive operation since it involves iteratively // comparing strings in the script table. To avoid dependency on STL, we // won't use a hash. Instead, the calling function can use this to lookup // and save the ID for relevant scripts for fast comparisons later. int get_script_id_from_name(const char* script_name) const; // Return true if the given script is the null script bool is_null_script(const char* script) const { return script == null_script; } // Uniquify the given script. For two scripts a and b, if strcmp(a, b) == 0, // then the returned pointer will be the same. // The script parameter is copied and thus can be a temporary. int add_script(const char* script); // Return the enabled property of the given unichar. bool get_enabled(UNICHAR_ID unichar_id) const { return unichars[unichar_id].properties.enabled; } int null_sid() const { return null_sid_; } int common_sid() const { return common_sid_; } int latin_sid() const { return latin_sid_; } int cyrillic_sid() const { return cyrillic_sid_; } int greek_sid() const { return greek_sid_; } int han_sid() const { return han_sid_; } int hiragana_sid() const { return hiragana_sid_; } int katakana_sid() const { return katakana_sid_; } int default_sid() const { return default_sid_; } // Returns true if the unicharset has the concept of upper/lower case. bool script_has_upper_lower() const { return script_has_upper_lower_; } // Returns true if the unicharset has the concept of x-height. // script_has_xheight can be true even if script_has_upper_lower is not, // when the script has a sufficiently predominant top line with ascenders, // such as Devanagari and Thai. bool script_has_xheight() const { return script_has_xheight_; } private: struct UNICHAR_PROPERTIES { UNICHAR_PROPERTIES(); // Initializes all properties to sensible default values. void Init(); // Sets all ranges wide open. Initialization default in case there are // no useful values available. void SetRangesOpen(); // Sets all ranges to empty. Used before expanding with font-based data. void SetRangesEmpty(); // Returns true if any of the top/bottom/width/bearing/advance ranges is // emtpy. bool AnyRangeEmpty() const; // Expands the ranges with the ranges from the src properties. void ExpandRangesFrom(const UNICHAR_PROPERTIES& src); // Copies the properties from src into this. void CopyFrom(const UNICHAR_PROPERTIES& src); bool isalpha; bool islower; bool isupper; bool isdigit; bool ispunctuation; bool isngram; bool enabled; // Possible limits of the top and bottom of the bounding box in // baseline-normalized coordinates, ie, where the baseline is // kBlnBaselineOffset and the meanline is kBlnBaselineOffset + kBlnXHeight // (See normalis.h for the definitions). uinT8 min_bottom; uinT8 max_bottom; uinT8 min_top; uinT8 max_top; // Limits on the widths of bounding box, also in baseline-normalized coords. inT16 min_width; inT16 max_width; // Limits on the x-bearing and advance, also in baseline-normalized coords. inT16 min_bearing; inT16 max_bearing; inT16 min_advance; inT16 max_advance; int script_id; UNICHAR_ID other_case; // id of the corresponding upper/lower case unichar Direction direction; // direction of this unichar // Mirror property is useful for reverse DAWG lookup for words in // right-to-left languages (e.g. "(word)" would be in // '[open paren]' 'w' 'o' 'r' 'd' '[close paren]' in a UTF8 string. // However, what we want in our DAWG is // '[open paren]', 'd', 'r', 'o', 'w', '[close paren]' not // '[close paren]', 'd', 'r', 'o', 'w', '[open paren]'. UNICHAR_ID mirror; // A string of unichar_ids that represent the corresponding normed string. // For awkward characters like em-dash, this gives hyphen. // For ligatures, this gives the string of normal unichars. GenericVector<UNICHAR_ID> normed_ids; STRING normed; // normalized version of this unichar // Contains meta information about the fragment if a unichar represents // a fragment of a character, otherwise should be set to NULL. // It is assumed that character fragments are added to the unicharset // after the corresponding 'base' characters. CHAR_FRAGMENT *fragment; }; struct UNICHAR_SLOT { char representation[UNICHAR_LEN + 1]; UNICHAR_PROPERTIES properties; }; // Internal recursive version of encode_string above. // str is the start of the whole string. // str_index is the current position in str. // str_length is the length of str. // encoding is a working encoding of str. // lengths is a working set of lengths of each element of encoding. // best_total_length is the longest length of str that has been successfully // encoded so far. // On return: // best_encoding contains the encoding that used the longest part of str. // best_lengths (may be null) contains the lengths of best_encoding. void encode_string(const char* str, int str_index, int str_length, GenericVector<UNICHAR_ID>* encoding, GenericVector<char>* lengths, int* best_total_length, GenericVector<UNICHAR_ID>* best_encoding, GenericVector<char>* best_lengths) const; // Gets the properties for a grapheme string, combining properties for // multiple characters in a meaningful way where possible. // Returns false if no valid match was found in the unicharset. // NOTE that script_id, mirror, and other_case refer to this unicharset on // return and will need redirecting if the target unicharset is different. bool GetStrProperties(const char* utf8_str, UNICHAR_PROPERTIES* props) const; // Load ourselves from a "file" where our only interface to the file is // an implementation of fgets(). This is the parsing primitive accessed by // the public routines load_from_file() and load_from_inmemory_file(). bool load_via_fgets(TessResultCallback2<char *, char *, int> *fgets_cb, bool skip_fragments); UNICHAR_SLOT* unichars; UNICHARMAP ids; int size_used; int size_reserved; char** script_table; int script_table_size_used; int script_table_size_reserved; const char* null_script; // True if the unichars have their tops/bottoms set. bool top_bottom_set_; // True if the unicharset has significant upper/lower case chars. bool script_has_upper_lower_; // True if the unicharset has a significant mean-line with significant // ascenders above that. bool script_has_xheight_; // A few convenient script name-to-id mapping without using hash. // These are initialized when unicharset file is loaded. Anything // missing from this list can be looked up using get_script_id_from_name. int null_sid_; int common_sid_; int latin_sid_; int cyrillic_sid_; int greek_sid_; int han_sid_; int hiragana_sid_; int katakana_sid_; // The most frequently occurring script in the charset. int default_sid_; }; #endif // TESSERACT_CCUTIL_UNICHARSET_H__
C++
/****************************************************************************** ** Filename: Host.h ** Purpose: This is the system independent typedefs and defines ** Author: MN, JG, MD ** Version: 5.4.1 ** History: 11/7/94 MCD received the modification that Lennart made ** to port to 32 bit world and modify this file so that it ** will be shared between platform. ** 11/9/94 MCD Make MSW32 subset of MSW. Now MSW means ** MicroSoft Window and MSW32 means the 32 bit worlds ** of MicroSoft Window. Therefore you want the environment ** to be MicroSoft Window and in the 32 bit world - ** _WIN32 must be defined by your compiler. ** 11/30/94 MCD Incorporated comments received for more ** readability and the missing typedef for FLOAT. ** 12/1/94 MCD Added PFVOID typedef ** 5/1/95 MCD. Made many changes based on the inputs. ** Changes: ** 1) Rearrange the #ifdef so that there're definitions for ** particular platforms. ** 2) Took out the #define for computer and environment ** that developer can uncomment ** 3) Added __OLDCODE__ where the defines will be ** obsoleted in the next version and advise not to use. ** 4) Added the definitions for the following: ** FILE_HANDLE, MEMORY_HANDLE, BOOL8, ** MAX_INT8, MAX_INT16, MAX_INT32, MAX_UINT8 ** MAX_UINT16, MAX_UINT32, MAX_FLOAT32 ** 06/19/96 MCD. Took out MAX_FLOAT32 ** 07/15/96 MCD. Fixed the comments error ** Add back BOOL8. ** ** (c) Copyright Hewlett-Packard Company, 1988-1996. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. */ #ifndef __HOST__ #define __HOST__ /****************************************************************************** ** IMPORTANT!!! ** ** ** ** Defines either _WIN32, __MAC__, __UNIX__, __OS2__, __PM__ to ** use the specified definitions indicated below in the preprocessor settings. ** ** ** ** Also define either __FarProc__ or __FarData__ and __MOTO__ to use the ** specified definitions indicated below in the preprocessor settings. ** ** ** ** If a preprocessor settings is not allow in the compiler that is being use, ** then it is recommended that a "platform.h" is created with the definition ** of the computer and/or operating system. ******************************************************************************/ #include "platform.h" /* _WIN32 */ #ifdef _WIN32 #include <windows.h> #include <winbase.h> // winbase.h contains windows.h #endif /********************************************************/ /* __MAC__ */ #ifdef __MAC__ #include <Types.h> /*----------------------------*/ /*----------------------------*/ #endif /********************************************************/ #if defined(__UNIX__) || defined( __DOS__ ) || defined(__OS2__) || defined(__PM__) /*----------------------------*/ /* FarProc and FarData */ /*----------------------------*/ /*----------------------------*/ #endif /***************************************************************************** ** ** Standard GHC Definitions ** *****************************************************************************/ #ifdef __MOTO__ #define __NATIVE__ MOTO #else #define __NATIVE__ INTEL #endif //typedef HANDLE FD* PHANDLE; // definitions of portable data types (numbers and characters) typedef SIGNED char inT8; typedef unsigned char uinT8; typedef short inT16; typedef unsigned short uinT16; typedef int inT32; typedef unsigned int uinT32; #if (_MSC_VER >= 1200) //%%% vkr for VC 6.0 typedef INT64 inT64; typedef UINT64 uinT64; #else typedef long long int inT64; typedef unsigned long long int uinT64; #endif //%%% vkr for VC 6.0 typedef float FLOAT32; typedef double FLOAT64; typedef unsigned char BOOL8; #define INT32FORMAT "%d" #define INT64FORMAT "%lld" #define MAX_INT8 0x7f #define MAX_INT16 0x7fff #define MAX_INT32 0x7fffffff #define MAX_UINT8 0xff #define MAX_UINT16 0xffff #define MAX_UINT32 0xffffffff #define MAX_FLOAT32 ((float)3.40282347e+38) #define MIN_INT8 0x80 #define MIN_INT16 0x8000 #define MIN_INT32 static_cast<int>(0x80000000) #define MIN_UINT8 0x00 #define MIN_UINT16 0x0000 #define MIN_UINT32 0x00000000 #define MIN_FLOAT32 ((float)1.17549435e-38) // Defines #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #ifndef NULL #define NULL 0L #endif // Return true if x is within tolerance of y template<class T> bool NearlyEqual(T x, T y, T tolerance) { T diff = x - y; return diff <= tolerance && -diff <= tolerance; } #endif
C++
/********************************************************************** * File: clst.h (Formerly clist.h) * Description: CONS cell list module include file. * Author: Phil Cheatle * Created: Mon Jan 28 08:33:13 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef CLST_H #define CLST_H #include <stdio.h> #include "host.h" #include "serialis.h" #include "lsterr.h" class CLIST_ITERATOR; /********************************************************************** * CLASS - CLIST_LINK * * Generic link class for singly linked CONS cell lists * * Note: No destructor - elements are assumed to be destroyed EITHER after * they have been extracted from a list OR by the CLIST destructor which * walks the list. **********************************************************************/ class DLLSYM CLIST_LINK { friend class CLIST_ITERATOR; friend class CLIST; CLIST_LINK *next; void *data; public: CLIST_LINK() { //constructor data = next = NULL; } CLIST_LINK( //copy constructor const CLIST_LINK &) { //dont copy link data = next = NULL; } void operator= ( //dont copy links const CLIST_LINK &) { data = next = NULL; } }; /********************************************************************** * CLASS - CLIST * * Generic list class for singly linked CONS cell lists **********************************************************************/ class DLLSYM CLIST { friend class CLIST_ITERATOR; CLIST_LINK *last; //End of list //(Points to head) CLIST_LINK *First() { // return first return last != NULL ? last->next : NULL; } public: CLIST() { //constructor last = NULL; } ~CLIST () { //destructor shallow_clear(); } void internal_deep_clear ( //destroy all links void (*zapper) (void *)); //ptr to zapper functn void shallow_clear(); //clear list but dont //delete data elements bool empty() const { //is list empty? return !last; } bool singleton() const { return last != NULL ? (last == last->next) : false; } void shallow_copy( //dangerous!! CLIST *from_list) { //beware destructors!! last = from_list->last; } void assign_to_sublist( //to this list CLIST_ITERATOR *start_it, //from list start CLIST_ITERATOR *end_it); //from list end inT32 length() const; //# elements in list void sort ( //sort elements int comparator ( //comparison routine const void *, const void *)); // Assuming list has been sorted already, insert new_data to // keep the list sorted according to the same comparison function. // Comparision function is the same as used by sort, i.e. uses double // indirection. Time is O(1) to add to beginning or end. // Time is linear to add pre-sorted items to an empty list. // If unique, then don't add duplicate entries. // Returns true if the element was added to the list. bool add_sorted(int comparator(const void*, const void*), bool unique, void* new_data); // Assuming that the minuend and subtrahend are already sorted with // the same comparison function, shallow clears this and then copies // the set difference minuend - subtrahend to this, being the elements // of minuend that do not compare equal to anything in subtrahend. // If unique is true, any duplicates in minuend are also eliminated. void set_subtract(int comparator(const void*, const void*), bool unique, CLIST* minuend, CLIST* subtrahend); }; /*********************************************************************** * CLASS - CLIST_ITERATOR * * Generic iterator class for singly linked lists with embedded links **********************************************************************/ class DLLSYM CLIST_ITERATOR { friend void CLIST::assign_to_sublist(CLIST_ITERATOR *, CLIST_ITERATOR *); CLIST *list; //List being iterated CLIST_LINK *prev; //prev element CLIST_LINK *current; //current element CLIST_LINK *next; //next element BOOL8 ex_current_was_last; //current extracted //was end of list BOOL8 ex_current_was_cycle_pt; //current extracted //was cycle point CLIST_LINK *cycle_pt; //point we are cycling //the list to. BOOL8 started_cycling; //Have we moved off //the start? CLIST_LINK *extract_sublist( //from this current... CLIST_ITERATOR *other_it); //to other current public: CLIST_ITERATOR() { //constructor list = NULL; } //unassigned list CLIST_ITERATOR( //constructor CLIST *list_to_iterate); void set_to_list( //change list CLIST *list_to_iterate); void add_after_then_move( //add after current & void *new_data); //move to new void add_after_stay_put( //add after current & void *new_data); //stay at current void add_before_then_move( //add before current & void *new_data); //move to new void add_before_stay_put( //add before current & void *new_data); //stay at current void add_list_after( //add a list & CLIST *list_to_add); //stay at current void add_list_before( //add a list & CLIST *list_to_add); //move to it 1st item void *data() { //get current data #ifndef NDEBUG if (!list) NO_LIST.error ("CLIST_ITERATOR::data", ABORT, NULL); if (!current) NULL_DATA.error ("CLIST_ITERATOR::data", ABORT, NULL); #endif return current->data; } void *data_relative( //get data + or - ... inT8 offset); //offset from current void *forward(); //move to next element void *extract(); //remove from list void *move_to_first(); //go to start of list void *move_to_last(); //go to end of list void mark_cycle_pt(); //remember current BOOL8 empty() { //is list empty? #ifndef NDEBUG if (!list) NO_LIST.error ("CLIST_ITERATOR::empty", ABORT, NULL); #endif return list->empty (); } BOOL8 current_extracted() { //current extracted? return !current; } BOOL8 at_first(); //Current is first? BOOL8 at_last(); //Current is last? BOOL8 cycled_list(); //Completed a cycle? void add_to_end( //add at end & void *new_data); //dont move void exchange( //positions of 2 links CLIST_ITERATOR *other_it); //other iterator inT32 length(); //# elements in list void sort ( //sort elements int comparator ( //comparison routine const void *, const void *)); }; /*********************************************************************** * CLIST_ITERATOR::set_to_list * * (Re-)initialise the iterator to point to the start of the list_to_iterate * over. **********************************************************************/ inline void CLIST_ITERATOR::set_to_list( //change list CLIST *list_to_iterate) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::set_to_list", ABORT, NULL); if (!list_to_iterate) BAD_PARAMETER.error ("CLIST_ITERATOR::set_to_list", ABORT, "list_to_iterate is NULL"); #endif list = list_to_iterate; prev = list->last; current = list->First (); next = current != NULL ? current->next : NULL; cycle_pt = NULL; //await explicit set started_cycling = FALSE; ex_current_was_last = FALSE; ex_current_was_cycle_pt = FALSE; } /*********************************************************************** * CLIST_ITERATOR::CLIST_ITERATOR * * CONSTRUCTOR - set iterator to specified list; **********************************************************************/ inline CLIST_ITERATOR::CLIST_ITERATOR(CLIST *list_to_iterate) { set_to_list(list_to_iterate); } /*********************************************************************** * CLIST_ITERATOR::add_after_then_move * * Add a new element to the list after the current element and move the * iterator to the new element. **********************************************************************/ inline void CLIST_ITERATOR::add_after_then_move( // element to add void *new_data) { CLIST_LINK *new_element; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_after_then_move", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_after_then_move", ABORT, NULL); if (!new_data) BAD_PARAMETER.error ("CLIST_ITERATOR::add_after_then_move", ABORT, "new_data is NULL"); #endif new_element = new CLIST_LINK; new_element->data = new_data; if (list->empty ()) { new_element->next = new_element; list->last = new_element; prev = next = new_element; } else { new_element->next = next; if (current) { //not extracted current->next = new_element; prev = current; if (current == list->last) list->last = new_element; } else { //current extracted prev->next = new_element; if (ex_current_was_last) list->last = new_element; if (ex_current_was_cycle_pt) cycle_pt = new_element; } } current = new_element; } /*********************************************************************** * CLIST_ITERATOR::add_after_stay_put * * Add a new element to the list after the current element but do not move * the iterator to the new element. **********************************************************************/ inline void CLIST_ITERATOR::add_after_stay_put( // element to add void *new_data) { CLIST_LINK *new_element; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_after_stay_put", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_after_stay_put", ABORT, NULL); if (!new_data) BAD_PARAMETER.error ("CLIST_ITERATOR::add_after_stay_put", ABORT, "new_data is NULL"); #endif new_element = new CLIST_LINK; new_element->data = new_data; if (list->empty ()) { new_element->next = new_element; list->last = new_element; prev = next = new_element; ex_current_was_last = FALSE; current = NULL; } else { new_element->next = next; if (current) { //not extracted current->next = new_element; if (prev == current) prev = new_element; if (current == list->last) list->last = new_element; } else { //current extracted prev->next = new_element; if (ex_current_was_last) { list->last = new_element; ex_current_was_last = FALSE; } } next = new_element; } } /*********************************************************************** * CLIST_ITERATOR::add_before_then_move * * Add a new element to the list before the current element and move the * iterator to the new element. **********************************************************************/ inline void CLIST_ITERATOR::add_before_then_move( // element to add void *new_data) { CLIST_LINK *new_element; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_before_then_move", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_before_then_move", ABORT, NULL); if (!new_data) BAD_PARAMETER.error ("CLIST_ITERATOR::add_before_then_move", ABORT, "new_data is NULL"); #endif new_element = new CLIST_LINK; new_element->data = new_data; if (list->empty ()) { new_element->next = new_element; list->last = new_element; prev = next = new_element; } else { prev->next = new_element; if (current) { //not extracted new_element->next = current; next = current; } else { //current extracted new_element->next = next; if (ex_current_was_last) list->last = new_element; if (ex_current_was_cycle_pt) cycle_pt = new_element; } } current = new_element; } /*********************************************************************** * CLIST_ITERATOR::add_before_stay_put * * Add a new element to the list before the current element but dont move the * iterator to the new element. **********************************************************************/ inline void CLIST_ITERATOR::add_before_stay_put( // element to add void *new_data) { CLIST_LINK *new_element; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_before_stay_put", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_before_stay_put", ABORT, NULL); if (!new_data) BAD_PARAMETER.error ("CLIST_ITERATOR::add_before_stay_put", ABORT, "new_data is NULL"); #endif new_element = new CLIST_LINK; new_element->data = new_data; if (list->empty ()) { new_element->next = new_element; list->last = new_element; prev = next = new_element; ex_current_was_last = TRUE; current = NULL; } else { prev->next = new_element; if (current) { //not extracted new_element->next = current; if (next == current) next = new_element; } else { //current extracted new_element->next = next; if (ex_current_was_last) list->last = new_element; } prev = new_element; } } /*********************************************************************** * CLIST_ITERATOR::add_list_after * * Insert another list to this list after the current element but dont move the * iterator. **********************************************************************/ inline void CLIST_ITERATOR::add_list_after(CLIST *list_to_add) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_list_after", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_list_after", ABORT, NULL); if (!list_to_add) BAD_PARAMETER.error ("CLIST_ITERATOR::add_list_after", ABORT, "list_to_add is NULL"); #endif if (!list_to_add->empty ()) { if (list->empty ()) { list->last = list_to_add->last; prev = list->last; next = list->First (); ex_current_was_last = TRUE; current = NULL; } else { if (current) { //not extracted current->next = list_to_add->First (); if (current == list->last) list->last = list_to_add->last; list_to_add->last->next = next; next = current->next; } else { //current extracted prev->next = list_to_add->First (); if (ex_current_was_last) { list->last = list_to_add->last; ex_current_was_last = FALSE; } list_to_add->last->next = next; next = prev->next; } } list_to_add->last = NULL; } } /*********************************************************************** * CLIST_ITERATOR::add_list_before * * Insert another list to this list before the current element. Move the * iterator to the start of the inserted elements * iterator. **********************************************************************/ inline void CLIST_ITERATOR::add_list_before(CLIST *list_to_add) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_list_before", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_list_before", ABORT, NULL); if (!list_to_add) BAD_PARAMETER.error ("CLIST_ITERATOR::add_list_before", ABORT, "list_to_add is NULL"); #endif if (!list_to_add->empty ()) { if (list->empty ()) { list->last = list_to_add->last; prev = list->last; current = list->First (); next = current->next; ex_current_was_last = FALSE; } else { prev->next = list_to_add->First (); if (current) { //not extracted list_to_add->last->next = current; } else { //current extracted list_to_add->last->next = next; if (ex_current_was_last) list->last = list_to_add->last; if (ex_current_was_cycle_pt) cycle_pt = prev->next; } current = prev->next; next = current->next; } list_to_add->last = NULL; } } /*********************************************************************** * CLIST_ITERATOR::extract * * Do extraction by removing current from the list, deleting the cons cell * and returning the data to the caller, but NOT updating the iterator. (So * that any calling loop can do this.) The iterator's current points to * NULL. If the data is to be deleted, this is the callers responsibility. **********************************************************************/ inline void *CLIST_ITERATOR::extract() { void *extracted_data; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::extract", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::extract", ABORT, NULL); if (!current) //list empty or //element extracted NULL_CURRENT.error ("CLIST_ITERATOR::extract", ABORT, NULL); #endif if (list->singleton()) { // Special case where we do need to change the iterator. prev = next = list->last = NULL; } else { prev->next = next; //remove from list if (current == list->last) { list->last = prev; ex_current_was_last = TRUE; } else { ex_current_was_last = FALSE; } } // Always set ex_current_was_cycle_pt so an add/forward will work in a loop. ex_current_was_cycle_pt = (current == cycle_pt) ? TRUE : FALSE; extracted_data = current->data; delete(current); //destroy CONS cell current = NULL; return extracted_data; } /*********************************************************************** * CLIST_ITERATOR::move_to_first() * * Move current so that it is set to the start of the list. * Return data just in case anyone wants it. **********************************************************************/ inline void *CLIST_ITERATOR::move_to_first() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::move_to_first", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::move_to_first", ABORT, NULL); #endif current = list->First (); prev = list->last; next = current != NULL ? current->next : NULL; return current != NULL ? current->data : NULL; } /*********************************************************************** * CLIST_ITERATOR::mark_cycle_pt() * * Remember the current location so that we can tell whether we've returned * to this point later. * * If the current point is deleted either now, or in the future, the cycle * point will be set to the next item which is set to current. This could be * by a forward, add_after_then_move or add_after_then_move. **********************************************************************/ inline void CLIST_ITERATOR::mark_cycle_pt() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::mark_cycle_pt", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::mark_cycle_pt", ABORT, NULL); #endif if (current) cycle_pt = current; else ex_current_was_cycle_pt = TRUE; started_cycling = FALSE; } /*********************************************************************** * CLIST_ITERATOR::at_first() * * Are we at the start of the list? * **********************************************************************/ inline BOOL8 CLIST_ITERATOR::at_first() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::at_first", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::at_first", ABORT, NULL); #endif //we're at a deleted return ((list->empty ()) || (current == list->First ()) || ((current == NULL) && (prev == list->last) && //NON-last pt between !ex_current_was_last)); //first and last } /*********************************************************************** * CLIST_ITERATOR::at_last() * * Are we at the end of the list? * **********************************************************************/ inline BOOL8 CLIST_ITERATOR::at_last() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::at_last", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::at_last", ABORT, NULL); #endif //we're at a deleted return ((list->empty ()) || (current == list->last) || ((current == NULL) && (prev == list->last) && //last point between ex_current_was_last)); //first and last } /*********************************************************************** * CLIST_ITERATOR::cycled_list() * * Have we returned to the cycle_pt since it was set? * **********************************************************************/ inline BOOL8 CLIST_ITERATOR::cycled_list() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::cycled_list", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::cycled_list", ABORT, NULL); #endif return ((list->empty ()) || ((current == cycle_pt) && started_cycling)); } /*********************************************************************** * CLIST_ITERATOR::length() * * Return the length of the list * **********************************************************************/ inline inT32 CLIST_ITERATOR::length() { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::length", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::length", ABORT, NULL); #endif return list->length (); } /*********************************************************************** * CLIST_ITERATOR::sort() * * Sort the elements of the list, then reposition at the start. * **********************************************************************/ inline void CLIST_ITERATOR::sort ( //sort elements int comparator ( //comparison routine const void *, const void *)) { #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::sort", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::sort", ABORT, NULL); #endif list->sort (comparator); move_to_first(); } /*********************************************************************** * CLIST_ITERATOR::add_to_end * * Add a new element to the end of the list without moving the iterator. * This is provided because a single linked list cannot move to the last as * the iterator couldn't set its prev pointer. Adding to the end is * essential for implementing queues. **********************************************************************/ inline void CLIST_ITERATOR::add_to_end( // element to add void *new_data) { CLIST_LINK *new_element; #ifndef NDEBUG if (!this) NULL_OBJECT.error ("CLIST_ITERATOR::add_to_end", ABORT, NULL); if (!list) NO_LIST.error ("CLIST_ITERATOR::add_to_end", ABORT, NULL); if (!new_data) BAD_PARAMETER.error ("CLIST_ITERATOR::add_to_end", ABORT, "new_data is NULL"); #endif if (this->at_last ()) { this->add_after_stay_put (new_data); } else { if (this->at_first ()) { this->add_before_stay_put (new_data); list->last = prev; } else { //Iteratr is elsewhere new_element = new CLIST_LINK; new_element->data = new_data; new_element->next = list->last->next; list->last->next = new_element; list->last = new_element; } } } /*********************************************************************** QUOTE_IT MACRO DEFINITION =========================== Replace <parm> with "<parm>". <parm> may be an arbitrary number of tokens ***********************************************************************/ #define QUOTE_IT( parm ) #parm /*********************************************************************** CLISTIZE( CLASSNAME ) MACRO DEFINITION ====================================== CLASSNAME is assumed to be the name of a class to be used in a CONS list NOTE: Because we dont use virtual functions in the list code, the list code will NOT work correctly for classes derived from this. The macro generates: - An element deletion function: CLASSNAME##_c1_zapper - An element copier function: CLASSNAME##_c1_copier - A CLIST subclass: CLASSNAME##_CLIST - A CLIST_ITERATOR subclass: CLASSNAME##_C_IT NOTE: Generated names do NOT clash with those generated by ELISTIZE, ELIST2ISE and CLIST2IZE Two macros are provided: CLISTIZE and CLISTIZEH The ...IZEH macros just define the class names for use in .h files The ...IZE macros define the code use in .c files ***********************************************************************/ /*********************************************************************** CLISTIZEH( CLASSNAME ) MACRO CLISTIZEH is a concatenation of 3 fragments CLISTIZEH_A, CLISTIZEH_B and CLISTIZEH_C. ***********************************************************************/ #define CLISTIZEH_A( CLASSNAME ) \ \ extern DLLSYM void CLASSNAME##_c1_zapper( /*delete a link*/ \ void* link); /*link to delete*/ \ \ extern DLLSYM void* CLASSNAME##_c1_copier( /*deep copy a link*/ \ void* old_element); /*source link */ #define CLISTIZEH_B( CLASSNAME ) \ \ /*********************************************************************** \ * CLASS - CLASSNAME##_CLIST \ * \ * List class for class CLASSNAME \ * \ **********************************************************************/ \ \ class DLLSYM CLASSNAME##_CLIST : public CLIST \ { \ public: \ CLASSNAME##_CLIST():CLIST() {} \ /* constructor */ \ \ CLASSNAME##_CLIST( /* dont construct */ \ const CLASSNAME##_CLIST&) /*by initial assign*/ \ { DONT_CONSTRUCT_LIST_BY_COPY.error( QUOTE_IT( CLASSNAME##_CLIST ), \ ABORT, NULL ); } \ \ void deep_clear() /* delete elements */ \ { CLIST::internal_deep_clear( &CLASSNAME##_c1_zapper ); } \ \ void operator=( /* prevent assign */ \ const CLASSNAME##_CLIST&) \ { DONT_ASSIGN_LISTS.error( QUOTE_IT( CLASSNAME##_CLIST ), \ ABORT, NULL ); } #define CLISTIZEH_C( CLASSNAME ) \ \ }; \ \ \ \ /*********************************************************************** \ * CLASS - CLASSNAME##_C_IT \ * \ * Iterator class for class CLASSNAME##_CLIST \ * \ * Note: We don't need to coerce pointers to member functions input \ * parameters as these are automatically converted to the type of the base \ * type. ("A ptr to a class may be converted to a pointer to a public base \ * class of that class") \ **********************************************************************/ \ \ class DLLSYM CLASSNAME##_C_IT : public CLIST_ITERATOR \ { \ public: \ CLASSNAME##_C_IT():CLIST_ITERATOR(){} \ \ CLASSNAME##_C_IT( \ CLASSNAME##_CLIST* list):CLIST_ITERATOR(list){} \ \ CLASSNAME* data() \ { return (CLASSNAME*) CLIST_ITERATOR::data(); } \ \ CLASSNAME* data_relative( \ inT8 offset) \ { return (CLASSNAME*) CLIST_ITERATOR::data_relative( offset ); } \ \ CLASSNAME* forward() \ { return (CLASSNAME*) CLIST_ITERATOR::forward(); } \ \ CLASSNAME* extract() \ { return (CLASSNAME*) CLIST_ITERATOR::extract(); } \ \ CLASSNAME* move_to_first() \ { return (CLASSNAME*) CLIST_ITERATOR::move_to_first(); } \ \ CLASSNAME* move_to_last() \ { return (CLASSNAME*) CLIST_ITERATOR::move_to_last(); } \ }; #define CLISTIZEH( CLASSNAME ) \ \ CLISTIZEH_A( CLASSNAME ) \ \ CLISTIZEH_B( CLASSNAME ) \ \ CLISTIZEH_C( CLASSNAME ) /*********************************************************************** CLISTIZE( CLASSNAME ) MACRO ***********************************************************************/ #define CLISTIZE( CLASSNAME ) \ \ /*********************************************************************** \ * CLASSNAME##_c1_zapper \ * \ * A function which can delete a CLASSNAME element. This is passed to the \ * generic deep_clear list member function so that when a list is cleared the \ * elements on the list are properly destroyed from the base class, even \ * though we dont use a virtual destructor function. \ **********************************************************************/ \ \ DLLSYM void CLASSNAME##_c1_zapper( /*delete a link*/ \ void* link) /*link to delete*/ \ { \ delete (CLASSNAME *) link; \ } \ #endif
C++
/********************************************************************** * File: serialis.h (Formerly serialmac.h) * Description: Inline routines and macros for serialisation functions * Author: Phil Cheatle * Created: Tue Oct 08 08:33:12 BST 1991 * * (C) Copyright 1990, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/ #ifndef SERIALIS_H #define SERIALIS_H #include <stdlib.h> #include <string.h> #include <stdio.h> #include "host.h" template <typename T> class GenericVector; class STRING; /*********************************************************************** QUOTE_IT MACRO DEFINITION =========================== Replace <parm> with "<parm>". <parm> may be an arbitrary number of tokens ***********************************************************************/ #define QUOTE_IT( parm ) #parm namespace tesseract { // Function to read a GenericVector<char> from a whole file. // Returns false on failure. typedef bool (*FileReader)(const STRING& filename, GenericVector<char>* data); // Function to write a GenericVector<char> to a whole file. // Returns false on failure. typedef bool (*FileWriter)(const GenericVector<char>& data, const STRING& filename); // Simple file class. // Allows for portable file input from memory and from foreign file systems. class TFile { public: TFile(); ~TFile(); // All the Open methods load the whole file into memory for reading. // Opens a file with a supplied reader, or NULL to use the default. // Note that mixed read/write is not supported. bool Open(const STRING& filename, FileReader reader); // From an existing memory buffer. bool Open(const char* data, int size); // From an open file and an end offset. bool Open(FILE* fp, inT64 end_offset); // Reads a line like fgets. Returns NULL on EOF, otherwise buffer. // Reads at most buffer_size bytes, including '\0' terminator, even if // the line is longer. Does nothing if buffer_size <= 0. // To use fscanf use FGets and sscanf. char* FGets(char* buffer, int buffer_size); // Replicates fread, returning the number of items read. int FRead(void* buffer, int size, int count); // Resets the TFile as if it has been Opened, but nothing read. // Only allowed while reading! void Rewind(); // Open for writing. Either supply a non-NULL data with OpenWrite before // calling FWrite, (no close required), or supply a NULL data to OpenWrite // and call CloseWrite to write to a file after the FWrites. void OpenWrite(GenericVector<char>* data); bool CloseWrite(const STRING& filename, FileWriter writer); // Replicates fwrite, returning the number of items written. // To use fprintf, use snprintf and FWrite. int FWrite(const void* buffer, int size, int count); private: // The number of bytes used so far. int offset_; // The buffered data from the file. GenericVector<char>* data_; // True if the data_ pointer is owned by *this. bool data_is_owned_; // True if the TFile is open for writing. bool is_writing_; }; } // namespace tesseract. #endif
C++
/////////////////////////////////////////////////////////////////////// // File: UnicityTable.h // Description: a class to uniquify objects, manipulating them using integers // ids. // Author: Samuel Charron // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #ifndef TESSERACT_CCUTIL_UNICITY_TABLE_H_ #define TESSERACT_CCUTIL_UNICITY_TABLE_H_ #include "tesscallback.h" #include "errcode.h" #include "genericvector.h" // A class to uniquify objects, manipulating them using integers ids. // T requirements: // operator= to add an element // default-constructible: allocating the internal table will call the default // constructor. template <typename T> class UnicityTable { public: UnicityTable(); /// Clear the structures and deallocate internal structures. ~UnicityTable(); /// Reserve some memory. If there is size or more elements, the table will /// then allocate size * 2 elements. void reserve(int size); /// Return the size used. int size() const; /// Return the object from an id. const T &get(int id) const; // Return the pointer to an object with the given id. T *get_mutable(int id); /// Return the id of the T object. /// This method NEEDS a compare_callback to be passed to /// set_compare_callback. int get_id(T object) const; /// Return true if T is in the table bool contains(T object) const; /// Return true if the id is valid T contains_id(int id) const; /// Add an element in the table int push_back(T object); /// Add a callback to be called to delete the elements when the table took /// their ownership. void set_clear_callback(TessCallback1<T>* cb); /// Add a callback to be called to compare the elements when needed (contains, /// get_id, ...) void set_compare_callback(TessResultCallback2<bool, T const &, T const &>* cb); /// Clear the table, calling the callback function if any. /// All the owned Callbacks are also deleted. /// If you don't want the Callbacks to be deleted, before calling clear, set /// the callback to NULL. void clear(); /// This method clear the current object, then, does a shallow copy of /// its argument, and finally invalidate its argument. void move(UnicityTable<T>* from); /// Read/Write the table to a file. This does _NOT_ read/write the callbacks. /// The Callback given must be permanent since they will be called more than /// once. The given callback will be deleted at the end. /// Returns false on read/write error. bool write(FILE* f, TessResultCallback2<bool, FILE*, T const &>* cb) const; /// swap is used to switch the endianness. bool read(FILE* f, TessResultCallback3<bool, FILE*, T*, bool>* cb, bool swap); private: GenericVector<T> table_; // Mutable because Run method is not const mutable TessResultCallback2<bool, T const &, T const &>* compare_cb_; }; template <typename T> class UnicityTableEqEq : public UnicityTable<T> { public: UnicityTableEqEq() { UnicityTable<T>::set_compare_callback( NewPermanentTessCallback(tesseract::cmp_eq<T>)); } }; template <typename T> UnicityTable<T>::UnicityTable() : compare_cb_(0) { } template <typename T> UnicityTable<T>::~UnicityTable() { clear(); } template <typename T> int UnicityTable<T>::size() const{ return table_.size(); } // Reserve some memory. If there is size or more elements, the table will // then allocate size * 2 elements. template <typename T> void UnicityTable<T>::reserve(int size) { table_.reserve(size); } // Return the object from an id. template <typename T> const T &UnicityTable<T>::get(int id) const { return table_.get(id); } // Returns the pointer to the object with the given id. template <typename T> T *UnicityTable<T>::get_mutable(int id) { return &(table_.get(id)); } // Return true if the id is valid template <typename T> T UnicityTable<T>::contains_id(int id) const { return table_.contains_index(id); } // Return the id of the T object. template <typename T> int UnicityTable<T>::get_id(T object) const { return table_.get_index(object); } // Return true if T is in the table template <typename T> bool UnicityTable<T>::contains(T object) const { return get_id(object) != -1; } // Add an element in the table template <typename T> int UnicityTable<T>::push_back(T object) { int idx = get_id(object); if (idx == -1) { idx = table_.push_back(object); } return idx; } // Add a callback to be called to delete the elements when the table took // their ownership. template <typename T> void UnicityTable<T>::set_clear_callback(TessCallback1<T>* cb) { table_.set_clear_callback(cb); } // Add a callback to be called to delete the elements when the table took // their ownership. template <typename T> void UnicityTable<T>::set_compare_callback(TessResultCallback2<bool, T const &, T const &>* cb) { table_.set_compare_callback(cb); compare_cb_ = cb; } // Clear the table, calling the callback function if any. template <typename T> void UnicityTable<T>::clear() { table_.clear(); } template <typename T> bool UnicityTable<T>::write( FILE* f, TessResultCallback2<bool, FILE*, T const &>* cb) const { return table_.write(f, cb); } template <typename T> bool UnicityTable<T>::read( FILE* f, TessResultCallback3<bool, FILE*, T*, bool>* cb, bool swap) { return table_.read(f, cb, swap); } // This method clear the current object, then, does a shallow copy of // its argument, and finally invalidate its argument. template <typename T> void UnicityTable<T>::move(UnicityTable<T>* from) { table_.move(&from->table_); } #endif // TESSERACT_CCUTIL_UNICITY_TABLE_H_
C++
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: bitvector.cpp // Description: Class replacement for BITVECTOR. // Author: Ray Smith // Created: Mon Jan 10 17:45:01 PST 2011 // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "bitvector.h" #include <string.h> #include "helpers.h" #include "ndminx.h" namespace tesseract { // Fast lookup table to get the first least significant set bit in a byte. // For zero, the table has 255, but since it is a special case, most code // that uses this table will check for zero before looking up lsb_index_. const uinT8 BitVector::lsb_index_[256] = { 255, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0 }; // Fast lookup table to get the residual bits after zeroing the first (lowest) // set bit in a byte. const uinT8 BitVector::lsb_eroded_[256] = { 0, 0, 0, 0x2, 0, 0x4, 0x4, 0x6, 0, 0x8, 0x8, 0x0a, 0x08, 0x0c, 0x0c, 0x0e, 0, 0x10, 0x10, 0x12, 0x10, 0x14, 0x14, 0x16, 0x10, 0x18, 0x18, 0x1a, 0x18, 0x1c, 0x1c, 0x1e, 0, 0x20, 0x20, 0x22, 0x20, 0x24, 0x24, 0x26, 0x20, 0x28, 0x28, 0x2a, 0x28, 0x2c, 0x2c, 0x2e, 0x20, 0x30, 0x30, 0x32, 0x30, 0x34, 0x34, 0x36, 0x30, 0x38, 0x38, 0x3a, 0x38, 0x3c, 0x3c, 0x3e, 0, 0x40, 0x40, 0x42, 0x40, 0x44, 0x44, 0x46, 0x40, 0x48, 0x48, 0x4a, 0x48, 0x4c, 0x4c, 0x4e, 0x40, 0x50, 0x50, 0x52, 0x50, 0x54, 0x54, 0x56, 0x50, 0x58, 0x58, 0x5a, 0x58, 0x5c, 0x5c, 0x5e, 0x40, 0x60, 0x60, 0x62, 0x60, 0x64, 0x64, 0x66, 0x60, 0x68, 0x68, 0x6a, 0x68, 0x6c, 0x6c, 0x6e, 0x60, 0x70, 0x70, 0x72, 0x70, 0x74, 0x74, 0x76, 0x70, 0x78, 0x78, 0x7a, 0x78, 0x7c, 0x7c, 0x7e, 0, 0x80, 0x80, 0x82, 0x80, 0x84, 0x84, 0x86, 0x80, 0x88, 0x88, 0x8a, 0x88, 0x8c, 0x8c, 0x8e, 0x80, 0x90, 0x90, 0x92, 0x90, 0x94, 0x94, 0x96, 0x90, 0x98, 0x98, 0x9a, 0x98, 0x9c, 0x9c, 0x9e, 0x80, 0xa0, 0xa0, 0xa2, 0xa0, 0xa4, 0xa4, 0xa6, 0xa0, 0xa8, 0xa8, 0xaa, 0xa8, 0xac, 0xac, 0xae, 0xa0, 0xb0, 0xb0, 0xb2, 0xb0, 0xb4, 0xb4, 0xb6, 0xb0, 0xb8, 0xb8, 0xba, 0xb8, 0xbc, 0xbc, 0xbe, 0x80, 0xc0, 0xc0, 0xc2, 0xc0, 0xc4, 0xc4, 0xc6, 0xc0, 0xc8, 0xc8, 0xca, 0xc8, 0xcc, 0xcc, 0xce, 0xc0, 0xd0, 0xd0, 0xd2, 0xd0, 0xd4, 0xd4, 0xd6, 0xd0, 0xd8, 0xd8, 0xda, 0xd8, 0xdc, 0xdc, 0xde, 0xc0, 0xe0, 0xe0, 0xe2, 0xe0, 0xe4, 0xe4, 0xe6, 0xe0, 0xe8, 0xe8, 0xea, 0xe8, 0xec, 0xec, 0xee, 0xe0, 0xf0, 0xf0, 0xf2, 0xf0, 0xf4, 0xf4, 0xf6, 0xf0, 0xf8, 0xf8, 0xfa, 0xf8, 0xfc, 0xfc, 0xfe }; // Fast lookup table to give the number of set bits in a byte. const int BitVector::hamming_table_[256] = { 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8 }; BitVector::BitVector() : bit_size_(0), array_(NULL) {} BitVector::BitVector(int length) : bit_size_(length) { array_ = new uinT32[WordLength()]; SetAllFalse(); } BitVector::BitVector(const BitVector& src) : bit_size_(src.bit_size_) { array_ = new uinT32[WordLength()]; memcpy(array_, src.array_, ByteLength()); } BitVector& BitVector::operator=(const BitVector& src) { Alloc(src.bit_size_); memcpy(array_, src.array_, ByteLength()); return *this; } BitVector::~BitVector() { delete [] array_; } // Initializes the array to length * false. void BitVector::Init(int length) { Alloc(length); SetAllFalse(); } // Writes to the given file. Returns false in case of error. bool BitVector::Serialize(FILE* fp) const { if (fwrite(&bit_size_, sizeof(bit_size_), 1, fp) != 1) return false; int wordlen = WordLength(); if (static_cast<int>(fwrite(array_, sizeof(*array_), wordlen, fp)) != wordlen) return false; return true; } // Reads from the given file. Returns false in case of error. // If swap is true, assumes a big/little-endian swap is needed. bool BitVector::DeSerialize(bool swap, FILE* fp) { uinT32 new_bit_size; if (fread(&new_bit_size, sizeof(new_bit_size), 1, fp) != 1) return false; if (swap) { ReverseN(&new_bit_size, sizeof(new_bit_size)); } Alloc(new_bit_size); int wordlen = WordLength(); if (static_cast<int>(fread(array_, sizeof(*array_), wordlen, fp)) != wordlen) return false; if (swap) { for (int i = 0; i < wordlen; ++i) ReverseN(&array_[i], sizeof(array_[i])); } return true; } void BitVector::SetAllFalse() { memset(array_, 0, ByteLength()); } void BitVector::SetAllTrue() { memset(array_, ~0, ByteLength()); } // Returns the index of the next set bit after the given index. // Useful for quickly iterating through the set bits in a sparse vector. int BitVector::NextSetBit(int prev_bit) const { // Move on to the next bit. int next_bit = prev_bit + 1; if (next_bit >= bit_size_) return -1; // Check the remains of the word containing the next_bit first. int next_word = WordIndex(next_bit); int bit_index = next_word * kBitFactor; int word_end = bit_index + kBitFactor; uinT32 word = array_[next_word]; uinT8 byte = word & 0xff; while (bit_index < word_end) { if (bit_index + 8 > next_bit && byte != 0) { while (bit_index + lsb_index_[byte] < next_bit && byte != 0) byte = lsb_eroded_[byte]; if (byte != 0) return bit_index + lsb_index_[byte]; } word >>= 8; bit_index += 8; byte = word & 0xff; } // next_word didn't contain a 1, so find the next word with set bit. ++next_word; int wordlen = WordLength(); while (next_word < wordlen && (word = array_[next_word]) == 0) { ++next_word; bit_index += kBitFactor; } if (bit_index >= bit_size_) return -1; // Find the first non-zero byte within the word. while ((word & 0xff) == 0) { word >>= 8; bit_index += 8; } return bit_index + lsb_index_[word & 0xff]; } // Returns the number of set bits in the vector. int BitVector::NumSetBits() const { int wordlen = WordLength(); int total_bits = 0; for (int w = 0; w < wordlen; ++w) { uinT32 word = array_[w]; for (int i = 0; i < 4; ++i) { total_bits += hamming_table_[word & 0xff]; word >>= 8; } } return total_bits; } // Logical in-place operations on whole bit vectors. Tries to do something // sensible if they aren't the same size, but they should be really. void BitVector::operator|=(const BitVector& other) { int length = MIN(WordLength(), other.WordLength()); for (int w = 0; w < length; ++w) array_[w] |= other.array_[w]; } void BitVector::operator&=(const BitVector& other) { int length = MIN(WordLength(), other.WordLength()); for (int w = 0; w < length; ++w) array_[w] &= other.array_[w]; for (int w = WordLength() - 1; w >= length; --w) array_[w] = 0; } void BitVector::operator^=(const BitVector& other) { int length = MIN(WordLength(), other.WordLength()); for (int w = 0; w < length; ++w) array_[w] ^= other.array_[w]; } // Set subtraction *this = v1 - v2. void BitVector::SetSubtract(const BitVector& v1, const BitVector& v2) { Alloc(v1.size()); int length = MIN(v1.WordLength(), v2.WordLength()); for (int w = 0; w < length; ++w) array_[w] = v1.array_[w] ^ (v1.array_[w] & v2.array_[w]); for (int w = WordLength() - 1; w >= length; --w) array_[w] = v1.array_[w]; } // Allocates memory for a vector of the given length. // Reallocates if the array is a different size, larger or smaller. void BitVector::Alloc(int length) { int initial_wordlength = WordLength(); bit_size_ = length; int new_wordlength = WordLength(); if (new_wordlength != initial_wordlength) { delete [] array_; array_ = new uinT32[new_wordlength]; } } } // namespace tesseract.
C++
// Copyright 2006 Google Inc. // All Rights Reserved. // Author: renn // // The fscanf, vfscanf and creat functions are implemented so that their // functionality is mostly like their stdio counterparts. However, currently // these functions do not use any buffering, making them rather slow. // File streams are thus processed one character at a time. // Although the implementations of the scanf functions do lack a few minor // features, they should be sufficient for their use in tesseract. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <ctype.h> #include <math.h> #include <stdarg.h> #include <stddef.h> #include <string.h> #include <limits.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "scanutils.h" #include "tprintf.h" // workaround for "'off_t' was not declared in this scope" with -std=c++11 #if !defined(off_t) && !defined(__APPLE__) && !defined(__CYGWIN__) typedef long off_t; #endif // off_t enum Flags { FL_SPLAT = 0x01, // Drop the value, do not assign FL_INV = 0x02, // Character-set with inverse FL_WIDTH = 0x04, // Field width specified FL_MINUS = 0x08, // Negative number }; enum Ranks { RANK_CHAR = -2, RANK_SHORT = -1, RANK_INT = 0, RANK_LONG = 1, RANK_LONGLONG = 2, RANK_PTR = INT_MAX // Special value used for pointers }; const enum Ranks kMinRank = RANK_CHAR; const enum Ranks kMaxRank = RANK_LONGLONG; const enum Ranks kIntMaxRank = RANK_LONGLONG; const enum Ranks kSizeTRank = RANK_LONG; const enum Ranks kPtrDiffRank = RANK_LONG; enum Bail { BAIL_NONE = 0, // No error condition BAIL_EOF, // Hit EOF BAIL_ERR // Conversion mismatch }; // Helper functions ------------------------------------------------------------ inline size_t LongBit() { return CHAR_BIT * sizeof(long); } static inline int SkipSpace(FILE *s) { int p; while (isspace(p = fgetc(s))); ungetc(p, s); // Make sure next char is available for reading return p; } static inline void SetBit(unsigned long *bitmap, unsigned int bit) { bitmap[bit/LongBit()] |= 1UL << (bit%LongBit()); } static inline int TestBit(unsigned long *bitmap, unsigned int bit) { return static_cast<int>(bitmap[bit/LongBit()] >> (bit%LongBit())) & 1; } static inline int DigitValue(int ch, int base) { if (ch >= '0' && ch <= '9') { if (base >= 10 || ch <= '7') return ch-'0'; } else if (ch >= 'A' && ch <= 'Z' && base == 16) { return ch-'A'+10; } else if (ch >= 'a' && ch <= 'z' && base == 16) { return ch-'a'+10; } return -1; } // IO (re-)implementations ----------------------------------------------------- uintmax_t streamtoumax(FILE* s, int base) { int minus = 0; uintmax_t v = 0; int d, c = 0; for (c = fgetc(s); isspace(static_cast<unsigned char>(c)) && (c != EOF); c = fgetc(s)) {} // Single optional + or - if (c == '-' || c == '+') { minus = (c == '-'); c = fgetc(s); } // Assign correct base if (base == 0) { if (c == '0') { c = fgetc(s); if (c == 'x' || c == 'X') { base = 16; c = fgetc(s); } else { base = 8; } } } else if (base == 16) { if (c == '0') { c = fgetc(s); if (c == 'x' || c == 'X') c = fgetc(s); } } // Actual number parsing for (; (c != EOF) && (d = DigitValue(c, base)) >= 0; c = fgetc(s)) v = v*base + d; ungetc(c, s); return minus ? -v : v; } double streamtofloat(FILE* s) { int minus = 0; int v = 0; int d, c = 0; int k = 1; int w = 0; for (c = fgetc(s); isspace(static_cast<unsigned char>(c)) && (c != EOF); c = fgetc(s)); // Single optional + or - if (c == '-' || c == '+') { minus = (c == '-'); c = fgetc(s); } // Actual number parsing for (; c != EOF && (d = DigitValue(c, 10)) >= 0; c = fgetc(s)) v = v*10 + d; if (c == '.') { for (c = fgetc(s); c != EOF && (d = DigitValue(c, 10)) >= 0; c = fgetc(s)) { w = w*10 + d; k *= 10; } } double f = static_cast<double>(v) + static_cast<double>(w) / static_cast<double>(k); if (c == 'e' || c == 'E') { c = fgetc(s); int expsign = 1; if (c == '-' || c == '+') { expsign = (c == '-') ? -1 : 1; c = fgetc(s); } int exponent = 0; for (; (c != EOF) && (d = DigitValue(c, 10)) >= 0; c = fgetc(s)) { exponent = exponent * 10 + d; } exponent *= expsign; f *= pow(10.0, static_cast<double>(exponent)); } ungetc(c, s); return minus ? -f : f; } double strtofloat(const char* s) { int minus = 0; int v = 0; int d; int k = 1; int w = 0; while(*s && isspace(static_cast<unsigned char>(*s))) s++; // Single optional + or - if (*s == '-' || *s == '+') { minus = (*s == '-'); s++; } // Actual number parsing for (; *s && (d = DigitValue(*s, 10)) >= 0; s++) v = v*10 + d; if (*s == '.') { for (++s; *s && (d = DigitValue(*s, 10)) >= 0; s++) { w = w*10 + d; k *= 10; } } if (*s == 'e' || *s == 'E') tprintf("WARNING: Scientific Notation not supported!"); double f = static_cast<double>(v) + static_cast<double>(w) / static_cast<double>(k); return minus ? -f : f; } static int tvfscanf(FILE* stream, const char *format, va_list ap); int tfscanf(FILE* stream, const char *format, ...) { va_list ap; int rv; va_start(ap, format); rv = tvfscanf(stream, format, ap); va_end(ap); return rv; } #ifdef EMBEDDED int fscanf(FILE* stream, const char *format, ...) { va_list ap; int rv; va_start(ap, format); rv = tvfscanf(stream, format, ap); va_end(ap); return rv; } int vfscanf(FILE* stream, const char *format, ...) { va_list ap; int rv; va_start(ap, format); rv = tvfscanf(stream, format, ap); va_end(ap); return rv; } #endif static int tvfscanf(FILE* stream, const char *format, va_list ap) { const char *p = format; char ch; int q = 0; uintmax_t val = 0; int rank = RANK_INT; // Default rank unsigned int width = UINT_MAX; int base; int flags = 0; enum { ST_NORMAL, // Ground state ST_FLAGS, // Special flags ST_WIDTH, // Field width ST_MODIFIERS, // Length or conversion modifiers ST_MATCH_INIT, // Initial state of %[ sequence ST_MATCH, // Main state of %[ sequence ST_MATCH_RANGE, // After - in a %[ sequence } state = ST_NORMAL; char *sarg = NULL; // %s %c or %[ string argument enum Bail bail = BAIL_NONE; int sign; int converted = 0; // Successful conversions unsigned long matchmap[((1 << CHAR_BIT)+(CHAR_BIT * sizeof(long) - 1)) / (CHAR_BIT * sizeof(long))]; int matchinv = 0; // Is match map inverted? unsigned char range_start = 0; off_t start_off = ftell(stream); // Skip leading spaces SkipSpace(stream); while ((ch = *p++) && !bail) { switch (state) { case ST_NORMAL: if (ch == '%') { state = ST_FLAGS; flags = 0; rank = RANK_INT; width = UINT_MAX; } else if (isspace(static_cast<unsigned char>(ch))) { SkipSpace(stream); } else { if (fgetc(stream) != ch) bail = BAIL_ERR; // Match failure } break; case ST_FLAGS: if (ch == '*') { flags |= FL_SPLAT; } else if ('0' <= ch && ch <= '9') { width = (ch-'0'); state = ST_WIDTH; flags |= FL_WIDTH; } else { state = ST_MODIFIERS; p--; // Process this character again } break; case ST_WIDTH: if (ch >= '0' && ch <= '9') { width = width*10+(ch-'0'); } else { state = ST_MODIFIERS; p--; // Process this character again } break; case ST_MODIFIERS: switch (ch) { // Length modifiers - nonterminal sequences case 'h': rank--; // Shorter rank break; case 'l': rank++; // Longer rank break; case 'j': rank = kIntMaxRank; break; case 'z': rank = kSizeTRank; break; case 't': rank = kPtrDiffRank; break; case 'L': case 'q': rank = RANK_LONGLONG; // long double/long long break; default: // Output modifiers - terminal sequences state = ST_NORMAL; // Next state will be normal if (rank < kMinRank) // Canonicalize rank rank = kMinRank; else if (rank > kMaxRank) rank = kMaxRank; switch (ch) { case 'P': // Upper case pointer case 'p': // Pointer rank = RANK_PTR; base = 0; sign = 0; goto scan_int; case 'i': // Base-independent integer base = 0; sign = 1; goto scan_int; case 'd': // Decimal integer base = 10; sign = 1; goto scan_int; case 'o': // Octal integer base = 8; sign = 0; goto scan_int; case 'u': // Unsigned decimal integer base = 10; sign = 0; goto scan_int; case 'x': // Hexadecimal integer case 'X': base = 16; sign = 0; goto scan_int; case 'n': // Number of characters consumed val = ftell(stream) - start_off; goto set_integer; scan_int: q = SkipSpace(stream); if ( q <= 0 ) { bail = BAIL_EOF; break; } val = streamtoumax(stream, base); // fall through set_integer: if (!(flags & FL_SPLAT)) { converted++; switch(rank) { case RANK_CHAR: *va_arg(ap, unsigned char *) = static_cast<unsigned char>(val); break; case RANK_SHORT: *va_arg(ap, unsigned short *) = static_cast<unsigned short>(val); break; case RANK_INT: *va_arg(ap, unsigned int *) = static_cast<unsigned int>(val); break; case RANK_LONG: *va_arg(ap, unsigned long *) = static_cast<unsigned long>(val); break; case RANK_LONGLONG: *va_arg(ap, unsigned long long *) = static_cast<unsigned long long>(val); break; case RANK_PTR: *va_arg(ap, void **) = reinterpret_cast<void *>(static_cast<uintptr_t>(val)); break; } } break; case 'f': // Preliminary float value parsing case 'g': case 'G': case 'e': case 'E': q = SkipSpace(stream); if (q <= 0) { bail = BAIL_EOF; break; } { double fval = streamtofloat(stream); if (!(flags & FL_SPLAT)) { if (rank == RANK_INT) *va_arg(ap, float *) = static_cast<float>(fval); else if (rank == RANK_LONG) *va_arg(ap, double *) = static_cast<double>(fval); converted++; } } break; case 'c': // Character width = (flags & FL_WIDTH) ? width : 1; // Default width == 1 sarg = va_arg(ap, char *); while (width--) { if ((q = fgetc(stream)) <= 0) { bail = BAIL_EOF; break; } if (!(flags & FL_SPLAT)) { *sarg++ = q; converted++; } } break; case 's': // String { char *sp; sp = sarg = va_arg(ap, char *); while (width--) { q = fgetc(stream); if (isspace(static_cast<unsigned char>(q)) || q <= 0) { ungetc(q, stream); break; } if (!(flags & FL_SPLAT)) *sp = q; sp++; } if (sarg == sp) { bail = BAIL_EOF; } else if (!(flags & FL_SPLAT)) { *sp = '\0'; // Terminate output converted++; } else { } } break; case '[': // Character range sarg = va_arg(ap, char *); state = ST_MATCH_INIT; matchinv = 0; memset(matchmap, 0, sizeof matchmap); break; case '%': // %% sequence if (fgetc(stream) != '%' ) bail = BAIL_ERR; break; default: // Anything else bail = BAIL_ERR; // Unknown sequence break; } } break; case ST_MATCH_INIT: // Initial state for %[ match if (ch == '^' && !(flags & FL_INV)) { matchinv = 1; } else { SetBit(matchmap, static_cast<unsigned char>(ch)); state = ST_MATCH; } break; case ST_MATCH: // Main state for %[ match if (ch == ']') { goto match_run; } else if (ch == '-') { range_start = static_cast<unsigned char>(ch); state = ST_MATCH_RANGE; } else { SetBit(matchmap, static_cast<unsigned char>(ch)); } break; case ST_MATCH_RANGE: // %[ match after - if (ch == ']') { SetBit(matchmap, static_cast<unsigned char>('-')); goto match_run; } else { int i; for (i = range_start ; i < (static_cast<unsigned char>(ch)) ; i++) SetBit(matchmap, i); state = ST_MATCH; } break; match_run: // Match expression finished char* oarg = sarg; while (width) { q = fgetc(stream); unsigned char qc = static_cast<unsigned char>(q); if (q <= 0 || !(TestBit(matchmap, qc)^matchinv)) { ungetc(q, stream); break; } if (!(flags & FL_SPLAT)) *sarg = q; sarg++; } if (oarg == sarg) { bail = (q <= 0) ? BAIL_EOF : BAIL_ERR; } else if (!(flags & FL_SPLAT)) { *sarg = '\0'; converted++; } break; } } if (bail == BAIL_EOF && !converted) converted = -1; // Return EOF (-1) return converted; } #ifdef EMBEDDED int creat(const char *pathname, mode_t mode) { return open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode); } #endif // EMBEDDED
C++
/////////////////////////////////////////////////////////////////////// // File: unicharset.cpp // Description: Unicode character/ligature set class. // Author: Thomas Kielbus // Created: Wed Jun 28 17:05:01 PDT 2006 // // (C) Copyright 2006, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "unicharset.h" #include <assert.h> #include <stdio.h> #include <string.h> #include "params.h" #include "serialis.h" #include "tesscallback.h" #include "tprintf.h" #include "unichar.h" // Special character used in representing character fragments. static const char kSeparator = '|'; // Special character used in representing 'natural' character fragments. static const char kNaturalFlag = 'n'; static const int ISALPHA_MASK = 0x1; static const int ISLOWER_MASK = 0x2; static const int ISUPPER_MASK = 0x4; static const int ISDIGIT_MASK = 0x8; static const int ISPUNCTUATION_MASK = 0x10; // Y coordinate threshold for determining cap-height vs x-height. // TODO(rays) Bring the global definition down to the ccutil library level, // so this constant is relative to some other constants. static const int kMeanlineThreshold = 220; // Let C be the number of alpha chars for which all tops exceed // kMeanlineThreshold, and X the number of alpha chars for which all // tops are below kMeanlineThreshold, then if X > C * // kMinXHeightFraction and C > X * kMinCapHeightFraction or more than // half the alpha characters have upper or lower case, then the // unicharset "has x-height". const double kMinXHeightFraction = 0.25; const double kMinCapHeightFraction = 0.05; /*static */ const char* UNICHARSET::kCustomLigatures[][2] = { {"ct", "\uE003"}, // c + t -> U+E003 {"ſh", "\uE006"}, // long-s + h -> U+E006 {"ſi", "\uE007"}, // long-s + i -> U+E007 {"ſl", "\uE008"}, // long-s + l -> U+E008 {"ſſ", "\uE009"}, // long-s + long-s -> U+E009 {NULL, NULL} }; // List of strings for the SpecialUnicharCodes. Keep in sync with the enum. const char* UNICHARSET::kSpecialUnicharCodes[SPECIAL_UNICHAR_CODES_COUNT] = { " ", "Joined", "|Broken|0|1" }; UNICHARSET::UNICHAR_PROPERTIES::UNICHAR_PROPERTIES() { Init(); } // Initialize all properties to sensible default values. void UNICHARSET::UNICHAR_PROPERTIES::Init() { isalpha = false; islower = false; isupper = false; isdigit = false; ispunctuation = false; isngram = false; enabled = false; SetRangesOpen(); script_id = 0; other_case = 0; mirror = 0; normed = ""; direction = UNICHARSET::U_LEFT_TO_RIGHT; fragment = NULL; } // Sets all ranges wide open. Initialization default in case there are // no useful values available. void UNICHARSET::UNICHAR_PROPERTIES::SetRangesOpen() { min_bottom = 0; max_bottom = MAX_UINT8; min_top = 0; max_top = MAX_UINT8; min_width = 0; max_width = MAX_INT16; min_bearing = 0; max_bearing = MAX_INT16; min_advance = 0; max_advance = MAX_INT16; } // Sets all ranges to empty. Used before expanding with font-based data. void UNICHARSET::UNICHAR_PROPERTIES::SetRangesEmpty() { min_bottom = MAX_UINT8; max_bottom = 0; min_top = MAX_UINT8; max_top = 0; min_width = MAX_INT16; max_width = 0; min_bearing = MAX_INT16; max_bearing = 0; min_advance = MAX_INT16; max_advance = 0; } // Returns true if any of the top/bottom/width/bearing/advance ranges is // emtpy. bool UNICHARSET::UNICHAR_PROPERTIES::AnyRangeEmpty() const { return min_bottom > max_bottom || min_top > max_top || min_width > max_width || min_bearing > max_bearing || min_advance > max_advance; } // Expands the ranges with the ranges from the src properties. void UNICHARSET::UNICHAR_PROPERTIES::ExpandRangesFrom( const UNICHAR_PROPERTIES& src) { UpdateRange(src.min_bottom, &min_bottom, &max_bottom); UpdateRange(src.max_bottom, &min_bottom, &max_bottom); UpdateRange(src.min_top, &min_top, &max_top); UpdateRange(src.max_top, &min_top, &max_top); UpdateRange(src.min_width, &min_width, &max_width); UpdateRange(src.max_width, &min_width, &max_width); UpdateRange(src.min_bearing, &min_bearing, &max_bearing); UpdateRange(src.max_bearing, &min_bearing, &max_bearing); UpdateRange(src.min_advance, &min_advance, &max_advance); UpdateRange(src.max_advance, &min_advance, &max_advance); } // Copies the properties from src into this. void UNICHARSET::UNICHAR_PROPERTIES::CopyFrom(const UNICHAR_PROPERTIES& src) { // Apart from the fragment, everything else can be done with a default copy. CHAR_FRAGMENT* saved_fragment = fragment; *this = src; // Bitwise copy. fragment = saved_fragment; } UNICHARSET::UNICHARSET() : unichars(NULL), ids(), size_used(0), size_reserved(0), script_table(NULL), script_table_size_used(0), null_script("NULL") { clear(); for (int i = 0; i < SPECIAL_UNICHAR_CODES_COUNT; ++i) { unichar_insert(kSpecialUnicharCodes[i]); if (i == UNICHAR_JOINED) set_isngram(i, true); } } UNICHARSET::~UNICHARSET() { clear(); } void UNICHARSET::reserve(int unichars_number) { if (unichars_number > size_reserved) { UNICHAR_SLOT* unichars_new = new UNICHAR_SLOT[unichars_number]; for (int i = 0; i < size_used; ++i) unichars_new[i] = unichars[i]; for (int j = size_used; j < unichars_number; ++j) { unichars_new[j].properties.script_id = add_script(null_script); } delete[] unichars; unichars = unichars_new; size_reserved = unichars_number; } } const UNICHAR_ID UNICHARSET::unichar_to_id(const char* const unichar_repr) const { return ids.contains(unichar_repr) ? ids.unichar_to_id(unichar_repr) : INVALID_UNICHAR_ID; } const UNICHAR_ID UNICHARSET::unichar_to_id(const char* const unichar_repr, int length) const { assert(length > 0 && length <= UNICHAR_LEN); return ids.contains(unichar_repr, length) ? ids.unichar_to_id(unichar_repr, length) : INVALID_UNICHAR_ID; } // Return the minimum number of bytes that matches a legal UNICHAR_ID, // while leaving the rest of the string encodable. Returns 0 if the // beginning of the string is not encodable. // WARNING: this function now encodes the whole string for precision. // Use encode_string in preference to repeatedly calling step. int UNICHARSET::step(const char* str) const { GenericVector<UNICHAR_ID> encoding; GenericVector<char> lengths; encode_string(str, true, &encoding, &lengths, NULL); if (encoding.empty() || encoding[0] == INVALID_UNICHAR_ID) return 0; return lengths[0]; } // As step except constraining the search to unichar-ids that are // self-normalized. Unlike step, does not encode the whole string, therefore // should be used on short strings (like those obtained from // get_normed_unichar.) int UNICHARSET::normed_step(const char* str) const { // Find the length of the first matching unicharset member. int length = ids.minmatch(str); if (length == 0) return 0; // Empty string or illegal char. while (length <= UNICHAR_LEN) { if (ids.contains(str, length)) { int matched_id = unichar_to_id(str, length); const GenericVector<UNICHAR_ID>& matched_norms = normed_ids(matched_id); bool good_start = matched_norms.size() == 1 && matched_norms[0] == matched_id; if (str[length] == '\0') { return good_start ? length : 0; } if (normed_step(str + length) > 0) return length; // This length works! } else if (str[length] == '\0') { return 0; // Ran out of string. } ++length; } return 0; } // Return whether the given UTF-8 string is encodable with this UNICHARSET. // If not encodable, write the first byte offset which cannot be converted // into the second (return) argument. bool UNICHARSET::encodable_string(const char *str, int *first_bad_position) const { GenericVector<UNICHAR_ID> encoding; return encode_string(str, true, &encoding, NULL, first_bad_position); } // Encodes the given UTF-8 string with this UNICHARSET. // Returns true if the encoding succeeds completely, false if there is at // least one INVALID_UNICHAR_ID in the returned encoding, but in this case // the rest of the string is still encoded. // If lengths is not NULL, then it is filled with the corresponding // byte length of each encoded UNICHAR_ID. bool UNICHARSET::encode_string(const char* str, bool give_up_on_failure, GenericVector<UNICHAR_ID>* encoding, GenericVector<char>* lengths, int* encoded_length) const { GenericVector<UNICHAR_ID> working_encoding; GenericVector<char> working_lengths; GenericVector<char> best_lengths; encoding->truncate(0); // Just in case str is empty. int str_length = strlen(str); int str_pos = 0; bool perfect = true; while (str_pos < str_length) { encode_string(str, str_pos, str_length, &working_encoding, &working_lengths, &str_pos, encoding, &best_lengths); if (str_pos < str_length) { // This is a non-match. Skip one utf-8 character. perfect = false; if (give_up_on_failure) break; int step = UNICHAR::utf8_step(str + str_pos); if (step == 0) step = 1; encoding->push_back(INVALID_UNICHAR_ID); best_lengths.push_back(step); str_pos += step; working_encoding = *encoding; working_lengths = best_lengths; } } if (lengths != NULL) *lengths = best_lengths; if (encoded_length != NULL) *encoded_length = str_pos; return perfect; } const char* const UNICHARSET::id_to_unichar(UNICHAR_ID id) const { if (id == INVALID_UNICHAR_ID) { return INVALID_UNICHAR; } ASSERT_HOST(id < this->size()); return unichars[id].representation; } const char* const UNICHARSET::id_to_unichar_ext(UNICHAR_ID id) const { if (id == INVALID_UNICHAR_ID) { return INVALID_UNICHAR; } ASSERT_HOST(id < this->size()); // Resolve from the kCustomLigatures table if this is a private encoding. if (get_isprivate(id)) { const char* ch = id_to_unichar(id); for (int i = 0; kCustomLigatures[i][0] != NULL; ++i) { if (!strcmp(ch, kCustomLigatures[i][1])) { return kCustomLigatures[i][0]; } } } // Otherwise return the stored representation. return unichars[id].representation; } // Return a STRING that reformats the utf8 str into the str followed // by its hex unicodes. STRING UNICHARSET::debug_utf8_str(const char* str) { STRING result = str; result += " ["; int step = 1; // Chop into unicodes and code each as hex. for (int i = 0; str[i] != '\0'; i += step) { char hex[sizeof(int) * 2 + 1]; step = UNICHAR::utf8_step(str + i); if (step == 0) { step = 1; sprintf(hex, "%x", str[i]); } else { UNICHAR ch(str + i, step); sprintf(hex, "%x", ch.first_uni()); } result += hex; result += " "; } result += "]"; return result; } // Return a STRING containing debug information on the unichar, including // the id_to_unichar, its hex unicodes and the properties. STRING UNICHARSET::debug_str(UNICHAR_ID id) const { if (id == INVALID_UNICHAR_ID) return STRING(id_to_unichar(id)); const CHAR_FRAGMENT *fragment = this->get_fragment(id); if (fragment) { return fragment->to_string(); } const char* str = id_to_unichar(id); STRING result = debug_utf8_str(str); // Append a for lower alpha, A for upper alpha, and x if alpha but neither. if (get_isalpha(id)) { if (get_islower(id)) result += "a"; else if (get_isupper(id)) result += "A"; else result += "x"; } // Append 0 if a digit. if (get_isdigit(id)) { result += "0"; } // Append p is a punctuation symbol. if (get_ispunctuation(id)) { result += "p"; } return result; } // Sets the normed_ids vector from the normed string. normed_ids is not // stored in the file, and needs to be set when the UNICHARSET is loaded. void UNICHARSET::set_normed_ids(UNICHAR_ID unichar_id) { unichars[unichar_id].properties.normed_ids.truncate(0); int length = unichars[unichar_id].properties.normed.length(); const char* normed_str = unichars[unichar_id].properties.normed.string(); int step = 0; for (int offset = 0; offset < length; offset+= step) { step = normed_step(normed_str + offset); if (step == 0) { unichars[unichar_id].properties.normed_ids.truncate(0); unichars[unichar_id].properties.normed_ids.push_back(unichar_id); break; } int normed_id = unichar_to_id(normed_str + offset, step); ASSERT_HOST(normed_id >= 0); unichars[unichar_id].properties.normed_ids.push_back(normed_id); } } // Returns whether the unichar id represents a unicode value in the private use // area. We use this range only internally to represent uncommon ligatures // (eg. 'ct') that do not have regular unicode values. bool UNICHARSET::get_isprivate(UNICHAR_ID unichar_id) const { UNICHAR uc(id_to_unichar(unichar_id), -1); int uni = uc.first_uni(); return (uni >= 0xE000 && uni <= 0xF8FF); } // Sets all ranges to empty, so they can be expanded to set the values. void UNICHARSET::set_ranges_empty() { for (int id = 0; id < size_used; ++id) { unichars[id].properties.SetRangesEmpty(); } } // Sets all the properties for this unicharset given a src unicharset with // everything set. The unicharsets don't have to be the same, and graphemes // are correctly accounted for. void UNICHARSET::PartialSetPropertiesFromOther(int start_index, const UNICHARSET& src) { for (int ch = start_index; ch < size_used; ++ch) { const char* utf8 = id_to_unichar(ch); UNICHAR_PROPERTIES properties; if (src.GetStrProperties(utf8, &properties)) { // Setup the script_id, other_case, and mirror properly. const char* script = src.get_script_from_script_id(properties.script_id); properties.script_id = add_script(script); const char* other_case = src.id_to_unichar(properties.other_case); if (contains_unichar(other_case)) { properties.other_case = unichar_to_id(other_case); } else { properties.other_case = ch; } const char* mirror_str = src.id_to_unichar(properties.mirror); if (contains_unichar(mirror_str)) { properties.mirror = unichar_to_id(mirror_str); } else { properties.mirror = ch; } unichars[ch].properties.CopyFrom(properties); set_normed_ids(ch); } else { tprintf("Failed to get properties for index %d = %s\n", ch, utf8); } } } // Expands the tops and bottoms and widths for this unicharset given a // src unicharset with ranges in it. The unicharsets don't have to be the // same, and graphemes are correctly accounted for. void UNICHARSET::ExpandRangesFromOther(const UNICHARSET& src) { for (int ch = 0; ch < size_used; ++ch) { const char* utf8 = id_to_unichar(ch); UNICHAR_PROPERTIES properties; if (src.GetStrProperties(utf8, &properties)) { // Expand just the ranges from properties. unichars[ch].properties.ExpandRangesFrom(properties); } } } // Makes this a copy of src. Clears this completely first, so the automatic // ids will not be present in this if not in src. Does NOT reorder the set! void UNICHARSET::CopyFrom(const UNICHARSET& src) { clear(); for (int ch = 0; ch < src.size_used; ++ch) { const UNICHAR_PROPERTIES& src_props = src.unichars[ch].properties; const char* utf8 = src.id_to_unichar(ch); unichar_insert(utf8); unichars[ch].properties.ExpandRangesFrom(src_props); } // Set properties, including mirror and other_case, WITHOUT reordering // the unicharset. PartialSetPropertiesFromOther(0, src); } // For each id in src, if it does not occur in this, add it, as in // SetPropertiesFromOther, otherwise expand the ranges, as in // ExpandRangesFromOther. void UNICHARSET::AppendOtherUnicharset(const UNICHARSET& src) { int initial_used = size_used; for (int ch = 0; ch < src.size_used; ++ch) { const UNICHAR_PROPERTIES& src_props = src.unichars[ch].properties; const char* utf8 = src.id_to_unichar(ch); if (strcmp(utf8, " ") != 0 && src_props.AnyRangeEmpty()) { // Only use fully valid entries. tprintf("Bad properties for index %d, char %s: " "%d,%d %d,%d %d,%d %d,%d %d,%d\n", ch, utf8, src_props.min_bottom, src_props.max_bottom, src_props.min_top, src_props.max_top, src_props.min_width, src_props.max_width, src_props.min_bearing, src_props.max_bearing, src_props.min_advance, src_props.max_advance); continue; } int id = size_used; if (contains_unichar(utf8)) { id = unichar_to_id(utf8); // Just expand current ranges. unichars[id].properties.ExpandRangesFrom(src_props); } else { unichar_insert(utf8); unichars[id].properties.SetRangesEmpty(); } } // Set properties, including mirror and other_case, WITHOUT reordering // the unicharset. PartialSetPropertiesFromOther(initial_used, src); } // Returns true if the acceptable ranges of the tops of the characters do // not overlap, making their x-height calculations distinct. bool UNICHARSET::SizesDistinct(UNICHAR_ID id1, UNICHAR_ID id2) const { int overlap = MIN(unichars[id1].properties.max_top, unichars[id2].properties.max_top) - MAX(unichars[id1].properties.min_top, unichars[id2].properties.min_top); return overlap <= 0; } // Internal recursive version of encode_string above. // Seeks to encode the given string as a sequence of UNICHAR_IDs such that // each UNICHAR_ID uses the least possible part of the utf8 str. // It does this by depth-first tail recursion on increasing length matches // to the UNICHARSET, saving the first encountered result that encodes the // maximum total length of str. It stops on a failure to encode to make // the overall process of encoding a partially failed string more efficient. // See unicharset.h for definition of the args. void UNICHARSET::encode_string(const char* str, int str_index, int str_length, GenericVector<UNICHAR_ID>* encoding, GenericVector<char>* lengths, int* best_total_length, GenericVector<UNICHAR_ID>* best_encoding, GenericVector<char>* best_lengths) const { if (str_index > *best_total_length) { // This is the best result so far. *best_total_length = str_index; *best_encoding = *encoding; if (best_lengths != NULL) *best_lengths = *lengths; } if (str_index == str_length) return; int encoding_index = encoding->size(); // Find the length of the first matching unicharset member. int length = ids.minmatch(str + str_index); if (length == 0 || str_index + length > str_length) return; do { if (ids.contains(str + str_index, length)) { // Successful encoding so far. UNICHAR_ID id = ids.unichar_to_id(str + str_index, length); encoding->push_back(id); lengths->push_back(length); encode_string(str, str_index + length, str_length, encoding, lengths, best_total_length, best_encoding, best_lengths); if (*best_total_length == str_length) return; // Tail recursion success! // Failed with that length, truncate back and try again. encoding->truncate(encoding_index); lengths->truncate(encoding_index); } int step = UNICHAR::utf8_step(str + str_index + length); if (step == 0) step = 1; length += step; } while (length <= UNICHAR_LEN && str_index + length <= str_length); } // Gets the properties for a grapheme string, combining properties for // multiple characters in a meaningful way where possible. // Returns false if no valid match was found in the unicharset. // NOTE that script_id, mirror, and other_case refer to this unicharset on // return and will need translation if the target unicharset is different. bool UNICHARSET::GetStrProperties(const char* utf8_str, UNICHAR_PROPERTIES* props) const { props->Init(); props->SetRangesEmpty(); props->min_advance = 0; props->max_advance = 0; int total_unicodes = 0; GenericVector<UNICHAR_ID> encoding; if (!encode_string(utf8_str, true, &encoding, NULL, NULL)) return false; // Some part was invalid. for (int i = 0; i < encoding.size(); ++i) { int id = encoding[i]; const UNICHAR_PROPERTIES& src_props = unichars[id].properties; // Logical OR all the bools. if (src_props.isalpha) props->isalpha = true; if (src_props.islower) props->islower = true; if (src_props.isupper) props->isupper = true; if (src_props.isdigit) props->isdigit = true; if (src_props.ispunctuation) props->ispunctuation = true; if (src_props.isngram) props->isngram = true; if (src_props.enabled) props->enabled = true; // Min/max the tops/bottoms. UpdateRange(src_props.min_bottom, &props->min_bottom, &props->max_bottom); UpdateRange(src_props.max_bottom, &props->min_bottom, &props->max_bottom); UpdateRange(src_props.min_top, &props->min_top, &props->max_top); UpdateRange(src_props.max_top, &props->min_top, &props->max_top); int bearing = ClipToRange(props->min_advance + src_props.min_bearing, -MAX_INT16, MAX_INT16); if (total_unicodes == 0 || bearing < props->min_bearing) props->min_bearing = bearing; bearing = ClipToRange(props->max_advance + src_props.max_bearing, -MAX_INT16, MAX_INT16); if (total_unicodes == 0 || bearing < props->max_bearing) props->max_bearing = bearing; props->min_advance = ClipToRange(props->min_advance + src_props.min_advance, -MAX_INT16, MAX_INT16); props->max_advance = ClipToRange(props->max_advance + src_props.max_advance, -MAX_INT16, MAX_INT16); // With a single width, just use the widths stored in the unicharset. props->min_width = src_props.min_width; props->max_width = src_props.max_width; // Use the first script id, other_case, mirror, direction. // Note that these will need translation, except direction. if (total_unicodes == 0) { props->script_id = src_props.script_id; props->other_case = src_props.other_case; props->mirror = src_props.mirror; props->direction = src_props.direction; } // The normed string for the compound character is the concatenation of // the normed versions of the individual characters. props->normed += src_props.normed; ++total_unicodes; } if (total_unicodes > 1) { // Estimate the total widths from the advance - bearing. props->min_width = ClipToRange(props->min_advance - props->max_bearing, -MAX_INT16, MAX_INT16); props->max_width = ClipToRange(props->max_advance - props->min_bearing, -MAX_INT16, MAX_INT16); } return total_unicodes > 0; } // TODO(rays) clean-up the order of functions to match unicharset.h. unsigned int UNICHARSET::get_properties(UNICHAR_ID id) const { unsigned int properties = 0; if (this->get_isalpha(id)) properties |= ISALPHA_MASK; if (this->get_islower(id)) properties |= ISLOWER_MASK; if (this->get_isupper(id)) properties |= ISUPPER_MASK; if (this->get_isdigit(id)) properties |= ISDIGIT_MASK; if (this->get_ispunctuation(id)) properties |= ISPUNCTUATION_MASK; return properties; } char UNICHARSET::get_chartype(UNICHAR_ID id) const { if (this->get_isupper(id)) return 'A'; if (this->get_islower(id)) return 'a'; if (this->get_isalpha(id)) return 'x'; if (this->get_isdigit(id)) return '0'; if (this->get_ispunctuation(id)) return 'p'; return 0; } void UNICHARSET::unichar_insert(const char* const unichar_repr) { if (!ids.contains(unichar_repr)) { if (strlen(unichar_repr) > UNICHAR_LEN) { fprintf(stderr, "Utf8 buffer too big, size=%d for %s\n", int(strlen(unichar_repr)), unichar_repr); return; } if (size_used == size_reserved) { if (size_used == 0) reserve(8); else reserve(2 * size_used); } strcpy(unichars[size_used].representation, unichar_repr); this->set_script(size_used, null_script); // If the given unichar_repr represents a fragmented character, set // fragment property to a pointer to CHAR_FRAGMENT class instance with // information parsed from the unichar representation. Use the script // of the base unichar for the fragmented character if possible. CHAR_FRAGMENT *frag = CHAR_FRAGMENT::parse_from_string(unichar_repr); this->unichars[size_used].properties.fragment = frag; if (frag != NULL && this->contains_unichar(frag->get_unichar())) { this->unichars[size_used].properties.script_id = this->get_script(frag->get_unichar()); } this->unichars[size_used].properties.enabled = true; ids.insert(unichar_repr, size_used); ++size_used; } } bool UNICHARSET::contains_unichar(const char* const unichar_repr) const { return ids.contains(unichar_repr); } bool UNICHARSET::contains_unichar(const char* const unichar_repr, int length) const { if (length == 0) { return false; } return ids.contains(unichar_repr, length); } bool UNICHARSET::eq(UNICHAR_ID unichar_id, const char* const unichar_repr) const { return strcmp(this->id_to_unichar(unichar_id), unichar_repr) == 0; } bool UNICHARSET::save_to_string(STRING *str) const { const int kFileBufSize = 1024; char buffer[kFileBufSize + 1]; snprintf(buffer, kFileBufSize, "%d\n", this->size()); *str = buffer; for (UNICHAR_ID id = 0; id < this->size(); ++id) { int min_bottom, max_bottom, min_top, max_top; get_top_bottom(id, &min_bottom, &max_bottom, &min_top, &max_top); int min_width, max_width; get_width_range(id, &min_width, &max_width); int min_bearing, max_bearing; get_bearing_range(id, &min_bearing, &max_bearing); int min_advance, max_advance; get_advance_range(id, &min_advance, &max_advance); unsigned int properties = this->get_properties(id); if (strcmp(this->id_to_unichar(id), " ") == 0) { snprintf(buffer, kFileBufSize, "%s %x %s %d\n", "NULL", properties, this->get_script_from_script_id(this->get_script(id)), this->get_other_case(id)); } else { snprintf(buffer, kFileBufSize, "%s %x %d,%d,%d,%d,%d,%d,%d,%d,%d,%d %s %d %d %d %s\t# %s\n", this->id_to_unichar(id), properties, min_bottom, max_bottom, min_top, max_top, min_width, max_width, min_bearing, max_bearing, min_advance, max_advance, this->get_script_from_script_id(this->get_script(id)), this->get_other_case(id), this->get_direction(id), this->get_mirror(id), this->get_normed_unichar(id), this->debug_str(id).string()); } *str += buffer; } return true; } // TODO(rays) Replace with TFile everywhere. class InMemoryFilePointer { public: InMemoryFilePointer(const char *memory, int mem_size) : memory_(memory), fgets_ptr_(memory), mem_size_(mem_size) { } char *fgets(char *orig_dst, int size) { const char *src_end = memory_ + mem_size_; char *dst_end = orig_dst + size - 1; if (size < 1) { return fgets_ptr_ < src_end ? orig_dst : NULL; } char *dst = orig_dst; char ch = '^'; while (fgets_ptr_ < src_end && dst < dst_end && ch != '\n') { ch = *dst++ = *fgets_ptr_++; } *dst = 0; return (dst == orig_dst) ? NULL : orig_dst; } private: const char *memory_; const char *fgets_ptr_; const int mem_size_; }; bool UNICHARSET::load_from_inmemory_file( const char *memory, int mem_size, bool skip_fragments) { InMemoryFilePointer mem_fp(memory, mem_size); TessResultCallback2<char *, char *, int> *fgets_cb = NewPermanentTessCallback(&mem_fp, &InMemoryFilePointer::fgets); bool success = load_via_fgets(fgets_cb, skip_fragments); delete fgets_cb; return success; } class LocalFilePointer { public: LocalFilePointer(FILE *stream) : fp_(stream) {} char *fgets(char *dst, int size) { return ::fgets(dst, size, fp_); } private: FILE *fp_; }; bool UNICHARSET::load_from_file(FILE *file, bool skip_fragments) { LocalFilePointer lfp(file); TessResultCallback2<char *, char *, int> *fgets_cb = NewPermanentTessCallback(&lfp, &LocalFilePointer::fgets); bool success = load_via_fgets(fgets_cb, skip_fragments); delete fgets_cb; return success; } bool UNICHARSET::load_from_file(tesseract::TFile *file, bool skip_fragments) { TessResultCallback2<char *, char *, int> *fgets_cb = NewPermanentTessCallback(file, &tesseract::TFile::FGets); bool success = load_via_fgets(fgets_cb, skip_fragments); delete fgets_cb; return success; } bool UNICHARSET::load_via_fgets( TessResultCallback2<char *, char *, int> *fgets_cb, bool skip_fragments) { int unicharset_size; char buffer[256]; this->clear(); if (fgets_cb->Run(buffer, sizeof(buffer)) == NULL || sscanf(buffer, "%d", &unicharset_size) != 1) { return false; } this->reserve(unicharset_size); for (UNICHAR_ID id = 0; id < unicharset_size; ++id) { char unichar[256]; unsigned int properties; char script[64]; strcpy(script, null_script); int min_bottom = 0; int max_bottom = MAX_UINT8; int min_top = 0; int max_top = MAX_UINT8; int min_width = 0; int max_width = MAX_INT16; int min_bearing = 0; int max_bearing = MAX_INT16; int min_advance = 0; int max_advance = MAX_INT16; // TODO(eger): check that this default it ok // after enabling BiDi iterator for Arabic+Cube. int direction = UNICHARSET::U_LEFT_TO_RIGHT; UNICHAR_ID other_case = id; UNICHAR_ID mirror = id; char normed[64]; int v = -1; if (fgets_cb->Run(buffer, sizeof (buffer)) == NULL || ((v = sscanf(buffer, "%s %x %d,%d,%d,%d,%d,%d,%d,%d,%d,%d %63s %d %d %d %63s", unichar, &properties, &min_bottom, &max_bottom, &min_top, &max_top, &min_width, &max_width, &min_bearing, &max_bearing, &min_advance, &max_advance, script, &other_case, &direction, &mirror, normed)) != 17 && (v = sscanf(buffer, "%s %x %d,%d,%d,%d,%d,%d,%d,%d,%d,%d %63s %d %d %d", unichar, &properties, &min_bottom, &max_bottom, &min_top, &max_top, &min_width, &max_width, &min_bearing, &max_bearing, &min_advance, &max_advance, script, &other_case, &direction, &mirror)) != 16 && (v = sscanf(buffer, "%s %x %d,%d,%d,%d %63s %d %d %d", unichar, &properties, &min_bottom, &max_bottom, &min_top, &max_top, script, &other_case, &direction, &mirror)) != 10 && (v = sscanf(buffer, "%s %x %d,%d,%d,%d %63s %d", unichar, &properties, &min_bottom, &max_bottom, &min_top, &max_top, script, &other_case)) != 8 && (v = sscanf(buffer, "%s %x %63s %d", unichar, &properties, script, &other_case)) != 4 && (v = sscanf(buffer, "%s %x %63s", unichar, &properties, script)) != 3 && (v = sscanf(buffer, "%s %x", unichar, &properties)) != 2)) { return false; } // Skip fragments if needed. CHAR_FRAGMENT *frag = NULL; if (skip_fragments && (frag = CHAR_FRAGMENT::parse_from_string(unichar))) { int num_pieces = frag->get_total(); delete frag; // Skip multi-element fragments, but keep singles like UNICHAR_BROKEN in. if (num_pieces > 1) continue; } // Insert unichar into unicharset and set its properties. if (strcmp(unichar, "NULL") == 0) this->unichar_insert(" "); else this->unichar_insert(unichar); this->set_isalpha(id, properties & ISALPHA_MASK); this->set_islower(id, properties & ISLOWER_MASK); this->set_isupper(id, properties & ISUPPER_MASK); this->set_isdigit(id, properties & ISDIGIT_MASK); this->set_ispunctuation(id, properties & ISPUNCTUATION_MASK); this->set_isngram(id, false); this->set_script(id, script); this->unichars[id].properties.enabled = true; this->set_top_bottom(id, min_bottom, max_bottom, min_top, max_top); this->set_width_range(id, min_width, max_width); this->set_bearing_range(id, min_bearing, max_bearing); this->set_advance_range(id, min_advance, max_advance); this->set_direction(id, static_cast<UNICHARSET::Direction>(direction)); ASSERT_HOST(other_case < unicharset_size); this->set_other_case(id, (v>3) ? other_case : id); ASSERT_HOST(mirror < unicharset_size); this->set_mirror(id, (v>8) ? mirror : id); this->set_normed(id, (v>16) ? normed : unichar); } post_load_setup(); return true; } // Sets up internal data after loading the file, based on the char // properties. Called from load_from_file, but also needs to be run // during set_unicharset_properties. void UNICHARSET::post_load_setup() { // Number of alpha chars with the case property minus those without, // in order to determine that half the alpha chars have case. int net_case_alphas = 0; int x_height_alphas = 0; int cap_height_alphas = 0; top_bottom_set_ = false; for (UNICHAR_ID id = 0; id < size_used; ++id) { int min_bottom = 0; int max_bottom = MAX_UINT8; int min_top = 0; int max_top = MAX_UINT8; get_top_bottom(id, &min_bottom, &max_bottom, &min_top, &max_top); if (min_top > 0) top_bottom_set_ = true; if (get_isalpha(id)) { if (get_islower(id) || get_isupper(id)) ++net_case_alphas; else --net_case_alphas; if (min_top < kMeanlineThreshold && max_top < kMeanlineThreshold) ++x_height_alphas; else if (min_top > kMeanlineThreshold && max_top > kMeanlineThreshold) ++cap_height_alphas; } set_normed_ids(id); } script_has_upper_lower_ = net_case_alphas > 0; script_has_xheight_ = script_has_upper_lower_ || (x_height_alphas > cap_height_alphas * kMinXHeightFraction && cap_height_alphas > x_height_alphas * kMinCapHeightFraction); null_sid_ = get_script_id_from_name(null_script); ASSERT_HOST(null_sid_ == 0); common_sid_ = get_script_id_from_name("Common"); latin_sid_ = get_script_id_from_name("Latin"); cyrillic_sid_ = get_script_id_from_name("Cyrillic"); greek_sid_ = get_script_id_from_name("Greek"); han_sid_ = get_script_id_from_name("Han"); hiragana_sid_ = get_script_id_from_name("Hiragana"); katakana_sid_ = get_script_id_from_name("Katakana"); // Compute default script. Use the highest-counting alpha script, that is // not the common script, as that still contains some "alphas". int* script_counts = new int[script_table_size_used]; memset(script_counts, 0, sizeof(*script_counts) * script_table_size_used); for (int id = 0; id < size_used; ++id) { if (get_isalpha(id)) { ++script_counts[get_script(id)]; } } default_sid_ = 0; for (int s = 1; s < script_table_size_used; ++s) { if (script_counts[s] > script_counts[default_sid_] && s != common_sid_) default_sid_ = s; } delete [] script_counts; } // Returns true if right_to_left scripts are significant in the unicharset, // but without being so sensitive that "universal" unicharsets containing // characters from many scripts, like orientation and script detection, // look like they are right_to_left. bool UNICHARSET::major_right_to_left() const { int ltr_count = 0; int rtl_count = 0; for (int id = 0; id < size_used; ++id) { int dir = get_direction(id); if (dir == UNICHARSET::U_LEFT_TO_RIGHT) ltr_count++; if (dir == UNICHARSET::U_RIGHT_TO_LEFT || dir == UNICHARSET::U_RIGHT_TO_LEFT_ARABIC || dir == UNICHARSET::U_ARABIC_NUMBER) rtl_count++; } return rtl_count > ltr_count; } // Set a whitelist and/or blacklist of characters to recognize. // An empty or NULL whitelist enables everything (minus any blacklist). // An empty or NULL blacklist disables nothing. // An empty or NULL blacklist has no effect. void UNICHARSET::set_black_and_whitelist(const char* blacklist, const char* whitelist, const char* unblacklist) { bool def_enabled = whitelist == NULL || whitelist[0] == '\0'; // Set everything to default for (int ch = 0; ch < size_used; ++ch) unichars[ch].properties.enabled = def_enabled; if (!def_enabled) { // Enable the whitelist. GenericVector<UNICHAR_ID> encoding; encode_string(whitelist, false, &encoding, NULL, NULL); for (int i = 0; i < encoding.size(); ++i) { if (encoding[i] != INVALID_UNICHAR_ID) unichars[encoding[i]].properties.enabled = true; } } if (blacklist != NULL && blacklist[0] != '\0') { // Disable the blacklist. GenericVector<UNICHAR_ID> encoding; encode_string(blacklist, false, &encoding, NULL, NULL); for (int i = 0; i < encoding.size(); ++i) { if (encoding[i] != INVALID_UNICHAR_ID) unichars[encoding[i]].properties.enabled = false; } } if (unblacklist != NULL && unblacklist[0] != '\0') { // Re-enable the unblacklist. GenericVector<UNICHAR_ID> encoding; encode_string(unblacklist, false, &encoding, NULL, NULL); for (int i = 0; i < encoding.size(); ++i) { if (encoding[i] != INVALID_UNICHAR_ID) unichars[encoding[i]].properties.enabled = true; } } } int UNICHARSET::add_script(const char* script) { for (int i = 0; i < script_table_size_used; ++i) { if (strcmp(script, script_table[i]) == 0) return i; } if (script_table_size_reserved == 0) { script_table_size_reserved = 8; script_table = new char*[script_table_size_reserved]; } if (script_table_size_used + 1 >= script_table_size_reserved) { char** new_script_table = new char*[script_table_size_reserved * 2]; memcpy(new_script_table, script_table, script_table_size_reserved * sizeof(char*)); delete[] script_table; script_table = new_script_table; script_table_size_reserved = 2 * script_table_size_reserved; } script_table[script_table_size_used] = new char[strlen(script) + 1]; strcpy(script_table[script_table_size_used], script); return script_table_size_used++; } // Returns the string that represents a fragment // with the given unichar, pos and total. STRING CHAR_FRAGMENT::to_string(const char *unichar, int pos, int total, bool natural) { if (total == 1) return STRING(unichar); STRING result = ""; result += kSeparator; result += unichar; char buffer[kMaxLen]; snprintf(buffer, kMaxLen, "%c%d%c%d", kSeparator, pos, natural ? kNaturalFlag : kSeparator, total); result += buffer; return result; } CHAR_FRAGMENT *CHAR_FRAGMENT::parse_from_string(const char *string) { const char *ptr = string; int len = strlen(string); if (len < kMinLen || *ptr != kSeparator) { return NULL; // this string can not represent a fragment } ptr++; // move to the next character int step = 0; while ((ptr + step) < (string + len) && *(ptr + step) != kSeparator) { step += UNICHAR::utf8_step(ptr + step); } if (step == 0 || step > UNICHAR_LEN) { return NULL; // no character for unichar or the character is too long } char unichar[UNICHAR_LEN + 1]; strncpy(unichar, ptr, step); unichar[step] = '\0'; // null terminate unichar ptr += step; // move to the next fragment separator int pos = 0; int total = 0; bool natural = false; char *end_ptr = NULL; for (int i = 0; i < 2; i++) { if (ptr > string + len || *ptr != kSeparator) { if (i == 1 && *ptr == kNaturalFlag) natural = true; else return NULL; // Failed to parse fragment representation. } ptr++; // move to the next character i == 0 ? pos = static_cast<int>(strtol(ptr, &end_ptr, 10)) : total = static_cast<int>(strtol(ptr, &end_ptr, 10)); ptr = end_ptr; } if (ptr != string + len) { return NULL; // malformed fragment representation } CHAR_FRAGMENT *fragment = new CHAR_FRAGMENT(); fragment->set_all(unichar, pos, total, natural); return fragment; } int UNICHARSET::get_script_id_from_name(const char* script_name) const { for (int i = 0; i < script_table_size_used; ++i) { if (strcmp(script_name, script_table[i]) == 0) return i; } return 0; // 0 is always the null_script }
C++
/////////////////////////////////////////////////////////////////////// // File: ambigs.cc // Description: Functions for dealing with ambiguities // (training and recognition). // Author: Daria Antonova // Created: Mon Feb 5 11:26:43 PDT 2009 // // (C) Copyright 2008, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // /////////////////////////////////////////////////////////////////////// #include "ambigs.h" #include <stdio.h> #include "helpers.h" #include "universalambigs.h" #if defined _WIN32 || defined(__CYGWIN__) #ifndef __GNUC__ #define strtok_r strtok_s #else #include "strtok_r.h" #endif /* __GNUC__ */ #endif /* _WIN32 __CYGWIN__*/ namespace tesseract { // Maximum line size: // 10 for sizes of ambigs, tabs, abmig type and newline // UNICHAR_LEN * (MAX_AMBIG_SIZE + 1) for each part of the ambig const int kMaxAmbigStringSize = UNICHAR_LEN * (MAX_AMBIG_SIZE + 1); AmbigSpec::AmbigSpec() { wrong_ngram[0] = INVALID_UNICHAR_ID; correct_fragments[0] = INVALID_UNICHAR_ID; correct_ngram_id = INVALID_UNICHAR_ID; type = NOT_AMBIG; wrong_ngram_size = 0; } ELISTIZE(AmbigSpec); // Initializes the ambigs by adding a NULL pointer to each table. void UnicharAmbigs::InitUnicharAmbigs(const UNICHARSET& unicharset, bool use_ambigs_for_adaption) { for (int i = 0; i < unicharset.size(); ++i) { replace_ambigs_.push_back(NULL); dang_ambigs_.push_back(NULL); one_to_one_definite_ambigs_.push_back(NULL); if (use_ambigs_for_adaption) { ambigs_for_adaption_.push_back(NULL); reverse_ambigs_for_adaption_.push_back(NULL); } } } // Loads the universal ambigs that are useful for any language. void UnicharAmbigs::LoadUniversal(const UNICHARSET& encoder_set, UNICHARSET* unicharset) { TFile file; if (!file.Open(kUniversalAmbigsFile, ksizeofUniversalAmbigsFile)) return; LoadUnicharAmbigs(encoder_set, &file, 0, false, unicharset); } void UnicharAmbigs::LoadUnicharAmbigs(const UNICHARSET& encoder_set, TFile *ambig_file, int debug_level, bool use_ambigs_for_adaption, UNICHARSET *unicharset) { int i, j; UnicharIdVector *adaption_ambigs_entry; if (debug_level) tprintf("Reading ambiguities\n"); int test_ambig_part_size; int replacement_ambig_part_size; // The space for buffer is allocated on the heap to avoid // GCC frame size warning. const int kBufferSize = 10 + 2 * kMaxAmbigStringSize; char *buffer = new char[kBufferSize]; char replacement_string[kMaxAmbigStringSize]; UNICHAR_ID test_unichar_ids[MAX_AMBIG_SIZE + 1]; int line_num = 0; int type = NOT_AMBIG; // Determine the version of the ambigs file. int version = 0; ASSERT_HOST(ambig_file->FGets(buffer, kBufferSize) != NULL && strlen(buffer) > 0); if (*buffer == 'v') { version = static_cast<int>(strtol(buffer+1, NULL, 10)); ++line_num; } else { ambig_file->Rewind(); } while (ambig_file->FGets(buffer, kBufferSize) != NULL) { chomp_string(buffer); if (debug_level > 2) tprintf("read line %s\n", buffer); ++line_num; if (!ParseAmbiguityLine(line_num, version, debug_level, encoder_set, buffer, &test_ambig_part_size, test_unichar_ids, &replacement_ambig_part_size, replacement_string, &type)) continue; // Construct AmbigSpec and add it to the appropriate AmbigSpec_LIST. AmbigSpec *ambig_spec = new AmbigSpec(); if (!InsertIntoTable((type == REPLACE_AMBIG) ? replace_ambigs_ : dang_ambigs_, test_ambig_part_size, test_unichar_ids, replacement_ambig_part_size, replacement_string, type, ambig_spec, unicharset)) continue; // Update one_to_one_definite_ambigs_. if (test_ambig_part_size == 1 && replacement_ambig_part_size == 1 && type == DEFINITE_AMBIG) { if (one_to_one_definite_ambigs_[test_unichar_ids[0]] == NULL) { one_to_one_definite_ambigs_[test_unichar_ids[0]] = new UnicharIdVector(); } one_to_one_definite_ambigs_[test_unichar_ids[0]]->push_back( ambig_spec->correct_ngram_id); } // Update ambigs_for_adaption_. if (use_ambigs_for_adaption) { GenericVector<UNICHAR_ID> encoding; // Silently ignore invalid strings, as before, so it is safe to use a // universal ambigs file. if (unicharset->encode_string(replacement_string, true, &encoding, NULL, NULL)) { for (i = 0; i < test_ambig_part_size; ++i) { if (ambigs_for_adaption_[test_unichar_ids[i]] == NULL) { ambigs_for_adaption_[test_unichar_ids[i]] = new UnicharIdVector(); } adaption_ambigs_entry = ambigs_for_adaption_[test_unichar_ids[i]]; for (int r = 0; r < encoding.size(); ++r) { UNICHAR_ID id_to_insert = encoding[r]; ASSERT_HOST(id_to_insert != INVALID_UNICHAR_ID); // Add the new unichar id to adaption_ambigs_entry (only if the // vector does not already contain it) keeping it in sorted order. for (j = 0; j < adaption_ambigs_entry->size() && (*adaption_ambigs_entry)[j] > id_to_insert; ++j); if (j < adaption_ambigs_entry->size()) { if ((*adaption_ambigs_entry)[j] != id_to_insert) { adaption_ambigs_entry->insert(id_to_insert, j); } } else { adaption_ambigs_entry->push_back(id_to_insert); } } } } } } delete[] buffer; // Fill in reverse_ambigs_for_adaption from ambigs_for_adaption vector. if (use_ambigs_for_adaption) { for (i = 0; i < ambigs_for_adaption_.size(); ++i) { adaption_ambigs_entry = ambigs_for_adaption_[i]; if (adaption_ambigs_entry == NULL) continue; for (j = 0; j < adaption_ambigs_entry->size(); ++j) { UNICHAR_ID ambig_id = (*adaption_ambigs_entry)[j]; if (reverse_ambigs_for_adaption_[ambig_id] == NULL) { reverse_ambigs_for_adaption_[ambig_id] = new UnicharIdVector(); } reverse_ambigs_for_adaption_[ambig_id]->push_back(i); } } } // Print what was read from the input file. if (debug_level > 1) { for (int tbl = 0; tbl < 2; ++tbl) { const UnicharAmbigsVector &print_table = (tbl == 0) ? replace_ambigs_ : dang_ambigs_; for (i = 0; i < print_table.size(); ++i) { AmbigSpec_LIST *lst = print_table[i]; if (lst == NULL) continue; if (!lst->empty()) { tprintf("%s Ambiguities for %s:\n", (tbl == 0) ? "Replaceable" : "Dangerous", unicharset->debug_str(i).string()); } AmbigSpec_IT lst_it(lst); for (lst_it.mark_cycle_pt(); !lst_it.cycled_list(); lst_it.forward()) { AmbigSpec *ambig_spec = lst_it.data(); tprintf("wrong_ngram:"); UnicharIdArrayUtils::print(ambig_spec->wrong_ngram, *unicharset); tprintf("correct_fragments:"); UnicharIdArrayUtils::print(ambig_spec->correct_fragments, *unicharset); } } } if (use_ambigs_for_adaption) { for (int vec_id = 0; vec_id < 2; ++vec_id) { const GenericVector<UnicharIdVector *> &vec = (vec_id == 0) ? ambigs_for_adaption_ : reverse_ambigs_for_adaption_; for (i = 0; i < vec.size(); ++i) { adaption_ambigs_entry = vec[i]; if (adaption_ambigs_entry != NULL) { tprintf("%sAmbigs for adaption for %s:\n", (vec_id == 0) ? "" : "Reverse ", unicharset->debug_str(i).string()); for (j = 0; j < adaption_ambigs_entry->size(); ++j) { tprintf("%s ", unicharset->debug_str( (*adaption_ambigs_entry)[j]).string()); } tprintf("\n"); } } } } } } bool UnicharAmbigs::ParseAmbiguityLine( int line_num, int version, int debug_level, const UNICHARSET &unicharset, char *buffer, int *test_ambig_part_size, UNICHAR_ID *test_unichar_ids, int *replacement_ambig_part_size, char *replacement_string, int *type) { if (version > 1) { // Simpler format is just wrong-string correct-string type\n. STRING input(buffer); GenericVector<STRING> fields; input.split(' ', &fields); if (fields.size() != 3) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } // Encode wrong-string. GenericVector<UNICHAR_ID> unichars; if (!unicharset.encode_string(fields[0].string(), true, &unichars, NULL, NULL)) { return false; } *test_ambig_part_size = unichars.size(); if (*test_ambig_part_size > MAX_AMBIG_SIZE) { if (debug_level) tprintf("Too many unichars in ambiguity on line %d\n", line_num); return false; } // Copy encoded string to output. for (int i = 0; i < unichars.size(); ++i) test_unichar_ids[i] = unichars[i]; test_unichar_ids[unichars.size()] = INVALID_UNICHAR_ID; // Encode replacement-string to check validity. if (!unicharset.encode_string(fields[1].string(), true, &unichars, NULL, NULL)) { return false; } *replacement_ambig_part_size = unichars.size(); if (*replacement_ambig_part_size > MAX_AMBIG_SIZE) { if (debug_level) tprintf("Too many unichars in ambiguity on line %d\n", line_num); return false; } if (sscanf(fields[2].string(), "%d", type) != 1) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } snprintf(replacement_string, kMaxAmbigStringSize, "%s", fields[1].string()); return true; } int i; char *token; char *next_token; if (!(token = strtok_r(buffer, kAmbigDelimiters, &next_token)) || !sscanf(token, "%d", test_ambig_part_size) || *test_ambig_part_size <= 0) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } if (*test_ambig_part_size > MAX_AMBIG_SIZE) { if (debug_level) tprintf("Too many unichars in ambiguity on line %d\n", line_num); return false; } for (i = 0; i < *test_ambig_part_size; ++i) { if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break; if (!unicharset.contains_unichar(token)) { if (debug_level) tprintf(kIllegalUnicharMsg, token); break; } test_unichar_ids[i] = unicharset.unichar_to_id(token); } test_unichar_ids[i] = INVALID_UNICHAR_ID; if (i != *test_ambig_part_size || !(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) || !sscanf(token, "%d", replacement_ambig_part_size) || *replacement_ambig_part_size <= 0) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } if (*replacement_ambig_part_size > MAX_AMBIG_SIZE) { if (debug_level) tprintf("Too many unichars in ambiguity on line %d\n", line_num); return false; } replacement_string[0] = '\0'; for (i = 0; i < *replacement_ambig_part_size; ++i) { if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) break; strcat(replacement_string, token); if (!unicharset.contains_unichar(token)) { if (debug_level) tprintf(kIllegalUnicharMsg, token); break; } } if (i != *replacement_ambig_part_size) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } if (version > 0) { // The next field being true indicates that the abiguity should // always be substituted (e.g. '' should always be changed to "). // For such "certain" n -> m ambigs tesseract will insert character // fragments for the n pieces in the unicharset. AmbigsFound() // will then replace the incorrect ngram with the character // fragments of the correct character (or ngram if m > 1). // Note that if m > 1, an ngram will be inserted into the // modified word, not the individual unigrams. Tesseract // has limited support for ngram unichar (e.g. dawg permuter). if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) || !sscanf(token, "%d", type)) { if (debug_level) tprintf(kIllegalMsg, line_num); return false; } } return true; } bool UnicharAmbigs::InsertIntoTable( UnicharAmbigsVector &table, int test_ambig_part_size, UNICHAR_ID *test_unichar_ids, int replacement_ambig_part_size, const char *replacement_string, int type, AmbigSpec *ambig_spec, UNICHARSET *unicharset) { ambig_spec->type = static_cast<AmbigType>(type); if (test_ambig_part_size == 1 && replacement_ambig_part_size == 1 && unicharset->to_lower(test_unichar_ids[0]) == unicharset->to_lower(unicharset->unichar_to_id(replacement_string))) { ambig_spec->type = CASE_AMBIG; } ambig_spec->wrong_ngram_size = UnicharIdArrayUtils::copy(test_unichar_ids, ambig_spec->wrong_ngram); // Since we need to maintain a constant number of unichar positions in // order to construct ambig_blob_choices vector in NoDangerousAmbig(), for // each n->m ambiguity we will have to place n character fragments of the // correct ngram into the corresponding positions in the vector (e.g. given // "vvvvw" and vvvv->ww we will place v and |ww|0|4 into position 0, v and // |ww|1|4 into position 1 and so on. The correct ngram is reconstructed // from fragments by dawg_permute_and_select(). // Insert the corresponding correct ngram into the unicharset. // Unicharset code assumes that the "base" ngram is inserted into // the unicharset before fragments of this ngram are inserted. unicharset->unichar_insert(replacement_string); ambig_spec->correct_ngram_id = unicharset->unichar_to_id(replacement_string); if (replacement_ambig_part_size > 1) { unicharset->set_isngram(ambig_spec->correct_ngram_id, true); } // Add the corresponding fragments of the wrong ngram to unicharset. int i; for (i = 0; i < test_ambig_part_size; ++i) { UNICHAR_ID unichar_id; if (test_ambig_part_size == 1) { unichar_id = ambig_spec->correct_ngram_id; } else { STRING frag_str = CHAR_FRAGMENT::to_string( replacement_string, i, test_ambig_part_size, false); unicharset->unichar_insert(frag_str.string()); unichar_id = unicharset->unichar_to_id(frag_str.string()); } ambig_spec->correct_fragments[i] = unichar_id; } ambig_spec->correct_fragments[i] = INVALID_UNICHAR_ID; // Add AmbigSpec for this ambiguity to the corresponding AmbigSpec_LIST. // Keep AmbigSpec_LISTs sorted by AmbigSpec.wrong_ngram. if (table[test_unichar_ids[0]] == NULL) { table[test_unichar_ids[0]] = new AmbigSpec_LIST(); } if (table[test_unichar_ids[0]]->add_sorted( AmbigSpec::compare_ambig_specs, true, ambig_spec)) return true; delete ambig_spec; return false; } } // namespace tesseract
C++