WO2024253492A1 - 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체 - Google Patents

영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체 Download PDF

Info

Publication number
WO2024253492A1
WO2024253492A1 PCT/KR2024/007915 KR2024007915W WO2024253492A1 WO 2024253492 A1 WO2024253492 A1 WO 2024253492A1 KR 2024007915 W KR2024007915 W KR 2024007915W WO 2024253492 A1 WO2024253492 A1 WO 2024253492A1
Authority
WO
WIPO (PCT)
Prior art keywords
nspt
block
transform
current block
kernel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/KR2024/007915
Other languages
English (en)
French (fr)
Inventor
구문모
임재현
김승환
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LG Electronics Inc
Original Assignee
LG Electronics Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LG Electronics Inc filed Critical LG Electronics Inc
Priority to MX2025014439A priority Critical patent/MX2025014439A/es
Priority to KR1020267000449A priority patent/KR20260035888A/ko
Priority to EP24819643.8A priority patent/EP4727124A1/en
Priority to CN202480050067.8A priority patent/CN121605636A/zh
Publication of WO2024253492A1 publication Critical patent/WO2024253492A1/ko
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/129Scanning of coding units, e.g. zig-zag scan of transform coefficients or flexible macroblock ordering [FMO]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Definitions

  • the present invention relates to a video encoding/decoding method and device, and a recording medium storing a bitstream.
  • HD High Definition
  • UHD Ultra High Definition
  • image data can be effectively compressed and transmitted or stored.
  • the present disclosure seeks to provide a method and apparatus for performing a transformation using a non-separable first-order transformation.
  • the present disclosure seeks to provide a method and apparatus for performing a transform using a reduced-dimensional non-separable first-order transform kernel.
  • the present disclosure provides a method and device for determining/signaling a non-separable transform kernel based on encoding parameters.
  • a video decoding method and device can derive transform coefficients of a current block from a bitstream, determine a non-separable primary transform (NSPT) set for the current block, determine an NSPT kernel of the current block based on the NSPT set and a transform index, perform an NSPT on the transform coefficients of the current block based on the NSPT kernel to derive residual samples of the current block, and reconstruct the current block based on the residual samples.
  • the transform index can specify any one of a plurality of NSPT kernel candidates belonging to the NSPT set.
  • the NSPT can be applied based on whether the size of the current block belongs to a group of one or more block sizes to which the NSPT can be applied.
  • the NSPT set can be determined as any one of 35 pre-defined NSPT sets.
  • the NSPT set may include three NSPT kernel candidates.
  • the group may include a block size of at least one of 4x4, 4x8, 8x4, 8x8, 16x8, 8x16, 16x4, 4x16, 8x32, or 32x8.
  • the number of transform coefficients to which the NSPT is applied may be less than or equal to 48.
  • the video encoding method and device can derive residual samples of a current block, determine a non-separable primary transform (NSPT) set for the current block, apply the NSPT to the residual samples of the current block based on any one of a plurality of NSPT kernel candidates belonging to the NSPT set, thereby derive transform coefficients of the current block, and encode a transform index specifying the transform coefficients of the current block and any one of the plurality of NSPT kernel candidates to generate a bitstream.
  • NSPT non-separable primary transform
  • the NSPT can be applied based on whether the size of the current block belongs to a group of one or more block sizes to which the NSPT can be applied.
  • a computer-readable digital storage medium having encoded video/image information stored thereon, which causes a decoding device according to the present disclosure to perform a video decoding method.
  • a computer-readable digital storage medium storing video/image information generated by a video encoding method according to the present disclosure is provided.
  • a method and device for transmitting video/image information generated by a video encoding method according to the present disclosure are provided.
  • the present disclosure can improve the performance of transformation by using a non-separable primary transformation as a primary transformation.
  • the present disclosure can improve the performance of transformation by performing the transformation using a non-separable first-order transformation kernel of reduced dimension.
  • the present disclosure can improve encoding efficiency by effectively determining and/or signaling a non-separable transform kernel based on encoding parameters.
  • FIG. 1 illustrates a video/image coding system according to the present disclosure.
  • FIG. 2 is a schematic block diagram of an encoding device to which an embodiment of the present disclosure can be applied and in which encoding of a video/image signal is performed.
  • FIG. 3 is a schematic block diagram of a decoding device to which an embodiment of the present disclosure can be applied and in which decoding of a video/image signal is performed.
  • FIG. 4 illustrates an image decoding method performed by a decoding device (300) as an embodiment according to the present disclosure.
  • FIG. 5 exemplarily illustrates an intra prediction mode and its prediction direction according to the present disclosure.
  • FIG. 6 illustrates a schematic configuration of a decoding device (300) that performs an image decoding method according to the present disclosure.
  • FIG. 7 illustrates an image encoding method performed by an encoding device (200) as an embodiment according to the present disclosure.
  • FIG. 8 illustrates a schematic configuration of an encoding device (200) that performs an image encoding method according to the present disclosure.
  • FIG. 9 illustrates an example of a content streaming system to which embodiments of the present disclosure can be applied.
  • first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are only used to distinguish one component from another.
  • the first component could be referred to as the second component, and similarly, the second component could also be referred to as the first component.
  • the term and/or includes any combination of a plurality of related described items or any item among a plurality of related described items.
  • the present disclosure relates to video/image coding.
  • the method/embodiment disclosed in this specification can be applied to a method disclosed in the versatile video coding (VVC) standard.
  • the method/embodiment disclosed in this specification can be applied to a method disclosed in the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2) or the next generation video/image coding standard (e.g., H.267 or H.268, etc.).
  • VVC versatile video coding
  • EVC essential video coding
  • AV1 AOMedia Video 1
  • AVS2 2nd generation of audio video coding standard
  • next generation video/image coding standard e.g., H.267 or H.268, etc.
  • video may mean a collection of images over time.
  • a picture generally means a unit representing one image at a specific time, and a slice/tile is a unit that constitutes a part of a picture in coding.
  • a slice/tile may include one or more CTUs (coding tree units).
  • a picture may be composed of one or more slices/tiles.
  • a tile is a rectangular area composed of multiple CTUs within a specific tile column and a specific tile row of a picture.
  • a tile column is a rectangular area of CTUs having a height equal to the height of the picture and a width specified by the syntax requirements of a picture parameter set.
  • a tile row is a rectangular area of CTUs having a height equal to the width of the picture and a width equal to the width of the picture specified by a picture parameter set. While CTUs within a tile may be arranged sequentially according to a CTU raster scan, tiles within a picture may be arranged sequentially according to a tile raster scan.
  • a slice may contain an integer number of complete tiles or an integer number of contiguous complete CTU rows within a picture that may be exclusively contained in a single NAL unit. Meanwhile, a picture may be divided into two or more subpictures. A subpicture may be a rectangular region of one or more slices within a picture.
  • a pixel or pel can mean the smallest unit that constitutes a picture (or image). Also, a 'sample' can be used as a term corresponding to a pixel.
  • a sample can generally represent a pixel or a pixel value, and can represent only a pixel/pixel value of a luminance component, or only a pixel/pixel value of a chroma component.
  • a unit may represent a basic unit of image processing.
  • a unit may include at least one of a specific region of a picture and information related to the region.
  • One unit may include one luma block and two chroma (ex. cb, cr) blocks.
  • a unit may be used interchangeably with terms such as block or area.
  • an MxN block may include a set (or array) of samples (or sample array) or transform coefficients consisting of M columns and N rows.
  • a or B can mean “only A”, “only B”, or “both A and B”. In other words, as used herein, “A or B” can be interpreted as “A and/or B”. For example, as used herein, “A, B or C” can mean “only A”, “only B”, “only C”, or “any combination of A, B and C”.
  • a slash (/) or a comma can mean “and/or”.
  • A/B can mean “A and/or B”.
  • A/B can mean "only A”, “only B”, or “both A and B”.
  • A, B, C can mean "A, B, or C”.
  • At least one of A and B can mean “only A”, “only B” or “both A and B”. Additionally, as used herein, the expressions “at least one of A or B” or “at least one of A and/or B” can be interpreted identically to “at least one of A and B”.
  • At least one of A, B and C can mean “only A”, “only B”, “only C”, or “any combination of A, B and C”. Additionally, “at least one of A, B or C” or “at least one of A, B and/or C” can mean “at least one of A, B and C”.
  • parentheses used in this specification may mean “for example”. Specifically, when it is indicated as “prediction (intra prediction)”, “intra prediction” may be suggested as an example of “prediction”. In other words, “prediction” in this specification is not limited to “intra prediction”, and “intra prediction” may be suggested as an example of “prediction”. In addition, even when it is indicated as “prediction (i.e., intra prediction)", “intra prediction” may be suggested as an example of "prediction”.
  • FIG. 1 illustrates a video/image coding system according to the present disclosure.
  • a video/image coding system may include a first device (source device) and a second device (receiving device).
  • a source device can transmit encoded video/image information or data to a receiving device via a digital storage medium or a network in the form of a file or streaming.
  • the source device may include a video source, an encoding device, and a transmitter.
  • the receiving device may include a receiver, a decoding device, and a renderer.
  • the encoding device may be called a video/image encoding device, and the decoding device may be called a video/image decoding device.
  • the transmitter may be included in the encoding device.
  • the receiver may be included in the decoding device.
  • the renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source can obtain the video/image through a process of capturing, compositing, or generating the video/image.
  • the video source can include a video/image capture device and/or a video/image generation device.
  • the video/image capture device can include one or more cameras, a video/image archive containing previously captured video/image, etc.
  • the video/image generation device can include a computer, a tablet, a smart phone, etc., and can (electronically) generate the video/image.
  • a virtual video/image can be generated through a computer, etc., in which case the video/image capture process can be replaced with a process in which related data is generated.
  • the encoding device can encode input video/image.
  • the encoding device can perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video/image information) can be output in the form of a bitstream.
  • the transmission unit can transmit encoded video/image information or data output in the form of a bitstream to the reception unit of the receiving device through a digital storage medium or a network in the form of a file or streaming.
  • the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.
  • the transmission unit can include an element for generating a media file through a predetermined file format and can include an element for transmission through a broadcasting/communication network.
  • the reception unit can receive/extract the bitstream and transmit it to a decoding device.
  • the decoding device can decode the video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding device.
  • the renderer can render the decoded video/image.
  • the rendered video/image can be displayed through the display unit.
  • FIG. 2 is a schematic block diagram of an encoding device to which an embodiment of the present disclosure can be applied and in which encoding of a video/image signal is performed.
  • the encoding device (200) may be configured to include an image partitioner (210), a prediction unit (predictor) 220, a residual processor (residual processor) 230, an entropy encoder (entropy encoder) 240, an adder (adder) 250, a filter (filter) 260, and a memory (memory) 270.
  • the prediction unit (220) may include an inter prediction unit (221) and an intra prediction unit (222).
  • the residual processor (230) may include a transformer (transformer) 232, a quantizer (quantizer) 233, a dequantizer (dequantizer) 234, and an inverse transformer (inverse transformer) 235.
  • the residual processing unit (230) may further include a subtractor (231).
  • the adding unit (250) may be called a reconstructor or a reconstructed block generator.
  • the image segmenting unit (210), the prediction unit (220), the residual processing unit (230), the entropy encoding unit (240), the adding unit (250), and the filtering unit (260) described above may be configured by one or more hardware components (e.g., an encoding device chipset or processor) according to an embodiment.
  • the memory (270) may include a DPB (decoded picture buffer) and may be configured by a digital storage medium.
  • the hardware component may further include the memory (270) as an internal/external component.
  • the image segmentation unit (210) can segment an input image (or picture, frame) input to the encoding device (200) into one or more processing units.
  • the processing unit may be called a coding unit (CU).
  • the coding unit may be recursively segmented from a coding tree unit (CTU) or a largest coding unit (LCU) according to a QTBTTT (Quad-tree binary-tree ternary-tree) structure.
  • a coding unit may be split into a plurality of coding units having deeper depths based on a quad tree structure, a binary tree structure, and/or a ternary structure.
  • the quad tree structure may be applied first and the binary tree structure and/or the ternary structure may be applied later.
  • the binary tree structure may be applied before the quad tree structure.
  • the coding procedure according to the present specification may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be used as the final coding unit, or, if necessary, the coding unit may be split recursively into coding units of lower depths, and the coding unit with the optimal size may be used as the final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and restoration described below.
  • the processing unit may further include a prediction unit (PU) or a transform unit (TU).
  • the prediction unit and the transform unit may each be split or partitioned from the final coding unit described above.
  • the prediction unit may be a unit of sample prediction
  • the transform unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from a transform coefficient.
  • an MxN block can represent a set of samples or transform coefficients consisting of M columns and N rows.
  • a sample can generally represent a pixel or a pixel value, and may represent only a pixel/pixel value of a luminance component, or only a pixel/pixel value of a chroma component.
  • a sample can be used as a term corresponding to a pixel or pel in a picture (or image).
  • the encoding device (200) can generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (prediction block, prediction sample array) output from an inter prediction unit (221) or an intra prediction unit (222) from an input image signal (original block, original sample array), and the generated residual signal is transmitted to a conversion unit (232).
  • a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input image signal (original block, original sample array) within the encoding device (200) may be called a subtraction unit (231).
  • the prediction unit (220) can perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block.
  • the prediction unit (220) can determine whether intra prediction or inter prediction is applied to the current block or CU unit.
  • the prediction unit (220) can generate various information about prediction, such as prediction mode information, as described below in the description of each prediction mode, and transmit the information to the entropy encoding unit (240).
  • the information about prediction can be encoded by the entropy encoding unit (240) and output in the form of a bitstream.
  • the intra prediction unit (222) can predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located a certain distance away from the current block depending on the prediction mode.
  • the prediction modes may include one or more non-directional modes and multiple directional modes.
  • the non-directional mode may include at least one of the DC mode or the planar mode.
  • the directional mode may include 33 directional modes or 65 directional modes depending on the degree of detail of the prediction direction. However, this is only an example, and a number of directional modes greater or less than that may be used depending on the setting.
  • the intra prediction unit (222) may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
  • the inter prediction unit (221) can derive a prediction block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture.
  • the motion information can be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between neighboring blocks and the current block.
  • the motion information can include a motion vector and a reference picture index.
  • the motion information can further include inter prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.).
  • the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the above temporal neighboring blocks may be called collocated reference blocks, collocated CUs (colCUs), etc., and a reference picture including the above temporal neighboring blocks may be called a collocated picture (colPic).
  • the inter prediction unit (221) may configure a motion information candidate list based on the neighboring blocks, and generate information indicating which candidate is used to derive the motion vector and/or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of the skip mode and the merge mode, the inter prediction unit (221) may use the motion information of the neighboring blocks as the motion information of the current block.
  • a residual signal may not be transmitted.
  • MVP motion vector prediction
  • the prediction unit (220) can generate a prediction signal based on various prediction methods described below.
  • the prediction unit can apply intra prediction or inter prediction for prediction of one block, and can also apply intra prediction and inter prediction at the same time. This can be called a combined inter and intra prediction (CIIP) mode.
  • the prediction unit can be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block.
  • the IBC prediction mode or the palette mode can be used for content image/video coding such as games, such as screen content coding (SCC).
  • IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC can use at least one of the inter prediction techniques described herein.
  • the palette mode can be viewed as an example of intra coding or intra prediction.
  • the sample values within the picture can be signaled based on information about the palette table and palette index.
  • the prediction signal generated through the prediction unit (220) can be used to generate a restoration signal or to generate a residual signal.
  • the transform unit (232) can apply a transform technique to the residual signal to generate transform coefficients.
  • the transform technique can include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT).
  • DCT Discrete Cosine Transform
  • DST Discrete Sine Transform
  • KLT Karhunen-Loeve Transform
  • GBT Graph-Based Transform
  • CNT Conditionally Non-linear Transform
  • GBT means a transform obtained from a graph when the relationship information between pixels is expressed as a graph.
  • CNT means a transform obtained based on generating a prediction signal using all previously restored pixels.
  • the transform process can be applied to a pixel block having a square equal size, or can be applied to a block of a non-square variable size.
  • the quantization unit (233) quantizes the transform coefficients and transmits them to the entropy encoding unit (240), and the entropy encoding unit (240) can encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream.
  • the information about the quantized transform coefficients can be called residual information.
  • the quantization unit (233) can rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on the coefficient scan order, and can also generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.
  • the entropy encoding unit (240) can perform various encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), etc.
  • the entropy encoding unit (240) can also encode information necessary for video/image restoration (e.g., values of syntax elements, etc.) together or separately in addition to quantized transform coefficients.
  • Encoded information can be transmitted or stored in the form of a bitstream as a unit of a network abstraction layer (NAL).
  • the video/image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
  • the video/image information may further include general constraint information.
  • information and/or syntax elements transmitted/signaled from an encoding device to a decoding device may be included in the video/image information.
  • the video/image information may be encoded through the above-described encoding procedure and included in the bitstream.
  • the bitstream may be transmitted through a network or stored in a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media, such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
  • the signal output from the entropy encoding unit (240) may be configured as an internal/external element of the encoding device (200) by the transmitting unit (not shown) and/or the storing unit (not shown), or the transmitting unit may be included in the entropy encoding unit (240).
  • the quantized transform coefficients output from the quantization unit (233) can be used to generate a prediction signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients through the inverse quantization unit (234) and the inverse transform unit (235), a residual signal (residual block or residual samples) can be restored.
  • the adding unit (250) can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit (221) or the intra prediction unit (222). When there is no residual for the target block to be processed, such as when the skip mode is applied, the predicted block can be used as a reconstructed block.
  • the adding unit (250) can be called a reconstructed unit or a reconstructed block generating unit.
  • the generated restoration signal can be used for intra prediction of the next processing target block in the current picture, and can also be used for inter prediction of the next picture after filtering as described below.
  • LMCS luma mapping with chroma scaling
  • the filtering unit (260) can apply filtering to the restoration signal to improve subjective/objective picture quality.
  • the filtering unit (260) can apply various filtering methods to the restoration picture to generate a modified restoration picture and store the modified restoration picture in the memory (270), specifically, in the DPB of the memory (270).
  • the various filtering methods can include deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.
  • the filtering unit (260) can generate various information regarding filtering and transmit it to the entropy encoding unit (240).
  • the information regarding filtering can be encoded in the entropy encoding unit (240) and output in the form of a bitstream.
  • the modified restored picture transmitted to the memory (270) can be used as a reference picture in the inter prediction unit (221).
  • the encoding device can avoid prediction mismatch between the encoding device (200) and the decoding device, and can also improve encoding efficiency.
  • the DPB of the memory (270) can store the modified restored picture to be used as a reference picture in the inter prediction unit (221).
  • the memory (270) can store motion information of a block from which motion information in the current picture is derived (or encoded) and/or motion information of blocks in a picture that has already been restored.
  • the stored motion information can be transferred to the inter prediction unit (221) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory (270) can store restored samples of restored blocks in the current picture and transfer them to the intra prediction unit (222).
  • FIG. 3 is a schematic block diagram of a decoding device to which an embodiment of the present disclosure can be applied and in which decoding of a video/image signal is performed.
  • the entropy decoding unit (310), residual processing unit (320), prediction unit (330), adding unit (340), and filtering unit (350) described above may be configured by one hardware component (e.g., a decoding device chipset or processor) according to an embodiment.
  • the memory (360) may include a DPB (decoded picture buffer) and may be configured by a digital storage medium.
  • the hardware component may further include the memory (360) as an internal/external component.
  • the decoding device (300) can restore the image corresponding to the process in which the video/image information is processed in the encoding device of FIG. 2.
  • the decoding device (300) can derive units/blocks based on block division related information obtained from the bitstream.
  • the decoding device (300) can perform decoding using a processing unit applied in the encoding device.
  • the processing unit of decoding may be a coding unit, and the coding unit may be divided from a coding tree unit or a maximum coding unit according to a quad tree structure, a binary tree structure, and/or a ternary tree structure.
  • One or more transform units may be derived from the coding unit. Then, the restored image signal decoded and output by the decoding device (300) can be reproduced through a reproduction device.
  • the decoding device (300) can receive a signal output from the encoding device of FIG. 2 in the form of a bitstream, and the received signal can be decoded through the entropy decoding unit (310).
  • the entropy decoding unit (310) can parse the bitstream to derive information (e.g., video/image information) necessary for image restoration (or picture restoration).
  • the video/image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS).
  • the video/image information may further include general constraint information.
  • the decoding device can decode the picture further based on the information on the parameter set and/or the general constraint information.
  • the signaling/received information and/or syntax elements described later in this specification can be decoded through the decoding procedure and obtained from the bitstream.
  • the entropy decoding unit (310) can decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output values of syntax elements required for image restoration and quantized values of transform coefficients for residuals.
  • the CABAC entropy decoding method receives a bin corresponding to each syntax element in the bitstream, determines a context model by using information of a syntax element to be decoded and decoding information of surrounding and decoding target blocks or information of symbols/bins decoded in a previous step, and predicts an occurrence probability of a bin according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.
  • the CABAC entropy decoding method can update the context model by using information of the decoded symbol/bin for the context model of the next symbol/bin after determining the context model.
  • Information regarding prediction among the information decoded by the entropy decoding unit (310) is provided to the prediction unit (inter prediction unit (332) and intra prediction unit (331)), and residual values on which entropy decoding is performed by the entropy decoding unit (310), i.e., quantized transform coefficients and related parameter information, can be input to the residual processing unit (320).
  • the residual processing unit (320) can derive a residual signal (residual block, residual samples, residual sample array).
  • information regarding filtering among the information decoded by the entropy decoding unit (310) can be provided to the filtering unit (350).
  • a receiving unit that receives a signal output from an encoding device may be further configured as an internal/external element of the decoding device (300), or the receiving unit may be a component of an entropy decoding unit (310).
  • a decoding device may be called a video/video/picture decoding device, and the decoding device may be divided into an information decoding device (video/video/picture information decoding device) and a sample decoding device (video/video/picture sample decoding device).
  • the information decoding device may include the entropy decoding unit (310), and the sample decoding device may include at least one of the inverse quantization unit (321), the inverse transformation unit (322), the adding unit (340), the filtering unit (350), the memory (360), the inter prediction unit (332), and the intra prediction unit (331).
  • the inverse quantization unit (321) can inverse quantize the quantized transform coefficients and output the transform coefficients.
  • the inverse quantization unit (321) can rearrange the quantized transform coefficients into a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scan order performed in the encoding device.
  • the inverse quantization unit (321) can perform inverse quantization on the quantized transform coefficients using quantization parameters (e.g., quantization step size information) and obtain transform coefficients.
  • the transform coefficients are inversely transformed to obtain a residual signal (residual block, residual sample array).
  • the prediction unit (320) can perform a prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit (320) can determine whether intra prediction or inter prediction is applied to the current block based on the information about the prediction output from the entropy decoding unit (310), and can determine a specific intra/inter prediction mode.
  • the prediction unit (320) can generate a prediction signal based on various prediction methods described below.
  • the prediction unit (320) can apply intra prediction or inter prediction for prediction of one block, and can also apply intra prediction and inter prediction at the same time. This can be called a combined inter and intra prediction (CIIP) mode.
  • the prediction unit can be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block.
  • the IBC prediction mode or palette mode can be used for content image/video coding such as games, such as screen content coding (SCC).
  • IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC can use at least one of the inter prediction techniques described herein.
  • the palette mode can be viewed as an example of intra coding or intra prediction. When palette mode is applied, information about the palette table and palette index may be signaled and included in the video/image information.
  • the intra prediction unit (331) can predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block, or may be located a certain distance away from the current block, depending on the prediction mode.
  • the prediction modes may include one or more non-directional modes and multiple directional modes.
  • the intra prediction unit (331) may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
  • the inter prediction unit (332) can derive a prediction block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture.
  • the motion information can be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between neighboring blocks and the current block.
  • the motion information can include a motion vector and a reference picture index.
  • the motion information can further include inter prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.).
  • the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture.
  • the inter prediction unit (332) can configure a motion information candidate list based on neighboring blocks, and derive a motion vector and/or a reference picture index of the current block based on the received candidate selection information.
  • Inter prediction can be performed based on various prediction modes, and information about the prediction can include information indicating an inter prediction mode for the current block.
  • the addition unit (340) can generate a restoration signal (restored picture, restoration block, restoration sample array) by adding the acquired residual signal to the prediction signal (prediction block, prediction sample array) output from the prediction unit (including the inter prediction unit (332) and/or the intra prediction unit (331)).
  • the prediction block can be used as the restoration block.
  • the filtering unit (350) can apply filtering to the restoration signal to improve subjective/objective image quality.
  • the filtering unit (350) can apply various filtering methods to the restoration picture to generate a modified restoration picture, and transmit the modified restoration picture to the memory (360), specifically, the DPB of the memory (360).
  • the various filtering methods can include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
  • the (corrected) reconstructed picture stored in the DPB of the memory (360) can be used as a reference picture in the inter prediction unit (332).
  • the memory (360) can store motion information of a block from which motion information in the current picture is derived (or decoded) and/or motion information of blocks in a picture that has already been reconstructed.
  • the stored motion information can be transferred to the inter prediction unit (260) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
  • the memory (360) can store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra prediction unit (331).
  • the embodiments described in the filtering unit (260), the inter prediction unit (221), and the intra prediction unit (222) of the encoding device (200) may be applied identically or correspondingly to the filtering unit (350), the inter prediction unit (332), and the intra prediction unit (331) of the decoding device (300), respectively.
  • FIG. 4 illustrates an image decoding method performed by a decoding device according to an embodiment of the present disclosure.
  • transform coefficients of the current block can be derived from the bitstream (S400). That is, the bitstream can include residual information of the current block, and the transform coefficients of the current block can be derived by decoding the residual information.
  • residual samples of the current block can be derived by performing at least one of dequantization and inverse transform on the transform coefficients of the current block (S410).
  • the inverse transform can be performed based on at least one of DCT-2, DST-7, or DCT-8.
  • DCT-2, DST-7, DCT-8, etc. can be called a transform type, a transform kernel, or a transform core.
  • the inverse transform may mean a separable transform. However, it is not limited thereto, and the inverse transform may mean a non-separable transform, or may be a concept including a separable transform and a non-separable transform.
  • the inverse transform in the present disclosure means a primary transform, but is not limited thereto, and may be applied to a secondary transform by being transformed into an identical/similar form.
  • DCT-2 and a non-separable transform may be used, or a non-separable transform may be used in addition to at least one of DCT-2, DST-7, or DCT-8, or a non-separable transform may replace the transform kernel of one or more of DCT-2, DST-7, or DCT-8.
  • a non-separable transform can replace or be added to one or more of the five transform kernel candidates.
  • the notation indicates that transform1 is applied in the horizontal direction and transform2 is applied in the vertical direction.
  • the non-separable transform replaces some of the transform kernel candidates, the remaining transform kernel candidates except (DCT-2, DCT-2) and (DST-7, DST-7) can be replaced with the non-separable transform.
  • the transform kernel candidates are only examples, and other types of DCT and/or DST may be included, and a transform skip may be included as the transform kernel candidate.
  • a non-separable transform can mean a transform or inverse transform based on a non-separable transform matrix. That is, unlike a separable transform that performs horizontal and vertical transforms independently by separating vertical and horizontal transforms, a non-separable transform can perform horizontal and vertical transforms at once.
  • the input data X to the non-separable transformation is as shown in the following mathematical expression 1.
  • vector X' can be expressed as follows.
  • non-separable transformation can be performed as in the following mathematical expression 3.
  • F represents a transformation coefficient vector
  • T represents a 16x16 non-separable transformation matrix
  • represents the multiplication of a matrix and a vector.
  • a 16x1 transform coefficient vector F can be derived through the above mathematical expression 3, and the F can be reconstructed into 4x4 blocks according to a predetermined scan order.
  • the scan order can be a horizontal scan, a vertical scan, a diagonal scan, a z-scan, a raster scan, or a pre-defined scan.
  • the non-separable transform set and/or transform kernel for the above non-separable transform can be variously configured based on at least one of a prediction mode (e.g., intra mode, inter mode, etc.), the width, height, or number of pixels of the current block, the position of a sub-block within the current block, explicitly signaled syntax elements, statistical characteristics of surrounding samples, whether a second transform is used, or a quantization parameter (QP).
  • a prediction mode e.g., intra mode, inter mode, etc.
  • QP quantization parameter
  • the pre-defined intra prediction modes are grouped to correspond to n non-separable transform sets, and each non-separable transform set may include k transform kernel candidates, where n and k may be arbitrary constants according to rules (conditions) defined identically for the encoding device and the decoding device.
  • the number of non-separable transformation sets and/or the number of transformation kernel candidates included in the non-separable transformation sets may be configured differently depending on the width and/or height of the current block. For example, for a 4x4 block, n 1 non-separable transformation sets and k 1 transformation kernel candidates may be configured. For a 4x8 block, n 2 non-separable transformation sets and k 2 transformation kernel candidates may be configured. In addition, the number of non-separable transformation sets and the number of transformation kernel candidates included in each non-separable transformation set may be configured differently depending on the product of the width and the height of the current block.
  • n 3 non-separable transformation sets and k 3 transformation kernel candidates may be configured, otherwise, n 4 non-separable transformation sets and k 4 transformation kernel candidates may be configured. That is, since the degree of change in the statistical characteristics of the residual signal varies depending on the block size, the number of non-separable transformation sets and transformation kernel candidates can be configured differently to reflect this.
  • the statistical characteristics of the residual signal may be different for each sub-block, and therefore the number of non-separable transform sets and transform kernel candidates may be configured differently. For example, if a 4x8 or 8x4 block is divided into two 4x4 sub-blocks and a non-separable transform is applied to each sub-block, n 5 non-separable transform sets and k 5 transform kernel candidates may be configured for the upper left 4x4 sub-block, and n 6 non-separable transform sets and k 6 transform kernel candidates may be configured for other 4x4 sub-blocks.
  • the number of inseparable transformation sets and transformation kernel candidates can be configured differently.
  • the syntax element information indicating any one of a plurality of inseparable transformation configurations can be used. For example, if three kinds of inseparable transformation configurations are supported (i.e., n 7 inseparable transformation sets and k 7 transformation kernel candidates, n 8 inseparable transformation sets and k 8 transformation kernel candidates, n 9 inseparable transformation sets and k 9 transformation kernel candidates), the corresponding syntax element can have values of 0, 1, and 2, and the inseparable transformation configuration applied to the current block can be determined according to the value of the signaled syntax element.
  • the number of non-separable transform sets and transformation kernel candidates can be configured differently. For example, when a second-order transform is not applied, a non-separable transform configuration including a set of n 10 non-separable transforms and k 10 transformation kernel candidates can be applied. When a second-order transform is applied, a non-separable transform configuration including a set of n 11 non-separable transforms and k 11 transformation kernel candidates can be applied.
  • non-separable transform configurations can be applied. For example, when the QP value has a small value, a non-separable transform configuration including n 12 non-separable transform sets and k 12 transform kernel candidates can be applied. On the other hand, when the QP value has a large value, a non-separable transform configuration including n 13 non-separable transform sets and k 13 transform kernel candidates can be applied. If the QP value is less than or equal to a threshold (e.g., 32), the case is classified as having a small QP value, and otherwise, the case is classified as having a large QP value. Alternatively, the ranges of QP values can be divided into three or more, and different non-separable transform configurations can be applied for each range.
  • a threshold e.g. 32
  • the block can be divided into multiple sub-blocks and a non-separable transform corresponding to the width and height of the sub-blocks can be used.
  • a non-separable transform corresponding to the width and height of the sub-blocks can be used.
  • the 4x8 block can be divided into two 4x4 sub-blocks and a 4x4 block-based non-separable transform can be used for each of the 4x4 sub-blocks.
  • the block can be divided into two 8x8 sub-blocks and an 8x8 block-based non-separable transform can be used.
  • the above non-separable transform set can be determined based on the intra prediction mode of the current block and the mapping table.
  • the mapping table can define the mapping relationship between the pre-defined intra prediction modes and the non-separable transform sets.
  • the pre-defined intra prediction modes can include two non-directional modes and 65 directional modes.
  • the non-separable transform has a larger transform kernel size than the separable transform. This means that the computational complexity required for the transform process is high and the memory required for storing the transform kernel is large. Meanwhile, the separable transform can consider only statistical characteristics existing in the horizontal and/or vertical directions, but the non-separable transform can simultaneously consider statistical characteristics in the two-dimensional space including the horizontal and vertical directions, thereby providing better compression efficiency.
  • the non-directional mode can include the planar mode of number 0 and the DC mode of number 1, and the directional mode can include the intra prediction modes of numbers 2 to 66.
  • this is merely an example, and the present disclosure can also be applied to cases where the number of pre-defined intra prediction modes is different.
  • the pre-defined intra prediction modes can further include intra prediction modes from -14 to -1 and intra prediction modes from 67 to 80.
  • FIG. 5 exemplarily shows intra prediction modes and prediction directions thereof according to the present disclosure.
  • modes -14 to -1 and 2 to 33 and modes 35 to 80 are symmetrical with respect to the prediction direction with respect to mode 34.
  • modes 10 and 58 are symmetrical with respect to the direction corresponding to mode 34
  • mode -1 is symmetrical with mode 67. Accordingly, for a vertical mode that is symmetrical with respect to a horizontal mode with respect to mode 34, the input data can be transposed and used. Transposing the input data means that rows in the input data MxN of a two-dimensional block become columns and columns become rows to form NxM data.
  • 16 data forming a 4x4 block can be appropriately arranged to form a 16x1 1-dimensional vector for non-separable transformation.
  • the 1-dimensional vector can be formed in row-major order or in column-major order.
  • the residual samples resulting from the non-separable transformation can be arranged in the above order to form a 2-dimensional block.
  • the input vector can be constructed according to column-major order.
  • Mode 34 can be considered as neither a horizontal mode nor a vertical mode, but in this disclosure, it is classified as belonging to a horizontal mode. That is, for modes -14 to -1 and 2 to 33, the input data alignment method for the horizontal mode, i.e., the row-major order, is used, and for the vertical mode that is symmetrical about mode 34, the input data can be transposed and used.
  • the symmetry between block shapes that are in a transpose relationship with each other i.e., the symmetry between a KxL block and an LxK block
  • a symmetry relationship exists between a KxL block predicted by the P mode and an LxK block predicted by the (68-P) mode.
  • a symmetry relationship exists between a KxL block predicted by the Q mode and an LxK block predicted by the (66-Q) mode.
  • the same transformation kernel can be applied to the KxL block and the LxK block.
  • the non-separable transformation set can be derived through a mapping table corresponding to the KxL block based on the (68-P) mode instead of the P mode applied to the LxK block.
  • the non-separable transformation set can be derived through a mapping table corresponding to the KxL block based on the (66-Q) mode instead of the Q mode applied to the LxK block.
  • the non-separable transformation set can be selected based on mode 2 instead of mode 66.
  • the input data can be read in a pre-determined order (e.g., row-major order or column-major order) to form a one-dimensional vector and then the corresponding non-separable transformation can be applied.
  • the input data can be read in the transposed order to form a one-dimensional vector and then the corresponding non-separable transformation can be applied. That is, if the KxL block is read in row-major order, the LxK block can be read in column-major order. Conversely, if the KxL block is read in column-major order, the LxK block can be read in row-major order.
  • a non-separable transformation set can be determined based on mode 34, and the input data can be read in a pre-determined order to form a one-dimensional vector and perform the corresponding non-separable transformation.
  • mode 34 is applied to the LxK block, a non-separable transformation set can be determined based on mode 34, but the input data can be read in a transposed order to form a one-dimensional vector and perform the corresponding non-separable transformation.
  • a method for determining a non-separable transformation set and a method for organizing input data are described based on a KxL block.
  • the non-separable transformation may be performed based on an LxK block by utilizing the symmetry described above for a KxL block.
  • a block having a width greater than its height may be restricted to be used as a reference block.
  • the symmetry may be restricted not to be utilized in the case of non-square blocks.
  • a non-square block may use a different number of non-separable transformation sets and/or transformation kernel candidates than a square block, and may select a non-separable transformation set using a different mapping table than a square block.
  • mapping table for selecting a set of non-separable transformations is as follows:
  • Table 1 shows an example of allocating non-separable transform sets by intra prediction mode when there are five non-separable transform sets.
  • the value of predModeIntra means the value of the intra prediction mode considering WAIP, and TrSetIdx is an index indicating a specific non-separable transform set.
  • Table 1 it can be confirmed that the same non-separable transform set is applied to modes located in symmetrical directions according to the intra prediction mode.
  • Table 1 is only an example of using five non-separable transform sets, and does not limit the total number of non-separable transform sets for non-separable transforms.
  • the non-separable transform may not be applied to WAIP for compression performance.
  • a non-separable transform set corresponding to adjacent intra prediction modes may be shared.
  • the above non-separable transform set may include a plurality of transform kernel candidates, and any one of the plurality of transform kernel candidates may be selectively used. For this purpose, an index signaled through a bitstream may be used.
  • any one of the plurality of transform kernel candidates may be implicitly determined based on context information of a current block.
  • the context information may mean a size of a current block or whether a non-separable transform is applied to a neighboring block.
  • the size of the current block may be defined by a width, a height, a maximum/minimum value of the width and the height, a sum of the width and the height, or a product of the width and the height.
  • the inverse transformation can be divided into a separable transformation and a non-separable transformation.
  • a separable transformation means performing transformations in the horizontal direction and the vertical direction respectively for a two-dimensional block
  • a non-separable transformation can mean performing a single transformation for samples constituting the entire or a part of a two-dimensional block.
  • a separable transformation it can be expressed as a pair of horizontal transformation and vertical transformation, and in this disclosure, it will be expressed as (horizontal transformation, vertical transformation).
  • Each transformation set can contain one or more transformation kernel candidates.
  • any one of (DST-7, DST-7), (DCT-8, DST-7), (DST-7, DCT-8), or (DCT-8, DCT-8) can be applied as a separate transform, and the four transform kernel candidates can be regarded as one transform set.
  • (DCT-2, DCT-2) can be regarded as one transform set.
  • a transform skip that does not apply a transform can also be regarded as one transform set, and (DCT-2, DCT-2) and the transform skip can be regarded as one transform set.
  • a transform kernel may refer to one transform (e.g., DCT-2, DST-7) or may refer to two transform pairs (e.g., (DCT-2, DCT-2)).
  • a non-separable transform applied as a primary transform may be denoted as a Non-Separable Primary Transform (NSPT).
  • NSPT Non-Separable Primary Transform
  • a plurality of non-separable transform sets may be configured, and each non-separable transform set may include one or more transform kernels as transform kernel candidates.
  • one of the plurality of non-separable transform sets is selected according to the intra prediction mode, and the plurality of non-separable transform sets for NSPT may be denoted as an NSPT set list. This is as discussed above, and a detailed description thereof will be omitted here.
  • a group of one or more transform sets available to a current block can be formed from a plurality of pre-defined transform sets.
  • the group of one or more transform sets can be formed by a predetermined area unit to which the current block belongs, and is hereinafter referred to as a collection.
  • the predetermined area unit can be at least one of a picture, a slice, a coding tree unit row (CTU row), or a coding tree unit (CTU).
  • a transform set consisting of (DCT-2, DCT-2) be called S 1
  • a transform set consisting of (DST-7, DST-7), (DCT-8, DST-7), (DST-7, DCT-8) and (DCT-8, DCT-8) be called S 2
  • the above-described NSPT set list can include N non-separable transform sets, and the N non-separable transform sets are called S 3,1 , S 3,2 , ..., S 3,N , respectively.
  • N may be 35, but is not limited thereto.
  • the transformation kernel applicable to the current block may belong to any one of S 1 , S 2 , or S 3,13 .
  • the collection available to the current block can be denoted as ⁇ S 1 , S 2 , S 3,13 ⁇ .
  • a collection according to the present disclosure is a group of one or more transform sets available to a current block, the collection may be configured differently depending on the context of the current block.
  • a collection may be formed based on the context of the current block, and at this time, a process of selecting one of a plurality of transformation sets belonging to the collection and selecting one of a plurality of transformation kernel candidates belonging to the selected transformation set may be performed.
  • the selection of the transformation set and the transformation kernel candidate may be performed implicitly based on the context of the current block, or may be performed based on an index that is explicitly signaled.
  • the process of selecting one of a plurality of transformation sets belonging to the collection and the process of selecting one of a plurality of transformation kernel candidates belonging to the selected transformation set may be performed separately. For example, an index for selecting a transformation set may be first signaled, and based on this, one of a plurality of transformation sets belonging to the collection may be selected.
  • an index indicating one of a plurality of transformation kernel candidates belonging to the transformation set may be signaled, and based on the signaled index, one of the transformation kernel candidates may be selected from the transformation set.
  • a transformation kernel of the current block may be determined based on the selected transformation kernel candidate.
  • the selection of one transformation set from the collection may be implicitly performed based on the context of the current block, and the selection of one transformation kernel candidate from the selected transformation set may be performed based on the signaled index.
  • the selection of one transformation set from the collection may be implicitly performed based on the signaled index, and the selection of one transformation kernel candidate from the selected transformation set may be implicitly performed based on the context of the current block.
  • the selection of one transformation set from the collection may be implicitly performed based on the context of the current block, and the selection of one transformation kernel candidate from the selected transformation set may also be implicitly performed based on the context of the current block.
  • the index for selecting the transformation set may not be signaled.
  • the index for indicating the corresponding transformation kernel candidate may not be signaled.
  • an index indicating one of all transformation kernel candidates belonging to the current collection may be signaled.
  • the process of selecting one transformation set from the collection can be omitted. At this time, all transformation sets belonging to the collection can be rearranged considering the priority.
  • a small-length binary code to an index of a small value, such as a truncated unary code
  • different shuffling can be applied to each collection.
  • only some of them can be selectively rearranged.
  • the transformation kernel for the inverse transformation of the current block can be determined based on MTS (Multiple Transform Selection).
  • the MTS according to the present disclosure may use at least one of DST-7, DCT-8, DCT-5, DST-4, DST-1, or IDT (identity transform) as a transform kernel.
  • the MTS according to the present disclosure may further include a transform kernel of DCT-2.
  • a plurality of MTS sets for MTS can be defined. Based on the size of a current block and/or an intra prediction mode, one of the plurality of MTS sets can be determined. For example, in determining one MTS set, 16 transform block sizes can be considered, and for a directional mode, the shape of the transform block and the symmetry between the intra prediction modes can be considered. For the WAIP (Wide Angle Intra Prediction) mode (i.e., -1 to -14 (or -15), 67 to 80 (or 81)), an MTS set corresponding to mode 2 can be applied for modes -1 to -14 (or -15), and an MTS set corresponding to mode 66 can be applied for modes 67 to 80 (or 81). A separate MTS set can be allocated for the MIP (Matrix-based Intra Prediction) mode.
  • MIP Wide Angle Intra Prediction
  • MTS sets according to transform block size and intra prediction mode can be allocated/defined as shown in Table 4 below.
  • Block size Intra prediction mode width height [0, 1] [2, 12] [13, 23] [24, 34] MIP 4 4 0 1 2 3 4 4 8 5 6 7 8 9 4 16 10 11 12 13 14 4 32 15 16 17 18 19 8 4 20 21 22 23 24 8 8 25 26 27 28 29 8 16 30 31 32 33 34 8 32 35 36 37 38 39 16 4 40 41 42 43 44 16 8 45 46 47 48 49 16 16 50 51 52 53 54 16 32 55 56 57 58 59 32 4 60 61 62 63 64 32 8 65 66 67 68 69 32 16 70 71 72 73 74 32 32 75 76 77 78 79
  • Table 4 shows the allocation of MTS sets according to 16 transform block sizes and intra prediction modes.
  • the number of pre-defined MTS sets is 80, and the index indicating one of the 80 MTS sets can have a value from 0 to 79, as shown in Table 4.
  • Table 5 shows transformation kernel candidates included in each MTS set examined in Table 4.
  • Each MTS set can be composed of six transformation kernel candidates.
  • the transformation kernel candidate index has a value of any one of 0 to 5 and can indicate any one of the six transformation kernel candidates.
  • each transformation kernel candidate can be a combination of a horizontal transformation kernel and a vertical transformation kernel for a separate transformation, and 25 transformation kernel candidates having indices of 0 to 24 can be defined.
  • Table 6 is an example of the 25 transform kernel candidates examined in Table 5. Specifically, the horizontal transformation and vertical transformation of the transform kernel candidate are indicated as (horizontal transformation, vertical transformation). For each transform kernel candidate index, the horizontal/vertical transformation when the intra prediction mode is less than 35 may be the opposite of the horizontal/vertical transformation when the intra prediction mode is 35 or more. When the value of the intra prediction mode is 35 or more, a mode symmetrical with respect to mode 34 may be derived, and an MTS set may be selected from Table 4 based on the mode. In addition, the symmetry of the block shape may be additionally considered. When the original transform block has a WxH size, the original transform block may be considered to have a HxW size by symmetrizing it, and an MTS set may be selected from Table 4.
  • the value of the intra prediction mode may be the value of the modified intra prediction mode. That is, as mode values for WAIP, -14 (or -15) to -1 are modified to mode 2, 67 to 80 (or 81) are modified to mode 66, and the remaining modes can be set to the values of the modified intra prediction modes as the values of the original intra prediction modes.
  • the extended modes for WAIP are also configured symmetrically around mode 34, the symmetry around mode 34 can be utilized for all directional modes except for the Planar mode and the DC mode.
  • an MTS set with an index of 72 can be selected, as defined in Table 4.
  • the MTS set assigned to the MIP mode may be selected based on the size of the current block without considering the symmetry of the block shape.
  • the MTS set assigned to the MIP mode may be selected based on the symmetric block size considering the symmetry of the block shape. For example, when the MIP mode is applied for an 8x16 block, the 8x16 block may be regarded as a symmetrical 16x8 block thereto, and an MTS set having an index of 49 may be selected as defined in Table 4.
  • the intra prediction mode may be regarded as the Planar mode.
  • the MTS set assigned to the MIP mode may be selected based on the size of the current block without considering the symmetry of the block shape.
  • the MTS set assigned to the MIP mode may be selected based on the symmetrical block size considering the symmetry of the block shape.
  • a flag may be used to indicate whether the MIP mode is applied in the transpose mode. If the MIP mode is applied to the current block of MxN and the flag indicates application of the transpose mode, the intra prediction mode is regarded as the Planar mode, and the current block of MxN may be regarded as an NxM block. That is, from Table 4, an MTS set corresponding to the block size of NxM and the Planar mode may be selected. As seen in Table 6, if the value of the intra prediction mode is 35 or more, the horizontal transformation and the vertical transformation are swapped, but since the intra prediction mode of the current block is regarded as the Planar mode, the horizontal transformation and the vertical transformation of the transformation kernel candidate may not be swapped.
  • the intra prediction mode is not regarded as the Planar mode, and the current block of MxN may be regarded as an NxM block. That is, from Table 4, an MTS set corresponding to the block size of NxM and the MIP mode may be selected.
  • a transformation kernel candidate selected by a transformation kernel candidate index may be set as a transformation kernel of the current block.
  • at least one of the horizontal transformation or the vertical transformation of the selected transformation kernel candidate may be changed to another transformation kernel. For example, if the transformation kernel candidate index is 3 and both the width and the height of the current block are 16 or less, at least one of the horizontal transformation or the vertical transformation of the transformation kernel candidate corresponding to the transformation kernel candidate index of 3 may be changed to another transformation kernel. At this time, the horizontal transformation and the vertical transformation may be changed independently of each other.
  • the vertical transformation of the selected transformation kernel candidate may be changed to an IDT (identity transformation). If the difference (or the absolute value of the difference) between the value of the intra prediction mode of the current block and the value of the vertical mode is less than or equal to a predetermined threshold, the horizontal transformation of the selected transformation kernel candidate may be changed to an IDT (identity transformation).
  • the threshold can be determined based on the width and height of the current block, as shown in Table 7 below.
  • Threshold width height 4 4 8 4 8 6 4 16 4 8 4 8 8 8 8 8 16 6 16 4 4 16 8 2 16 16 -1
  • Table 7 defines thresholds according to the size of a transform block for changing the horizontal transformation and/or vertical transformation of a transform kernel candidate selected by a transform kernel candidate index to another transform kernel.
  • transform kernel candidates composing one MTS set can be distinguished by transform kernel candidate indices from 0 to 5 as defined in Table 5.
  • the transform kernel candidate indices can be signaled via a bitstream.
  • a flag indicating whether the MTS set is available/applied (MTS enabled flag or MTS flag) can be signaled, and a transform kernel candidate index can be signaled when the flag indicates the availability/applicability of the MTS set.
  • the MTS flag can be composed of one bin, and one or more contexts for CABAC-based entropy coding (hereinafter, referred to as CABAC contexts) can be allocated to the bin. For example, different CABAC contexts can be allocated for non-MIP mode and MIP mode, respectively.
  • the number of transform kernel candidates available to the current block may be set differently.
  • the sum of the absolute values of all or part of the transform coefficients in the current block may be considered.
  • the sum of the absolute values of the transform coefficients is referred to as AbsSum. If AbsSum is less than or equal to T1, only one transform kernel candidate corresponding to the transform kernel candidate index of 0 may be available. If AbsSum is greater than T1 and less than or equal to T2, four transform kernel candidates corresponding to the transform kernel candidate indices of 0 to 3 may be available. If AbsSum is greater than T2, six transform kernel candidates corresponding to the transform kernel candidate indices of 0 to 5 may be available.
  • T1 may be 6 and T2 may be 32, but this is only an example.
  • the transformation kernel candidate corresponding to the transformation kernel candidate index of 0 can be set as the transformation kernel of the current block without signaling the transformation kernel candidate index.
  • AbsSum is greater than T1 and less than or equal to T2
  • any one of the four transformation kernel candidates can be selected based on the transformation kernel candidate index having two bins. That is, the transformation kernel candidate indices of 0 to 3 can be signaled as 00, 01, 10, and 11, respectively.
  • MSB Most Significant Bit
  • LSB Least Significant Bit
  • a CABAC context other than the CABAC context allocated for the MTS flag may be allocated to each bin.
  • a CABAC context may not be allocated to the two bins and bypass coding may be applied.
  • AbsSum is greater than T2
  • the transform kernel candidate index has a value from 0 to 5, so the transform kernel candidate index cannot be expressed with only two bins.
  • the transform kernel candidate index may be expressed by allocating two or more bins, such as truncated binary coding.
  • a CABAC context may be allocated, or bypass coding may be applied without allocating a CABAC context.
  • a CABAC context may be allocated to some of a plurality of bins (e.g., the first bin, or the first and second bins), and bypass coding may be applied to the remaining bins.
  • the transformation kernel of the current block can be determined based on a transformation set including one or more transformation kernel candidates.
  • the transformation kernel of the current block can be derived from any one or more transformation kernel candidates belonging to the transformation set.
  • the process of determining a transformation kernel of a current block may include at least one of 1) a process of determining a transformation set of the current block or 2) a process of selecting one transformation kernel candidate from the transformation set of the current block.
  • the process of determining the transformation set may be a process of selecting one of a plurality of transformation sets that are identically pre-defined for the encoding device and the decoding device.
  • the process of determining the transformation set may be a process of configuring one or more transformation sets available to the current block from among a plurality of transformation sets that are identically pre-defined for the encoding device and the decoding device, and selecting one of the configured transformation sets.
  • the process of determining the transformation set may be a process of configuring one transformation set based on a transformation kernel candidate available to the current block from among a plurality of transformation kernel candidates that are identically pre-defined for the encoding device and the decoding device.
  • the transformation set of the current block includes multiple transformation kernel candidates, a process of selecting one of the multiple transformation kernel candidates for the current block may be performed. However, if the transformation set of the current block includes one transformation kernel candidate (i.e., the current block has one transformation kernel candidate available), the transformation kernel of the current block may be set to the corresponding transformation kernel candidate.
  • the transform set according to the present disclosure may mean the (non-separable) transform set in the aforementioned embodiment 1, or may mean the MTS set in the embodiment 2.
  • the transform set may be defined separately from the (non-separable) transform set in the embodiment 1 or the MTS set in the embodiment 2.
  • the transform set may include one or more specific transform kernels as transform kernel candidates.
  • One specific transform kernel may be defined as a pair of a transform kernel for horizontal transform and a transform kernel for vertical transform, or may be defined as one transform kernel that is equally applied to horizontal and vertical transforms.
  • NSPT which is a non-separable transform applied as a primary transform
  • NSPT can be applied to all or part of a transform block.
  • residual samples existing in the region where NSPT is applied can be input as a one-dimensional vector of NSPT. That is, residual samples existing in all or part of a transform block (referred to as Region Of Interest, ROI, in the present disclosure) can be collected as a one-dimensional vector and configured as an input.
  • ROI Region Of Interest
  • a primary transform coefficient can be obtained.
  • a one-dimensional vector output can be obtained.
  • the non-separable transform kernel for NSPT may have a matrix dimension determined according to the size of the ROI.
  • the transform kernel may be referred to as a transform type and a transform matrix
  • the non-separable transform kernel for NSPT may be referred to as an NSPT kernel.
  • the dimension of the corresponding transform matrix may be MN x MN.
  • the dimension of the NSPT kernel may be 64 x 64.
  • the NSPT kernel when NSPT is applied to a residual generated by intra prediction, can be adaptively determined according to the intra prediction mode. Since the statistical characteristics of the residual block can vary depending on the intra prediction mode, the compression efficiency can be improved by adaptively determining the NSPT kernel according to the intra prediction mode.
  • the non-separable transform set can be determined based on the intra prediction mode of the current block and the mapping table.
  • the mapping table can define a mapping relationship between the pre-defined intra prediction modes and the non-separable transform sets.
  • the pre-defined intra prediction modes can include two non-directional modes and 65 directional modes.
  • intra prediction modes can be grouped into intra prediction mode groups.
  • One NSPT kernel or multiple NSPT kernels can be assigned to an intra prediction mode group.
  • a non-separable transform set (NSPT set) including one or more NSPT kernels can be assigned to an intra prediction mode group.
  • the non-separable transform set is mapped to an intra prediction mode, and one of N NSPT kernels included in the non-separable transform set can be selected.
  • an intra prediction group may include adjacent prediction modes (e.g., modes 17, 18, and 19).
  • an intra prediction group may include modes having symmetry.
  • directional modes may be symmetrical with respect to the diagonal mode (i.e., intra prediction mode 34) of FIG. 5 described above.
  • two modes having symmetry may form one group (or pair).
  • modes 18 and 50 may be included in the same group because they are symmetrical with respect to mode 34.
  • a process of transposing a 2D input block and then forming a one-dimensional input vector may be added before applying the forward NSPT kernel.
  • a one-dimensional input vector may be derived from the corresponding input block in the row first order without transposing the 2D input block. If the intra prediction mode is greater than 34, the one-dimensional input vector can be constructed by first transposing the 2D input block and then reading the input block in the row-first order, or by leaving the 2D input block as it is and reading the input block in the column-first order.
  • An NSPT set may include one or more NSPT kernels (or kernel candidates). That is, an NSPT set may include N NSPT kernel candidates. For example, N may be set to a value greater than or equal to 1, such as 1, 2, 3, 4, etc.
  • a kernel applied to a current block among one or more NSPT kernels included in the NSPT set may be signaled using an index.
  • the index may be referred to as an NSPT index.
  • the NSPT index may have values of 0, 1, 2, ..., N - 1.
  • the NSPT index value may be fixed to 0. In this case, the NSPT index may be inferred without being separately signaled.
  • a flag indicating whether NSPT is applied may be signaled separately from the NSPT index. In the present disclosure, the flag may be referred to as an NSPT flag.
  • NSPT flag value When the NSPT flag value is 1, NSPT may be applied. When the NSPT flag value is 0, NSPT may not be applied. When the NSPT flag is not signaled, the NSPT flag value may be inferred as 0. As an example, when the NSPT flag value is 1, the NSPT index may be signaled. Based on the signaled NSPT index, one of the N kernel candidates included in the NSPT set selected by the intra prediction mode may be specified.
  • the entropy coding method of the NSPT index can be defined in various ways considering the number (N) of NSPT kernels included in the NSPT set. For example, as a method of mapping values from 0 to N-1 to empty strings (i.e., binarization method), a truncated unary binarization, a truncated binarization, and a fixed-length binarization method can be used.
  • a reduced primary transform (RPT) method using a transform kernel of a reduced dimension by a primary transform is described.
  • RPT reduced primary transform
  • samples belonging to a 2D residual block can be arranged (or rearranged) into a 1D vector according to the row priority (or column priority).
  • a transformation matrix for NSPT can be multiplied by the arranged vector.
  • the corresponding 2D residual block is an M x N block (M is the width length, N is the height length)
  • the length of the rearranged 1D vector can be M*N. That is, the corresponding 2D residual block can also be represented as a column vector having a dimension of M*N x 1.
  • M*N can be conveniently denoted as MN.
  • the dimension of the corresponding transformation matrix can be MN x MN.
  • forward NSPT can work by multiplying the left side of an MN x 1 vector by the corresponding MN x MN transformation matrix to obtain an MN x 1 transformation coefficient vector.
  • r transform coefficients can be obtained by multiplying an r x MN matrix.
  • r represents the number of rows of the transform matrix
  • MN represents the number of columns of the transform matrix.
  • the value of r can be set to be less than or equal to MN. That is, the existing forward NSPT transform matrix includes MN rows, and each row is a 1 x MN row vector, which is a transform basis vector of the corresponding NSPT transform matrix.
  • the corresponding transform coefficients can be obtained by multiplying each transform basis vector by an MN x 1 sample column vector.
  • the RPT kernel can be configured by selecting r transformation basis vectors, which are some of the transformation basis vectors constituting the MN x MN forward NSPT kernel.
  • the transformation kernel can be referred to as a transformation type and a transformation matrix
  • the non-separable transformation kernel for NSPT can be referred to as an RPT kernel. That is, when selecting r 1 x MN row vectors from the MN x MN forward NSPT kernel, it can be advantageous to select the transformation basis vectors that are most important from the viewpoint of coding performance. Specifically, in terms of energy compaction through transformation, more energy can be concentrated on the transformation coefficients that appear first by multiplying the forward NSPT transformation matrix.
  • the transformation basis vectors located on the upper side of the forward NSPT transformation matrix can generate transformation coefficients having larger energy.
  • the r x MN forward RPT kernel can be configured (or derived) by taking r from the upper side of the forward NSPT kernel.
  • the RPT according to the present disclosure takes only a part (i.e., r) of the transform coefficients obtained by applying the existing NSPT, which may result in a loss of a part of the energy of the original signal. That is, distortion may occur between the original signal and the original signal through the process. Nevertheless, by applying the RPT, since only r transform coefficients are generated instead of MN, the amount of bits required to code the transform coefficients can be reduced. Therefore, in the case of a signal in which a large amount of energy is concentrated in a small number of transform coefficients (e.g., an image residual signal), the gain obtained by reducing the signaling bits can be significantly large, thereby improving the coding performance.
  • r a part of the transform coefficients obtained by applying the existing NSPT
  • the reverse NSPT may be the transpose matrix of the forward NSPT kernel described above as a transformation matrix.
  • the input data may be a transformation coefficient signal instead of a sample signal such as a residual signal.
  • the forward NSPT transformation matrix is G and the sample signal rearranged into a 1D vector is x
  • the transformation coefficient vector obtained by multiplying the transformation matrix on the left side can be expressed as in the following mathematical expression 4.
  • x and y can be MN x 1 column vectors.
  • G can have the form of MN x MN matrix.
  • the backward NSPT process can be expressed as Equation 5 below using the same variables.
  • G T denotes the transpose matrix of G.
  • the forward RPT operation and the backward RPT operation according to the present disclosure can also be expressed by the two mathematical expressions above.
  • y is an r x 1 column vector instead of an MN x 1 column vector
  • G is an r x MN matrix instead of an MM x MN matrix. That is, even if RPT is applied instead of NSPT, the dimension of the sample signal (e.g., image residual signal) does not change, which may mean that the original number of sample signals (i.e., MN sample signals) can be restored with only r transform coefficients through the backward RPT. That is, the original MN sample signals can be restored by coding only r transform coefficients that are less than MN, which may lead to an improvement in coding performance.
  • MN sample signals i.e., MN sample signals
  • an RPT structure that defines an r value considering the statistical characteristics of a residual block, and derives a residual block of an existing transform block size from a residual block of a reduced size determined according to the defined r value. If an additional transformation (i.e., a secondary transform) is applied to predict a statistical distribution of primary transform coefficients, quantized non-zero coefficients may be concentrated in a relatively low frequency region since a quantization process is applied to the primary transform coefficients. Accordingly, a reduced secondary transform for statistical distribution of primary transform coefficients can define the statistical characteristics of primary transform coefficients relatively simply in the form of setting an r value for a given low frequency region.
  • a secondary transform for statistical distribution of primary transform coefficients can define the statistical characteristics of primary transform coefficients relatively simply in the form of setting an r value for a given low frequency region.
  • the RPT is a technique for defining an r value considering the statistical characteristics of samples in a residual block that have very different characteristics from the distribution of primary transform coefficients, and thus has a fundamental difference from the reduced secondary transform.
  • the RPT kernel which is a reduced-dimensional transformation matrix. In other words, we describe below a method for determining or defining the r value in the RPT.
  • memory usage can be considered as a measure of worst-case complexity.
  • memory usage and/or number of multiplications per sample can be considered as a measure of worst-case complexity. For example, if the maximum possible number of multiplications per sample is set to 16 for a 16x16 block, and the memory usage is set to 8KB or less per kernel (kernel coefficients are expressed in 1 byte), then the value of r can be set to 16 or less.
  • the r value constituting the RPT kernel may be determined by specific information.
  • the r value constituting the RPT kernel may be determined based on a predefined encoding parameter.
  • the r value may be determined according to the size of the block.
  • the RPT kernel may be variably determined according to the size of the block.
  • the block may be at least one of a coding block, a transform block, and a prediction block.
  • the r value may be determined based on prediction information.
  • the prediction information may include information about inter/intra prediction, intra prediction mode information, etc.
  • the r value may be determined based on signaled information (value of a syntax element).
  • the r value may be variably determined according to a quantization parameter value.
  • a predefined fixed value may be used as the r value, and the predefined fixed value may be determined based on the signaled information.
  • r transform coefficients can be obtained.
  • the obtained r transform coefficients can be arranged according to a scan order of the predefined transform coefficients (e.g., forward/backward zig-zag scan order, forward/backward horizontal scan order, forward/backward vertical scan order, forward/backward diagonal scan order, a scan order specified based on an intra prediction mode, etc.).
  • the transform coefficients obtained from the forward RPT application are arranged according to such a scan order (e.g., a scan order per coefficient group (CG) unit can also be applied), if the value of r is smaller than MN, the inside of the M x N block cannot be completely filled with the r transform coefficients, and thus a blank space may be generated.
  • a scan order e.g., a scan order per coefficient group (CG) unit can also be applied
  • CG scan order per coefficient group
  • the values of empty spaces can be filled using the values of available surrounding pixels.
  • the values of empty spaces can be filled based on the values of available surrounding pixels and the intra prediction mode.
  • the values of empty spaces can be predicted by performing intra prediction based on the values of available surrounding pixels and the intra prediction mode.
  • the empty space values can be filled in from available surrounding pixels using a predefined intra prediction mode (e.g., planar mode).
  • a predefined intra prediction mode e.g., planar mode
  • filling in the blank space with 0 among the examples described above may be referred to as a zero-out process.
  • the following embodiment may be applied. If a non-zero transform coefficient is detected (or parsed) in the blank space portion during parsing of the transform coefficients on the decoding device side, it may be considered (or inferred) that the RPT is not applied. In other words, if a non-zero transform coefficient exists in the predefined area representing the corresponding blank space, it may be considered that the RPT is not applied. In this case, signaling (or parsing) for a flag indicating whether to apply the RPT and/or an index designating one of a plurality of RPT kernel candidates may not be performed. As an example, if a non-zero transform coefficient exists in the predefined area representing the corresponding blank space, a predefined variable value may be updated, and it may be inferred that the RPT is not applied based on the updated variable value.
  • the r value when a 16x64 matrix is applied as a forward RPT matrix for an 8x8 block, the r value may be 16.
  • the CG when the CG is a 4x4 sub-block, only the upper left 4x4 block may be filled with a non-zero RPT transform coefficient, and the remaining three 4x4 sub-blocks (i.e., the upper right, lower left, and lower right sub-blocks), which are empty spaces, may be filled with 0 values.
  • a non-zero transform coefficient is detected in the remaining three 4x4 sub-block areas during the decoding process, it may be considered that the RPT is not applied.
  • a flag indicating whether to apply the RPT or an index specifying one of a plurality of RPT kernel candidates may not be signaled.
  • non-zero RPT transform coefficients may be filled only for two CGs in the scan order.
  • the RPT transform coefficients may be filled in the upper-left 4x4 sub-block and the 4x4 sub-block adjacent to the lower side of the upper-left sub-block.
  • the area to be filled with zero as an empty space may be determined as the remaining area excluding the two 4x4 sub-blocks.
  • the RPT kernel may be variably determined depending on the size and/or shape of the block, and as discussed above, the empty space may be determined differently for an 8x8 block and a 16x8 block.
  • RPT may not be applied. In this case, signaling for information related to RPT may be omitted. However, since it is not possible to determine whether RPT is applied if a non-zero transform coefficient is not detected in the empty space area, the flag indicating whether RPT is applied may be parsed after parsing (or signaling) the related transform coefficients to finally determine whether RPT is applied.
  • a forward secondary transform may be additionally applied to the transform coefficients generated through the application of RPT.
  • a forward secondary transform may be additionally applied to a region where the generated transform coefficients are located in an M x N block.
  • the region or a part of the region may be referred to as an ROI in terms of the forward secondary transform.
  • the backward secondary transform may be applied first and then the backward RPT may be applied.
  • a region or a part of the region where r transform coefficients generated by the application of the forward RPT are located may be set as an ROI and the forward secondary transform may be applied.
  • the generated 16 transform coefficients may be located in the upper left 4x4 sub-block, and the sub-block region may be set as an ROI and the forward secondary transform may be applied to the ROI.
  • the RPT kernel can adjust the coefficient values considering operations such as integer operations or fixed-point operations. That is, the RPT kernel can be configured to perform a transformation through integer operations (or fixed-point operations) in a practical codec system by appropriately scaling the kernel coefficients belonging to the kernel, rather than a theoretical orthogonal transformation or non-orthogonal transformation (wherein, the orthogonal transformation and the non-orthogonal transformation represent transformations in which the norm of each transformation basis vector is 1).
  • the scaling factor multiplied can be equally reflected when applying the RPT.
  • a separable transformation or a non-separable transformation can be performed while maintaining other processes (e.g., quantization and dequantization processes) other than the transformation.
  • Integer coefficients of the RPT kernel can be obtained by multiplying the transformation basis vector by the scaling value described above.
  • multiplying the scaling value may include applying operations such as rounding, flooring, and ceilinging to each kernel coefficient. That is, the integerized RPT kernel obtained through the above-described method is defined and can be used in the transformation/inverse transformation process.
  • the maximum and minimum values can be obtained for all kernel coefficients, so that the number of bits that can express all kernel coefficients can be obtained from the maximum and minimum values. For example, if the maximum value is less than or equal to 127 and the minimum value is greater than or equal to -128, all integer kernel coefficients can be expressed with 8 bits (in particular, through 2's complement representation, etc.).
  • all integer kernel coefficients can be represented with N bits. If the maximum is greater than (2 (N-1) - 1) or the minimum is less than -2 (N-1) , then not all integer kernel coefficients can be represented with N bits. In this case, 1) all kernel coefficients can be additionally multiplied by a scaling factor to fit within the N-bit range, or 2) the number of bits required to represent the kernel coefficients can be increased (i.e., more than N+1 bits).
  • All kernel coefficients can be expressed as 8-bit, 9-bit, 10-bit, etc. using the method described above.
  • the scaling value of the kernel coefficients can be set differently for each block size or kernel, and the number of bits for expressing the kernel coefficients can be set differently.
  • the above-described NSPT can be applied based on at least one of the size, tree type, or component type of the current block. For example, whether to apply the NSPT can be determined based on at least one of the size, tree type, or component type of the current block.
  • An NSPT index can be signaled based on at least one of the size, tree type, or component type of the current block.
  • An NSPT set or an NSPT kernel can be derived based on at least one of the size, tree type, or component type of the current block.
  • Allowed transform block sizes defined in the decoding device can be broadly divided into two groups.
  • One of the two groups (hereinafter referred to as the first group) may mean a set of block sizes to which NSPT can be applied.
  • the first group may be composed of one of the allowed transform block sizes, or may be composed of two or more block sizes among the allowed block sizes.
  • the block size to which NSPT can be applied may be defined as a block size in which at least one of the width and the height is less than or equal to a predetermined threshold.
  • the block size to which NSPT can be applied may be defined as a block size in which the product of the width and the height is less than or equal to a predetermined threshold.
  • the block size to which NSPT can be applied may be defined as a block size in which the maximum value of the width and the height is less than or equal to a predetermined threshold.
  • the threshold may be an integer of 4, 8, 16, 32, 64, 128, or higher.
  • the other of the above two groups may mean a set of block sizes to which NSPT is not applied.
  • the above-described separable primary transformation may be applied to the block sizes belonging to the second group.
  • a non-separable secondary transformation may be applied to all or part of the block sizes belonging to the second group.
  • the reverse NSPT can be applied to the (dequantized) transform coefficients of the current block.
  • the reverse separable primary transform can be applied to the (dequantized) transform coefficients of the current block.
  • the reverse non-separable secondary transform e.g., low frequency non-separable transform, LFNST
  • the reverse separable primary transform e.g., DCT-2
  • the first group which is a set of block sizes to which NSPT can be applied, can be defined as a set of 4x4, 4x8, 8x4, 8x8.
  • the first group can be defined as a set of 4x8, 8x4, 8x8.
  • the first group can be defined as a set of 4x8, 8x4.
  • the first group can be defined as a set of 4x4, 4x8, 4x16, 8x4, 8x8, 16x4.
  • the first group can be defined as a set of 4x8, 4x16, 8x4, 8x8, 16x4.
  • the first group can be defined as a set of 4x8, 4x16, 8x4, 16x4.
  • the first group can be defined as a set of 4x4, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16.
  • the first group can be defined as a set of 4x4, 4x8, 8x4, 8x8, 8x16, 16x8.
  • the first group can be defined as a set of 4x8, 8x4, 8x8, 8x16, 16x8.
  • the first group can be defined as a set of 4x4, 4x8, 8x4, 8x8, 8x16, 16x8.
  • the first group can be defined as a set of 4x4, 4x8, 8x4, 8x8, 8x16, 16x32, 32x16, 32x32.
  • the first group can be defined as the set of 4x4, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16, 16x32, 32x16.
  • the first group can be defined as the set of 4x8, 8x4, 8x8, 8x16, 16x8, 16x16, 16x32, 32x16.
  • the first group can be defined as the set of 4x8, 8x4, 8x16, 16x8, 16x16, 16x32, 32x16.
  • the first group can be defined as the set of 4x8, 8x4, 8x16, 16x8, 16x32, 32x16.
  • the first group can be defined as a set of 4x4, 4x8, 4x16, 8x4, 16x4.
  • the first group can be defined as a set of 4x4, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8.
  • the first group can be defined as a set of 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8.
  • the first group can be defined as a set of 4x4, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8.
  • the first group can be defined as the set of 4x8, 4x16, 8x4, 8x16, 16x4, 16x8.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8, 16x16.
  • the first group can be defined as the set of 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8, 16x16.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8, 16x16.
  • the first group can be defined as the set of 4x8, 4x16, 8x4, 8x16, 16x4, 16x8, 16x16.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 32x4, 32x8.
  • the first group can be defined as the set of 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 32x4, 32x8.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 32x4, 32x8.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x32, 32x4, 32x8, 32x16.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 16x32, 32x4, 32x8, 32x16.
  • the first group can be defined as the set of 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 16x32, 32x4, 32x8, 32x16.
  • the first group can be defined as the set of 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 16x32, 32x4, 32x8, 32x16, 32x32.
  • an NSPT matrix (or NSPT kernel) having a predetermined dimension
  • the NSPT matrix can be expressed as a matrix having a dimension of PxQ as a reverse transformation matrix
  • the PxQ matrix represents a matrix in which the number of rows and the number of columns are P and Q, respectively.
  • an NSPT matrix of 16x16 may be applied.
  • an NSPT matrix of 32x20 may be applied.
  • an NSPT matrix of 64x24 may be applied.
  • an NSPT matrix of 64x32 may be applied.
  • an NSPT matrix of 128x40 may be applied.
  • an NSPT matrix of 256x44 may be applied.
  • an NSPT matrix of 128x36, 128x38, or 128x40 may be applied.
  • an NSPT matrix of 256x48 can be applied.
  • an NSPT matrix of 512x52 or 512x54 can be applied.
  • a Px1 output vector can be obtained by applying the PxQ matrix to the Qx1 input vector (i.e., (PxQ matrix) x (Qx1 input vector)).
  • the Qx1 input vector may correspond to (inverse quantized) transform coefficients in the current block to which the NSPT is applied.
  • the value of Q may mean the number of transform coefficients to which the NSPT is applied, and may be less than or equal to the product of the width and the height of the current block.
  • the value of Q may be variably determined based on the size of the current block among the block sizes belonging to the first group described above.
  • the value of Q may be set to be the same for the block sizes belonging to the first group.
  • the Px1 output vector may correspond to a residual signal (or, decoded residual samples).
  • the value of P may be equal to the product of the width and the height of the current block.
  • the forward NSPT matrix can be expressed as a QxP matrix, which is a transpose matrix of the PxQ matrix.
  • a QxP output vector can be obtained by applying the QxP matrix to the Px1 input vector (i.e., (QxP matrix)x(Px1 input vector)).
  • the Px1 input vector can correspond to residual samples in the current block to which the NSPT is applied.
  • the value of P can be equal to the product of the width and the height of the current block.
  • the Qx1 output vector can correspond to transform coefficients in the current block induced through the NSPT.
  • the value of Q can mean the number of transform coefficients output through the NSPT, and can be less than or equal to the product of the width and the height of the current block.
  • the value of Q can be variably determined based on the size of the current block among the block sizes belonging to the first group described above.
  • the value of Q can be set identically for the block sizes belonging to the first group.
  • NSPT can be applied to non-square blocks, MxN blocks and NxM blocks.
  • NSPT can be applied to 4x8 blocks and 8x4 blocks.
  • NSPT can be applied to 4x16 blocks and 16x4 blocks, or NSPT can be applied to 8x16 blocks and 16x8 blocks, or NSPT can be applied to 16x32 blocks and 32x16 blocks.
  • LFNST can be composed of a small number of transform basis vectors.
  • a separable primary transform such as DCT-2 and a non-separable secondary transform such as LFNST are applied instead of NSPT to the corresponding block sizes, performance degradation may occur.
  • NSPT NSPT
  • LFNST the transpose operation is performed on the corresponding input block only for the ROI region by utilizing symmetry.
  • NSPT the transpose operation is performed on the entire block by utilizing symmetry. Therefore, in the case of NSPT, the corresponding NSPT kernel can be trained and applied by utilizing a more sophisticated symmetry, so performance improvement can be expected.
  • a 32x64 transformation matrix can be applied instead of a 16x64 transformation matrix from the perspective of forward transformation.
  • the 16x64 transformation matrix can be constructed by sampling the upper 16 rows of the 32x64 transformation matrix.
  • NSPT can be applied to the luma component of the current block, and NSPT can not be applied to the chroma component of the current block. If the tree type of the current block is a dual tree, NSPT can be applied to the luma component and chroma component of the current block.
  • NSPT may be applied to the luma component of the current block and not applied to the chroma component of the current block, regardless of whether the tree type of the current block is a single tree.
  • NSPT may be applied to the luma component and chroma component of the current block, regardless of whether the tree type of the current block is a single tree.
  • the tree type of the current block is single tree
  • NSPT is allowed for luma and chroma components
  • the size of the current block belongs to the first group one NSPT index can be signaled, and the luma and chroma components of the current block can share the NSPT index.
  • the NSPT index can be an index for selecting any one of the transformation kernel candidates for the NSPT. If the sizes of the luma block and the chroma block of the current block belong to the first group, the transformation kernel candidate selected by the same NSPT index can be applied to the luma and chroma components.
  • LFNST may not be applied to the chroma component of the current block, and a separate transformation may be applied.
  • LFNST may be applied to the chroma component of the current block.
  • the luma component and the chroma component have independent partitioning and encoding structures. In this case, by signaling the NSPT index for each component, the characteristics of each component can be reflected and compression efficiency can be improved.
  • the NSPT kernel for the above NSPT can be derived based on at least one of symmetry between intra prediction modes or symmetry between block shapes.
  • the NSPT kernel can be derived as an NSPT kernel corresponding to at least one of a mode symmetrical to an intra prediction mode of a current block or a block shape symmetrical to a block shape of the current block.
  • the NSPT kernel can be derived based on an NSPT set including one or more NSPT kernel candidates, wherein the NSPT set can be derived as an NSPT set corresponding to at least one of a mode symmetrical to an intra prediction mode of a current block or a block shape symmetrical to a block shape of the current block.
  • Any one of the one or more NSPT kernel candidates belonging to the NSPT set can be set as the NSPT kernel of the current block.
  • an NSPT index specifying any one of the one or more NSPT kernel candidates belonging to the NSPT set can be used.
  • the NSPT index can be signaled through a bitstream or can be derived based on the aforementioned symmetry.
  • Modes 2 to 66 may be named normal directional modes (which may be expressed as [2, 66]), and modes -14 to -1 (which may be expressed as [-14, -1]) and modes 67 to 80 (which may be expressed as [67, 80]) may be named wide directional modes.
  • the wide directional mode may include at least one of a mode having a value smaller than -14 or a mode having a value larger than 80.
  • all modes except mode 0 and mode 1 are symmetrical with respect to mode 34.
  • mode x and mode (68 - x) are symmetrical
  • mode x and mode (66 - x) are symmetrical between mode [-14, -1] and mode [67, 80].
  • the same symmetry relationship can be established between mode [N, -1] and mode [67, 66 - N].
  • N can be an integer less than or equal to -14.
  • an MxN block and an NxM block can be defined as blocks that are symmetric to each other.
  • M and N can be the same or different.
  • an M1xN1 block and an M2xN2 block can be defined as blocks that are symmetric to each other.
  • an M1xN1 block and an M2xN2 block can be defined as blocks that are symmetric to each other.
  • modes that are symmetric to each other can share at least one of the NSPT set, the NSPT index, or the NSPT kernel. That is, at least one of the NSPT set, the NSPT index, or the NSPT kernel for one of the symmetric modes can be applied equally to another of the symmetric modes.
  • modes that are symmetric to each other can share one NSPT kernel.
  • the corresponding NSPT kernel can be applied to the input data, and for the other mode, a transpose operation can be applied to the input data and then the corresponding NSPT kernel can be applied.
  • a one-dimensional vector (1D vector) can be constructed in the row-first order for the MxM block, which is the input data, and the NSPT kernel can be applied to the 1D vector.
  • the construction of the 1D vector in the column-first order can be done by reading the input data from the MxM block, which is the input data, in units of columns, obtaining M columns, and arranging them in order to construct the 1D vector.
  • a 1D vector can be constructed in the column-first order and the same NSPT kernel can be applied to the 1D vector.
  • the configuration of the 1D vector according to the row-major order may be to read the input data in units of rows from the MxM block of input data, obtain M rows, and sequentially arrange them to configure a 1D vector.
  • the 1D vector may be configured in the column-first order for the (66 - x) mode that is symmetric to the x-th mode, and the same NSPT kernel as that of the x-th mode may be applied to the 1D vector.
  • the column-first order or the row-first order may be applied to the modes 0 and 1, and the column-first order or the row-first order may be applied to the mode 34.
  • the row-first order may be applied to the intra prediction mode belonging to the [2, 33] mode, and the column-first order may be applied to the mode that is symmetric to the intra prediction mode.
  • row-major ordering can be applied, and for modes symmetrical to this, column-major ordering can be applied.
  • non-square blocks in addition to the symmetry between intra prediction modes, symmetry between block shapes may be further considered.
  • a non-square block whose width and height are M and N, respectively, can be viewed as having a symmetry relationship with a non-square block whose width and height are N and M, respectively.
  • the xth mode of an MxN block belongs to the [N, -1] mode (N ⁇ -14)
  • the method of constructing a 1D vector from an input data block is as discussed above. That is, if the column-major order is applied to the x-th mode, the row-major order can be applied to the mode that is symmetric to it. Alternatively, if the row-major order is applied to the x-th mode, the column-major order can be applied to the mode that is symmetric to it. Specifically, if the column-major order is applied to the x-th mode, the input data can be read from the MxN block of input data in units of columns to obtain M columns, which can be arranged in order to construct a 1D vector. Here, each column can have a length of N.
  • the input data can be read from the MxN block of input data in units of rows to obtain N rows, which can be arranged in order to construct a 1D vector.
  • each row can have a length of M.
  • the input data can be read from the MxN block of input data in units of rows to obtain N rows, which can be arranged in order to construct a 1D vector.
  • each row can have a length of M.
  • input data can be read column by column from the MxN block of input data to obtain M columns, and these can be arranged in order to form a 1D vector.
  • each column can have a length of N.
  • the NSPT set and/or the NSPT kernel of the current block can be determined based on at least one of an intra prediction mode symmetric to the x mode or a block size of NxM symmetric to the block size of MxN.
  • the NSPT kernel can be set as the NSPT kernel for the NxM block, not the NSPT kernel for the MxN block. That is, if the symmetry is utilized for the current block, the NSPT set and/or the NSPT kernel for the block having symmetry with the current block can be utilized in the same manner.
  • a 1D vector can be constructed from an input data block according to a predetermined priority order, and this can correspond to the input of the NSPT kernel.
  • the symmetry may be restricted to be utilized only when the value of the intra prediction mode of the current block is greater than 34. That is, when the value of the intra prediction mode of the current block is greater than 34, a transpose operation may be applied when constructing a 1D vector from an input data block, and an NSPT set or NSPT kernel corresponding to a mode and/or block shape having symmetry with the current block may be utilized. Specifically, when the intra prediction mode of the current block belongs to the [N, -1] mode and the [2, 34] mode, the symmetry may not be utilized for the current block. On the other hand, when the intra prediction mode of the current block belongs to the [35, 66] mode and the [67, 66 - N] mode, the symmetry may be utilized for the current block.
  • N may be an integer less than or equal to -14.
  • the derivation of the NSPT set or NSPT kernel based on the above symmetry can be adaptively performed based on the size of the current block. For example, for 4x4 blocks and 8x8 blocks, the NSPT set or NSPT kernel may be derived based on symmetry, and for 4x8 blocks and 8x4 blocks, the NSPT set or NSPT kernel may not be derived based on symmetry.
  • the number of available NSPT sets may be different. For example, if symmetry is utilized, the number of available NSPT sets may be 35, and if symmetry is not utilized, the number of available NSPT sets may be 67.
  • Table 9 shows an example of how the NSPT set is determined using symmetry, and shows the mapping relationship between intra prediction modes and NSPT sets when the number of available NSPT sets is 35.
  • Intra prediction mode NSPT set index X ⁇ 0 2 0 ⁇ X ⁇ 34 X 35 ⁇ X ⁇ 66 68 - X X > 66 2
  • the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of 2 among the 35 NSPT sets. If the value (X) of the intra prediction mode of the current block is greater than or equal to 0 and less than or equal to 34, the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of X among the 35 NSPT sets.
  • the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of (68-X) among the 35 NSPT sets. If the value (X) of the intra prediction mode of the current block is greater than or equal to 35 and less than or equal to 66, the NSPT set of the current block may be identical to the NSPT set corresponding to the value (68-X) of the mode symmetrical to the intra prediction mode of the current block.
  • the NSPT set of the current block may be determined as the NSPT set having an NSPT set index of 2 among the 35 NSPT sets. If the value (X) of the intra prediction mode of the current block is greater than 66, the NSPT set of the current block may be identical to the NSPT set corresponding to the mode symmetrical to the intra prediction mode of the current block.
  • Table 10 shows an example in which the NSPT set is determined without using symmetry, and shows the mapping relationship between intra prediction modes and NSPT sets when the number of available NSPT sets is 67.
  • Intra prediction mode NSPT set index X ⁇ 0 2 0 ⁇ X ⁇ 66 X X > 66 66
  • the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of 2 among the 67 NSPT sets. If the value (X) of the intra prediction mode of the current block is greater than or equal to 0 and less than or equal to 66, the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of X among the 67 NSPT sets. If the value (X) of the intra prediction mode of the current block is greater than 66, the NSPT set of the current block can be determined as the NSPT set having the NSPT set index of 66 among the 67 NSPT sets.
  • the memory size required for storing the transformation kernel can be saved while maintaining the performance according to the transformation application. For example, if 35 NSPT sets are used instead of 67 NSPT sets by utilizing the symmetry, the memory size required for storing the NSPT kernel can be significantly reduced.
  • the number of available NSPT sets and/or the number of NSPT kernel candidates in an NSPT set may vary depending on the block size.
  • the number of available NSPT sets for a 4x4 block may be 35
  • the number of available NSPT sets for 4x8 blocks and 8x4 blocks may be 19, and the number of available NSPT sets for 8x8 blocks may be 10.
  • the NSPT set for a 4x4 block may consist of three NSPT kernel candidates
  • the NSPT sets for 4x8 blocks and 8x4 blocks may consist of three or two NSPT kernel candidates
  • the NSPT set for an 8x8 block may consist of one NSPT kernel candidate.
  • the size of the transform kernel may increase. Accordingly, by reducing the number of available NSPT sets and/or the number of NSPT kernel candidates belonging to the NSPT set, the memory size required for storing the transform kernel can be saved. In addition, as the block size increases, the residual signal characteristics within the corresponding block tend to become more generalized. Therefore, reducing the number of available NSPT sets and/or the number of NSPT kernel candidates belonging to the NSPT set can help maintain compression efficiency while reducing the implementation complexity by reflecting these statistical characteristics.
  • the NSPT kernel can be configured with 8-bit precision.
  • the range of the coefficients in the NSPT kernel can be greater than or equal to -128 and less than or equal to 127. If the precision is increased to more than 8 bits, the result obtained through matrix multiplication can be shifted to the right by the increased precision. For example, if the value obtained after matrix multiplication based on the NSPT kernel with 8-bit precision is shifted to the right by S bits and stored in the buffer, if the coefficients of the kernel are configured with N-bit precision, they can be shifted to the right by (S+(N-8)) bits and stored in the buffer.
  • the size of the NSPT kernel (or NSPT matrix) can be expressed as MN x r.
  • MN can mean the product of the width and the height of the current block. This can mean the output length of the NSPT or the number of residual samples generated by the NSPT.
  • r can mean the input length of the NSPT or the number of (inverse quantized) transform coefficients to which the NSPT is applied. r can be an integer greater than or equal to 0 and less than or equal to MN. The following is an example of the NSPT matrix of MN x r according to the block size.
  • the NSPT matrix for a 4x4 block can be composed of a 16x16 matrix.
  • the NSPT matrix for a 4x8 block and an 8x4 block can be composed of a 32x20 matrix, a 32x16 matrix, a 32x24 matrix, a 32x28 matrix, or a 32x32 matrix.
  • the NSPT matrix for an 8x8 block can be composed of a 64x16 matrix, a 64x24 matrix, a 64x32 matrix, a 64x40 matrix, a 64x48 matrix, a 64x56 matrix, or a 64x64 matrix.
  • the NSPT matrix for a 4x16 block and a 16x4 block can be composed of a 64x16 matrix, a 64x24 matrix, a 64x32 matrix, a 64x40 matrix, a 64x48 matrix, a 64x56 matrix, or a 64x64 matrix.
  • the NSPT matrix for 8x16 blocks and 16x8 blocks can be a 128x96 matrix, a 128x64 matrix, a 128x48 matrix, or a 128x32 matrix.
  • the NSPT matrix for 16x16 blocks can be a 256x128 matrix, a 256x96 matrix, or a 256x64 matrix.
  • the NSPT matrix for 16x32 blocks and 32x16 blocks can be a 512x256 matrix or a 512x128 matrix.
  • the NSPT matrix for 32x32 blocks can be a 1024x512 matrix, a 1024x256 matrix, or a 1024x128 matrix.
  • a 16x16 matrix can be applied for 4xN blocks and Nx4 blocks, where N can be an integer greater than or equal to 4.
  • a 64x16 matrix can be applied for 8x8 blocks.
  • a 64x32 matrix can be applied for 8xN blocks and Nx8 blocks, where N can be an integer greater than or equal to 16.
  • a 96x32 matrix can be applied for 16xN blocks and Nx16 blocks, where N can be an integer greater than or equal to 16.
  • the value of r in the NSPT matrix of MN x r may be determined according to a predetermined criterion.
  • the criterion may be (1) ensuring that the sum of the amount of computation for the first transformation and the amount of computation for the second transformation is below a certain level, and (2) ensuring that the number of multiplications per sample required for the NSPT operation is below a certain number.
  • a separate linear transformation is performed on an MxN block by matrix multiplication, (M+N) multiplications are required per sample to perform the linear transformation.
  • LFNST is applied to a certain ROI (Region-Of-Interest) area, assuming that the LFNST matrix of the reverse transformation is a PxQ matrix, (P*Q)/(M*N) multiplications are required per sample.
  • a PxQ matrix can mean a matrix in which the number of rows is P and the number of columns is Q.
  • the value of r that ensures that the number of multiplications per sample for applying NSPT is less than or equal to the number of multiplications per sample for applying DCT-2 transform and LFNST can be determined as follows.
  • the value of r in the NSPT matrix by block size can be set as follows.
  • mathematical expression 6 if the value of (P*Q)/(M*N) is not an integer, an integer close to the value of (P*Q)/(M*N) can be used.
  • a floor operation can be applied to the value of (P*Q)/(M*N).
  • r can be set to (M + N + floor((P*Q)/(M*N))).
  • floor(x) can mean the largest integer that does not exceed x.
  • a round operation can be applied to the value of (P*Q)/(M*N).
  • r can be set to (M + N + round((P*Q)/(M*N))).
  • round(x) can mean a rounded value of x.
  • a ceil operation can be applied to the value of (P*Q)/(M*N).
  • r can be set to (M + N + ceil((P*Q)/(M*N))).
  • ceil(x) can mean the smallest integer greater than or equal to x.
  • the maximum value of r is 24. However, the value of r must be less than or equal to 16, so the value of r can be set to 16.
  • the maximum value of r is 20.
  • the value of r can be set to 20.
  • the maximum value of r is 32.
  • the value of r can be set to 32.
  • the maximum value of r is 24.
  • the value of r can be set to 24.
  • the maximum value of r is 40.
  • the value of r can be set to 40.
  • the maximum value of r is 44.
  • the value of r can be set to 44.
  • the maximum value of r is 54.
  • the value of r can be set to 54.
  • the maximum value of r is 67.
  • the value of r can be set to 67.
  • the maximum value of r is 38.
  • the value of r can be set to 38.
  • the value of r can be set to 20.
  • the maximum value of r is 48.
  • the value of r can be set to 48.
  • the value of r can be set to 24.
  • the value of r is not a multiple of 4.
  • SIMD Single Instruction Multiple Data
  • the value of r can be set to 52 or 56 instead of 54.
  • the value of r can be set to 64 or 68 instead of 67.
  • the value of r can be set to 36 or 40 instead of 38.
  • the value of r can be set to be a multiple of K, where K can be an integer greater than or equal to 1.
  • K can be an integer greater than or equal to 1.
  • the value of r can be set to be a multiple of K that satisfies the inequality in the following mathematical expression (7).
  • func() can be floor, round, or ceil as described above.
  • the value of r according to the above-mentioned predetermined criterion is for the case where zero-out is not considered. That is, when forward LFNST is applied, the primary transformed transform coefficients of the remaining areas except for the area where LFNST is applied are zeroed out, so the actual amount of calculation required to apply DCT-2 and LFNST may be less than the above-mentioned amount of calculation. Therefore, when the above-mentioned zero-out is considered, the value of r may be set to a value smaller than the value of r according to the above-mentioned predetermined criterion.
  • the value of r can be set to a value less than or equal to 16.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 16, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable primary transform and LFNST, the value of r can be set to a value less than or equal to 16.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 14, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable primary transform and LFNST, the value of r can be set to a value less than or equal to 14.
  • zero-out may not be performed for the separable primary transform, in which case the value of r may be set to a value less than or equal to 32.
  • zero-out can be performed on the remaining areas except for the upper left 8x8 block based on the forward transform, and a 64x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 8x8 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 32, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable primary transform and LFNST, the value of r can be set to a value less than or equal to 32.
  • zero-out can be performed on the remaining areas except for the upper left 8x8 block based on the forward transform, and a 64x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 8x8 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 28, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable first-order transform and LFNST, the value of r can be set to a value less than or equal to 28.
  • zero-out can be performed on the remaining areas except for the upper left 12x12 block based on the forward transform, and a 96x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 12x12 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 33, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable primary transform and LFNST, the value of r can be set to a value less than or equal to 33.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 12, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable primary transform and LFNST, the value of r can be set to a value less than or equal to 12.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 9, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable first-order transform and LFNST, the value of r can be set to a value less than or equal to 9.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r when replacing the separable linear transform and LFNST with NSPT, the value of r can be set to a value less than or equal to 10, which is the sum of the number of sample-wise multiplications in the separable linear transform and the number of sample-wise multiplications in the LFNST. Since the same amount of computation is required when applying the reverse separable first-order transform and LFNST, the value of r can be set to a value less than or equal to 10.
  • zero-out can be performed on the remaining areas except for the upper left 4x4 block based on the forward transform, and a 16x16 matrix, which is the forward LFNST matrix, can be applied to the upper left 4x4 block.
  • the value of r can be set to a value less than or equal to 6.5.
  • the value of r is a value that constitutes the matrix dimension, so it can be set to an integer of 6 or 7 instead of 6.5.
  • zero-out can be performed on the remaining areas except for the upper left 8x8 block based on the forward transform, and a 64x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 8x8 block.
  • zero-out can be performed on the remaining areas except for the upper left 8x8 block based on the forward transform, and a 64x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 8x8 block.
  • zero-out can be performed on the remaining areas except for the upper left 12x12 block based on the forward transform, and a 96x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 12x12 block.
  • zero-out can be performed on the remaining areas except for the upper left 12x12 block based on the forward transform, and a 96x32 matrix, which is the forward LFNST matrix, can be applied to the upper left 12x12 block.
  • the value of r can be set to a value less than or equal to 19.5. Since the same amount of computation is required when applying the reverse separable first-order transform and LFNST, the value of r can be set to a value less than or equal to 19.5.
  • the value of r is a value that constitutes the matrix dimension, so it can be set to an integer of 19 or 20 instead of 19.5.
  • the value of r is not a multiple of K.
  • K may be 4.
  • the value of r may be set to be a multiple of K.
  • the value of r that is a multiple of K may be set as follows.
  • func() can be floor, round, or ceil as described above.
  • the value of r in the NSPT matrix for an MxN block may be different from the value of r in the NSPT matrix for an NxM block.
  • the reverse NSPT matrix for a 4x8 block may be a 32x16 matrix
  • the reverse NSPT matrix for an 8x4 block may be a 32x14 matrix.
  • the NSPT matrix may be determined by utilizing the symmetry between the MxN block and the NxM block.
  • the current block is an MxN block with x mode.
  • an NSPT matrix corresponding to at least one of a mode symmetric to the x mode or a block size of NxM symmetric to the block size of MxN may be applied.
  • the NSPT matrix corresponding to the block size of NxM for the current block may be applied as is.
  • the NSPT matrix corresponding to the block size of NxM may be applied, but the value of r may be the value of r in the NSPT matrix corresponding to the block size of MxN.
  • the reverse NSPT matrix for a 4x8 block may be a 32x16 matrix (i.e., the value of r in the NSPT matrix is 16), and the reverse NSPT matrix for an 8x4 block may be a 32x14 matrix (i.e., the value of r in the NSPT matrix is 14).
  • the NSPT matrix for at least one of a mode symmetric to mode x for the current block or a 4x8 block symmetric to the 8x4 block may be applied.
  • the 32x16 matrix which is the reverse NSPT matrix for the 4x8 block
  • a 32x14 matrix having the value of r in the reverse NSPT matrix for the 8x4 block may be used.
  • the 32x14 matrix may be derived by sampling 14 rows from the left in the 32x16 matrix. In this way, when a 32x14 matrix is applied to the current block with a block size of 8x4, the aforementioned criteria are satisfied.
  • an NSPT matrix for at least one of a mode symmetric to mode x for the current block or an 8x4 block symmetric to the 4x8 block can be applied.
  • a 32x14 matrix for an 8x4 block can be applied instead of a 32x16 matrix for a 4x8 block. This allows NSPT to be performed using fewer multiplications than are allowed for a 4x8 block.
  • the reverse NSPT matrix for MxN blocks and NxM blocks can be set to MN x max(r1, r2).
  • max(r1, r2) can mean selecting a value that is greater than or equal to r1 and r2.
  • the backward NSPT matrix for a 4x8 block can be a 32x16 matrix (i.e., the value of r in the NSPT matrix is 16), and the backward NSPT matrix for an 8x4 block can be a 32x14 matrix (i.e., the value of r in the NSPT matrix is 14).
  • the current block is a 4x8 block with mode x
  • the NSPT matrix for at least one of a mode symmetric to the x mode for the current block or an 8x4 block symmetric to the 4x8 block can be applied.
  • the 32x16 matrix which is the backward NSPT matrix for the 8x4 block, can be used.
  • the 32x14 matrix will be used as the NSPT matrix for the 8x4 block.
  • the NSPT matrix for 4x8 blocks and the NSPT matrix for 8x4 blocks are configured as 32 x max(16, 14) matrices, the 32x16 matrix can be fully applied.
  • the NSPT matrix for at least one of a mode symmetric to mode x for the current block or a 4x8 block symmetric to the 8x4 block may be applied.
  • a 32x16 matrix, which is the reverse NSPT matrix for the 4x8 block, or a 32x14 matrix may be used.
  • the 32x14 matrix can be derived by sampling 14 rows from the left in the 32x16 matrix.
  • a transformation consisting of the maximum number of transformation basis vectors can be applied while satisfying the above-mentioned conditions, thereby maximizing coding performance.
  • the value of r can be set to be a multiple of 16.
  • a 32x16 matrix instead of a 32x20 matrix can be applied.
  • the transform coefficients of the transform block can be encoded in units of a predetermined coefficient group (CG).
  • CG predetermined coefficient group
  • a CG can be defined as a group of 16 transform coefficients, and for example, a CG can be a sub-block of a size such as 4x4, 2x8, or 8x2.
  • Transform coefficients can be derived by applying forward NSPT to residual samples of an MxN block.
  • the number of derived transform coefficients can be less than or equal to the value of (M*N) due to zero-out. That is, the forward NSPT matrix can be defined as an r x (M*N) matrix, where r means the output length of NSPT or the number of transform coefficients induced through NSPT, and (M*N) means the input length of NSPT or the number of residual samples to which NSPT is applied.
  • the above-described derived transform coefficients can be arranged in an MxN block according to a predetermined scan order, and an area where the transform coefficients are not filled can be filled with 0 (i.e., zero-out). Therefore, during the process of scanning the transform coefficients in a decoding device, if a non-zero transform coefficient is found in an area that would have been filled with 0 if NSPT had been applied (or, if the scan position of the last valid coefficient in the MxN block is greater than or equal to r), it is considered that NSPT is not applied to the corresponding MxN block, and the NSPT index may not be signaled.
  • An index indicating a scan position of 0 may be assigned to the upper-left coefficient (i.e., the DC component coefficient) in the MxN block, and indices increased by 1 may be assigned to the remaining coefficients in the MxN block according to a predetermined order.
  • One or more values of r can be defined for the block sizes to which NSPT can be applied. For example, one or more values of r can be defined for each of the block sizes to which NSPT can be applied. Alternatively, one value of r can be defined for each block size to which NSPT can be applied, and the value of r for one of the block sizes to which NSPT can be applied can be different from the value of r for another one. Alternatively, one value of r can be defined for some of the block sizes to which NSPT can be applied, and two or more values of r can be defined for the rest.
  • an index specifying one of the multiple values of r or r itself can be signaled.
  • the index can be signaled in a high level syntax (HLS) such as VPS, SPS, PPS, PH, SH, or can be signaled at a block level such as CTU, CU, TU.
  • HLS high level syntax
  • VPS VPS
  • SPS SPS
  • PPS PPS
  • PH SH
  • block level such as CTU, CU, TU.
  • the value of r is within a specific range, it can be signaled by allocating enough bits to encompass the range. For example, when the value of r is within the range of 1 to 256, it can be signaled by designating 8 bits as a fixed-length.
  • the transformation kernel of the current block may be determined based on any one of the embodiments 1 to 3 described above. Alternatively, the transformation kernel of the current block may be determined based on a combination of at least two of the embodiments 1 to 3, within a range where the inventions according to the embodiments 1 to 3 described above do not conflict with each other.
  • a transform index for the inverse transform of the current block can be signaled.
  • the transform index can specify one or more transform kernels (or transform matrices) belonging to a transform set.
  • the transform index can mean an NSPT index specifying one or more NSPT kernels belonging to an NSPT set.
  • the transform index can mean an LFNST index specifying one or more LFNST kernels belonging to an LFNST set.
  • Whether the above transformation index corresponds to the NSPT index can be determined based on whether the size of the current block is one of the block sizes belonging to the first group described above. This is based on the assumption that the block sizes to which NSPT is applicable and the block sizes to which LFNST is applicable are distinguished from each other. In this case, if the size of the current block belongs to the first group, the transformation index signaled for the current block corresponds to the NSPT index, and the NSPT kernel can be determined from the NSPT set based on the transformation index.
  • the transformation index signaled for the current block corresponds to the LFNST index
  • the LFNST kernel can be determined from the LFNST set based on the transformation index. If the size of the current block does not belong to the first group, this may mean that the size of the current block belongs to the second group described above. Alternatively, if the size of the current block does not belong to the first group, this may mean that the size of the current block corresponds to a block size to which LFNST is applicable among the block sizes belonging to the second group. In this way, the NSPT index and the LFNST index can be configured as a single integrated syntax rather than as separate syntaxes.
  • NSPT can be applied instead of LFNST.
  • NSPT can be applied instead of the combination of separable primary transform (e.g., DCT-2, separable KLT) and LFNST.
  • the NSPT index can be signaled, and for the remaining block sizes (where LFNST is allowed), the LFNST index can be signaled.
  • the complexity of the implementation can also be reduced.
  • the NSPT index and LFNST index can be signaled separately as separate syntaxes.
  • the implementation complexity may increase somewhat, but compression performance can be improved by performing optimized entropy coding for each index.
  • the same binarization can be applied to the LFNST index and the NSPT index.
  • the same CABAC context (or CABAC context increment) can be assigned to the bins of the LFNST index and the NSPT index.
  • Different binarization and/or CABAC contexts may be used for the LFNST index and the NSPT index.
  • Different CABAC initial values may be assigned for the LFNST index and the NSPT index.
  • one of the LFNST index and the NSPT index may be binarized based on fixed-length binarization, and the other may be binarized based on truncated unary binarization. Even if the binarization of the LFNST index and the NSPT index are the same, different CABAC contexts and/or CABAC initial values may be assigned.
  • different binarization and/or CABAC contexts may be used for the LFNST index and the NSPT index.
  • the number of NSPT kernel candidates belonging to the NSPT set may be set differently for each block size.
  • the block sizes belonging to the first group may be divided into a plurality of subgroups.
  • the number of NSPT kernel candidates belonging to the NSPT set may be set differently for each of the plurality of subgroups.
  • at least one of the plurality of subgroups may include a plurality of different block sizes.
  • the binarization applied to the NSPT index may be different.
  • the NSPT index can have any one of 0 to 3. If the value of the NSPT index is 0, this may indicate that NSPT is not applied to the current block. If the value of the NSPT index is not 0, this may indicate an NSPT kernel candidate corresponding to the NSPT index among the three NSPT kernel candidates.
  • a bin can be assigned to distinguish between the cases where NSPT is applied and the cases where it is not. If the value of the bin is 0, it may correspond to the case where the value of the NSPT index is 0. On the other hand, if the value of the bin is 1, it may correspond to the case where the value of the NSPT index is 1, 2, or 3. In this case, truncated unary binarization can be applied to distinguish between the three NSPT kernel candidates. That is, by assigning two bins, the three NSPT kernel candidates can be distinguished as 0, 10, and 11.
  • the NSPT index can have any one of 0 to 2. If the value of the NSPT index is 0, it may indicate that NSPT is not applied to the current block. If the value of the NSPT index is not 0, it may indicate an NSPT kernel candidate corresponding to the NSPT index among the two NSPT kernel candidates. One bin can be assigned to distinguish between the cases where NSPT is applied and those where it is not. The two NSPT kernel candidates can be distinguished by assigning one bin representing one of the two NSPT kernel candidates.
  • the NSPT index can have either 0 or 1. If the value of the NSPT index is 0, it can indicate that NSPT is not applied to the current block. If the value of the NSPT index is 1, it can indicate 1 NSPT kernel candidate. In this case, whether NSPT is applied and the NSPT kernel candidate can be specified with only one bin.
  • the inverse transform of the current block may be a separable linear transform and/or LFNST-based inverse transform. That is, a reverse LFNST may be applied to all or part of the (inverse quantized) transform coefficients of the current block, and then a reverse separable linear transform may be applied to the transform coefficients derived via the LFNST to derive residual samples.
  • a reverse LFNST may be applied to (inverse quantized) transform coefficients belonging to a part of the current block.
  • the part of the region means a part to which the forward LFNST is applied, and is referred to as a region of interest (ROI) hereinafter.
  • the transform coefficients derived via the LFNST may be arranged in the ROI region according to a predetermined scan order.
  • the predetermined scan order may be a row-first order or a column-first order.
  • a reverse separable primary transform may be applied to the transform coefficients derived through the LFNST and the transform coefficients belonging to the remaining area except the ROI area within the current block.
  • a reverse separable primary transform may be applied to the transform coefficients derived through the LFNST.
  • the size of the ROI area may be determined based on at least one of the width or the height of the current block.
  • the size of the ROI area may mean at least one of the width or the height of the ROI area, or may mean the number of sample locations belonging to the ROI area.
  • the NSPT kernel can be configured with 8-bit precision.
  • the range of the coefficients in the NSPT kernel can be greater than or equal to -128 and less than or equal to 127. If the precision is increased to more than 8 bits, the result obtained through matrix multiplication can be shifted to the right by the increased precision. For example, if the value obtained after matrix multiplication based on the NSPT kernel with 8-bit precision is shifted to the right by S bits and stored in the buffer, if the coefficients of the kernel are configured with N-bit precision, they can be shifted to the right by (S+(N-8)) bits and stored in the buffer.
  • Tables 11 and 12 are examples of NSPT kernels that can be applied to 8x32 blocks
  • Tables 13 and 14 are examples of NSPT kernels that can be applied to 32x8 blocks.
  • the coefficients that make up the NSPT kernel are expressed with 8-bit precision.
  • the coefficients of the NSPT kernel can have values from -128 to 127.
  • the number of NSPT sets that are identically pre-defined in the encoding device and the decoding device is 35 in total, and each NSPT set can be composed of three NSPT kernel candidates.
  • g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ] may represent NSPT kernels that can be applied to an 8x32 block
  • g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ] may represent NSPT kernels that can be applied to a 32x8 block.
  • the NSPT set and/or NSPT kernels may also be determined considering the aforementioned symmetry.
  • the NSPT set and/or NSPT kernels for a block having symmetry with the current block may be identically applied to the current block.
  • the NSPT set and/or NSPT kernel for a block that has symmetry with the current block i.e., an 8x32 block, can be applied identically to the current block.
  • the input data from the current block is transposed and then multiplied by the corresponding NSPT kernel.
  • [35] indicates that it consists of 35 NSPT sets
  • [3] indicates that each NSPT set consists of three NSPT kernel candidates.
  • /k may indicate an NSPT set whose set index is k, and k may belong to a range from 0 to 34.
  • the three matrices belonging to /k may represent NSPT kernel candidates whose transformation indices are 0, 1, and 2, respectively.
  • [48][256] may represent a 48x256 matrix based on the forward NSPT matrix.
  • the first [48] can represent 48 transformation basis vectors
  • the second [256] can represent that each transformation basis vector is a one-dimensional vector consisting of 256 coefficients. This can represent that, from the perspective of forward NSPT, the input to the forward NSPT is a one-dimensional vector with length 256.
  • the backward NSPT matrix can be derived by transposing the NSPT kernel selected from the g_nspt8x32 array or the g_nspt32x8 array below. In this case, the backward NSPT matrix can be a 256x48 matrix.
  • R transformation basis vector(s) can be used, where R can be an integer smaller than 48.
  • R can be an integer smaller than 48.
  • the forward NSPT matrix can be an Rx256 matrix.
  • the remaining (48-R) rows except for the R rows (i.e., transformation basis vectors) selected from the top can be removed.
  • the NSPT kernels that can be applied to an 8x32 block can be expressed as g_nspt8x32[ 35 ][ 3 ][ R ][ 256 ], and the NSPT kernels that can be applied to a 32x8 block can be expressed as g_nspt32x8[ 35 ][ 3 ][ R ][ 256 ].
  • the inverse NSPT matrix can be derived by transposing R rows selected from the g_nspt8x32 array or the g_nspt32x8 array below. In this case, the inverse NSPT matrix can be a 256xR matrix.
  • const int8_t g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ] ⁇ ⁇ /0 ⁇ ⁇ -1,-1,-2,-2,-2,-3,-3,-2,-3,-3,-4,-4,-4,-4,-5,-5,-2 ,-4,-5,-6, -6,-7,-7,-7,-3,-5,-7,-8,-8,-9,-9,-9,-4,-7,-9,-10,-11 ,-11,-11, -11, -11,-5,-8,-10,-12,-12,-13,-13,-13,-5,-9,-12,-14,-15,-15,-15,-15,-15,-15,-15,- 15,-6,-11,-14,-16,-17,-17,-17,-7,-12,-16,-18,-19,-20,-20, -19,-8,-14,-18,-20,-22,-22,-22,-21,-9,-16,-20,-23,-24,-25,-25 ,-24,-10,-17,-23,-26,-27,-28,
  • const int16_t g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ] ⁇ ⁇ /0 ⁇ ⁇ -1,-2,-2,-3,-3,-3,-2,-3,-4,-4,-5,-5,-5,-2 ,-4,-5,-6,- 7,-7,-7,-7,-3,-5,-7,-8,-8,-9,-9,-9,-4,-7,-9,-10,-10, -11,-11,- 11,-5,-8,-10,-12,-12,-13,-13,-13,-5,-9,-12,-14,-15,-15,-15,-15,-15,-15,-1 5,-6,-11,-14,-16,-17,-17,-17,-7,-12,-16,-18,-19,-20,-20,- 19,-8,-14,-18,-20,-22,-22,-22,-22,-9,-16,-20,-23,-24,-25,-25, -24,-10,-17,-23,-26,-27,-28,-28,-27,-11,-19,-25,
  • const int8_t g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ] ⁇ ⁇ /0 ⁇ ⁇ 2,3,4,5,6,7,8,8,9,9,10,10,10,10,10,9,9,9,8,8,8,7,7, 6,6,5,5,4,4,4,4,6,8,10,12,13,15,1 6,17,18,19,19,20,20,20,20,20,19,19,18,18,17,16,15,14,14,13,12,11,10,9,9, 5,8,11,14,17,19,22, 24,25,27,28,29,30,30,31,31,31,30,30,29,28,27,26,25,24,23,21,20,19,17,16,15, 6,9,13,17,20,23, 26,29,31,34,35,37,38,39,40,40,41,41,40,40,39,
  • const int16_t g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ] ⁇ ⁇ /0 ⁇ ⁇ 2,3,4,5,6,7,8,8,9,9,10,10,10,10,10,10,10,9,9,8,8,8,7, 7,6,5,5,5,4,4,4,6,8,10,12,13,15, 16,17,18,19,19,20,20,20,20,20,20,19,19,18,17,16,16,15,14,13,12,11,10,9,9, 5,8,11,14,17,19,21 ,23,25,27,28,29,30,30,31,31,31,30,30,29,28,27,26,25,24,23,21,20,19,17,16,15 ,6,10,13,17,20,2 3,26,29,31,33,35,37,38,39,40,40,40,40,40,40,40,40
  • the current block can be restored based on the residual sample of the current block (S420).
  • the prediction sample of the current block can be derived.
  • the restoration sample of the current block can be generated.
  • FIG. 6 illustrates a schematic configuration of a decoding device (300) that performs an image decoding method according to the present disclosure.
  • a decoding device (300) may include a transform coefficient derivation unit (600), a residual sample derivation unit (610), and a restoration block generation unit (620).
  • the transform coefficient derivation unit (600) may be configured in the entropy decoding unit (310) of FIG. 3
  • the residual sample derivation unit (610) may be configured in the residual processing unit (320) of FIG. 3
  • the restoration block generation unit (620) may be configured in the adding unit (340) of FIG. 3.
  • the transform coefficient derivation unit (600) can obtain residual information of the current block from the bitstream and decode it to derive the transform coefficient of the current block.
  • the residual sample derivation unit (610) can derive a residual sample of the current block by performing at least one of inverse quantization or inverse transformation on the transform coefficient of the current block.
  • the residual sample derivation unit (610) can determine a transformation kernel for the inverse transformation of the current block through a predetermined transformation kernel determination method, and derive the residual sample of the current block based on this. This has been described with reference to Fig. 4, and a detailed description thereof will be omitted here.
  • the restoration block generation unit (620) can restore the current block based on the residual sample of the current block.
  • FIG. 7 illustrates an image encoding method performed by an encoding device (200) as an embodiment according to the present disclosure.
  • the residual samples of the current block can be derived by differentiating prediction samples from original samples of the current block.
  • the prediction samples can be derived based on a given intra prediction mode.
  • transform coefficients of the current block can be derived by performing at least one of transformation or quantization on the residual sample of the current block (S710).
  • the transformation method according to the present disclosure can be understood as the reverse process of the inverse transformation examined with reference to Fig. 4.
  • the method of determining the transformation kernel for the above transformation is as examined with reference to Fig. 4. A detailed description thereof will be omitted here.
  • one or more transformation sets for transformation of the current block can be defined/configured, and each transformation set can include one or more transformation kernel candidates.
  • one from the plurality of transformation sets can be selected as the transformation set of the current block.
  • One of the plurality of transformation kernel candidates belonging to the transformation set of the current block can be selected. The selection can be performed implicitly based on the context of the current block.
  • an optimal transformation set and/or transformation kernel candidate for the current block can be selected, and an index indicating the selection can be signaled.
  • the transform kernel of the current block can be determined based on the MTS set.
  • One of the plurality of MTS sets can be selected based on at least one of the size of the current block or the intra prediction mode.
  • the selected MTS set can include one or more transform kernel candidates.
  • One of the one or more transform kernel candidates can be selected, and the transform kernel of the current block can be determined based on the selected transform kernel candidate.
  • the selection of the transform kernel candidate can be performed using a transform kernel candidate index derived based on the context of the current block.
  • an optimal transform kernel candidate for the current block can be selected, and a transform kernel candidate index indicating the selected transform kernel candidate can be signaled.
  • the transform kernel of the current block may be determined based on a non-separable primary transform (NSPT) kernel.
  • NSPT non-separable primary transform
  • the forward NSPT may be applied to the current block, and if the size of the current block belongs to the second group, the forward NSPT may not be applied to the current block.
  • the forward separable primary transform e.g., DCT-2
  • the forward LFNST may be additionally applied to all or part of the transform coefficients derived through the separable primary transform.
  • the NSPT can be applied based on at least one of the tree type or component type of the current block.
  • the NSPT kernel (or NSPT matrix) for the NSPT can be determined by utilizing the symmetry between intra prediction modes or the symmetry between block shapes.
  • the NSPT kernel can be expressed as r x MN.
  • r means the output length of the NSPT or the number of transform coefficients generated by the NSPT
  • MN can mean the input length of the NSPT or the number of residual samples to which the NSPT is applied as the product of the width and the height of the current block.
  • the method for determining the size of the NSPT kernel is as described with reference to FIG. 4.
  • the LFNST index and/or NSPT index for transformation may be encoded as a single integrated syntax, or the LFNST index and NSPT index may be encoded separately and inserted into the bitstream. Binarization for the LFNST index and NSPT index, and assignment of CABAC context and initial value are as described with reference to FIG. 4.
  • a bitstream can be generated by encoding the transform coefficients of the current block (S720).
  • residual information about the transform coefficients can be generated, and a bitstream can be generated by encoding the residual information.
  • FIG. 8 illustrates a schematic configuration of an encoding device (200) that performs an image encoding method according to the present disclosure.
  • the encoding device (200) may include a residual sample derivation unit (800), a transform coefficient derivation unit (810), and a transform coefficient encoding unit (820).
  • the residual sample derivation unit (800) and the transform coefficient derivation unit (810) may be configured in the residual processing unit (230) of FIG. 2, and the transform coefficient encoding unit (820) may be configured in the entropy encoding unit (240) of FIG. 2.
  • the residual sample derivation unit (800) can derive a residual sample of the current block by differentiating a prediction sample from an original sample of the current block.
  • the prediction sample may be derived based on a predetermined intra prediction mode.
  • the transform coefficient derivation unit (810) can derive the transform coefficient of the current block by performing at least one of transform and quantization on the residual sample of the current block.
  • the transform coefficient derivation unit (810) can determine the transform kernel of the current block based on at least one of the above-described embodiments 1 to 3, and derive the transform coefficient by applying the transform kernel to the residual sample of the current block.
  • the transform coefficient encoding unit (820) can generate a bitstream by encoding the transform coefficient of the current block.
  • the methods are described based on a flow chart as a series of steps or blocks, but the embodiments are not limited to the order of the steps, and some steps may occur in a different order or simultaneously with other steps than those described above. Furthermore, those skilled in the art will understand that the steps depicted in the flow chart are not exclusive, and other steps may be included or one or more steps of the flow chart may be deleted without affecting the scope of the embodiments of the present document.
  • the method according to the embodiments of the present document described above can be implemented in the form of software, and the encoding device and/or the decoding device according to the present document can be included in a device that performs image processing, such as a TV, a computer, a smartphone, a set-top box, a display device, etc.
  • the above-described method may be implemented as a module (process, function, etc.) that performs the above-described function.
  • the module may be stored in a memory and executed by a processor.
  • the memory may be inside or outside the processor and may be connected to the processor by various well-known means.
  • the processor may include an application-specific integrated circuit (ASIC), another chipset, a logic circuit, and/or a data processing device.
  • the memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and/or other storage devices.
  • the embodiments described in this document may be implemented and performed on a processor, a microprocessor, a controller, or a chip.
  • the functional units illustrated in each drawing may be implemented and performed on a computer, a processor, a microprocessor, a controller, or a chip.
  • information for implementation e.g., information on instructions
  • an algorithm may be stored on a digital storage medium.
  • the decoding device and the encoding device to which the embodiment(s) of the present specification are applied may be included in a multimedia broadcasting transmitting/receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a video-on-demand (VoD) service providing device, an OTT video (Over the top video) device, an Internet streaming service providing device, a three-dimensional (3D) video device, a VR (virtual reality) device, an AR (argumente reality) device, a video phone video device, a transportation terminal (ex.
  • a multimedia broadcasting transmitting/receiving device a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium
  • the OTT video (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a DVR (Digital Video Recorder), and the like.
  • the processing method to which the embodiment(s) of the present specification are applied can be produced in the form of a computer-executable program and can be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the embodiment(s) of the present specification can also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium can include, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • the computer-readable recording medium includes a media implemented in the form of a carrier wave (for example, transmission via the Internet).
  • a bitstream generated by an encoding method can be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.
  • embodiment(s) of the present specification can be implemented as a computer program product by program code, and the program code can be executed on a computer by the embodiment(s) of the present specification.
  • the program code can be stored on a carrier readable by a computer.
  • FIG. 9 illustrates an example of a content streaming system to which embodiments of the present disclosure can be applied.
  • a content streaming system to which the embodiment(s) of the present specification are applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
  • the encoding server compresses content input from multimedia input devices such as smartphones, cameras, camcorders, etc. into digital data to generate a bitstream and transmits it to the streaming server.
  • multimedia input devices such as smartphones, cameras, camcorders, etc. directly generate a bitstream
  • the encoding server may be omitted.
  • the above bitstream can be generated by an encoding method or a bitstream generation method to which the embodiment(s) of the present specification are applied, and the streaming server can temporarily store the bitstream during the process of transmitting or receiving the bitstream.
  • the above streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as an intermediary that informs the user of any available services.
  • the web server transmits it to the streaming server, and the streaming server transmits multimedia data to the user.
  • the content streaming system may include a separate control server, and in this case, the control server serves to control commands/responses between each device within the content streaming system.
  • the above streaming server can receive content from a media storage and/or an encoding server. For example, when receiving content from the encoding server, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a certain period of time.
  • Examples of the user devices may include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, HMDs (head mounted displays)), digital TVs, desktop computers, digital signage, etc.
  • PDAs personal digital assistants
  • PMPs portable multimedia players
  • navigation devices slate PCs
  • tablet PCs tablet PCs
  • ultrabooks ultrabooks
  • wearable devices e.g., smartwatches, smart glasses, HMDs (head mounted displays)
  • digital TVs desktop computers, digital signage, etc.
  • Each server within the above content streaming system can be operated as a distributed server, in which case data received from each server can be processed in a distributed manner.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

본 개시에 따른 영상 디코딩 방법 및 장치는, 비트스트림으로부터 현재 블록의 변환 계수들을 유도하고, 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하고, NSPT 세트 및 변환 인덱스를 기반으로 현재 블록의 NSPT 커널을 결정하고, NSPT 커널을 기반으로 현재 블록의 변환 계수들에 NSPT를 수행하여 레지듀얼 샘플들을 유도하고, 레지듀얼 샘플들을 기반으로 현재 블록을 복원할 수 있다. NSPT는 현재 블록의 크기가 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용될 수 있다.

Description

영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
본 발명은 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체에 관한 것이다.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있고, 이에 따라 고효율의 영상 압축 기술들이 논의되고 있다.
영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 인터 예측 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 인트라 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.
본 개시는, 비분리 일차 변환을 이용하여 변환을 수행하는 방법 및 장치를 제공하고자 한다.
본 개시는, 축소된 차원의 비분리 일차 변환 커널을 이용하여 변환을 수행하는 방법 및 장치를 제공하고자 한다.
본 개시는, 부호화 파라미터를 기반으로 비분리 변환 커널을 결정/시그날링하는 방법 및 장치 제공하고자 한다.
본 개시에 따른 영상 디코딩 방법 및 장치는, 비트스트림으로부터 현재 블록의 변환 계수들을 유도하고, 상기 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하고, 상기 NSPT 세트 및 변환 인덱스를 기반으로 상기 현재 블록의 NSPT 커널을 결정하고, 상기 NSPT 커널을 기반으로 상기 현재 블록의 변환 계수들에 NSPT를 수행하여 상기 현재 블록의 레지듀얼 샘플들을 유도하고, 상기 레지듀얼 샘플들을 기반으로 상기 현재 블록을 복원할 수 있다. 상기 변환 인덱스는 상기 NSPT 세트에 속한 복수의 NSPT 커널 후보들 중 어느 하나를 특정할 수 있다.
본 개시에 따른 영상 디코딩 방법 및 장치에 있어서, 상기 NSPT는, 상기 현재 블록의 크기가 상기 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용될 수 있다.
본 개시에 따른 영상 디코딩 방법 및 장치에 있어서, 상기 NSPT 세트는 기-정의된 35개의 NSPT 세트들 중 어느 하나로 결정될 수 있다.
본 개시에 따른 영상 디코딩 방법 및 장치에 있어서, 상기 NSPT 세트는 3개의 NSPT 커널 후보들을 포함할 수 있다.
본 개시에 따른 영상 디코딩 방법 및 장치에 있어서, 상기 그룹은, 4x4, 4x8, 8x4, 8x8, 16x8, 8x16, 16x4, 4x16, 8x32, 또는 32x8 중 적어도 하나의 블록 크기를 포함할 수 있다.
본 개시에 따른 영상 디코딩 방법 및 장치에 있어서, 상기 현재 블록의 크기가 8x32 또는 32x8인 것에 기초하여, 상기 NSPT가 적용되는 변환 계수들의 개수는 48보다 작거나 같을 수 있다.
본 개시에 따른 영상 인코딩 방법 및 장치는, 현재 블록의 레지듀얼 샘플들을 유도하고, 상기 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하고, 상기 NSPT 세트로에 속한 복수의 NSPT 커널 후보들 중 어느 하나를 기반으로 상기 현재 블록의 레지듀얼 샘플들에 대해 NSPT를 적용하여, 상기 현재 블록의 변환 계수들을 유도하고, 상기 현재 블록의 변환 계수들 및 상기 복수의 NSPT 커널 후보들 중 어느 하나를 특정하는 변환 인덱스를 부호화하여 비트스트림을 생성할 수 있다.
본 개시에 따른 영상 인코딩 방법 및 장치에 있어서, 상기 NSPT는, 상기 현재 블록의 크기가 상기 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용될 수 있다.
본 개시에 따른 디코딩 장치에 의하여 영상 디코딩 방법을 수행하도록 야기하는 인코딩된 비디오/영상 정보가 저장된 컴퓨터 판독 가능한 디지털 저장 매체가 제공된다.
본 개시에 따른 영상 인코딩 방법에 따라 생성된 비디오/영상 정보가 저장된 컴퓨터 판독 가능한 디지털 저장 매체가 제공된다.
본 개시에 따른 영상 인코딩 방법에 따라 생성된 비디오/영상 정보를 전송하는 방법 및 장치가 제공된다.
본 개시는, 일차 변환으로서 비분리 일차 변환을 이용함으로써, 변환의 성능을 향상시킬 수 있다.
본 개시는, 축소된 차원의 비분리 일차 변환 커널을 이용하여 변환을 수행함으로써, 변환의 성능을 향상시킬 수 있다.
본 개시는, 부호화 파라미터를 기반으로 비분리 변환 커널을 효과적으로 결정 및/또는 시그날링함으로써, 부호화 효율을 향상시킬 수 있다.
도 1은 본 개시에 따른 비디오/영상 코딩 시스템을 도시한 것이다.
도 2는 본 개시의 실시예가 적용될 수 있고, 비디오/영상 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.
도 3은 본 개시의 실시예가 적용될 수 있고, 비디오/영상 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.
도 4는 본 개시에 따른 일실시예로서, 디코딩 장치(300)에 의해 수행되는 영상 디코딩 방법을 도시한 것이다.
도 5는 본 개시에 따른 인트라 예측 모드와 그 예측 방향을 예시적으로 나타낸다.
도 6은 본 개시에 따른 영상 디코딩 방법을 수행하는 디코딩 장치(300)의 개략적인 구성을 도시한 것이다.
도 7은 본 개시에 따른 일실시예로서, 인코딩 장치(200)에 의해 수행되는 영상 인코딩 방법을 도시한 것이다.
도 8은 본 개시에 따른 영상 인코딩 방법을 수행하는 인코딩 장치(200)의 개략적인 구성을 도시한 것이다.
도 9는 본 개시의 실시예들이 적용될 수 있는 컨텐츠 스트리밍 시스템의 예를 나타낸다.
본 개시는 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 개시를 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 개시의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 개시의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.
어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.
본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 개시를 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.
본 개시는 비디오/영상 코딩에 관한 것이다. 예를 들어, 본 명세서에서 개시된 방법/실시예는 VVC (versatile video coding) 표준에 개시되는 방법에 적용될 수 있다. 또한, 이 명세서에서 개시된 방법/실시예는 EVC (essential video coding) 표준, AV1 (AOMedia Video 1) 표준, AVS2 (2nd generation of audio video coding standard) 또는 차세대 비디오/영상 코딩 표준(ex. H.267 or H.268 등)에 개시되는 방법에 적용될 수 있다.
이 명세서는 비디오/영상 코딩에 관한 다양한 실시예들을 제시하며, 다른 언급이 없는 한 상기 실시예들은 서로 조합되어 수행될 수도 있다.
이 명세서에서 비디오(video)는 시간의 흐름에 따른 일련의 영상(image)들의 집합을 의미할 수 있다. 픽쳐(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)/타일(tile)은 코딩에 있어서 픽쳐의 일부를 구성하는 단위이다. 슬라이스/타일은 하나 이상의 CTU(coding tree unit)을 포함할 수 있다. 하나의 픽쳐는 하나 이상의 슬라이스/타일로 구성될 수 있다. 하나의 타일은 하나의 픽쳐의 특정 타일 열과 특정 타일 행 내에 있는 복수의 CTU들로 구성된 직사각형 영역이다. 타일 열은 픽쳐의 높이와 동일한 높이와 픽쳐 파라미터 세트의 신택스 요구에 의해 지정된 너비를 갖는 CTU들의 직사각형 영역이다. 타일 행은 픽쳐 파라미터 세트에 의해 지정된 높이와 픽쳐의 너비와 동일한 너비를 갖는 CTU들의 직사각형 영역이다. 하나의 타일 내에 CTU들은 CTU 래스터 스캔에 따라 연속적으로 배열되는 반면, 하나의 픽쳐 내 타일들은 타일의 래스터 스캔에 따라 연속적으로 배열될 수 있다. 하나의 슬라이스는 단일 NAL 유닛에 배타적으로 포함될 수 있는 픽쳐의 타일 내에서 정수 개수의 완전한 타일 또는 정수 개수의 연속적인 완전한 CTU 행을 포함할 수 있다. 한편, 하나의 픽쳐는 둘 이상의 서브픽쳐로 구분될 수 있다. 서브픽쳐는 픽쳐 내 하나 이상의 슬라이스들의 직사각형 영역일 수 있다.
화소, 픽셀(pixel) 또는 펠(pel)은 하나의 픽쳐(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 색차(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다.
유닛(unit)은 영상 처리의 기본 단위를 나타낼 수 있다. 유닛은 픽쳐의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 하나의 유닛은 하나의 루마 블록 및 두개의 크로마(ex. cb, cr) 블록을 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들(또는 샘플 어레이) 또는 변환 계수(transform coefficient)들의 집합(또는 어레이)을 포함할 수 있다.
본 명세서에서 "A 또는 B(A or B)"는 "오직 A", "오직 B" 또는 "A와 B 모두"를 의미할 수 있다. 달리 표현하면, 본 명세서에서 "A 또는 B(A or B)"는 "A 및/또는 B(A and/or B)"으로 해석될 수 있다. 예를 들어, 본 명세서에서 "A, B 또는 C(A, B or C)"는 "오직 A", "오직 B", "오직 C", 또는 "A, B 및 C의 임의의 모든 조합(any combination of A, B and C)"를 의미할 수 있다.
본 명세서에서 사용되는 슬래쉬(/)나 쉼표(comma)는 "및/또는(and/or)"을 의미할 수 있다. 예를 들어, "A/B"는 "A 및/또는 B"를 의미할 수 있다. 이에 따라 "A/B"는 "오직 A", "오직 B", 또는 "A와 B 모두"를 의미할 수 있다. 예를 들어, "A, B, C"는 "A, B 또는 C"를 의미할 수 있다.
본 명세서에서 "적어도 하나의 A 및 B(at least one of A and B)"는, "오직 A", "오직 B" 또는 "A와 B 모두"를 의미할 수 있다. 또한, 본 명세서에서 "적어도 하나의 A 또는 B(at least one of A or B)"나 "적어도 하나의 A 및/또는 B(at least one of A and/or B)"라는 표현은 "적어도 하나의 A 및 B(at least one of A and B)"와 동일하게 해석될 수 있다.
또한, 본 명세서에서 "적어도 하나의 A, B 및 C(at least one of A, B and C)"는, "오직 A", "오직 B", "오직 C", 또는 "A, B 및 C의 임의의 모든 조합(any combination of A, B and C)"를 의미할 수 있다. 또한, "적어도 하나의 A, B 또는 C(at least one of A, B or C)"나 "적어도 하나의 A, B 및/또는 C(at least one of A, B and/or C)"는 "적어도 하나의 A, B 및 C(at least one of A, B and C)"를 의미할 수 있다.
또한, 본 명세서에서 사용되는 괄호는 "예를 들어(for example)"를 의미할 수 있다. 구체적으로, "예측(인트라 예측)"로 표시된 경우, "예측"의 일례로 "인트라 예측"이 제안된 것일 수 있다. 달리 표현하면 본 명세서의 "예측"은 "인트라 예측"으로 제한(limit)되지 않고, "인트라 예측"이 "예측"의 일례로 제안될 것일 수 있다. 또한, "예측(즉, 인트라 예측)"으로 표시된 경우에도, "예측"의 일례로 "인트라 예측"이 제안된 것일 수 있다.
본 명세서에서 하나의 도면 내에서 개별적으로 설명되는 기술적 특징은, 개별적으로 구현될 수도 있고, 동시에 구현될 수도 있다.
도 1은 본 개시에 따른 비디오/영상 코딩 시스템을 도시한 것이다.
도 1을 참조하면, 비디오/영상 코딩 시스템은 제1 장치(소스 디바이스) 및 제2 장치(수신 디바이스)를 포함할 수 있다.
소스 디바이스는 인코딩된 비디오(video)/영상(image) 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스로 전달할 수 있다. 상기 소스 디바이스는 비디오 소스, 인코딩 장치, 전송부를 포함할 수 있다. 상기 수신 디바이스는 수신부, 디코딩 장치 및 렌더러를 포함할 수 있다. 상기 인코딩 장치는 비디오/영상 인코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기는 인코딩 장치에 포함될 수 있다. 수신기는 디코딩 장치에 포함될 수 있다. 렌더러는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다.
비디오 소스는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 컴퓨터, 타블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.
인코딩 장치는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.
전송부는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장 매체를 포함할 수 있다. 전송부는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘리먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘리먼트를 포함할 수 있다. 수신부는 상기 비트스트림을 수신/추출하여 디코딩 장치로 전달할 수 있다.
디코딩 장치는 인코딩 장치의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다.
렌더러는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.
도 2는 본 개시의 실시예가 적용될 수 있고, 비디오/영상 신호의 인코딩이 수행되는 인코딩 장치의 개략적인 블록도를 나타낸다.
도 2를 참조하면, 인코딩 장치(200)는 영상 분할부(image partitioner, 210), 예측부(predictor, 220), 레지듀얼 처리부(residual processor, 230), 엔트로피 인코딩부(entropy encoder, 240), 가산부(adder, 250), 필터링부(filter, 260) 및 메모리(memory, 270)를 포함하여 구성될 수 있다. 예측부(220)는 인터 예측부(221) 및 인트라 예측부(222)를 포함할 수 있다. 레지듀얼 처리부(230)는 변환부(transformer, 232), 양자화부(quantizer 233), 역양자화부(dequantizer 234), 역변환부(inverse transformer, 235)를 포함할 수 있다. 레지듀얼 처리부(230)은 감산부(subtractor, 231)를 더 포함할 수 있다. 가산부(250)는 복원부(reconstructor) 또는 복원 블록 생성부(recontructged block generator)로 불릴 수 있다. 상술한 영상 분할부(210), 예측부(220), 레지듀얼 처리부(230), 엔트로피 인코딩부(240), 가산부(250) 및 필터링부(260)는 실시예에 따라 하나 이상의 하드웨어 컴포넌트(예를 들어 인코딩 장치 칩셋 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(270)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(270)을 내/외부 컴포넌트로 더 포함할 수도 있다.
영상 분할부(210)는 인코딩 장치(200)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 상기 처리 유닛은 코딩 유닛(coding unit, CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBTTT (Quad-tree binary-tree ternary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다.
예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조, 및/또는 터너리 구조를 기반으로 하위(deeper) 뎁스를 가진 복수의 코딩 유닛들로 분할될 수 있다. 이 경우, 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조 및/또는 터너리 구조가 나중에 적용될 수 있다. 또는, 바이너리 트리 구조가 쿼드 트리 구조보다 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 명세서에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 하위 뎁스의 코딩 유닛들로 분할되어, 최적의 크기를 가진 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서, 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다.
다른 예로, 상기 처리 유닛은 예측 유닛(PU: Prediction Unit) 또는 변환 유닛(TU: Transform Unit)을 더 포함할 수 있다. 이 경우, 상기 예측 유닛 및 상기 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 색차(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽쳐(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.
인코딩 장치(200)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(221) 또는 인트라 예측부(222)로부터 출력된 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(residual signal, 잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(232)로 전송된다. 이 경우, 인코딩 장치(200) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(231)라고 불릴 수 있다.
예측부(220)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록(predicted block)을 생성할 수 있다. 예측부(220)는 현재 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부(220)는 각 예측 모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보 등 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(240)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(240)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
인트라 예측부(222)는 현재 픽쳐 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 현재 블록으로부터 일정 거리만큼 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 하나 이상의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는, DC 모드 또는 플래너 모드(Planar 모드) 중 적어도 하나를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 33개의 방향성 모드 또는 65개의 방향성 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 모드들이 사용될 수 있다. 인트라 예측부(222)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(221)는 참조 픽쳐 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해, 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽쳐 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향 정보(L0 예측, L1 예측, Bi 예측 등)를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽쳐 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽쳐에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 참조 블록을 포함하는 참조 픽쳐와 상기 시간적 주변 블록을 포함하는 참조 픽쳐는 동일할 수도 있고, 다를 수도 있다. 상기 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 상기 시간적 주변 블록을 포함하는 참조 픽쳐는 동일 위치 픽쳐(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 인터 예측부(221)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 상기 현재 블록의 움직임 벡터 및/또는 참조 픽쳐 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어, 스킵 모드와 머지 모드의 경우에, 인터 예측부(221)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)을 시그날링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.
예측부(220)는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP) 모드라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC) 예측 모드에 기반할 수도 있고 또는 팔레트 모드(palette mode)에 기반할 수도 있다. 상기 IBC 예측 모드 또는 팔레트 모드는 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽쳐 내에서 예측을 수행하나, 현재 픽쳐 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 명세서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. 팔레트 모드는 인트라 코딩 또는 인트라 예측의 일 예로 볼 수 있다. 팔레트 모드가 적용되는 경우 팔레트 테이블 및 팔레트 인덱스에 관한 정보를 기반으로 픽쳐 내 샘플 값을 시그날링할 수 있다. 상기 예측부(220)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나, 레지듀얼 신호를 생성하기 위해 이용될 수 있다.
변환부(232)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)를 생성할 수 있다. 예를 들어, 변환 기법은 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT(Karhunen-Loeve Transform), GBT(Graph-Based Transform), 또는 CNT(Conditionally Non-linear Transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때, 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀를 이용하여 예측 신호를 생성하고, 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.
양자화부(233)는 변환 계수들을 양자화하여 엔트로피 인코딩부(240)로 전송되고, 엔트로피 인코딩부(240)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 상기 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(233)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재배열할 수 있고, 상기 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다.
엔트로피 인코딩부(240)는 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(240)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대, 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다.
인코딩된 정보(ex. 인코딩된 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽쳐 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한, 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 본 명세서에서 인코딩 장치에서 디코딩 장치로 전달/시그날링되는 정보 및/또는 신택스 요소들은 비디오/영상 정보에 포함될 수 있다. 상기 비디오/영상 정보는 상술한 인코딩 절차를 통하여 인코딩되어 상기 비트스트림에 포함될 수 있다. 상기 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서, 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(240)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(200)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(240)에 포함될 수도 있다.
양자화부(233)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 역양자화부(234) 및 역변환부(235)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록 or 레지듀얼 샘플들)를 복원할 수 있다. 가산부(250)는 복원된 레지듀얼 신호를 인터 예측부(221) 또는 인트라 예측부(222)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽쳐, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(250)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽쳐 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽쳐의 인터 예측을 위하여 사용될 수도 있다. 한편, 픽쳐 인코딩 및/또는 복원 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.
필터링부(260)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어, 필터링부(260)은 복원 픽쳐에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽쳐를 생성할 수 있고, 상기 수정된 복원 픽쳐를 메모리(270), 구체적으로 메모리(270)의 DPB에 저장할 수 있다. 상기 다양한 필터링 방법은, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다. 필터링부(260)은 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(240)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(240)에서 인코딩되어 비트스트림 형태로 출력될 수 있다.
메모리(270)에 전송된 수정된 복원 픽쳐는 인터 예측부(221)에서 참조 픽쳐로 사용될 수 있다. 인코딩 장치는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(200)와 디코딩 장치에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다.
메모리(270)의 DPB는 수정된 복원 픽쳐를 인터 예측부(221)에서의 참조 픽쳐로 사용하기 위해 저장할 수 있다. 메모리(270)는 현재 픽쳐 내 움직임 정보가 도출된(또는 인코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽쳐 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(221)에 전달할 수 있다. 메모리(270)는 현재 픽쳐 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(222)에 전달할 수 있다.
도 3은 본 개시의 실시예가 적용될 수 있고, 비디오/영상 신호의 디코딩이 수행되는 디코딩 장치의 개략적인 블록도를 나타낸다.
도 3을 참조하면, 디코딩 장치(300)는 엔트로피 디코딩부(entropy decoder, 310), 레지듀얼 처리부(residual processor, 320), 예측부(predictor, 330), 가산부(adder, 340), 필터링부(filter, 350) 및 메모리(memoery, 360)를 포함하여 구성될 수 있다. 예측부(330)는 인터 예측부(331) 및 인트라 예측부(332)를 포함할 수 있다. 레지듀얼 처리부(320)는 역양자화부(dequantizer, 321) 및 역변환부(inverse transformer, 321)를 포함할 수 있다.
상술한 엔트로피 디코딩부(310), 레지듀얼 처리부(320), 예측부(330), 가산부(340) 및 필터링부(350)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코딩 장치 칩셋 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(360)는 DPB(decoded picture buffer)를 포함할 수 있고, 디지털 저장 매체에 의하여 구성될 수도 있다. 상기 하드웨어 컴포넌트는 메모리(360)을 내/외부 컴포넌트로 더 포함할 수도 있다.
비디오/영상 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(300)는 도 2의 인코딩 장치에서 비디오/영상 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(300)는 상기 비트스트림으로부터 획득한 블록 분할 관련 정보를 기반으로 유닛들/블록들을 도출할 수 있다. 디코딩 장치(300)는 인코딩 장치에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서, 디코딩의 처리 유닛은 코딩 유닛일 수 있고, 코딩 유닛은 쿼드 트리 구조, 바이너리 트리 구조 및/또는 터너리 트리 구조에 따라서 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 분할된 것일 수 있다. 코딩 유닛으로부터 하나 이상의 변환 유닛이 도출될 수 있다. 그리고, 디코딩 장치(300)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.
디코딩 장치(300)는 도 2의 인코딩 장치로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(310)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(310)는 상기 비트스트림을 파싱하여 영상 복원(또는 픽쳐 복원)에 필요한 정보(ex. 비디오/영상 정보)를 도출할 수 있다. 상기 비디오/영상 정보는 어댑테이션 파라미터 세트(APS), 픽쳐 파라미터 세트(PPS), 시퀀스 파라미터 세트(SPS) 또는 비디오 파라미터 세트(VPS) 등 다양한 파라미터 세트에 관한 정보를 더 포함할 수 있다. 또한 상기 비디오/영상 정보는 일반 제한 정보(general constraint information)을 더 포함할 수 있다. 디코딩 장치는 상기 파라미터 세트에 관한 정보 및/또는 상기 일반 제한 정보를 더 기반으로 픽쳐를 디코딩할 수 있다. 본 명세서에서 후술되는 시그날링/수신되는 정보 및/또는 신택스 요소들은 상기 디코딩 절차를 통하여 디코딩되어 상기 비트스트림으로부터 획득될 수 있다. 예컨대, 엔트로피 디코딩부(310)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 요소의 값, 레지듀얼에 관한 변환 계수의 양자화된 값들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(310)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(332) 및 인트라 예측부(331))로 제공되고, 엔트로피 디코딩부(310)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 레지듀얼 처리부(320)로 입력될 수 있다. 레지듀얼 처리부(320)는 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플들, 레지듀얼 샘플 어레이)를 도출할 수 있다. 또한, 엔트로피 디코딩부(310)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(350)으로 제공될 수 있다. 한편, 인코딩 장치로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(300)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(310)의 구성요소일 수도 있다.
한편, 본 명세서에 따른 디코딩 장치는 비디오/영상/픽쳐 디코딩 장치라고 불릴 수 있고, 상기 디코딩 장치는 정보 디코딩 장치(비디오/영상/픽쳐 정보 디코딩 장치) 및 샘플 디코딩 장치(비디오/영상/픽쳐 샘플 디코딩 장치)로 구분할 수도 있다. 상기 정보 디코딩 장치는 상기 엔트로피 디코딩부(310)를 포함할 수 있고, 상기 샘플 디코딩 장치는 상기 역양자화부(321), 역변환부(322), 가산부(340), 필터링부(350), 메모리(360), 인터 예측부(332) 및 인트라 예측부(331) 중 적어도 하나를 포함할 수 있다.
역양자화부(321)에서는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 출력할 수 있다. 역양자화부(321)는 양자화된 변환 계수들을 2차원의 블록 형태로 재배열할 수 있다. 이 경우, 상기 재배열은 인코딩 장치에서 수행된 계수 스캔 순서를 기반하여 재배열을 수행할 수 있다. 역양자화부(321)는 양자화 파라미터(예를 들어 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수들(transform coefficient)를 획득할 수 있다.
역변환부(322)에서는 변환 계수들를 역변환하여 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 획득하게 된다.
예측부(320)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록(predicted block)을 생성할 수 있다. 예측부(320)는 엔트로피 디코딩부(310)로부터 출력된 상기 예측에 관한 정보를 기반으로 상기 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다.
예측부(320)는 후술하는 다양한 예측 방법을 기반으로 예측 신호를 생성할 수 있다. 예를 들어, 예측부(320)는 하나의 블록에 대한 예측을 위하여 인트라 예측 또는 인터 예측을 적용할 수 있을 뿐 아니라, 인트라 예측과 인터 예측을 동시에 적용할 수 있다. 이는 combined inter and intra prediction (CIIP) 모드라고 불릴 수 있다. 또한, 예측부는 블록에 대한 예측을 위하여 인트라 블록 카피(intra block copy, IBC) 예측 모드에 기반할 수도 있고 또는 팔레트 모드(palette mode)에 기반할 수도 있다. 상기 IBC 예측 모드 또는 팔레트 모드는 SCC(screen content coding) 등과 같이 게임 등의 컨텐츠 영상/동영상 코딩을 위하여 사용될 수 있다. IBC는 기본적으로 현재 픽쳐 내에서 예측을 수행하나 현재 픽쳐 내에서 참조 블록을 도출하는 점에서 인터 예측과 유사하게 수행될 수 있다. 즉, IBC는 본 명세서에서 설명되는 인터 예측 기법들 중 적어도 하나를 이용할 수 있다. 팔레트 모드는 인트라 코딩 또는 인트라 예측의 일 예로 볼 수 있다. 팔레트 모드가 적용되는 경우 팔레트 테이블 및 팔레트 인덱스에 관한 정보가 상기 비디오/영상 정보에 포함되어 시그날링될 수 있다.
인트라 예측부(331)는 현재 픽쳐 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 상기 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 현재 블록으로부터 일정 거리만큼 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 하나 이상의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(331)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.
인터 예측부(332)는 참조 픽쳐 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 상기 움직임 정보는 움직임 벡터 및 참조 픽쳐 인덱스를 포함할 수 있다. 상기 움직임 정보는 인터 예측 방향 정보(L0 예측, L1 예측, Bi 예측 등)를 더 포함할 수 있다. 인터 예측의 경우에, 주변 블록은 현재 픽쳐 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽쳐에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(332)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신한 후보 선택 정보를 기반으로 상기 현재 블록의 움직임 벡터 및/또는 참조 픽쳐 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 상기 예측에 관한 정보는 상기 현재 블록에 대한 인터 예측 모드를 지시하는 정보를 포함할 수 있다.
가산부(340)는 획득된 레지듀얼 신호를 예측부(인터 예측부(332) 및/또는 인트라 예측부(331) 포함)로부터 출력된 예측 신호(예측 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽쳐, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측 블록이 복원 블록으로 사용될 수 있다.
가산부(340)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽쳐 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 출력될 수도 있고 또는 다음 픽쳐의 인터 예측을 위하여 사용될 수도 있다. 한편, 픽쳐 디코딩 과정에서 LMCS (luma mapping with chroma scaling)가 적용될 수도 있다.
필터링부(350)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(350)는 복원 픽쳐에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽쳐를 생성할 수 있고, 상기 수정된 복원 픽쳐를 메모리(360), 구체적으로 메모리(360)의 DPB에 전송할 수 있다. 상기 다양한 필터링 방법은, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter) 등을 포함할 수 있다.
메모리(360)의 DPB에 저장된 (수정된) 복원 픽쳐는 인터 예측부(332)에서 참조 픽쳐로 사용될 수 있다. 메모리(360)는 현재 픽쳐 내 움직임 정보가 도출된(또는 디코딩된) 블록의 움직임 정보 및/또는 이미 복원된 픽쳐 내 블록들의 움직임 정보를 저장할 수 있다. 상기 저장된 움직임 정보는 공간적 주변 블록의 움직임 정보 또는 시간적 주변 블록의 움직임 정보로 활용하기 위하여 인터 예측부(260)에 전달할 수 있다. 메모리(360)는 현재 픽쳐 내 복원된 블록들의 복원 샘플들을 저장할 수 있고, 인트라 예측부(331)에 전달할 수 있다.
본 명세서에서, 인코딩 장치(200)의 필터링부(260), 인터 예측부(221) 및 인트라 예측부(222)에서 설명된 실시예들은 각각 디코딩 장치(300)의 필터링부(350), 인터 예측부(332) 및 인트라 예측부(331)에도 동일 또는 대응되도록 적용될 수 있다.
도 4는 본 개시에 따른 일실시예로서, 디코딩 장치에 의해 수행되는 영상 디코딩 방법을 도시한 것이다.
도 4를 참조하면, 비트스트림으로부터 현재 블록의 변환 계수(transform coefficients)를 유도할 수 있다(S400). 즉, 비트스트림은 현재 블록의 레지듀얼 정보를 포함할 수 있고, 해당 레지듀얼 정보를 복호화하여 현재 블록의 변환 계수를 유도할 수 있다.
도 4를 참조하면, 현재 블록의 변환 계수에 역양자화(dequantization) 또는 역변환(inverse-transform) 중 적어도 하나를 수행하여, 현재 블록의 레지듀얼 샘플(residual samples)을 유도할 수 있다(S410).
적응적 다중 핵심 변환(Adaptive Multiple Transform Selection, MTS)이 적용되는 경우, DCT-2, DST-7, 또는 DCT-8 중 적어도 하나를 기반으로 역변환이 수행될 수 있다. 여기서, DCT-2, DST-7, DCT-8 등은 변환 타입, 변환 커널(kernel) 또는 변환 코어(core)라고 불릴 수 있다.
본 개시에서의 역변환은 분리 변환(separable transform)을 의미할 수 있다. 다만, 이에 한정되지 아니하며, 역변환은 비분리 변환(non-separable transform)을 의미할 수도 있고, 분리 변환과 비분리 변환을 포함하는 개념일 수도 있다. 또한, 본 개시에서의 역변환은 1차 변환(primary transform)을 의미하나, 이에 한정되지 아니하며, 동일/유사한 형태로 변형되어 2차 변환(secondary transform)에 적용될 수도 있다.
예를 들어, 역변환을 위한 방법으로, DCT-2와 비분리 변환만을 사용할 수도 있고, DCT-2, DST-7, 또는 DCT-8 중 적어도 하나에 추가로 비분리 변환을 사용할 수도 있으며, DCT-2, DST-7, 또는 DCT-8 중 하나 이상의 변환 커널을 비분리 변환이 대체할 수도 있다.
보다 구체적인 예시로서, 분리 변환을 위한 변환 커널 후보로서, (DCT-2, DCT-2), (DST-7, DST-7), (DCT-8, DST-7), (DST-7, DCT-8), (DCT-8, DCT-8)이 존재하는 경우, 비분리 변환이 상기 5개의 변환 커널 후보 중 하나 이상을 대체하거나 추가될 수 있다. 여기서, (변환1, 변환2)와 같은 표기는, 수평 방향으로 변환1이 적용되고, 수직 방향으로 변환2가 적용되는 것을 가리킨다. 비분리 변환이 해당 변환 커널 후보 중 일부를 대체하는 경우, (DCT-2, DCT-2), (DST-7, DST-7)을 제외한 나머지 변환 커널 후보를 비분리 변환으로 대체할 수 있다. 다만, 상기 변환 커널 후보는 일예에 불과하고, 다른 타입의 DCT 및/또는 DST가 포함될 수도 있고, 변환 커널 후보로 변환 스킵(transform skip)이 포함될 수도 있다.
비분리 변환은, 비분리 변환 매트릭스(non-separable transform matrix)를 기반으로 하는 변환 또는 역변환을 의미할 수 있다. 즉, 수직 변환 및 수평 변환을 분리하여 수평 변환과 수직 변환을 독립적으로 수행하는 분리 변환과 달리, 비분리 변환은 수평 및 수직 변환을 한번에 수행할 수 있다.
예를 들어, 4x4 블록에 비분리 변환이 수행되는 경우, 비분리 변환으로의 입력 데이터 X는 다음 수학식 1과 같다.
Figure PCTKR2024007915-appb-img-000001
상기 입력 데이터 X를 벡터 형태로 나타내는 경우, 벡터 X' 다음과 같이 나타내어질 수 있다.
Figure PCTKR2024007915-appb-img-000002
이 경우, 상기 비분리 변환은 다음 수학식 3과 같이 수행될 수 있다.
Figure PCTKR2024007915-appb-img-000003
수학식 3에서, F는 변환 계수 벡터를 나타내고, T는 16x16 비분리 변환 매트릭스를 나타내며, ㆍ는 행렬과 벡터의 곱셈을 의미한다.
상기 수학식 3을 통해 16x1 변환 계수 벡터 F가 도출될 수 있으며, 상기 F는 소정의 스캔 순서에 따라 4x4 블록으로 재구성될 수 있다. 상기 스캔 순서는, 수평 스캔, 수직 스캔, 대각 스캔, z 스캔, 래스터 스캔, 또는 기-정의된 스캔일 수 있다.
상기 비분리 변환을 위한 비분리 변환 세트 및/또는 변환 커널은, 예측 모드(ex. intra mode, inter mode 등), 현재 블록의 너비, 높이, 또는 픽셀 수, 현재 블록 내 서브 블록의 위치, 명시적으로 시그널링된 구문 요소, 주변 샘플들의 통계적 특성, 2차 변환의 사용 여부, 또는 양자화 파라미터(QP) 중 적어도 하나에 기반하여 다양하게 구성될 수 있다.
구체적으로, 인트라 모드의 경우, n개의 비분리 변환 세트에 대응되도록 기-정의된 인트라 예측 모드들을 그룹핑하고, 각 비분리 변환 세트는 k개의 변환 커널 후보들이 포함될 수 있다. 여기서 n과 k는 인코딩 장치와 디코딩 장치에 동일하게 정의된 규칙(조건)에 따른 임의의 상수일 수 있다.
비분리 변환 세트의 개수 및/또는 비분리 변환 세트에 포함되는 변환 커널 후보의 개수는, 현재 블록의 너비 및/또는 높이에 따라 상이하게 구성될 수 있다. 예를 들어, 4x4 블록에 대해서, n1개의 비분리 변환 세트와 k1개의 변환 커널 후보가 구성될 수 있다. 4x8 블록에 대해서, n2개의 비분리 변환 세트와 k2개의 변환 커널 후보가 구성될 수 있다. 또한, 현재 블록의 너비와 높이의 곱에 따라 비분리 변환 세트의 개수와 각 비분리 변환 세트에 포함되는 변환 커널 후보의 개수가 상이하게 구성될 수 있다. 예를 들어 현재 블록의 너비와 높이의 곱이 256 이상(또는 초과)일 경우, n3개의 비분리 변환 세트와 k3개의 변환 커널 후보가 구성될 수 있고, 그렇지 않은 경우, n4개의 비분리 변환 세트와 k4개의 변환 커널 후보가 구성될 수 있다. 즉, 블록 크기에 따라 레지듀얼 신호의 통계적 특성의 변화도가 다르기 때문에, 이를 반영하기 위해 비분리 변환 세트와 변환 커널 후보의 개수를 상이하게 구성할 수 있다.
현재 블록이 복수의 서브 블록들로 분할되는 경우, 해당 서브 블록마다 레지듀얼 신호의 통계적 특성이 다를 수 있으므로, 비분리 변환 세트와 변환 커널 후보의 개수를 상이하게 구성할 수 있다. 예를 들어, 4x8 또는 8x4 블록이 두 개의 4x4 서브 블록들로 분할되고, 각 서브 블록에 비분리 변환이 적용되는 경우, 좌상단 4x4 서브 블록에 대해서 n5개의 비분리 변환 세트와 k5개의 변환 커널 후보가 구성될 수 있고, 다른 4x4 서브 블록에 대해서 n6개의 비분리 변환 세트와 k6개의 변환 커널 후보가 구성될 수 있다.
명시적으로 시그널링되는 구문 요소에 기초하여, 비분리 변환 세트와 변환 커널 후보의 개수를 상이하게 구성할 수 있다. 상기 구문 요소로서, 복수의 비분리 변환 구성 중 어느 하나를 지시하는 정보가 이용될 수 있다. 예를 들어, 세 종류의 비분리 변환 구성이 지원되는 경우(i.e., n7개의 비분리 변환 세트와 k7개의 변환 커널 후보, n8개의 비분리 변환 세트와 k8개의 변환 커널 후보, n9개의 비분리 변환 세트와 k9개의 변환 커널 후보), 해당 구문 요소가 0, 1, 2의 값을 가질 수 있고, 시그널링되는 구문 요소의 값에 따라 현재 블록에 적용되는 비분리 변환 구성이 결정될 수 있다.
2차 변환의 적용 여부 및/또는 어떤 2차 변환이 적용되는지에 따라, 비분리 변환 세트와 변환 커널 후보의 개수를 상이하게 구성할 수 있다. 예를 들어, 2차 변환이 적용되지 않는 경우, n10개의 비분리 변환 세트와 k10개의 변환 커널 후보를 포함한 비분리 변환 구성을 적용할 수 있다. 2차 변환이 적용되는 경우, n11개의 비분리 변환 세트와 k11개의 변환 커널 후보를 포함한 비분리 변환 구성을 적용할 수 있다.
양자화 파라미터(QP) 및/또는 QP 값의 범위에 따라, 상이한 비분리 변환 구성을 적용할 수 있다. 예를 들어, QP 값이 작은 값을 가지는 경우, n12개의 비분리 변환 세트와 k12개의 변환 커널 후보를 포함한 비분리 변환 구성을 적용할 수 있다. 반면, QP 값이 큰 값을 가지는 경우, n13개의 비분리 변환 세트와 k13개의 변환 커널 후보를 포함한 비분리 변환 구성을 적용할 수 있다. QP 값이 문턱값(e.g., 32) 이하(또는 미만)이면, QP 값이 작은 값을 가지는 경우로 분류하고, 그렇지 않으면, QP 값이 큰 값을 가지는 경우로 분류할 수 있다. 또는, QP 값의 범위를 3개 이상으로 구분하고, 각 범위에 대해 각기 다른 비분리 변환 구성을 적용할 수도 있다.
상대적으로 큰 블록에 대해서, 해당 블록의 너비와 높이에 대응하는 비분리 변환을 사용하지 않고, 해당 블록을 복수의 서브 블록으로 분할하고, 서브 블록의 너비와 높이에 대응하는 비분리 변환을 사용할 수 있다. 예를 들어, 4x8 블록에 대한 비분리 변환을 수행할 때, 4x8 블록을 두 개의 4x4 서브 블록으로 분할하고, 각각의 4x4 서브 블록에 대해서 4x4 블록 기반의 비분리 변환을 사용할 수 있다. 또는, 8x16 블록의 경우, 2개의 8x8 서브 블록으로 분할하고, 8x8 블록 기반의 비분리 변환을 사용할 수 있다.
상기 비분리 변환 세트는, 현재 블록의 인트라 예측 모드와 매핑 테이블을 기반으로 결정될 수 있다. 매핑 테이블은, 기-정의된 인트라 예측 모드들과 비분리 변환 세트들 간의 매핑 관계를 정의할 수 있다. 기-정의된 인트라 예측 모드들은 2개의 비방향성 모드(non-directional modes)와 65개의 방향성 모드(directional modes)을 포함할 수 있다. 일반적으로 비분리 변환은 분리 변환에 비해서 변환 커널의 크기가 크다. 이는, 변환 과정에 소요되는 계산적 복잡도가 높고, 변환 커널의 저장을 위해 요구되는 메모리가 큼을 의미한다. 한편, 분리 변환은 수평 및/또는 수직 방향으로 존재하는 통계적 특성만을 고려할 수 있지만, 비분리 변환은 수평 및 수직 방향을 포함하는 2차원 공간 상의 통계적 특성을 동시에 고려할 수 있으므로 더 나은 압축 효율을 제공한다. 인트라 예측 모드의 방향성에 따라서 레지듀얼의 통계적 특성 및 다양성이 다르기 때문에, 비분리 변환이 절대적으로 필요한 경우가 있을 수 있으며, 분리 변환만으로 충분히 레지듀얼의 특성을 파악할 수 있는 인트라 예측 모드가 존재할 수 있다. 따라서, 인코딩 장치와 디코딩 장치에서 인트라 예측 모드에 따라 어떤 변환을 사용할 것인지 미리 정의함으로써, 복잡도 및 메모리 요구량을 최적화하여 변환 과정을 설계할 수 있다. 상기 비방향성 모드는 0번인 planar 모드 및 1번인 DC 모드를 포함할 수 있고, 상기 방향성 모드는 2번 내지 66번의 인트라 예측 모드를 포함할 수 있다. 다만, 이는 예시로서, 본 개시는 기-정의된 인트라 예측 모드의 개수가 다른 경우에도 적용될 수 있다.
wide angle intra prediction(WAIP)의 적용으로 인해, 기-정의된 인트라 예측 모드는, -14번 내지 -1번의 인트라 예측 모드와 67번 내지 80번의 인트라 예측 모드를 더 포함할 수 있다.
도 5는 본 개시에 따른 인트라 예측 모드와 그 예측 방향을 예시적으로 나타낸다. 도 5를 참조하면, -14번 내지 -1번 및 2번 내지 33번까지의 모드와 35번 내지 80번까지의 모드는 34번 모드를 중심으로 예측 방향 관점에서 대칭이다. 예를 들어 10번 모드와 58번 모드는 34번 모드에 해당하는 방향을 중심으로 대칭이고, -1번 모드는 67번 모드와 대칭이다. 따라서, 34번 모드를 중심으로 수평 방향성 모드에 대칭되는 수직 방향성 모드에 대해서는, 입력 데이터를 트랜스포즈(transpose)해서 사용할 수 있다. 입력 데이터를 transpose한다는 것은 2차원 블록의 입력 데이터 MxN에서의 행이 열이 되고 열이 행이 되어 NxM 데이터를 구성하는 것을 의미한다.
예를 들어, 4x4 블록이 사용되는 경우, 비분리 변환을 위해 4x4 블록을 이루는 16개의 데이터를 적절히 배열하여 16x1의 1차원 벡터를 구성할 수 있다. 이때, 행 우선의 순서로 1차원 벡터를 구성할 수도 있고, 열 우선의 순서로 1차원 벡터를 구성할 수도 있다. 비분리 변환의 결과인 레지듀얼 샘플들을 위 순서로 배열하여 2차원 블록을 구성할 수 있다.
-14번 내지 -1번 및 2번 내지 33번 모드에 대하여, 16x1 입력 벡터를 구성하기 위한 데이터 배열 순서가 행 우선의 순서인 경우, 35번 내지 80번 모드에 대해서는 열 우선의 순서에 따라 입력 벡터가 구성될 수 있다.
34번 모드는 수평 방향성 모드도 아니고 수직 방향성 모드도 아니라고 볼 수 있으나, 본 개시에서는 수평 방향성 모드에 속하는 것으로 분류한다. 즉, -14번 내지 -1번 및 2번 내지 33번 모드에 대해서는 수평 방향성 모드에 대한 입력 데이터 정렬 방식, 즉 행 우선의 순서를 사용하고, 34번 모드를 중심으로 대칭되는 수직 방향성 모드에 대해서 입력 데이터를 transpose하여 사용할 수 있다.
비정방형 블록의 경우, 정방형 블록에서의 대칭성(즉, NxN 블록에서 P번 모드와 (68-P)번 모드 간의 대칭성(2<=P<=33) 또는 Q번 모드와 (66-Q)번 모드 간의 대칭성(-14<=Q<=-1))을 활용할 수 없다. 이에, 인트라 예측 모드만을 기준으로 한 대칭성 외에 서로 전치 관계에 있는 블록 형태 간의 대칭성, 즉 KxL 블록과 LxK 블록 간의 대칭성을 함께 활용할 수도 있다. 구체적으로, P번 모드로 예측되는 KxL 블록과 (68-P)번 모드로 예측되는 LxK 블록 간에 대칭 관계가 존재한다. 또는, Q번 모드로 예측되는 KxL 블록과 (66-Q)번 모드로 예측되는 LxK 블록 간에 대칭 관계가 존재한다.
2번 모드를 갖는 KxL 블록과 66번 모드를 갖는 LxK 블록은 서로 대칭이라 볼 수 있으므로, KxL 블록과 LxK 블록에 동일한 변환 커널을 적용할 수 있다. 만약, KxL 블록의 인트라 예측 모드에 대한 비분리 변환 세트가 매핑되어 있다고 했을 때, LxK 블록에 비분리 변환을 적용하기 위해서는, LxK 블록에 적용되는 P번 모드 대신 (68-P)번 모드를 기반으로, 상기 KxL 블록에 대응하는 매핑 테이블을 통해 비분리 변환 세트를 유도할 수 있다. 또는, LxK 블록에 적용되는 Q번 모드 대신 (66-Q)번 모드를 기반으로, 상기 상기 KxL 블록에 대응하는 매핑 테이블을 통해 비분리 변환 세트를 유도할 수 있다.
예를 들어, LxK 블록에 비분리 변환을 적용하기 위해서는, 66번 모드 대신 2번 모드를 기준으로 비분리 변환 세트를 선택할 수 있다. 또한, KxL 블록에 대해서는 입력 데이터를 기-결정된 순서(e.g., 행 우선의 순서 또는 열 우선의 순서)에 따라 읽어서 1차원 벡터를 구성한 후 해당 비분리 변환을 적용할 수 있다. LxK 블록에 대해서는 입력 데이터를 transpose한 순서에 따라 읽어서 1차원 벡터를 구성한 후 해당 비분리 변환을 적용할 수 있다. 즉, KxL 블록에 대해 행 우선의 순서로 읽었다면, LxK 블록에 대해 열 우선의 순서로 읽을 수 있다. 반대로, KxL 블록에 대해 열 우선의 순서로 읽었다면, LxK 블록에 대해 행 우선의 순서로 읽을 수 있다.
또한, 34번 모드가 KxL 블록에 적용되는 경우, 34번 모드를 기반으로 비분리 변환 세트를 결정하고, 기-결정된 순서에 따라 입력 데이터를 읽어 1차원 벡터를 구성하여 해당 비분리 변환을 수행할 수 있다. 34번 모드가 LxK 블록에 적용되는 경우, 마찬가지로 34번 모드를 기반으로 비분리 변환 세트를 결정하되, 입력 데이터를 transpose한 순서에 따라 읽어 1차원 벡터를 구성하여 해당 비분리 변환을 수행할 수 있다.
본 개시에서는 KxL 블록을 기준으로 비분리 변환 세트의 결정 방법 및 입력 데이터의 구성 방법을 설명하였으나, LxK 블록을 기준으로 KxL 블록에 대해 전술한 대칭성을 동일하게 활용하여 해당 비분리 변환을 수행할 수 있다. 또는, 너비가 높이보다 큰 블록이 기준 블록으로 이용되도록 제한될 수도 있다. 또는, 비정방형 블록의 경우 대칭성을 활용하지 않도록 제한될 수 있다. 이 경우, 비정방형 블록은 정방형 블록과는 다른 개수의 비분리 변환 세트 및/또는 변환 커널 후보를 사용할 수도 있고, 정방형 블록과는 다른 매핑 테이블을 사용하여 비분리 변환 세트를 선택할 수도 있다.
비분리 변환 세트를 선택하기 위한 매핑 테이블의 예는 다음과 같다.
predModeIntra TrSetIdx
predModeIntra < 0 4
0 <= predModeIntra <= 1 0
2 <= predModeIntra <= 12 1
13 <= predModeIntra <= 23 2
24 <= predModeIntra <= 44 3
45 <= predModeIntra <= 55 2
56 <= predModeIntra <= 66 1
67 <= predModeIntra <= 80 4
표 1은, 5개의 비분리 변환 세트가 존재할 때, 인트라 예측 모드 별로 비분리 변환 세트를 할당하는 예시를 보여준다. predModeIntra의 값은 WAIP를 고려한 인트라 예측 모드의 값을 의미하며, TrSetIdx는 특정 비분리 변환 세트를 나타내는 인덱스이다. 표 1에서 인트라 예측 모드에 따라 서로 대칭되는 방향에 위치하는 모드들에 동일한 비분리 변환 세트가 적용되는 것을 확인할 수 있다. 표 1은 5개의 비분리 변환 세트를 사용하는 일예에 불과하며, 비분리 변환을 위한 전체 비분리 변환 세트의 개수를 한정하지 않는다.
또는, 표 2와 같이, 압축 성능을 위해 WAIP에 대해서는 비분리 변환을 적용하지 않을 수도 있다.
predModeIntra TrSetIdx
0 <= predModeIntra <= 1 0
2 <= predModeIntra <= 12 1
13 <= predModeIntra <= 23 2
24 <= predModeIntra <= 44 3
45 <= predModeIntra <= 55 2
56 <= predModeIntra <= 66 1
또는, 표 3과 같이, WAIP에 대해 별도의 비분리 변환 세트를 구성하지 않고, 인접한 인트라 예측 모드에 대응하는 비분리 변환 세트가 공유될 수도 있다.
predModeIntra TrSetIdx
predModeIntra < 0 1
0 <= predModeIntra <= 1 0
2 <= predModeIntra <= 12 1
13 <= predModeIntra <= 23 2
24 <= predModeIntra <= 44 3
45 <= predModeIntra <= 55 2
56 <= predModeIntra <= 80 1
상기 비분리 변환 세트는 복수의 변환 커널 후보를 포함할 수 있고, 복수의 변환 커널 후보 중 어느 하나가 선택적으로 이용될 수 있다. 이를 위해, 비트스트림을 통해 시그날링되는 인덱스가 이용될 수 있다. 또는, 현재 블록의 컨텍스트 정보에 기초하여, 복수의 변환 커널 후보 중 어느 하나가 묵시적으로 결정될 수도 있다. 여기서, 컨텍스트 정보는, 현재 블록의 크기 또는 주변 블록에 비분리 변환이 적용되는지 여부를 의미할 수 있다. 여기서, 현재 블록의 크기는, 너비, 높이, 너비와 높이의 최대값/최소값, 너비와 높이의 합, 또는 너비와 높이의 곱으로 정의될 수 있다.
이하, 현재 블록의 역변환을 위한 변환 커널을 결정하는 방법에 대해서 자세히 살펴보도록 한다.
실시예 1
전술한 바와 같이, 역변환은 분리 변환과 비분리 변환으로 구분될 수 있다. 분리 변환은 2차원 블록에 대해 수평 방향과 수직 방향에 대해 각각 변환을 수행하는 것을 의미하고, 비분리 변환은 2차원 블록 전체 또는 일부 영역을 구성하는 샘플들에 대해 한 번의 변환을 수행하는 것을 의미할 수 있다. 분리 변환을 표기할 때, 수평 변환과 수직 변환의 쌍(pair)으로 표기할 수 있으며, 본 개시에서는 (수평 변환, 수직 변환)과 같이 나타내기로 한다.
현재 블록의 역변환을 위해 복수의 변환 세트가 정의될 수 있다. 각 변환 세트는, 하나 또는 그 이상의 변환 커널 후보를 포함할 수 있다.
예를 들어, (DST-7, DST-7), (DCT-8, DST-7), (DST-7, DCT-8), 또는 (DCT-8, DCT-8) 중 어느 하나가 분리 변환으로서 적용될 수 있으며, 해당 4개의 변환 커널 후보가 하나의 변환 세트로 간주될 수 있다. 또한, (DCT-2, DCT-2)가 하나의 변환 세트로 간주될 수 있다. 변환을 적용하지 않는 변환 스킵도 하나의 변환 세트로 간주될 수 있고, (DCT-2, DCT-2)와 변환 스킵이 하나의 변환 세트로 간주될 수 있다. 본 개시에서 변환 커널(transform kernel)은 하나의 변환(e.g., DCT-2, DST-7)을 지칭할 수도 있고, 2개의 변환 쌍(e.g., (DCT-2, DCT-2))을 지칭할 수도 있다.
또 다른 변환 세트의 예로서, 전술한 비분리 변환 세트가 있을 수 있다. 본 개시에서는 일차 변환으로서 적용되는 비분리 변환을 Non-Separable Primary Transform(NSPT)으로 표기할 수 있다. NSPT에서는, 복수의 비분리 변환 세트가 구성될 수 있고, 각 비분리 변환 세트는 변환 커널 후보로서 하나 또는 그 이상의 변환 커널들을 포함할 수 있다. NSPT의 경우, 인트라 예측 모드에 따라 복수의 비분리 변환 세트 중 어느 하나가 선택되며, NSPT를 위한 복수의 비분리 변환 세트를 NSPT 세트 리스트라고 표기할 수 있다. 이는 앞서 살펴본 바와 같으며, 여기서 자세한 설명은 생략하기로 한다.
기-정의된 복수의 변환 세트로부터 현재 블록이 이용 가능한 하나 또는 그 이상의 변환 세트의 그룹을 구성할 수 있다. 상기 하나 또는 그 이상의 변환 세트의 그룹은, 현재 블록이 속한 소정의 영역 단위로 구성될 수 있으며, 이하 컬렉션(collection)이라 부르기로 한다. 여기서, 소정의 영역 단위는, 픽쳐, 슬라이스, 코딩 트리 유닛 행(CTU row), 또는 코딩 트리 유닛(CTU) 중 적어도 하나일 수 있다.
예를 들어, (DCT-2, DCT-2)으로 구성된 변환 세트를 S1, (DST-7, DST-7), (DCT-8, DST-7), (DST-7, DCT-8) 및 (DCT-8, DCT-8)으로 구성된 변환 세트를 S2라 각각 부르기로 한다. 또한, 전술한 NSPT 세트 리스트는 N개의 비분리 변환 세트를 포함할 수 있으며, N개의 비분리 변환 세트를 S3,1, S3,2, ..., S3,N라 각각 부르기로 한다. 여기서, N은 35일 수 있으나, 이에 한정되지 아니한다.
현재 블록의 인트라 예측 모드에 의해 S3,13이 NSPT를 위한 비분리 변환 세트로 선택된 경우, 현재 블록에 적용 가능한 변환 커널은 S1, S2, 또는 S3,13 중 어느 하나에 속한 것일 수 있다. 이 경우, 현재 블록이 이용 가능한 컬렉션을 {S1, S2, S3,13}으로 표기할 수 있다.
전술한 바와 같이, 본 개시에 따른 컬렉션은 현재 블록이 이용 가능한 하나 또는 그 이상의 변환 세트의 그룹이므로, 현재 블록의 컨텍스트에 따라 상기 컬렉션은 상이하게 구성될 수 있다. 여기서, 컨텍스트는 형태, 크기, 또는 인트라 예측 모드 중 적어도 하나를 포함할 수 있다. 만약, 총 K개의 컨텍스트가 정의되는 경우, K개의 컬렉션이 생성될 수 있으며, 각 컬렉션은 Ci로 표기될 수 있다(i=1, 2, ... , N). 예를 들어, NSPT가 적용될 수 있는 블록의 크기가 4x4, 8x8, 16x16, 32x32이고, 인트라 예측 모드에 의해 총 35개의 비분리 변환 세트 중 어느 하나가 선택되는 경우, 만약 블록의 크기마다 적용되는 변환 커널이 다르다면 총 4 x 35 = 140개의 컨텍스트가 정의될 수 있다.
현재 블록의 컨텍스트를 기반으로 하나의 컬렉션이 구성될 수 있고, 이때, 해당 컬렉션에 속한 복수의 변환 세트 중 어느 하나를 선택하고, 선택된 변환 세트에 속한 복수의 변환 커널 후보 중 어느 하나를 선택하는 과정이 수행될 수 있다. 여기서, 변환 세트와 변환 커널 후보의 선택은, 현재 블록의 컨텍스트를 기반으로 묵시적으로 수행되거나, 명시적으로 시그날링되는 인덱스를 기반으로 수행될 수도 있다. 또는, 컬렉션에 속한 복수의 변환 세트 중 어느 하나를 선택하는 과정과 선택된 변환 세트에 속한 복수의 변환 커널 후보 중 어느 하나를 선택하는 과정은 각각 수행될 수도 있다. 예를 들어, 변환 세트를 선택하기 위한 인덱스를 먼저 시그날링되어 이를 기반으로 컬렉션에 속한 복수의 변환 세트 중 어느 하나를 선택할 수 있다. 그런 다음, 변환 세트에 속한 복수의 변환 커널 후보 중 어느 하나를 지시하는 인덱스가 시그날링될 수 있고, 시그날링된 인덱스를 기반으로 변환 세트로부터 어느 하나의 변환 커널 후보를 선택할 수 있다. 선택된 변환 커널 후보를 기반으로 현재 블록의 변환 커널이 결정될 수 있다. 또는, 컬렉션으로부터 어느 하나의 변환 세트의 선택은 현재 블록의 컨텍스트에 기초하여 묵시적으로 수행되고, 선택된 변환 세트로부터 어느 하나의 변환 커널 후보의 선택은 시그날링된 인덱스를 기반으로 수행될 수 있다. 또는, 컬렉션으로부터 어느 하나의 변환 세트의 선택은 시그날링된 인덱스를 기반으로 수행되고, 선택된 변환 세트로부터 어느 하나의 변환 커널 후보의 선택은 현재 블록의 컨텍스트에 기초하여 묵시적으로 수행될 수 있다. 또는, 컬렉션으로부터 어느 하나의 변환 세트의 선택은 현재 블록의 컨텍스트에 기초하여 묵시적으로 수행되고, 선택된 변환 세트로부터 어느 하나의 변환 커널 후보의 선택 역시 현재 블록의 컨텍스트에 기초하여 묵시적으로 수행될 수 있다. 물론, 컬렉션에 속한 변환 세트의 개수가 1개인 경우, 변환 세트를 선택하기 위한 인덱스가 시그날링되지 않을 수 있다. 마찬가지로, 선택된 변환 세트에 속한 변환 커널 후보의 개수가 1개인 경우, 해당 변환 커널 후보를 지시하기 위한 인덱스가 시그날링되지 않을 수 있다. 또는, 현재 컬렉션에 속한 모든 변환 커널 후보 중 어느 하나를 지시하는 인덱스가 시그날링될 수도 있다. 이 경우, 컬렉션으로부터 어느 하나의 변환 세트를 선택하는 과정이 생략될 수 있다. 이때, 컬렉션에 속한 모든 변환 세트는 우선 순위를 고려하여 재배열될 수 있다. 예를 들어, truncated unary 코드와 같이, 작은 값의 인덱스에 대해 작은 길이의 바이너리 코드를 할당하는 경우, 코딩 성능의 향상에 보다 유리한 변환 커널 후보에 대해 작은 값의 인덱스를 할당하는 것이 유리할 수 있다. 컬렉션에 속한 모든 변환 커널 후보를 우선 순위에 따라 재배열할 때(shuffling), 컬렉션마다 다른 shuffling을 적용할 수도 있다. 또한, 컬렉션에 속한 모든 변환 커널 후보를 재배열하는 것이 아니라, 일부만을 선택적으로 재배열할 수도 있다.
실시예 2
현재 블록의 역변환을 위한 변환 커널은 MTS(Multiple Transform Selection)을 기반으로 결정될 수 있다.
본 개시에 따른 MTS는 DST-7, DCT-8, DCT-5, DST-4, DST-1, 또는 IDT(identity transform, 항등 변환) 중 적어도 하나를 변환 커널로 이용할 수 있다. 또한, 본 개시에 따른 MTS는 DCT-2의 변환 커널을 더 포함할 수도 있다.
본 개시에서, MTS를 위한 복수의 MTS 세트가 정의될 수 있다. 현재 블록의 크기 및/또는 인트라 예측 모드에 기초하여, 복수의 MTS 세트 중 어느 하나가 결정될 수 있다. 예를 들어, 어느 하나의 MTS 세트를 결정함에 있어서, 16개의 변환 블록 크기가 고려될 수 있고, 방향성 모드에 대해서는 변환 블록의 형태와 인트라 예측 모드들 간의 대칭성이 고려될 수 있다. WAIP(Wide Angle Intra Prediction)의 모드(즉, -1번 내지 -14번(또는 -15번), 67번 내지 80번(또는 81번))의 경우, -1번 내지 -14번(또는 -15번) 모드에 대해서는 2번 모드에 대응하는 MTS 세트를 적용하고, 67번 내지 80번(또는 81번) 모드에 대해서는 66번 모드에 대응하는 MTS 세트를 적용할 수 있다. MIP(Matrix-based Intra Prediction) 모드에 대해서는 별도의 MTS 세트가 할당될 수 있다.
예를 들어, 변환 블록 크기와 인트라 예측 모드에 따른 MTS 세트는 다음 표 4와 같이 할당/정의될 수 있다.
블록 크기 인트라 예측 모드
너비 높이 [0, 1] [2, 12] [13, 23] [24, 34] MIP
4 4 0 1 2 3 4
4 8 5 6 7 8 9
4 16 10 11 12 13 14
4 32 15 16 17 18 19
8 4 20 21 22 23 24
8 8 25 26 27 28 29
8 16 30 31 32 33 34
8 32 35 36 37 38 39
16 4 40 41 42 43 44
16 8 45 46 47 48 49
16 16 50 51 52 53 54
16 32 55 56 57 58 59
32 4 60 61 62 63 64
32 8 65 66 67 68 69
32 16 70 71 72 73 74
32 32 75 76 77 78 79
표 4는 16가지의 변환 블록 크기와 인트라 예측 모드에 따른 MTS 세트의 할당을 보여준다. 기-정의된 MTS 세트의 개수는 80개이며, 80개의 MTS 세트 중 어느 하나를 지시하는 인덱스는 표 4와 같이 0부터 79까지를 가질 수 있다.
MTS 세트 인덱스 변환 커널 후보 인덱스
0 1 2 3 4 5
0 18 24 17 23 8 12
1 18 3 7 22 0 16
2 18 2 17 22 3 23
3 18 3 15 17 12 23
4 18 12 3 19 10 13
5 18 12 19 23 13 24
6 18 12 17 2 3 23
7 18 2 17 22 12 23
8 18 2 11 17 22 23
9 18 12 19 23 3 10
10 16 12 13 24 7 8
11 16 2 11 23 12 18
12 13 17 2 22 12 18
13 17 11 2 21 12 18
14 16 13 19 22 3 10
15 18 12 13 7 14 22
16 16 12 11 1 18 22
17 17 13 3 22 12 18
18 6 12 1 22 13 17
19 16 12 13 15 2 23
20 18 24 23 19 12 17
21 18 24 2 17 0 23
22 17 3 4 22 2 13
23 18 12 19 23 3 15
24 18 12 19 23 3 10
25 6 12 18 24 13 19
26 6 12 2 21 13 18
27 17 11 1 22 2 18
28 16 17 3 11 12 23
29 8 12 19 23 11 24
30 16 13 7 23 12 19
31 6 12 1 11 18 22
32 17 11 1 21 12 18
33 6 11 17 21 12 18
34 8 11 14 17 12 22
35 6 12 11 21 14 16
36 6 12 11 1 17 21
37 6 12 11 2 17 21
38 6 11 21 1 12 17
39 16 12 11 7 1 5
40 8 12 19 24 11 17
41 18 13 1 22 2 24
42 6 2 17 21 19 22
43 16 12 11 19 8 15
44 8 12 17 24 13 15
45 6 12 19 21 17 18
46 6 12 13 21 2 18
47 16 2 17 21 1 11
48 6 17 19 23 12 16
49 6 12 14 17 8 22
50 6 7 11 21 9 12
51 16 12 11 1 7 21
52 6 12 11 1 17 21
53 6 12 11 21 1 16
54 8 7 9 11 12 21
55 6 12 7 11 14 21
56 6 12 7 11 1 21
57 16 12 11 1 2 21
58 6 11 17 21 1 12
59 6 12 7 11 9 21
60 18 12 14 21 6 21
61 16 11 1 22 2 17
62 16 11 1 22 2 17
63 16 13 15 7 14 19
64 8 12 1 19 16 23
65 6 12 7 9 13 21
66 6 12 13 2 7 18
67 16 12 1 21 11 17
68 16 11 7 19 12 15
69 8 12 7 11 14 21
70 6 12 7 11 8 9
71 6 12 7 11 2 21
72 6 12 1 11 21 22
73 6 7 11 16 9 12
74 6 12 7 11 9 21
75 6 12 7 11 13 17
76 6 12 11 21 2 7
77 6 12 1 11 2 7
78 6 12 7 11 16 21
79 6 12 7 11 9 16
표 5는, 표 4에서 살펴본 각 MTS 세트에 포함되는 변환 커널 후보를 나타낸다. 각 MTS 세트는 6개의 변환 커널 후보로 구성될 수 있다. 변환 커널 후보 인덱스는 0 내지 5 중 어느 하나의 값을 가지며, 상기 6개의 변환 커널 후보 중 어느 하나를 지시할 수 있다. 여기서, 각 변환 커널 후보는 분리 변환을 위한 수평 변환 커널과 수직 변환 커널의 조합일 수 있고, 0 내지 24의 인덱스를 가진 25개의 변환 커널 후보가 정의될 수 있다.
커널 조합
인덱스
인트라 예측 모드의 값이 35 미만인 경우 인트라 예측 모드의 값이 35 이상인 경우
0 (DCT-8, DCT-8) (DCT-8, DCT-8)
1 (DST-7, DCT-8) (DCT-8, DST-7)
2 (DCT-5, DCT-8) (DCT-8, DCT-5)
3 (DST-4, DCT-8) (DCT-8, DST-4)
4 (DST-1, DCT-8) (DCT-8, DST-1)
5 (DCT-8, DST-7) (DST-7, DCT-8)
6 (DST-7, DST-7) (DST-7, DST-7)
7 (DCT-5, DST-7) (DST-7, DCT-5)
8 (DST-4, DST-7) (DST-7, DST-4)
9 (DST-1, DST-7) (DST-7, DST-1)
10 (DCT-8, DCT-5) (DCT-5, DCT-8)
11 (DST-7, DCT-5) (DCT-5, DST-7)
12 (DCT-5, DCT-5) (DCT-5, DCT-5)
13 (DST-4, DCT-5) (DCT-5, DST-4)
14 (DST-1, DCT-5) (DCT-5, DST-1)
15 (DCT-8, DST-4) (DST-4, DCT-8)
16 (DST-7, DST-4) (DST-4, DST-7)
17 (DCT-5, DST-4) (DST-4, DCT-5)
18 (DST-4, DST-4) (DST-4, DST-4)
19 (DST-1, DST-4) (DST-4, DST-1)
20 (DCT-8, DST-1) (DST-1, DCT-8)
21 (DST-7, DST-1) (DST-1, DST-7)
22 (DCT-5, DST-1) (DST-1, DCT-5)
23 (DST-4, DST-1) (DST-1, DST-4)
24 (DST-1, DST-1) (DST-1, DST-1)
표 6은, 표 5에서 살펴본 25개의 변환 커널 후보의 일예이다. 구체적으로, 변환 커널 후보의 수평 변환과 수직 변환은 (수평 변환, 수직 변환)로 표시되고 있다. 각 변환 커널 후보 인덱스에 대해서, 인트라 예측 모드가 35 미만인 경우의 수평/수직 변환은 인트라 예측 모드가 35 이상인 경우의 수평/수직 변환과 서로 반대일 수 있다. 인트라 예측 모드의 값이 35 이상일 경우, 34번 모드를 중심으로 대칭인 모드를 유도하고, 해당 모드를 기반으로 상기 표 4로부터 MTS 세트를 선택할 수 있다. 또한, 블록 형태의 대칭성이 추가적으로 고려될 수 있다. 원래 변환 블록이 WxH 크기를 가진 경우, 원래 변환 블록을 대칭시켜 HxW 크기를 가진 것으로 간주하고, 표 4로부터 MTS 세트를 선택할 수 있다. 여기서, 인트라 예측 모드의 값은 수정된 인트라 예측 모드의 값일 수 있다. 즉, WAIP을 위한 모드 값으로서, -14번(또는 -15번)부터 -1번까지는 2번 모드로 수정하고, 67번부터 80번(또는 81번)까지는 66번 모드로 수정하며, 나머지 모드는 원래 인트라 예측 모드의 값을 그대로 수정된 인트라 예측 모드의 값으로 설정할 수 있다. 이 경우, WAIP를 위한 확장된 모드들도 34번 모드를 중심으로 하여 대칭으로 구성되기 때문에, Planar 모드와 DC 모드를 제외한 모든 방향성 모드에 대해서는 34번 모드를 중심으로 하는 대칭성을 이용할 수 있다.
예를 들어, 16x32 블록이 54번 모드로 예측되는 경우, 54번에 대칭되는 모드로서 14번 모드(=68-54)가 유도되고, 블록 크기가 32x16으로 간주될 수 있다. 이 경우, 표 4에 정의된 바와 같이, 72의 인덱스를 가진 MTS 세트가 선택될 수 있다.
MIP 모드가 적용되는 경우, 블록 형태의 대칭성을 고려하지 않고, 현재 블록의 크기를 기반으로 MIP 모드에 할당된 MTS 세트가 선택될 수 있다. 또는, MIP 모드가 적용되는 경우, 블록 형태의 대칭성을 고려하여, 대칭되는 블록 크기를 기반으로 MIP 모드에 할당된 MTS 세트가 선택될 수도 있다. 예를 들어, 8x16 블록에 대해 MIP 모드가 적용되는 경우, 8x16 블록은 이에 대칭되는 16x8 블록으로 간주될 수 있고, 표 4에 정의된 바와 같이, 49의 인덱스를 가진 MTS 세트가 선택될 수 있다. 또는, MIP 모드가 적용되는 경우, 인트라 예측 모드는 Planar 모드로 간주될 수 있다. 이 경우, 블록 형태의 대칭성을 고려하지 않고, 현재 블록의 크기를 기반으로 MIP 모드에 할당된 MTS 세트가 선택될 수 있다. 또는, 블록 형태의 대칭성을 고려하여, 대칭되는 블록 크기를 기반으로 MIP 모드에 할당된 MTS 세트가 선택될 수도 있다.
MIP 모드의 경우, MIP 모드가 transpose 모드로 적용되는지 여부를 나타내는 플래그가 이용될 수 있다. MxN의 현재 블록에 MIP 모드가 적용되고 상기 플래그가 transpose 모드의 적용을 지시하는 경우, 인트라 예측 모드는 Planar 모드로 간주되고, MxN의 현재 블록은 NxM 블록으로 간주될 수 있다. 즉, 표 4로부터, NxM의 블록 크기와 Planar 모드에 대응하는 MTS 세트가 선택될 수 있다. 표 6에서 살펴본 바와 같이, 인트라 예측 모드의 값이 35 이상인 경우 수평 변환과 수직 변환을 서로 바꾸게 되나, 현재 블록의 인트라 예측 모드가 Planar 모드로 간주되므로 변환 커널 후보의 수평 변환과 수직 변환을 서로 바꾸지 않을 수 있다. 또는, MxN의 현재 블록에 MIP 모드가 적용되고 상기 플래그가 transpose 모드의 적용을 지시하는 경우, 인트라 예측 모드는 Planar 모드로 간주되지 않고, MxN의 현재 블록은 NxM 블록으로 간주될 수 있다. 즉, 표 4로부터, NxM의 블록 크기와 MIP 모드에 대응하는 MTS 세트가 선택될 수도 있다.
표 5에서, 변환 커널 후보 인덱스에 의해 선택된 변환 커널 후보가 현재 블록의 변환 커널로 설정될 수 있다. 또는, 현재 블록의 크기에 따라, 상기 선택된 변환 커널 후보의 수평 변환 또는 수직 변환 중 적어도 하나가 다른 변환 커널로 변경될 수도 있다. 예를 들어, 변환 커널 후보 인덱스가 3이고, 현재 블록의 너비와 높이가 모두 16 이하인 경우, 3인 변환 커널 후보 인덱스에 대응하는 변환 커널 후보의 수평 변환 또는 수직 변환 중 적어도 하나가 다른 변환 커널로 변경될 수 있다. 이때, 수평 변환과 수직 변환이 서로 독립적으로 변경될 수 있다. 현재 블록의 인트라 예측 모드의 값과 수평 모드의 값 간의 차이(또는 차이의 절대값)가 소정의 문턱값 이하인 경우, 상기 선택된 변환 커널 후보의 수직 변환은 IDT(항등 변환)으로 변경될 수 있다. 현재 블록의 인트라 예측 모드의 값과 수직 모드의 값 간의 차이(또는 차이의 절대값)가 소정의 문턱값 이하인 경우, 상기 선택된 변환 커널 후보의 수평 변환은 IDT(항등 변환)으로 변경될 수 있다. 여기서, 문턱값은 현재 블록의 너비와 높이에 기초하여 다음 표 7과 같이 결정될 수 있다.
블록 크기 문턱값
너비 높이
4 4 8
4 8 6
4 16 4
8 4 8
8 8 8
8 16 6
16 4 4
16 8 2
16 16 -1
표 7은, 변환 커널 후보 인덱스에 의해 선택된 변환 커널 후보의 수평 변환 및/또는 수직 변환을 다른 변환 커널로 변경하기 위한 것으로서, 변환 블록의 크기에 따른 문턱값을 정의한다.
하나의 MTS 세트를 구성하는 6개의 변환 커널 후보는 표 5에 정의된 바와 같이 0 내지 5의 변환 커널 후보 인덱스로 구분될 수 있다. 해당 변환 커널 후보 인덱스는 비트스트림을 통해 시그날링될 수 있다. MTS 세트의 가용/적용 여부를 나타내는 플래그(MTS enabled flag 또는 MTS flag)가 시그날링될 수 있고, 상기 플래그가 MTS 세트의 가용/적용을 지시하는 경우에 변환 커널 후보 인덱스가 시그날링될 수 있다. 상기 MTS flag는 1개의 빈(bin)으로 구성될 수 있고, 해당 빈에 대해 1개 이상의 CABAC 기반의 엔트로피 코딩을 위한 컨텍스트(이하, CABAC context라 함)가 할당될 수 있다. 예를 들어, MIP 모드가 아닌 경우와 MIP 모드인 경우에 대해 각각 다른 CABAC context가 할당될 수 있다.
전술한 현재 블록의 컨텍스트에 따라, 현재 블록이 이용 가능한 변환 커널 후보의 개수가 상이하게 설정될 수 있다. 예를 들어, 현재 블록의 컨텍스트로서, 현재 블록 내 전부 또는 일부 변환 계수의 절대값의 합이 고려될 수 있다. 해당 변환 계수의 절대값의 합을 AbsSum이라 지칭하기로 한다. AbsSum이 T1보다 작거나 같은 경우, 0의 변환 커널 후보 인덱스에 대응하는 1개의 변환 커널 후보만이 이용 가능할 수 있다. AbsSum이 T1보다 크고 T2보다 작거나 같은 경우, 0 내지 3의 변환 커널 후보 인덱스에 대응하는 4개의 변환 커널 후보가 이용 가능할 수 있다. AbsSum이 T2보다 큰 경우, 0 내지 5의 변환 커널 후보 인덱스에 대응하는 6개의 변환 커널 후보가 이용 가능할 수 있다. 여기서, T1은 6이고, T2는 32일 수 있으나, 이는 일예에 불과하다.
AbsSum이 T1보다 작거나 같은 경우, 현재 블록이 이용 가능한 변환 커널 후보의 개수가 1개이므로, 변환 커널 후보 인덱스의 시그날링없이, 0의 변환 커널 후보 인덱스에 대응하는 변환 커널 후보가 현재 블록의 변환 커널로 설정될 수 있다. AbsSum이 T1보다 크고 T2보다 작거나 같은 경우 4개의 변환 커널 후보가 이용 가능하므로, 2개의 빈을 가진 변환 커널 후보 인덱스를 기반으로 4개의 변환 커널 후보 중 어느 하나가 선택될 수 있다. 즉, 0 내지 3의 변환 커널 후보 인덱스는 각각 00, 01, 10, 11로 시그날링될 수 있다. 상기 2개의 빈에 대해서 MSB(Most Significant Bit)가 먼저 시그날링되고, LSB(Least Significant Bit)가 나중에 시그날링될 수 있다. 각 빈에 대해서 서로 다른 CABAC context가 할당될 수 있다. 예를 들어, 2개의 빈에 대해서 상기 MTS flag를 위해 할당된 CABAC context가 아닌 다른 CABAC context를 각 빈마다 할당할 수 있다. 또는, 2개의 빈에 대해서 CABAC context가 할당되지 않고 bypass 코딩이 적용될 수도 있다. AbsSum이 T2보다 큰 경우 변환 커널 후보 인덱스는 0 내지 5의 값을 가지므로, 2개의 빈만으로는 변환 커널 후보 인덱스를 표현할 수 없다. 이 경우, truncated binary 코딩과 같이 2개 이상의 빈을 할당하여 변환 커널 후보 인덱스를 표현할 수 있다. 상기 truncated binary 코딩 방식에 의해 할당되는 각각의 빈에 대해서, CABAC context가 할당될 수도 있고, CABAC context의 할당없이 bypass 코딩이 적용될 수도 있다. 또는, 복수의 빈 중 일부(예를 들어, 첫번째 빈, 또는 첫번째 및 두번째 빈)에 대해서 CABAC context가 할당되고, 나머지 빈에 대해서 bypass 코딩이 적용될 수도 있다.
실시예 3
현재 블록의 변환 커널은 하나 또는 그 이상의 변환 커널 후보를 포함하는 변환 세트를 기반으로 결정될 수 있다. 현재 블록의 변환 커널은 상기 변환 세트에 속한 하나 또는 그 이상의 변환 커널 후보 중 어느 하나로 유도될 수 있다.
현재 블록의 변환 커널을 결정하는 과정은, 1) 현재 블록의 변환 세트를 결정하는 과정 또는 2) 현재 블록의 변환 세트로부터 어느 하나의 변환 커널 후보를 선택하는 과정 중 적어도 하나를 포함할 수 있다. 상기 변환 세트를 결정하는 과정은, 인코딩 장치와 디코딩 장치에 동일하게 기-정의된 복수의 변환 세트 중 어느 하나를 선택하는 과정일 수 있다. 또는, 상기 변환 세트를 결정하는 과정은, 인코딩 장치와 디코딩 장치에 동일하게 기-정의된 복수의 변환 세트 중에서 현재 블록이 이용 가능한 하나 또는 그 이상의 변환 세트를 구성하고, 구성된 변환 세트 중 어느 하나를 선택하는 과정일 수 있다. 또는, 상기 변환 세트를 결정하는 과정은, 인코딩 장치와 디코딩 장치에 동일하게 기-정의된 복수의 변환 커널 후보 중에서 현재 블록이 이용 가능한 변환 커널 후보를 기반으로 하나의 변환 세트를 구성하는 과정일 수 있다.
현재 블록의 변환 세트에 복수의 변환 커널 후보가 포함되는 경우, 현재 블록에 대해 복수의 변환 커널 후보 중 어느 하나를 선택하는 과정이 수행될 수 있다. 다만, 현재 블록의 변환 세트에 1개의 변환 커널 후보가 포함된 경우(즉, 현재 블록이 이용 가능한 변환 커널 후보가 1개인 경우), 현재 블록의 변환 커널은 해당 변환 커널 후보로 설정될 수 있다.
본 개시에 따른 변환 세트는, 전술한 실시예 1에서의 (비분리) 변환 세트를 의미하거나, 실시예 2에서의 MTS 세트를 의미할 수도 있다. 또는, 상기 변환 세트는, 실시예 1의 (비분리) 변환 세트 또는 실시예 2의 MTS 세트와 별개로 정의된 것일 수 있다. 이 경우, 상기 변환 세트는 변환 커널 후보로서 하나 또는 그 이상의 특정 변환 커널을 포함할 수 있다. 하나의 특정 변환 커널은, 수평 변환을 위한 변환 커널과 수직 변환을 위한 변환 커널의 쌍으로 정의되거나, 수평 및 수직 변환에 동일하게 적용되는 하나의 변환 커널로 정의될 수 있다.
본 개시의 실시예에서는, 일차 변환으로 적용되는 비분리 변환인 NSPT 적용 과정을 상세히 설명한다. NSPT는 변환 블록의 전부 또는 일부 영역에 적용될 수 있다. 순방향 NSPT를 기준으로, NSPT가 적용되는 영역에 존재하는 레지듀얼 샘플이 NSPT의 일차원 벡터로 입력될 수 있다. 즉, 한 변환 블록 전체 또는 일부 영역(본 개시에서, Region Of Interest, ROI라고 지칭함)에 존재하는 레지듀얼 샘플들을 일차원 벡터로 모아서 입력으로 구성할 수 있다. 이후, 순방향 NSPT를 적용하면 일차 변환 계수를 획득할 수 있다. 반대로, 일차 변환 계수에 대해 역방향 NSPT를 적용하면 일차원 벡터 출력을 획득할 수 있다. 해당 출력 벡터를 구성하는 각 엘리먼트 값을 2D 변환 블록 내부에 정해진 위치에 배치함으로써 ROI에 대한 레지듀얼 샘플을 획득할 수 있다.
NSPT를 위한 비분리 변환 커널은 ROI의 크기에 따라 행렬의 차원이 결정될 수 있다. 본 개시에서, 변환 커널은 변환 타입, 변환 행렬로 지칭될 수 있고, NSPT를 위한 비분리 변환 커널은 NSPT 커널로 지칭될 수 있다. 예를 들어, 현재 블록이 MxN 변환 블록이고, ROI가 MxN 변환 블록 전부의 영역이고, 정방형 NSPT가 적용되는 경우, 해당 변환 행렬의 차원은 MN x MN일 수 있다. 예를 들어, ROI가 8x8 변환 블록 전부의 영역인 경우, NSPT 커널의 차원은 64 x 64일 수 있다.
본 개시의 일 실시예에 따르면, NSPT를 인트라 예측에 의해 생성된 레지듀얼에 적용되는 경우, 인트라 예측 모드에 따라 NSPT 커널을 적응적으로 결정할 수 있다. 레지듀얼 블록에 대한 통계적 특성이 인트라 예측 모드마다 달라질 수 있기 때문에, 인트라 예측 모드에 따라 NSPT 커널을 적응적으로 결정함으로써 압축 효율을 높일 수 있다.
하나 이상의 인트라 예측 모드에 대해 적용되는 NSPT 커널을 공유하도록 구성할 수 있다. 전술한 바와 같이, 비분리 변환 세트는, 현재 블록의 인트라 예측 모드와 매핑 테이블을 기반으로 결정될 수 있다. 매핑 테이블은, 기-정의된 인트라 예측 모드들과 비분리 변환 세트들 간의 매핑 관계를 정의할 수 있다. 기-정의된 인트라 예측 모드들은 2개의 비방향성 모드와 65개의 방향성 모드들을 포함할 수 있다.
일 실시예로서, 인트라 예측 모드들을 인트라 예측 모드 그룹으로 그룹핑할 수 있다. 인트라 예측 모드 그룹에 1개의 NSPT 커널이 할당될 수도 있고, 복수 개의 NSPT 커널이 할당될 수도 있다. 다시 말해, 인트라 예측 모드 그룹에 하나 이상의 NSPT 커널을 포함하는 비분리 변환 세트(NSPT 세트)가 할당될 수 있다. 인트라 예측 모드에 비분리 변환 세트가 매핑되고, 비분리 변환 세트에 포함된 NSPT 커널 N개 중 하나가 선택될 수 있다.
일 예로서, 인트라 예측 그룹은 인접한 예측 모드들(e.g., 17, 18, 19번 모드)을 포함할 수 있다. 또한, 인트라 예측 그룹은 대칭성을 가지는 모드들을 포함할 수 있다. 예를 들어, 앞서 설명한 도 5의 대각 모드(즉, 34번 인트라 예측 모드)를 중심으로 방향성 모드들이 대칭을 이룰 수 있다. 이때, 대칭을 이루는 두 모드는 하나의 그룹(또는 페어)를 구성할 수 있다. 예를 들어, 18번 모드와 50번 모드는 34번 모드를 중심으로 대칭을 이루므로 동일한 그룹에 포함될 수 있다. 다만, 대칭성을 가지는 모드들에 대해서는 순방향 NSPT 커널을 적용하기 전에 2D 입력 블록을 전치시킨 후 일차원 입력 벡터를 구성하는 과정이 추가될 수 있다. 예를 들어, 인트라 예측 모드가 34 이하인 경우, 2D 입력 블록을 전치시키지 않고, 행 우선 방향(row first order)으로 해당 입력 블록으로부터 일차원 입력 벡터를 유도할 수 있다. 만약, 인트라 예측 모드가 34보다 큰 경우, 먼저 2D 입력 블록을 전치시킨 후, 행 우선 방향으로 해당 입력 블록을 읽거나, 2D 입력 블록을 그대로 두고 열 우선 방향(column first order)으로 해당 입력 블록을 읽음으로써 일차원 입력 벡터를 구성할 수 있다.
다음의 표 8은 인트라 예측 모드에 따른 NSPT 세트를 할당 매핑 테이블을 예시한다. 표 8을 참조하면, 0부터 34까지 총 35개의 NSPT 세트가 정의될 수 있다. 확장된 WAIP 모드(즉, 도 5에서 -14부터 -1까지 모드와 67부터 80까지의 모드)에는 가장 인접한 일반 방향성 모드에 할당된 NSPT 세트가 할당될 수 있다. 즉, 확장된 WAIP 모드에는 2번 NSPT 세트가 할당될 수 있다.
Figure PCTKR2024007915-appb-img-000004
NSPT 세트는 하나 이상의 NSPT 커널(또는 커널 후보)을 포함할 수 있다. 즉, NSPT 세트는 N개의 NSPT 커널 후보를 포함할 수 있다. 일 예로, N은 1, 2, 3, 4 등의 1보다 같거나 큰 값으로 설정될 수 있다. NSPT 세트에 포함된 하나 이상의 NSPT 커널 중 현재 블록에 적용되는 커널을 인덱스를 이용하여 시그날링할 수 있다. 본 개시에서, 해당 인덱스는 NSPT 인덱스로 지칭될 수 있다. 일 예로서, NSPT 인덱스는 0, 1, 2, … , N - 1의 값을 가질 수 있다.
또한, 일 실시예로서, NSPT 커널 후보의 개수가 1 개인 경우, NSPT 인덱스 값이 0으로 고정될 수 있다. 이 경우, NSPT 인덱스는 별도로 시그날링되지 않고 추론될 수 있다. 또한, NSPT 인덱스와 별개로 NSPT의 적용 여부를 지시하는 플래그가 시그날링될 수 있다. 본 개시에서, 해당 플래그는 NSPT 플래그로 지칭될 수 있다.
NSPT 플래그 값이 1인 경우, NSPT가 적용될 수 있다. NSPT 플래그 값이 0인 경우, NSPT가 적용되지 않을 수 있다. NSPT 플래그가 시그날링되지 않는 경우, NSPT 플래그 값은 0으로 추론될 수 있다. 일 예로서, NSPT 플래그 값이 1인 경우, NSPT 인덱스가 시그날링될 수 있다. 시그날링된 NSPT 인덱스에 기초하여 인트라 예측 모드에 의해 선택되는 NSPT 세트 내 포함된 N개의 커널 후보 중 하나가 특정될 수 있다.
일 실시예에서, NSPT 인덱스의 엔트로피 코딩 방법은 NSPT 세트에 포함된 NSPT 커널의 개수(N)를 고려하여 다양한 여러 방법으로 정의될 수 있다. 예를 들어, 0부터 N-1까지의 값을 빈 스트링으로 매핑하는 방법(i.e., 이진화 방법)으로서, 절삭형 단항 이진화(truncated unary binarization), 절삭형 이진화, 고정 길이 이진화 방법이 이용될 수 있다.
예를 들어, NSPT 세트를 구성하는 커널 후보의 개수 N 값이 2인 경우, 하나의 빈(bin)으로 2개의 후보 중 하나를 특정할 수 있다. 예를 들어, 0은 첫 번째 후보를 지시하고, 1은 두 번째 후보를 지시할 수 있다. 또한, N 값이 3이고 절삭형 단항 이진화를 적용하는 경우, 2개의 빈으로 후보가 특정될 수 있다. 예를 들어, 첫 번째, 두 번째, 세 번째 후보를 각각 0, 10, 11로 이진화하여 시그날링할 수 있다. 실시예로서, 이진화된 빈들은 컨텍스트 코딩(context coding) 또는 바이패스 코딩(bypass coding)을 이용하여 코딩될 수 있다.
본 개시에서는, 일차 변환으로 축소된 차원의 변환 커널을 이용하는 축소된 일차 변환(RPT, reduced primary transform) 방법을 설명한다. 전술한 바와 같이, 순방향 NSPT가 적용되는 경우, 2D 레지듀얼 블록에 속하는 샘플들은 행 우선 순위(또는 열 우선 순위)에 따라 1D 벡터로 배열(또는 재배열)될 수 있다. 이후, NSPT를 위한 변환 행렬이 배열된 벡터에 곱해질 수 있다. 해당 2D 레지듀얼 블록이 M x N 블록(M은 가로의 길이, N은 세로의 길이)일 때, 재배열된 1D 벡터의 길이는 M*N이 될 수 있다. 즉, 해당 2D 레지듀얼 블록은 M*N x 1 차원을 가진 열 벡터로 나타낼 수도 있다. 본 개시에서, M*N은 편의상 MN으로 표기될 수 있다. 이때, 해당 변환 행렬의 차원은 MN x MN일 수 있다. 정리하면, 순방향 NSPT는 MN x 1 벡터의 좌측에 해당 MN x MN 변환 행렬을 곱하여 MN x 1 변환 계수 벡터를 얻는 방식으로 동작할 수 있다.
RPT가 적용되는 경우, 상술한 순방향 NSPT 변환 행렬로서 MN x MN 행렬을 곱하는 것이 아니라, r x MN 행렬을 곱하여 r개의 변환 계수를 획득할 수 있다. 여기서, r은 변환 행렬의 행의 개수를 나타내고, MN은 변환 행렬의 열의 개수를 나타낸다. 본 개시의 실시예에 따르면, r 값은 MN보다 작거나 같게 설정될 수 있다. 즉, 기존의 순방향 NSPT 변환 행렬은 MN개의 행을 포함하며, 각 행은 1 x MN 행 벡터로서 해당 NSPT 변환 행렬의 변환 기저 벡터(transform basis vector)이다. 각 변환 기저 벡터 MN x 1 샘플 열 벡터를 곱하여 해당 변환 계수가 획득될 수 있다.
기존의 순방향 NSPT 변환 행렬은 MN개의 행 벡터로 구성되므로, 순방향 NSPT의 적용을 통해 MN개의 변환 계수(즉, MN x 1 변환 계수 열 벡터)가 획득될 수 있다. 한편, 순방향 RPT의 경우, MN개의 변환 기저 벡터 대신에 r개의 변환 기저 벡터로 변환 행렬이 구성될 수 있다. 이에 따라, 순방향 RPT가 적용되는 경우, MN개 대신 r개의 변환 계수(즉, r x 1 변환 계수 열 벡터)가 획득될 수 있다.
MN x MN 순방향 NSPT 커널을 구성하는 변환 기저 벡터들 중 일부인 r개의 변환 기저 벡터를 선택하여 RPT 커널을 구성할 수 있다. 본 개시에서, 변환 커널은 변환 타입, 변환 행렬로 지칭될 수 있고, NSPT를 위한 비분리 변환 커널은 RPT 커널로 지칭될 수 있다. 즉, MN x MN 순방향 NSPT 커널로부터 r개의 1 x MN 행 벡터들을 선택하는 경우, 코딩 성능 관점에서 가장 중요한 변환 기저 벡터들을 선택하는 것이 유리할 수 있다. 구체적으로, 변환을 통한 에너지 압축(energy compaction) 측면에서, 순방향 NSPT 변환 행렬을 곱하여 먼저 등장하는 변환 계수들에 보다 큰 에너지가 몰릴 수 있다. 다시 말해, 순방향 NSPT 변환 행렬 상측에 위치하는 변환 기저 벡터일수록 보다 큰 에너지를 가지는 변환 계수를 생성할 수 있다. 이러한 점을 감안하여, 순방향 NSPT 커널의 상측부터 r개를 취하여 r x MN 순방향 RPT 커널을 구성(또는 유도)할 수 있다.
본 개시에 따른 RPT는 기존의 NSPT를 적용하여 획득되는 변환 계수들 중 일부(i.e., r개)만을 취하는 것으로서, 원래 신호가 가지는 에너지 중 일부에 대한 손실이 발생할 수 있다. 즉, 해당 과정을 통해 원본 신호와 본래 신호 사이의 왜곡이 발생할 수 있다. 그럼에도, RPT를 적용함으로써, MN개 대신에 r개의 변환 계수만이 생성되므로, 해당 변환 계수들을 코딩하는데 드는 비트 양을 줄일 수 있다. 그렇기 때문에, 적은 개수의 변환 계수들에 에너지가 많이 몰리는 신호의 경우(e.g., 영상 레지듀얼 신호), 시그날링 비트를 줄임으로써 얻는 이득이 현저히 클 수 있고, 이를 통해 코딩 성능을 향상시킬 수 있다.
역방향 NSPT는 변환 행렬로서 상술한 순방향 NSPT 커널의 전치 행렬일 수 있다. 이때, 입력 데이터는 레지듀얼 신호와 같은 샘플 신호 대신 변환 계수 신호일 수 있다. 구체적으로, 순방향 NSPT 변환 행렬이 G이고 1D 벡터로 재배열된 샘플 신호가 x이면, 해당 변환 행렬을 좌측에 곱하여 획득되는 변환 계수 벡터는 다음의 수학식 4와 같이 표현될 수 있다.
Figure PCTKR2024007915-appb-img-000005
수학식 4를 참조하면, x와 y는 MN x 1 열 벡터일 수 있다. G는 MN x MN 행렬의 형태를 가질 수 있다. 역방향 NSPT 과정은 같은 변수를 이용하여 다음의 수학식 5과 같이 표현될 수 있다.
Figure PCTKR2024007915-appb-img-000006
수학식 5에서, GT는 G의 전치 행렬(Transpose matrix)을 의미한다. 본 개시에 따른 순방향 RPT 연산 및 역방향 RPT 연산 또한 상기 두 수학식으로 표현될 수 있다. 다만, RPT가 적용되는 경우, y는 MN x 1 열 벡터 대신에 r x 1 열 벡터이고, G는 MM x MN 행렬 대신에 r x MN 행렬이다. 즉, NSPT 대신에 RPT를 적용하더라도 샘플 신호(e.g., 영상 레지듀얼 신호)의 차원은 변하지 않는데, 이는 역방향 RPT를 통해 r개의 변환 계수만 가지고도 원래 개수의 샘플 신호(즉, MN 개의 샘플 신호)를 복원할 수 있음을 의미할 수 있다. 즉, MN개 보다 적은 r개의 변환 계수만을 코딩하여 원래의 MN개의 샘플 신호를 복원할 수 있어 코딩 성능의 향상을 가져올 수 있다.
본 개시의 일 실시예에서는, 레지듀얼 블록의 통계적 특성을 고려하여 r 값을 정의하고, 정의된 r 값에 따라 결정되는 감소된 크기의 레지듀얼 블록으로부터 기존 변환 블록 크기의 레지듀얼 블록을 유도하는 RPT 구조를 제안한다. 만약 일차 변환 계수의 통계적 분포를 예측하기 위하여 추가적인 다른 변환(i.e., 이차 변환)을 적용하는 경우, 일차 변환 계수에 양자화 과정이 적용이 되므로 상대적으로 낮은 주파수 영역에 양자화된 논-제로 계수들(quantized non-zero coefficients)이 집중하여 존재할 수 있다. 이에 따라, 일차 변환 계수의 통계적 분포를 위한 축소된 이차 변환(reduced secndary transform)은 주어진 낮은 주파수 영역을 위한 r 값을 설정하는 형태로 일차 변환 계수의 통계적 특성을 상대적으로 간단하게 정의할 수 있다. 그러나, 본 개시에 따른 RPT의 경우에는 일차 변환 계수의 분포와는 매우 상이한 특성을 가지는 레지듀얼 블록 내 샘플들의 통계적 특성을 고려하여 r 값을 정의하기 위한 기술로서 축소된 이차 변환과는 근본적인 차이점을 가진다. 이하에서는, 축소된 차원의 변환 행렬인 RPT 커널을 결정하는 다양한 여러 실시예를 설명하도록 한다. 다시 말해, RPT에서의 r 값을 결정 또는 정의하기 위한 방법을 이하에서 설명한다.
본 개시의 일 실시예에서는, 변환 시스템에서 허용하는 워스트 케이스 복잡도(worst case complexity)를 고려하여 RPT에서의 r 값을 결정할 수 있다. 일 실시예로서, 샘플당 곱셈수를 기준으로 워스트 케이스 복잡도를 산정할 수 있다. M x N 블록을 기준으로 순방향 및 역방향 모두 RPT를 적용하는데에는 MN * r 개의 곱셈이 필요하다. 2D 블록은 총 MN 개의 샘플들로 구성되므로 샘플당 곱셈수는 (MN * r ) / MN = r 개로 계산될 수 있다. 따라서, r 값을 허용되는 최대 샘플당 곱셈수 이하로 유지되도록 구성할 수 있다. 예를 들어, 16x16 블록에 대해 최대 가능한 샘플당 곱셈수가 16으로 설정되는 경우, r 값은 16 이하로 결정될 수 있다. 즉, 순방향 RPT 커널은 16 x 256으로 설정될 수 있다.
다른 일 실시예에서, 워스트 케이스 복잡도의 척도로서 메모리 사용량(memory usage)을 고려할 수 있다. 일 예로서, 커널 한 개당 허용되는 메모리 크기를 설정할 수 있다. 예를 들어, 커널 계수(본 개시에서 변환 커널을 구성하는 각 엘리먼트를 커널 계수로 지칭함)마다 p 바이트가 필요하고, 커널 1개당 q 바이트 이하로 메모리 사용량이 설정되는 경우, r 값은 q / (MN * p) 이하로 설정될 수 있다. 예를 들어, 16x16 블록에 대한 순방향 RPT 커널에 대해 p가 1 바이트이고 커널 1개당 8KB 이하로 메모리 사용량이 설정되는 경우(q = 8KB = 213 바이트), r 값은 32 이하로 설정될 수 있다.
또한, 다른 일 예로서, 워스트 케이스 복잡도의 척도로서 메모리 사용량 및/또는 샘플당 곱셈수를 고려할 수 있다. 예를 들어, 16x16 블록에 대해 최대 가능한 샘플당 곱셈수를 16으로 설정하고, 커널 1개당 8KB 이하로 메모리 사용량이 설정되는 경우(커널 계수는 1 바이트로 표현), r 값은 16 이하로 설정될 수 있다.
또한, 일 실시예에서, RPT 커널을 구성하는 r 값은 특정한 정보에 의해 결정될 수 있다. 다시 말해, RPT 커널을 구성하는 r 값은 미리 정의된 부호화 파라미터에 기초하여 결정될 수 있다. 예를 들어, 블록의 크기에 따라 r 값이 결정될 수 있다. 다시 말해, 블록의 크기에 따라 RPT 커널이 가변적으로 결정될 수 있다. 여기서, 블록은 코딩 블록, 변환 블록, 예측 블록 중 적어도 하나일 수 있다. 또한, 예를 들어, 예측 정보에 기초하여 r 값이 결정될 수 있다. 여기서, 예측 정보는 인터/인트라 예측에 관한 정보, 인트라 예측 모드 정보 등을 포함할 수 있다. 또한, 예를 들어, 시그날링되는 정보(신택스 요소의 값)에 기초하여 r 값이 결정될 수 있다. 예를 들어, 양자화 파라미터 값에 따라 r 값이 가변적으로 결정될 수 있다. 또한, 복잡도 개선 측면에서, r 값으로 미리 정의된 고정된 값이 사용될 수도 있으며, 상기 미리 정의된 고정된 값은 시그날링되는 정보를 기반으로 결정될 수 있다.
RPT 커널 r x MN을 샘플 신호에 곱하면, r개의 변환 계수가 획득될 수 있다. 획득된 r개의 변환 계수는 미리 정의된 변환 계수의 스캔 순서(ex., 정방향/역방향 지그재그(zig-zag) 스캔 순서, 정방향/역방향 수평(horizontal) 스캔 순서, 정방향/역방향 수직(vertical) 스캔 순서, 정방향/역방향 대각(diagonal) 스캔 순서, 인트라 예측 모드를 기반으로 특정된 스캔 순서 등)에 따라 배치될 수 있다. 이러한 스캔 순서(예컨대, 계수 그룹(coefficient group, CG) 단위의 스캔 순서도 적용 가능함)에 따라 순방향 RPT 적용으로부터 획득되는 변환 계수들을 배치하는 경우, r 값이 MN보다 작으면 r 개의 변환 계수를 가지고 M x N 블록 내부를 전부 채우지 못하게 되어 빈 공간이 발생할 수 있다. 본 개시의 실시예로서, 상술한 빈 공간은 레지듀얼 신호의 특성을 고려하여 다음과 같은 방법으로 예측될 수 있다.
- 이용 가능한 주변 화소의 값을 이용하여 빈 공간의 값을 채울 수 있다.
- 이용 가능한 주변 화소의 값 및 인트라 예측 모드에 기초하여 빈 공간의 값을 채울 수 있다. 예를 들어, 이용 가능한 주변 화소의 값 및 인트라 예측 모드를 기반으로 인트라 예측을 수행하여 빈 공간의 값을 예측할 수 있다.
- 미리 정의된 고정된 값(예컨대, 0)을 이용하여 빈 공간의 값을 채울 수 있다.
- 미리 정해진 인트라 예측 모드(예컨대, 플래너 모드)를 이용하여 이용 가능한 주변 화소로부터 빈 공간의 값을 채울 수 있다.
본 개시에서, 상술한 예시 중 빈 공간을 0으로 채우는 것은 제로 아웃 과정으로 지칭될 수 있다. 빈 공간을 0으로 채우는 경우, 다음과 같은 실시예가 적용될 수 있다. 디코딩 장치 측에서 변환 계수의 파싱 중에 해당 빈 공간 부분에 0이 아닌 변환 계수가 검출(또는 파싱)되는 경우, RPT가 적용되지 않는 것으로 간주(또는 추론)할 수 있다. 다시 말해, 상기 해당 빈 공간을 나타내는 미리 정의된 영역에 0이 아닌 변환 계수가 존재하는 경우, RPT가 적용되지 않는 것으로 간주될 수 있다. 이 경우, RPT의 적용 여부를 지시하는 플래그 및/또는 복수의 RPT 커널 후보들 중 하나를 지정하는 인덱스에 대한 시그날링(또는 파싱)이 수행되지 않을 수 있다. 일 예로서, 상기 해당 빈 공간을 나타내는 미리 정의된 영역에 0이 아닌 변환 계수가 존재하는 경우, 미리 정의된 변수 값이 업데이트될 수 있고, 업데이트된 변수 값에 기초하여 RPT가 적용되지 않는 것으로 추론될 수 있다.
본 개시의 일 실시예에서, 블록의 크기 및/또는 형태에 따라 RPT의 적용 여부가 결정될 수 있다. 또한, 블록의 크기 및/또는 형태에 따라 RPT 커널이 가변적으로 결정될 수 있다. 블록의 크기 및/또는 형태에 따라(즉, M x N 블록 별로), r 값은 다를 수 있으므로, 블록의 크기 및/또는 형태에 따라 빈 공간은 달라질 수 있다. 이에 따라, 블록의 크기 및/또는 형태 별로 0이 아닌 변환 계수가 검출되는지 여부를 체크하는 영역은 다르게 정의될 수 있다. 다시 말해, 제로 아웃 영역은 가변적으로 결정될 수 있다.
일 예로서, 8x8 블록에 대한 순방향 RPT 행렬로서 16x64 행렬이 적용되는 경우, r 값은 16일 수 있다. 이 경우, CG가 4x4 서브 블록일 때, 좌상단 4x4 블록에만 0이 아닌 RPT 변환 계수가 채워질 수 있고, 빈 공간인 나머지 3개의 4x4 서브 블록들(즉, 우상단, 좌하단, 우하단 서브 블록)에는 0 값이 채워질 수 있다. 이때, 디코딩 과정 중에 해당 나머지 3개의 4x4 서브 블록 영역에 0이 아닌 변환 계수가 검출되는 경우, RPT가 적용되지 않는 것으로 간주할 수 있다. 그리고, 전술한 바와 같이, RPT의 적용 여부를 지시하는 플래그 또는 복수의 RPT 커널 후보들 중 하나를 지정하는 인덱스는 시그날링 되지 않을 수 있다.
또한, 일 예로서, 16x8 블록에 대한 순방향 RPT 행렬로서 32x128 행렬이 적용되고(즉, r 값은 32), CG는 4x4 서브 블록일 때, 스캔 순서 상 2개의 CG에만 0이 아닌 RPT 변환 계수가 채워질 수 있다. 예를 들어, 좌상단 4x4 서브 블록 및 좌상단 서브 블록 하측에 인접한 4x4 서브 블록에 해당 RPT 변환 계수들이 채워질 수 있다. 빈 공간으로서 0으로 채워지는 영역은 해당 2개의 4x4 서브 블록들을 제외한 나머지 영역으로 결정될 수 있다. 블록의 크기 및/또는 형태에 따라 RPT 커널이 가변적으로 결정될 수 있고, 살펴본 바와 같이, 8x8 블록과 16x8 블록에 대해서는 빈 공간이 다르게 결정될 수 있다.
실시예로서, r 값이 CG 크기의 배수이고 CG 단위로 변환 계수가 스캔되는 경우, 빈 공간에 속한 CG들에 0이 아닌 변환 계수가 존재하는 것이 검출되면 RPT와 관련된 플래그 및/또는 인덱스가 시그날링되지 않을 수 있다. 즉, CG마다 CG 내부 변환 계수들을 지정된 순서에 따라 스캔하고, CG 단위에 대한 스캔 순서에 따라 다음 CG로 넘어가서 동일하게 CG 내부 변환 계수들을 스캔할 수 있다. 종래의 영상 압축 기술에서는, 각 CG에 대해 해당 CG 내에 0이 아닌 변환 계수가 존재하는지 여부에 대한 플래그가 먼저 시그날링되므로, 해당 정보만으로 RPT 적용 여부가 결정될 수 있으며, 이를 통해 시그날링 오버헤드가 줄 수 있고 관련 구현 복잡도가 감소할 수 있다.
상술한 바와 같이, RPT가 적용되는 경우 0으로 채워지는 빈 공간 영역에 0이 아닌 변환 계수가 검출되면, RPT가 적용되지 않을 수 있다. 이 경우, RPT와 관련된 정보에 대한 시그날링이 생략될 수 있다. 다만, 해당 빈 공간 영역에 0이 아닌 변환 계수가 검출되지 않는 경우 RPT의 적용 여부를 판단할 수 없으므로, 관련 변환 계수 파싱(또는 시그날링) 이후 RPT 적용 여부를 가리키는 플래그를 파싱하여 RPT 적용 여부를 최종 판단할 수 있다.
일 실시예로서, RPT 적용을 통해 생성된 변환 계수들에 대하여 순방향 이차 변환을 추가적으로 적용할 수 있다. 또는, M x N 블록 내 해당 생성된 변환 계수들이 위치하는 영역에 대하여 순방향 이차 변환을 추가적으로 적용할 수 있다. 본 개시에서, 해당 영역 또는 해당 영역의 일부는 순방향 이차 변환 관점에서는 ROI로 지칭될 수 있다. 역방향에 대해서는 역방향 이차 변환을 먼저 적용한 후 역방향 RPT를 적용할 수 있다. 구체적으로, 순방향 RPT 적용으로 생성된 r개의 변환 계수가 배치된 영역 또는 해당 영역의 일부를 ROI로 설정하여 순방향 이차 변환을 적용할 수 있다. 이 경우, 8x8 영역에 대해 16x64 순방향 RPT 변환 행렬이 적용되는 경우, 생성된 16개의 변환 계수는 좌상단 4x4 서브 블록에 위치할 수 있고 해당 서브블록 영역을 ROI로 설정하여 해당 ROI에 대해 순방향 이차 변환이 적용될 수 있다.
또한, RPT 커널은 정수 연산 또는 고정 소수점 연산과 같은 연산을 고려하여 계수 값이 조정될 수 있다. 즉, RPT 커널은 이론적인 직교 변환 또는 비-직교(non-orthogonal) 변환 (여기서, 직교 변환 및 비-직교 변환은 각 변환 기저 벡터의 놈(norm)이 1인 변환을 나타냄)이 아닌, 해당 커널에 속한 커널 계수들을 적절히 스케일링하여 실제적인 코덱 시스템에서 정수 연산(또는 고정 소수점 연산)을 통해 변환을 수행하도록 구성할 수 있다. 기존의 영상 압축 기술에서 분리 변환을 적용할 때 곱해지는 스케일링 팩터(scaling factor) 만큼, RPT를 적용하는 경우에도 동일하게 반영할 수 있다. 이 경우, 변환 이외의 다른 과정(e.g., 양자화, 역양자화 과정)은 유지하면서 분리 변환 또는 비분리 변환(RPT 포함)을 수행할 수 있다.
변환 기저 벡터에 상술한 스케일링 값을 곱함으로써 RPT 커널의 정수화된 계수를 획득할 수 있다. 실시예로서, 스케일링 값을 곱하는 것은 각 커널 계수에 반올림, floor, ceiling 등의 연산을 적용하는 것을 포함할 수 있다. 즉, 상술한 방법을 통해 획득된 정수화된 RPT 커널이 정의되고 변환/역변환 과정에 이용될 수 있다. 상술한 바와 같이, 반올림, floor, ceiling 등의 연산을 거쳐 스케일링된 정수값의 커널 계수들을 획득하면 모든 커널 계수들에 대해 최대값과 최소값을 구할 수 있으므로, 해당 최대값과 최소값으로부터 모든 커널 계수들을 표현할 수 있을만큼의 비트 수를 얻을 수 있다. 예를 들어, 해당 최대값이 127 이하이고 해당 최소값이 -128 이상이라면 8개의 bit로(특히, 2의 보수 표현 등을 통해) 모든 정수 커널 계수들을 표현할 수 있다.
일반화하면, 해당 최대값이 (2(N-1) - 1) 이하고 해당 최소값이 -2(N-1) 이상이라면 N개의 bit로 모든 정수 커널 계수들을 표현할 수 있다. 만약, 최대값이 (2(N-1) - 1) 보다 크거나 최소값이 -2(N-1) 보다 작은 경우, N개의 bit로 모든 정수 커널 계수들을 표현할 수 없을 수 있다. 이러한 경우, 1) 모든 커널 계수들에 추가적으로 스케일링 값을 곱하여 N 비트 범위 안에 들어오도록 조정하거나, 2) 커널 계수를 표현하는데 필요한 비트 수를 늘릴 수 있다(즉, N+1 비트 이상). 만약, N 비트로 표현하기 위해 모든 커널 계수들에 2-p 만큼을 곱해야 하는 경우(p >= 1), 기존의 부호화/복호화 과정에 융합되도록, 이후 2p 만큼을 곱하여 보상할 수 있다. 실시예로서, 2p 만큼을 곱하는 것은 왼쪽으로 p 비트 만큼 추가적으로 시프트 연산을 수행하거나, 양자화 또는 역양자화 과정에서 적용되는 오른쪽 시프트 양을 p 만큼 줄이는 방식 등으로 구현될 수 있다.
이상에서 설명한 방법으로 모든 커널 계수들을 8-bit, 9-bit, 10-bit 등으로 표현할 수 있으며, 물론 블록 크기나 커널마다 커널 계수의 스케일링 값을 다르게 설정할 수도 있고, 커널 계수를 표현하기 위한 비트 수를 다르게 설정할 수도 있다.
전술한 NSPT는 현재 블록의 크기, 트리 타입, 또는 성분 타입 중 적어도 하나에 기초하여 적용될 수 있다. 일예로, 현재 블록의 크기, 트리 타입, 또는 성분 타입 중 적어도 하나에 기초하여, NSPT의 적용 여부가 결정될 수 있다. 현재 블록의 크기, 트리 타입, 또는 성분 타입 중 적어도 하나에 기초하여, NSPT 인덱스가 시그날링될 수 있다. 현재 블록의 크기, 트리 타입, 또는 성분 타입 중 적어도 하나에 기초하여, NSPT 세트 또는 NSPT 커널이 유도될 수 있다.
디코딩 장치에 기-정의된 허용 변환 블록 크기들(allowed transform block sizes)들은 크게 2개 그룹으로 구분될 수 있다. 2개의 그룹 중 어느 하나(이하, 제1 그룹이라 함)는, NSPT가 적용될 수 있는 블록 크기의 집합을 의미할 수 있다. 상기 제1 그룹은, 상기 허용 변환 블록 크기들 중 어느 하나로 구성될 수도 있고, 상기 허용 블록 크기들 중 둘 또는 그 이상의 블록 크기들로 구성될 수도 있다. NSPT가 적용될 수 있는 블록 크기는, 너비와 높이 중 적어도 하나가 소정의 문턱값보다 작거나 같은 블록 크기로 정의될 수 있다. 또는, NSPT가 적용될 수 있는 블록 크기는, 너비와 높이의 곱이 소정의 문턱값보다 작거나 같은 블록 크기로 정의될 수도 있다. 또는, NSPT가 적용될 수 있는 블록 크기는, 너비와 높이 중 최대값이 소정의 문턱값보다 작거나 같은 블록 크기로 정의될 수도 있다. 상기 문턱값은, 4, 8, 16, 32, 64, 128 또는 그 이상의 정수일 수 있다.
상기 2개의 그룹 중 다른 하나(이하, 제2 그룹이라 함)는, NSPT가 적용되지 않는 블록 크기의 집합을 의미할 수 있다. 상기 제2 그룹에 속한 블록 크기들에 대해서는 전술한 분리 일차 변환이 적용될 수 있다. 또한, 상기 제2 그룹에 속한 블록 크기들 전부 또는 일부에 대해서는 비분리 이차 변환이 적용될 수도 있다.
예를 들어, 현재 블록의 크기가 제1 그룹에 속하는 경우, 현재 블록의 (역양자화된) 변환 계수에 역방향의 NSPT가 적용될 수 있다. 현재 블록의 크기가 제2 그룹에 속하는 경우, 현재 블록의 (역양자화된) 변환 계수에 역방향의 분리 일차 변환이 적용될 수 있다. 또는, 현재 블록의 크기가 제2 그룹에 속하는 경우, 현재 블록의 (역양자화된) 변환 계수에 대해 역방향의 비분리 이차 변환(e.g., low frequency non-separable transform, LFNST)이 먼저 적용되고, 그로부터 얻어진 변환 계수에 대해 역방향의 분리 일차 변환(e.g. DCT-2)이 적용될 수 있다.
일예로, NSPT가 적용될 수 있는 블록 크기의 집합인 제1 그룹은, 4x4, 4x8, 8x4, 8x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 8x8, 16x4의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 8x8, 16x4의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 16x4의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 8x4, 8x8, 8x16, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x8, 8x16, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x16, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16, 16x32, 32x16, 32x32의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16, 16x32, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x8, 8x16, 16x8, 16x16, 16x32, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x16, 16x8, 16x16, 16x32, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 8x4, 8x16, 16x8, 16x32, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 16x4의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8, 16x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 8x8, 8x16, 16x4, 16x8, 16x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8, 16x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 8x4, 8x16, 16x4, 16x8, 16x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 32x4, 32x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 32x4, 32x8의 집합으로 정의될 수 있다. 제1 그룹은, 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 32x4, 32x8의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x32, 32x4, 32x8, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 16x32, 32x4, 32x8, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x8, 4x16, 4x32, 8x4, 8x16, 8x32, 16x4, 16x8, 16x32, 32x4, 32x8, 32x16의 집합으로 정의될 수 있다. 또는, 제1 그룹은, 4x4, 4x8, 4x16, 4x32, 8x4, 8x8, 8x16, 8x32, 16x4, 16x8, 16x16, 16x32, 32x4, 32x8, 32x16, 32x32의 집합으로 정의될 수 있다.
상기 제1 그룹에 속한 블록 크기들에 대해서 소정의 차원을 가진 NSPT 행렬(또는, NSPT 커널)이 적용될 수 있다. 여기서, NSPT 행렬은, 역방향의 변환 행렬로서 PxQ의 차원을 가진 행렬로 표현될 수 있고, PxQ 행렬은 행(row)의 개수와 열(column)의 개수가 각각 P와 Q인 행렬을 나타낸다.
일예로, 4x4 블록에 대해서는 16x16의 NSPT 행렬이 적용될 수 있다. 4x8 블록 또는 8x4 블록 중 적어도 하나에 대해서는 32x20의 NSPT 행렬이 적용될 수 있다. 4x16 블록 또는 16x4 블록 중 적어도 하나에 대해서는 64x24의 NSPT 행렬이 적용될 수 있다. 8x8 블록에 대해서는 64x32의 NSPT 행렬이 적용될 수 있다. 8x16 블록 또는 16x8 블록 중 적어도 하나에 대해서는 128x40의 NSPT 행렬이 적용될 수 있다. 16x16 블록에 대해서는 256x44의 NSPT 행렬이 적용될 수 있다. 4x32 블록 또는 32x4 블록에 대해서는 128x36, 128x38, 또는 128x40의 NSPT 행렬이 적용될 수 있다. 8x32 블록 또는 32x8 블록에 대해서는 256x48의 NSPT 행렬이 적용될 수 있다. 16x32 블록 또는 32x16 블록에 대해서는 512x52 또는 512x54의 NSPT 행렬이 적용될 수 있다.
상기 PxQ 행렬은 역방향의 NSPT 행렬이므로, Qx1 입력 벡터에 PxQ 행렬을 적용하여(즉, (PxQ 행렬)x(Qx1 입력 벡터)) Px1 출력 벡터를 획득할 수 있다. 여기서, Qx1 입력 벡터는 NSPT가 적용되는 현재 블록 내 (역양자화된) 변환 계수들에 대응될 수 있다. 이때, Q의 값은, NSPT가 적용되는 변환 계수들의 개수를 의미할 수 있고, 현재 블록의 너비와 높이의 곱보다 작거나 같을 수 있다. Q의 값은, 전술한 제1 그룹에 속한 블록 크기들 중 현재 블록의 크기에 기초하여 가변적으로 결정될 수 있다. 또는, Q의 값은, 제1 그룹에 속한 블록 크기들에 대해서 동일하게 설정될 수도 있다. Px1 출력 벡터는 잔차 신호(또는, 복호화된 레지듀얼 샘플들)에 대응될 수 있다. P의 값은 현재 블록의 너비와 높이의 곱과 같을 수 있다.
반대로, 순방향의 NSPT 행렬은 상기 PxQ 행렬의 전치 행렬인 QxP 행렬로 표현될 수 있다. Px1 입력 벡터에 QxP 행렬을 적용하여(즉, (QxP 행렬)x(Px1 입력 벡터)) Qx1 출력 벡터를 획득할 수 있다. 여기서, Px1 입력 벡터는 NSPT가 적용되는 현재 블록 내 레지듀얼 샘플들에 대응될 수 있다. P의 값은 현재 블록의 너비와 높이의 곱과 같을 수 있다. Qx1 출력 벡터는 NSPT를 통해 유도되는 현재 블록 내 변환 계수들에 대응될 수 있다. 이때, Q의 값은, NSPT 를 통해 출력되는 변환 계수들의 개수를 의미할 수 있고, 현재 블록의 너비와 높이의 곱보다 작거나 같을 수 있다. 마찬가지로, Q의 값은, 전술한 제1 그룹에 속한 블록 크기들 중 현재 블록의 크기에 기초하여 가변적으로 결정될 수 있다. 또는, Q의 값은, 제1 그룹에 속한 블록 크기들에 대해서 동일하게 설정될 수도 있다.
상기 예와 같이, 비정방형 블록인 MxN 블록과 NxM 블록에 대해 NSPT가 적용될 수 있다. 예를 들어, 4x8 블록과 8x4 블록에 대해 NSPT가 적용될 수 있다. 또는, 4x16 블록과 16x4 블록에 대해 NSPT가 적용되거나, 8x16 블록과 16x8 블록에 대해 NSPT가 적용되거나, 16x32 블록과 32x16 블록에 대해 NSPT가 적용될 수 있다.
상기 제1 그룹에 속한 특정 블록 크기들에 대해서 NSPT를 적용함으로써, 보다 정교하게 변환을 수행할 수 있고, 코딩 성능이 향상될 수 있다. 순방향의 LFNST가 적용될 때, LFNST가 적용되는 영역(i.e. Region-Of-Interest, ROI)을 제외한 나머지 영역의 일차 변환된 변환 계수들이 zero-out될 수 있다. 또한, LFNST는 적은 개수의 변환 기저 벡터들(transform basis vectors)로 구성될 수 있다. 이러한 경우, 해당 블록 크기들에 대해 NSPT 대신 DCT-2와 같은 분리 일차 변환과 LFNST와 같은 비분리 이차 변환을 적용하게 되면, 성능 저하가 발생할 수 있다. 해당 경우에 대해 LFNST 대신에 NSPT를 적용하게 되면, 상기 zero-out 과정이 생략되고, LFNST를 적용하는 경우에 비해 코딩 성능이 향상될 수 있다. 또한, NSPT를 적용하는 방식에 의해서도 성능 향상이 기대될 수 있다. 후술할 대칭성(symmetry)을 이용하여 NSPT 또는 LFNST가 적용될 수 있다. 여기서, LFNST의 경우, ROI 영역에 대해서만 대칭성을 이용하여 해당 입력 블록에 대해 transpose 연산을 수행한다. 반면, NSPT의 경우, 블록 전체에 대해 대칭성을 이용하여 transpose 연산을 수행한다. 따라서, NSPT의 경우, 보다 정교한 방식의 대칭성을 이용하여 해당 NSPT 커널을 training하고 적용할 수 있게 되어 성능 향상이 기대될 수 있다.
또한, 8x8 블록에 대해서 NSPT가 아니라 LFNST를 적용하는 경우, 순방향의 변환 관점에서 16x64 변환 행렬 대신에 32x64 변환 행렬을 적용할 수 있다. 여기서, 16x64 변환 행렬은 32x64 변환 행렬에서 상위 16개의 행(row)을 샘플링하여 구성될 수 있다. 8x8 블록에 대해 16x64 변환 행렬 기반의 LFNST를 적용할 경우, LFNST를 적용하는데 샘플당 16개의 곱셈이 필요하게 되나, 32x64 변환 행렬을 이용할 경우, LFNST를 적용하는데 샘플당 32개의 곱셈이 필요하게 된다. 하지만, 이와 같이 32x64 변환 행렬을 이용하는 경우, 코딩 성능의 향상이 기대될 수 있다.
현재 블록의 트리 타입이 싱글 트리(single tree)인 경우, 현재 블록의 루마 성분에 대해서 NSPT를 적용하고, 현재 블록의 크로마 성분에 대해서 NSPT를 적용하지 않을 수 있다. 현재 블록의 트리 타입이 듀얼 트리(dual tree)인 경우, 현재 블록의 루마 성분과 크로마 성분에 대해서 NSPT를 적용할 수 있다.
또는, 현재 블록의 트리 타입이 싱글 트리인지 여부와 관계없이, 현재 블록의 루마 성분에 대해서 NSPT를 적용하고, 현재 블록의 크로마 성분에 대해서 NSPT를 적용하지 않을 수 있다. 또는, 현재 블록의 트리 타입이 싱글 트리인지 여부와 관계없이, 현재 블록의 루마 성분과 크로마 성분에 대해서 NSPT를 적용할 수도 있다.
일예로, 현재 블록의 트리 타입이 싱글 트리이고, 루마 성분과 크로마 성분에 대해서 NSPT가 허용되고, 현재 블록의 크기가 제1 그룹에 속하는 경우, 하나의 NSPT 인덱스가 시그날링될 수 있고, 현재 블록의 루마 성분과 크로마 성분은 해당 NSPT 인덱스를 공유할 수 있다. 여기서, NSPT 인덱스는 NSPT를 위한 변환 커널 후보들 중 어느 하나를 선택하기 위한 인덱스일 수 있다. 현재 블록의 루마 블록과 크로마 블록의 크기가 상기 제1 그룹에 속하는 경우, 상기 동일한 NSPT 인덱스에 의해 선택된 변환 커널 후보가 루마 성분과 크로마 성분에 적용될 수 있다. 현재 블록의 트리 타입이 싱글 트리이면서 루마 성분에 대해서만 NSPT가 적용되는 경우, 현재 블록의 크로마 성분에 대해서는 LFNST가 적용되지 않을 수 있고, 분리 변환이 적용될 수 있다. 또는, 현재 블록의 트리 타입이 싱글 트리이면서 루마 성분에 대해서만 NSPT가 적용되는 경우, 현재 블록의 크로마 성분에 대해서 LFNST가 적용될 수 있다.
싱글 트리의 경우, 루마 성분과 크로마 성분 간에 연관성이 높은 특성을 가질 수 있다. 이 경우, 루마 성분에만 NSPT를 적용하거나, 하나의 NSPT 인덱스에 의해 선택된 변환 커널 후보를 루마 성분과 크로마 성분에 공통적으로 적용함으로써, 불필요한 시그날링을 줄이고, 압축 효율을 향상시킬 수 있다. 반면, 싱글 트리가 아닌 경우, 루마 성분과 크로마 성분이 각자 독립적인 분할 및 부호화 구조를 가지게 된다. 이 경우, 성분 별로 NSPT 인덱스를 시그날링함으로써, 각 성분의 특성을 반영하고, 압축 효율을 향상시킬 수 있다.
상기 NSPT를 위한 NSPT 커널은, 인트라 예측 모드 간의 대칭성 또는 블록 형태 간의 대칭성 중 적어도 하나에 기초하여 유도될 수 있다. 일예로, NSPT 커널은, 현재 블록의 인트라 예측 모드에 대칭인 모드 또는 현재 블록의 블록 형태에 대칭인 블록 형태 중 적어도 하나에 대응하는 NSPT 커널로 유도될 수 있다. 또는, NSPT 커널은 하나 또는 그 이상의 NSPT 커널 후보들을 포함한 NSPT 세트에 기초하여 유도될 수 있고, 여기서의 NSPT 세트는 현재 블록의 인트라 예측 모드에 대칭인 모드 또는 현재 블록의 블록 형태에 대칭인 블록 형태 중 적어도 하나에 대응하는 NSPT 세트로 유도될 수 있다. 상기 NSPT 세트에 속한 하나 또는 그 이상의 NSPT 커널 후보들 중 어느 하나가 현재 블록의 NSPT 커널로 설정될 수 있다. 이를 위해, NSPT 세트에 속한 하나 또는 그 이상의 NSPT 커널 후보들 중 어느 하나를 특정하는 NSPT 인덱스가 이용될 수 있다. NSPT 인덱스는 비트스트림을 통해 시그날링될 수도 있고, 전술한 대칭성을 기반으로 유도될 수도 있다.
디코딩 장치에 기-정의된 인트라 예측 모드들 중 적어도 둘의 인트라 예측 모드들 간에는 대칭성이 존재할 수 있다. 이하, 설명의 편의를 위해 좌상단 대각 모드(즉, 34번 모드)를 중심으로 한 대칭성을 설명하기로 한다. 도 5를 참조하면, 방향성 모드들 사이에는 대칭성이 존재한다. 0번인 Planar 모드와 1번인 DC 모드를 제외하고는 모든 모드가 예측 방향을 가진다. 2번 모드부터 66번 모드는 노멀(normal) 방향성 모드라고 명명하고([2, 66]과 같이 표기 가능), -14번 모드부터 -1번 모드([-14, -1]와 같이 표기 가능)와 67번 모드부터 80번 모드([67, 80]와 같이 표기 가능)는 와이드(wide) 방향성 모드로 명명할 수 있다. 와이드 방향성 모드는, -14보다 더 작은 값을 가진 모드 또는 80보다 더 큰 값을 가진 모드 중 적어도 하나를 포함할 수 있다. 도 5를 참조하면, 0번 모드와 1번 모드를 제외하고 모든 모드들이 34번 모드를 중심으로 대칭이다. 구체적으로, [2, 66] 모드에 대해서는 x번 모드와 (68 - x)번 모드가 대칭이고, [-14, -1] 모드와 [67, 80] 모드 사이에서 x번 모드와 (66 - x)번 모드가 대칭이다. [N, -1] 모드와 [67, 66 - N] 모드 사이에서 동일한 대칭 관계가 성립될 수 있다. 여기서, N은 -14보다 작거나 같은 정수일 수 있다.
한편, 블록 형태 간의 대칭성과 관련하여, MxN 블록과 NxM 블록은 서로 대칭성을 가진 블록으로 정의될 수 있다. 여기서, M과 N은 동일할 수도 있고, 서로 상이할 수도 있다. 또는, M1xN1 블록의 너비와 높이의 비(M1/N1)와 M2xN2 블록의 높이와 너비의 비(N2/M2)가 동일한 경우, M1xN1 블록과 M2xN2 블록은 서로 대칭성을 가진 블록으로 정의될 수 있다. 또는, M1xN1 블록의 너비와 높이의 비(M1/N1)와 M2xN2 블록의 너비와 높이의 비(M2/N2)가 동일한 경우, M1xN1 블록과 M2xN2 블록은 서로 대칭성을 가진 블록으로 정의될 수 있다.
정방형 블록에서, 서로 대칭인 모드들은 NSPT 세트, NSPT 인덱스, 또는 NSPT 커널 중 적어도 하나를 공유할 수 있다. 즉, 대칭인 모드들 중 어느 하나에 대한 NSPT 세트, NSPT 인덱스, 또는 NSPT 커널 중 적어도 하나가, 대칭인 모드들 중 다른 하나에 대해 동일하게 적용될 수 있다.
일예로, 서로 대칭인 모드들은 하나의 NSPT 커널을 공유할 수 있다. 다만, 서로 대칭인 모드들 중 어느 하나에 대해서는 입력 데이터에 해당 NSPT 커널을 적용하고, 다른 하나에 대해서는 입력 데이터에 전치(transpose) 연산을 적용한 후 해당 NSPT 커널을 적용할 수 있다. 구체적으로, x번 모드가 [2, 33] 모드에 속하는 경우, x번 모드에 대해서는 입력 데이터인 MxM 블록에 대해 열 우선(row-first) 순서에 따라 일차원 벡터(1D vector)를 구성하고, 해당 1D vector에 대해 NSPT 커널을 적용할 수 있다. 여기서, 열 우선 순서에 따른 1D vector의 구성은, 입력 데이터인 MxM 블록으로부터 열 단위로 입력 데이터를 읽어서 M개의 열을 획득하고, 이를 차례대로 배열하여 1D vector를 구성하는 것일 수 있다. 반면, x번 모드에 대칭인 (68 - x)번 모드에 대해서는 행 우선(column-first) 순서에 따라 1D vector를 구성하고, 해당 1D vector에 대해 해당 동일 NSPT 커널을 적용할 수 있다. 여기서, 행 우선 순서에 따른 1D vector의 구성은, 입력 데이터인 MxM 블록으로부터 행 단위로 입력 데이터를 읽어서 M개의 행을 획득하고, 이를 차례대로 배열하여 1D vector를 구성하는 것일 수 있다. x번 모드가 [N, -1] 모드에 속하는 경우(N ≤ -14), x번 모드에 대칭인 (66 - x) 모드에 대해서는 행 우선(column-first) 순서에 따라 1D vector를 구성하고, 해당 1D vector에 대해 x번 모드의 경우와 동일한 NSPT 커널을 적용할 수 있다. 0번 모드와 1번 모드에 대해서는 열 우선 순서 또는 행 우선 순서를 적용할 수 있으며, 34번 모드에 대해서도 열 우선 순서 또는 행 우선 순서를 적용할 수 있다. 또한, [2, 33] 모드에 속한 인트라 예측 모드에 대해서는 행 우선 순서를 적용하고, 해당 인트라 예측 모드에 대칭인 모드에 대해서는 열 우선 순서를 적용할 수도 있다. [N, -1] 모드에 속한 인트라 예측 모드에 대해서 행 우선 순서를 적용하고, 이에 대칭인 모드에 대해서는 열 우선 순서를 적용할 수도 있다.
비정방형 블록의 경우, 인트라 예측 모드 간의 대칭성 외에 블록 형태 간의 대칭성이 더 고려될 수 있다. 너비와 높이가 각각 M과 N인 비정방형 블록은, 너비와 높이가 각각 N과 M인 비정방형 블록과 대칭 관계를 가지는 것으로 볼 수 있다. 일예로, [2, 66] 모드에서, MxN 블록의 x번 모드와 NxM 블록의 (68 - x)번 모드 사이에 대칭성이 존재할 수 있다. 마찬가지로, MxN 블록의 x번 모드가 [N, -1] 모드에 속하는 경우(N ≤ -14), MxN 블록의 x번 모드와 NxM 블록의 (66 - x)번 모드 사이에 대칭성이 존재할 수 있다.
입력 데이터 블록으로부터 1D vector를 구성하는 방법은 앞서 살펴본 바와 같다. 즉, x번 모드에 대해서 열 우선 순서가 적용된다면, 이에 대칭인 모드에 대해서는 행 우선 순서가 적용될 수 있다. 또는, x번 모드에 대해서 행 우선 순서가 적용된다면, 이에 대칭인 모드에 대해서는 열 우선 순서가 적용될 수 있다. 구체적으로, x번 모드에 대해 열 우선 순서가 적용되는 경우, 입력 데이터인 MxN 블록으로부터 열 단위로 입력 데이터를 읽어서 M개의 열을 획득하고, 이를 차례대로 배열하여 1D vector를 구성할 수 있다. 여기서, 각 열은 N의 길이를 가질 수 있다. x번 모드에 대칭인 모드에 대해서는, 입력 데이터인 MxN 블록으로부터 행 단위로 입력 데이터를 읽어서 N개의 행을 획득하고, 이를 차례대로 배열하여 1D vector를 구성할 수 있다. 여기서, 각 행은 M의 길이를 가질 수 있다. 또는, x번 모드에 대해 행 우선 순서가 적용되는 경우, 입력 데이터인 MxN 블록으로부터 행 단위로 입력 데이터를 읽어서 N개의 행을 획득하고, 이를 차례대로 배열하여 1D vector를 구성할 수 있다. 여기서, 각 행은 M 길이를 가질 수 있다. x번 모드에 대칭인 모드에 대해서는, 입력 데이터인 MxN 블록으로부터 열 단위로 입력 데이터를 읽어서 M개의 열을 획득하고, 이를 차례대로 배열하여 1D vector를 구성할 수 있다. 여기서, 각 열은 N의 길이를 가질 수 있다.
현재 블록이 x번 모드를 가진 MxN 블록이고, 현재 블록에 대해 전술한 대칭성을 이용할 경우, 현재 블록의 NSPT 세트 및/또는 NSPT 커널은 x번 모드에 대칭인 인트라 예측 모드 또는 MxN의 블록 크기에 대칭인 NxM의 블록 크기 중 적어도 하나에 기초하여 결정될 수 있다. 여기서, NSPT 커널은, MxN 블록에 대한 NSPT 커널이 아니라 NxM 블록에 대한 NSPT 커널로 설정될 수 있다. 즉, 현재 블록에 대해 대칭성이 이용되는 경우, 현재 블록과 대칭성을 가진 블록에 대한 NSPT 세트 및/또는 NSPT 커널이 동일하게 이용될 수 있다. 전술한 바와 같이, 소정의 우선 순서에 따라 입력 데이터 블록으로부터 1D vector를 구성할 수 있고, 이는 상기 NSPT 커널의 입력에 해당할 수 있다.
또한, 현재 블록의 인트라 예측 모드의 값이 34보다 큰 경우에 대해서만 상기 대칭성이 이용되도록 제한될 수 있다. 즉, 현재 블록의 인트라 예측 모드의 값이 34보다 큰 경우, 입력 데이터 블록으로부터 1D vector 구성시 전치 연산이 적용될 수 있고, 현재 블록과 대칭성을 가진 모드 및/또는 블록 형태에 대응하는 NSPT 세트 또는 NSPT 커널이 이용될 수 있다. 구체적으로, 현재 블록의 인트라 예측 모드가 [N, -1] 모드와 [2, 34] 모드에 속하는 경우, 현재 블록에 대해 대칭성이 이용되지 않을 수 있다. 반면, 현재 블록의 인트라 예측 모드가 [35, 66] 모드와 [67, 66 - N] 모드에 속하는 경우, 현재 블록에 대해 대칭성이 이용될 수 있다. 여기서, N은 -14보다 작거나 같은 정수일 수 있다.
상기 대칭성에 기반한 NSPT 세트 또는 NSPT 커널의 유도는, 현재 블록의 크기에 기초하여 적응적으로 수행될 수 있다. 일예로, 4x4 블록과 8x8 블록에 대해서는, 대칭성에 기반하여 NSPT 세트 또는 NSPT 커널가 유도되고, 4x8 블록과 8x4 블록에 대해서는, 대칭성에 기반하여 NSPT 세트 또는 NSPT 커널이 유도되지 않을 수 있다.
상기 대칭성이 이용되는지 여부에 따라, 이용 가능한 NSPT 세트의 개수는 상이할 수 있다. 일예로, 대칭성이 이용되는 경우, 이용 가능한 NSPT 세트의 개수는 35개이고, 대칭성이 이용되지 않는 경우, 이용 가능한 NSPT 세트의 개수는 67개일 수 있다.
다음 표 9는 대칭성을 이용하여 NSPT 세트가 결정되는 예에 관한 것으로서, 이용 가능한 NSPT 세트의 개수가 35개인 경우의 인트라 예측 모드와 NSPT 세트 간 매핑 관계를 나타낸다.
인트라 예측 모드 NSPT 세트 인덱스
X < 0 2
0 ≤ X ≤ 34 X
35 ≤ X ≤ 66 68 - X
X > 66 2
표 9를 참조하면, 현재 블록의 인트라 예측 모드의 값(X)이 0보다 작은 경우, 현재 블록의 NSPT 세트는 35개의 NSPT 세트들 중 2의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 0보다 크거나 같고 34보다 작거나 같은 경우, 현재 블록의 NSPT 세트는 35개의 NSPT 세트들 중 X의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 35보다 크거나 같고 66보다 작거나 같은 경우, 현재 블록의 NSPT 세트는 35개의 NSPT 세트들 중 (68-X)의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 35보다 크거나 같고 66보다 작거나 같은 경우, 현재 블록의 NSPT 세트는 현재 블록의 인트라 예측 모드에 대칭되는 모드의 값(68-X)에 대응되는 NSPT 세트와 동일할 수 있다. 마찬가지로, 현재 블록의 인트라 예측 모드의 값(X)이 66보다 큰 경우, 현재 블록의 NSPT 세트는 35개의 NSPT 세트들 중 2의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 66보다 큰 경우, 현재 블록의 NSPT 세트는 현재 블록의 인트라 예측 모드에 대칭되는 모드에 대응되는 NSPT 세트와 동일할 수 있다.
다음 표 10은 대칭성을 이용하지 않고 NSPT 세트가 결정되는 예에 관한 것으로서, 이용 가능한 NSPT 세트의 개수가 67개인 경우의 인트라 예측 모드와 NSPT 세트 간 매핑 관계를 나타낸다.
인트라 예측 모드 NSPT 세트 인덱스
X < 0 2
0 ≤ X ≤ 66 X
X > 66 66
표 10을 참조하면, 현재 블록의 인트라 예측 모드의 값(X)이 0보다 작은 경우, 현재 블록의 NSPT 세트는 67개의 NSPT 세트들 중 2의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 0보다 크거나 같고 66보다 작거나 같은 경우, 현재 블록의 NSPT 세트는 67개의 NSPT 세트들 중 X의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다. 현재 블록의 인트라 예측 모드의 값(X)이 66보다 큰 경우, 현재 블록의 NSPT 세트는 67개의 NSPT 세트들 중 66의 NSPT 세트 인덱스를 가진 NSPT 세트로 결정될 수 있다.
상기 대칭성을 활용함으로써, 변환 적용에 따른 성능은 유지하면서 변환 커널의 저장에 필요한 메모리 크기를 절약할 수 있다. 예를 들어, 67개의 NSPT 세트들 대신에 대칭성을 활용하여 35개의 NSPT 세트들을 이용할 경우, NSPT 커널의 저장에 필요한 메모리 크기를 대폭 저감할 수 있다.
이용 가능한 NSPT 세트의 개수 및/또는 NSPT 세트에 속한 NSPT 커널 후보의 개수는, 블록 크기에 따라 상이할 수 있다. 예를 들어, 4x4 블록에 대해 이용 가능한 NSPT 세트들의 개수는 35개이고, 4x8 블록과 8x4 블록에 대해 이용 가능한 NSPT 세트들의 개수는 19개이며, 8x8 블록에 대해 이용 가능한 NSPT 세트들의 개수는 10개일 수 있다. 4x4 블록에 대한 NSPT 세트는 3개의 NSPT 커널 후보들로 구성될 수 있고, 4x8 블록과 8x4 블록에 대한 NSPT 세트는 3개 또는 2개의 NSPT 커널 후보들로 구성되며, 8x8 블록에 대한 NSPT 세트는 1개의 NSPT 커널 후보로 구성될 수 있다.
블록 크기의 증가에 따라 변환 커널의 크기가 증가할 수 있다. 이에, 이용 가능한 NSPT 세트의 개수 및/또는 NSPT 세트에 속한 NSPT 커널 후보들의 개수를 줄임으로써, 변환 커널의 저장에 필요한 메모리 크기를 절약할 수 있다. 또한, 블록 크기의 증가에 따라 해당 블록 내의 잔차 신호 특성이 보다 일반화되는 경향이 있다. 따라서, 이용 가능한 NSPT 세트의 개수 및/또는 NSPT 세트에 속한 NSPT 커널 후보들의 개수를 줄이는 것은, 이런 통계적 특성을 반영하여 구현 복잡도를 줄이면서 압축 효율을 유지하는 데 도움이 될 수 있다.
NSPT 커널은 8-bit 정밀도(precision)로 구성될 수 있다. NSPT 커널 내 계수들의 범위는 -128보다 크거나 같고 127보다 작거나 같을 수 있다. 해당 정밀도를 8-bit보다 올리는 경우, 행렬 곱셈을 통해 얻어지는 결과값에 대해 올라간 정밀도만큼 오른쪽으로 쉬프트할 수 있다. 예를 들어, 8-bit 정밀도를 가진 NSPT 커널을 기반으로 행렬 곱셈 후 얻어진 값을 S 비트만큼 오른쪽으로 쉬프트하여 버퍼에 저장하는 경우, 만일 N-bit 정밀도로 커널의 계수를 구성한다면 (S+(N-8)) 비트만큼 오른쪽으로 쉬프트하여 버퍼에 저장할 수 있다.
8-bit 정밀도로 NSPT 커널을 구성하는 경우, 변환을 수행하는 부/복호화기 내 내부 정밀도의 과도한 상승을 막을 수 있어, 메모리 요구량과 연산량 관점에서 구현 복잡도를 저감하면서도 압축 효율의 하락을 최소화할 수 있다.
MxN 크기의 현재 블록에 대해 역방향의 NSPT를 적용하는 경우, NSPT 커널(또는, NSPT 행렬)의 크기는 MN x r으로 표현될 수 있다. 여기서, MN은 현재 블록의 너비와 높이의 곱을 의미할 수 있다. 이는, NSPT의 출력 길이 또는 NSPT에 의해 생성되는 레지듀얼 샘플의 개수를 의미할 수 있다. 또한, r은 NSPT의 입력 길이 또는 NSPT가 적용되는 (역양자화된) 변환 계수의 개수를 의미할 수 있다. r은 0보다 크거나 같고, MN보다 작거나 같은 정수일 수 있다. 다음은 블록 크기에 따른 MN x r의 NSPT 행렬에 대한 예이다.
4x4 블록에 대한 NSPT 행렬은 16x16 행렬로 구성될 수 있다. 4x8 블록과 8x4 블록에 대한 NSPT 행렬은 32x20 행렬, 32x16 행렬, 32x24 행렬, 32x28 행렬, 또는 32x32 행렬로 구성될 수 있다. 8x8 블록에 대한 NSPT 행렬은 64x16 행렬, 64x24 행렬, 64x32 행렬, 64x40 행렬, 64x48 행렬, 64x56 행렬, 또는 64x64 행렬로 구성될 수 있다. 4x16 블록과 16x4 블록에 대한 NSPT 행렬은 64x16 행렬, 64x24 행렬, 64x32 행렬, 64x40 행렬, 64x48 행렬, 64x56 행렬, 또는 64x64 행렬로 구성될 수 있다. 8x16 블록과 16x8 블록에 대한 NSPT 행렬은 128x96 행렬, 128x64 행렬, 128x48 행렬, 또는 128x32 행렬로 구성될 수 있다. 16x16 블록에 대한 NSPT 행렬은 256x128 행렬, 256x96 행렬, 또는 256x64 행렬로 구성될 수 있다. 16x32 블록과 32x16 블록에 대한 NSPT 행렬은 512x256 행렬 또는 512x128 행렬로 구성될 수 있다. 32x32 블록에 대한 NSPT 행렬은 1024x512 행렬, 1024x256 행렬, 또는 1024x128 행렬로 구성될 수 있다.
또는, 4xN 블록과 Nx4 블록에 대해서 16x16 행렬이 적용될 수 있다. 여기서, N은 4보다 크거나 같은 정수일 수 있다. 8x8 블록에 대해서 64x16 행렬이 적용될 수 있다. 8xN 블록과 Nx8 블록에 대해서 64x32 행렬이 적용될 수 있다. 여기서, N은 16보다 크거나 같은 정수일 수 있다. 16xN 블록과 Nx16 블록에 대해서 96x32 행렬이 적용될 수 있다. 여기서, N은 16보다 크거나 같은 정수일 수 있다.
또는, 소정의 기준에 따라 상기 MN x r의 NSPT 행렬에서 r의 값을 결정할 수도 있다. 여기서의 기준은, (1) 일차 변환에 대한 계산량과 이차 변환에 대한 계산량의 합이 일정 수준 이하가 되도록 하고, (2) NSPT 연산에 필요한 샘플 당 곱셈의 개수가 일정 개수 이하가 되도록 하는 것일 수 있다.
역방향의 변환을 기준으로, MxN 블록에 대해 분리 일차 변환을 행렬 곱셈으로 수행할 경우, 해당 일차 변환을 수행하는데 샘플 당 (M+N)개의 곱셈이 필요하게 된다. 또한, 일정 ROI(Region-Of-Interest) 영역에 대해 LFNST를 적용하는 경우, 역변환의 LFNST 행렬이 PxQ 행렬이라 가정하면, 샘플 당 (P*Q)/(M*N)개의 곱셈이 필요하게 된다. 여기서, PxQ 행렬은, 행의 개수가 P이고 열의 개수가 Q인 행렬을 의미할 수 있다.
MxN 블록에 대해 DCT-2 변환(또는, KLT와 같은 분리 변환)과 LFNST를 적용하는 대신 NSPT를 적용하는 경우, 해당 NSPT를 적용하는 경우에 대한 샘플 당 곱셈의 개수가 DCT-2 변환과 LFNST를 적용하는 경우에 대한 샘플 당 곱셈의 개수보다 작거나 같도록 하는 r의 값은 다음과 같이 결정될 수 있다.
Figure PCTKR2024007915-appb-img-000007
상기 수학식 6을 만족하면서 r의 값을 최대값으로 설정한다면(즉, r = M + N + (P*Q)/(M*N)), 블록 크기 별 NSPT 행렬에서 r의 값은 다음과 같이 설정될 수 있다. 수학식 6에서 (P*Q)/(M*N)의 값이 정수가 아닌 경우, (P*Q)/(M*N)의 값에 가까운 정수가 이용될 수 있다. 일예로, (P*Q)/(M*N)의 값에 floor 연산이 적용될 수 있다. 이 경우, r은 (M + N + floor((P*Q)/(M*N)))으로 설정될 수 있다. 여기서, floor(x)는 x를 넘지 않는 가장 큰 정수를 의미할 수 있다. 또는, (P*Q)/(M*N)의 값에 round 연산이 적용될 수 있다. 이 경우, r은 (M + N + round((P*Q)/(M*N)))으로 설정될 수 있다. 여기서, round(x)는 x을 반올림한 값을 의미할 수 있다. 또는, (P*Q)/(M*N)의 값에 ceil 연산이 적용될 수 있다. 이 경우, r은 (M + N + ceil((P*Q)/(M*N)))으로 설정될 수 있다. 여기서, ceil(x)는 x보다 크거나 같은 가장 작은 정수를 의미할 수 있다. floor 연산이 적용되는 경우, 상기 수학식 6의 부등식을 만족할 수 있다. 다만, round 연산 또는 ceil 연산이 적용되는 경우, 상기 수학식 6의 부등식을 만족하지 않을 수 있다.
4x4 블록에 대한 NSPT에 대해, r의 최대값은 24이다. 그러나, r의 값은 16보다 작거나 같아야 하므로 r의 값은 16으로 설정될 수 있다.
4x8 블록과 8x4 블록에 대한 NSPT에 대해, r의 최대값은 20이다. r의 값은 20으로 설정될 수 있다.
8x8 블록에 대한 NSPT에 대해, r의 최대값은 32이다. r의 값은 32로 설정될 수 있다.
4x16 블록과 16x4 블록에 대한 NSPT에 대해, r의 최대값은 24이다. r의 값은 24로 설정될 수 있다.
8x16 블록과 16x8 블록에 대한 NSPT에 대해, r의 최대값은 40이다. r의 값은 40으로 설정될 수 있다.
16x16 블록에 대한 NSPT에 대해, r의 최대값은 44이다. r의 값은 44로 설정될 수 있다.
16x32 블록과 32x16 블록에 대한 NSPT에 대해, r의 최대값은 54이다. r의 값은 54로 설정될 수 있다.
32x32 블록에 대한 NSPT에 대해, r의 최대값은 67이다. r의 값은 67로 설정될 수 있다.
4x32 블록과 32x4 블록에 대한 NSPT에 대해, r의 최대값은 38이다. r의 값은 38로 설정될 수 있다. 또는, r의 값은 20으로 설정될 수 있다.
8x32 블록과 32x8 블록에 대한 NSPT에 대해, r의 최대값은 48이다. r의 값은 48로 설정될 수 있다. 또는, r의 값은 24로 설정될 수 있다.
전술한 블록 크기 별 NSPT 행렬에서 r의 값이 4의 배수가 아닌 경우가 존재할 수 있다. 구현의 용이성을 위해, r의 값이 4의 배수인 것이 유리할 수도 있다. 예를 들어, SIMD (Single Instruction Multiple Data) 명령 등을 통한 병렬 처리를 구현하는데 있어서, 순방향의 NSPT를 적용하는 과정에서 4개의 변환 기저 벡터에 대한 내적을 동시에 처리하는 경우(즉, 변환 계수 4개를 동시에 생성하는 경우), r의 값을 4의 배수가 되도록 설정하는 것이 유리할 수 있다.
일예로, 16x32 블록과 32x16 블록에 대한 NSPT에 대해, r의 값은 54 대신에 52 또는 56으로 설정될 수 있다. 32x32 블록에 대한 NSPT에 대해, r의 값은 67 대신에 64 또는 68로 설정될 수 있다. 4x32 블록과 32x4 블록에 대한 NSPT에 대해, r의 값은 38 대신에 36 또는 40으로 설정될 수 있다.
보다 일반화하여, r의 값은 K의 배수가 되도록 설정될 수 있다. 여기서, K는 1보다 크거나 같은 정수일 수 있다. 일예로, r의 값은 다음 수학식 7의 부등식을 만족하는 K의 배수로 설정될 수 있다.
Figure PCTKR2024007915-appb-img-000008
상기 수학식 7에서 func()는 전술한 floor, round, 또는 ceil일 수 있다.
전술한 소정의 기준에 따른 r의 값은 zero-out을 고려하지 않은 경우에 대한 것이다. 즉, 순방향의 LFNST가 적용되는 경우, LFNST가 적용되는 영역을 제외한 나머지 영역의 일차 변환된 변환 계수들은 zero-out되기 때문에, DCT-2와 LFNST를 적용하는데 필요한 실질적인 계산량은 상기 계산량보다 적을 수 있다. 따라서, 상기 zero-out을 고려할 경우, r의 값은 상기 소정의 기준에 따른 r의 값보다 작은 값으로 설정될 수 있다.
4x4 블록에 대해서는 zero-out이 수행되지 않으므로, r의 값은 16보다 작거나 같은 값으로 설정될 수 있다.
4x8 블록에 대해서는, 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 8개(((4x4x8)+(4x8x4))/(4x8)=8)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 8개((16x16)/32=8)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 16보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 16보다 작거나 같은 값으로 설정될 수 있다.
8x4 블록에 대해서는 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 6개((4x8x4)+(4x4x4)/(8x4)=6)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 8개((16x16)/32=8)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 14보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 14보다 작거나 같은 값으로 설정될 수 있다.
8x8 블록에 대해서는 분리 일차 변환에 대해 zero-out이 수행되지 않을 수 있으며, 이 경우 r의 값은 32보다 작거나 같은 값으로 설정될 수 있다.
8x16 블록에 대해서는 순방향의 변환을 기준으로 좌상단 8x8 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 8x8 블록에 대해서는 순방향의 LFNST 행렬인 64x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 16개((8x8x16)+(8x16x8)/(8x16)=16)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 16개((64x32)/128=16)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 32보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 32보다 작거나 같은 값으로 설정될 수 있다.
16x8 블록에 대해서는 순방향의 변환을 기준으로 좌상단 8x8 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 8x8 블록에 대해서는 순방향의 LFNST 행렬인 64x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 12개((8x16x8)+(8x8x8)/(16x8)=12)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 16개((64x32)/128=16)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 28보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 28보다 작거나 같은 값으로 설정될 수 있다.
16x16 블록에 대해서는 순방향의 변환을 기준으로 좌상단 12x12 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 12x12 블록에 대해서는 순방향의 LFNST 행렬인 96x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 21개((12x16x16)+(12x16x12)/(16x16)=21)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 12개((96x32)/256=12)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 33보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 33보다 작거나 같은 값으로 설정될 수 있다.
4x16 블록에 대해서는 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 8개(((4x4x16)+(4x16x4))/(4x16)=8)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 4개((16x16)/64=4)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 12보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 12보다 작거나 같은 값으로 설정될 수 있다.
16x4 블록에 대해서는 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 5개(((4x16x4)+(4x4x4))/(16x4)=5)이고, LFNST에서 필요한 샘플당 곱셈의 개수는 4개((16x16)/64=4)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 9보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 9보다 작거나 같은 값으로 설정될 수 있다.
4x32 블록에 대해서는 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 8개(((4x4x32)+(4x32x4))/(4x32)=8)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 2개((16x16)/128=2)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 분리 일차 변환에서의 샘플 당 곱셈의 개수와 LFNST에서의 샘플 당 곱셈의 개수의 합인 10보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 10보다 작거나 같은 값으로 설정될 수 있다.
32x4 블록에 대해서는 순방향의 변환을 기준으로 좌상단 4x4 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 4x4 블록에 대해서는 순방향의 LFNST 행렬인 16x16 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 4.5개(((4x32x4)+(4x4x4))/(32x4)=4.5)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 2개((16x16)/128=2)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 6.5보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 6.5보다 작거나 같은 값으로 설정될 수 있다. 여기서, r의 값은 행렬 차원을 구성하는 값이므로, 6.5 대신에 6 또는 7의 정수로 설정될 수 있다.
8x32 블록에 대해서는 순방향의 변환을 기준으로 좌상단 8x8 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 8x8 블록에 대해서는 순방향의 LFNST 행렬인 64x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 16개(((8x8x32)+(8x32x8))/(8x32)=16)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 8개((64x32)/256=8)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 24보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 24보다 작거나 같은 값으로 설정될 수 있다.
32x8 블록에 대해서는 순방향의 변환을 기준으로 좌상단 8x8 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 8x8 블록에 대해서는 순방향의 LFNST 행렬인 64x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 10개(((8x32x8)+(8x8x8))/(32x8)=10)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 8개((64x32)/256=8)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 18보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 18보다 작거나 같은 값으로 설정될 수 있다.
16x32 블록에 대해서는 순방향의 변환을 기준으로 좌상단 12x12 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 12x12 블록에 대해서는 순방향의 LFNST 행렬인 96x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 21개(((12x16x32)+(12x32x12))/(16x32)=21)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 6개((96x32)/512=6)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 27보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 27보다 작거나 같은 값으로 설정될 수 있다.
32x16 블록에 대해서는 순방향의 변환을 기준으로 좌상단 12x12 블록을 제외하고 나머지 영역에 대해서는 zero-out이 수행될 수 있고, 좌상단 12x12 블록에 대해서는 순방향의 LFNST 행렬인 96x32 행렬이 적용될 수 있다. 이와 같은 zero-out이 수행되는 경우, 순방향의 분리 일차 변환에서 필요한 샘플 당 곱셈의 개수는 13.5개(((12x32x12)+(12x16x12))/(32x16)=13.5)이고, LFNST에서 필요한 샘플 당 곱셈의 개수는 6개((96x32)/512=6)이다. 따라서, 분리 일차 변환과 LFNST를 NSPT로 대체할 경우, r의 값은 19.5보다 작거나 같은 값으로 설정될 수 있다. 역방향의 분리 일차 변환과 LFNST를 적용하는 경우에도 동일한 계산량이 필요하므로, r의 값은 19.5보다 작거나 같은 값으로 설정될 수 있다. 여기서, r의 값은 행렬 차원을 구성하는 값이므로, 19.5 대신에 19 또는 20의 정수로 설정될 수 있다.
전술한 블록 크기 별 NSPT 행렬에서, r의 값이 K의 배수가 아닌 경우가 존재할 수 있다. 여기서, K는 4일 수 있다. 이 경우, 구현의 용이성을 위해 r의 값을 K의 배수가 되도록 설정할 수도 있다. 전술한 방법을 통해 기-설정된 r의 값을 rprev라 할 경우, K의 배수가 되는 r의 값은 다음과 같이 설정될 수 있다.
Figure PCTKR2024007915-appb-img-000009
상기 수학식 8에서 func()는 전술한 floor, round, 또는 ceil일 수 있다.
전술한 바와 같이, MxN 블록에 대한 NSPT 행렬에서의 r의 값은 NxM 블록에 대한 NSPT 행렬에서의 r의 값과 상이할 수 있다. 일예로, 4x8 블록에 대한 역방향의 NSPT 행렬은 32x16 행렬이고, 8x4 블록에 대한 역방향의 NSPT 행렬은 32x14 행렬일 수 있다. 이때, MxN 블록과 NxM 블록 간의 대칭성을 이용하여 NSPT 행렬이 결정될 수 있다.
현재 블록이 x번 모드를 가진 MxN 블록임을 가정한다. 현재 블록에 대해 전술한 대칭성을 이용하는 경우, x번 모드 또는 MxN의 블록 크기에 대응하는 NSPT 행렬이 적용되는 대신에, x번 모드에 대칭인 모드 또는 MxN의 블록 크기에 대칭인 NxM의 블록 크기 중 적어도 하나에 대응하는 NSPT 행렬이 적용될 수 있다. 이때, 현재 블록에 대해 NxM의 블록 크기에 대응하는 NSPT 행렬이 그대로 적용될 수 있다. 또는, NxM의 블록 크기에 대응하는 NSPT 행렬을 적용하되, r의 값은 MxN의 블록 크기에 대응하는 NSPT 행렬에서의 r의 값이 이용될 수 있다.
일예로, 4x8 블록에 대한 역방향의 NSPT 행렬은 32x16 행렬이고(즉, NSPT 행렬에서의 r의 값이 16임), 8x4 블록에 대한 역방향의 NSPT 행렬은 32x14 행렬일 수 있다(즉, NSPT 행렬에서의 r의 값은 14임). 현재 블록이 x번 모드를 가진 8x4 블록인 경우, 현재 블록에 대해 x번 모드에 대칭인 모드 또는 8x4 블록에 대칭인 4x8 블록 중 적어도 하나에 대한 NSPT 행렬이 적용될 수 있다. 이 경우, 4x8 블록에 대한 역방향의 NSPT 행렬인 32x16 행렬이 그대로 이용될 수도 있고, 8x4 블록에 대한 역방향의 NSPT 행렬에서의 r의 값을 가진 32x14 행렬이 이용될 수도 있다. 여기서, 32x14 행렬은, 32x16 행렬에서 왼쪽부터 14개의 행들을 샘플링하여 유도될 수 있다. 이와 같이, 8x4의 블록 크기를 가진 현재 블록에 대해 32x14 행렬을 적용할 경우, 전술한 소정의 기준을 만족하게 된다.
반대로, 현재 블록이 x번 모드를 가진 4x8 블록인 경우, 현재 블록에 대해 x번 모드에 대칭인 모드 또는 4x8 블록에 대칭인 8x4 블록 중 적어도 하나에 대한 NSPT 행렬이 적용될 수 있다. 이 경우, 현재 블록에 대해, 4x8 블록에 대한 32x16 행렬이 아닌, 8x4 블록에 대한 32x14 행렬이 적용될 수 있다. 이를 통해, 4x8 블록에 대해 허용되는 곱셈의 개수보다 적은 곱셈을 사용하여 NSPT가 수행될 수 있다.
MxN 블록과 NxM 블록에 대한 NSPT에 대해서 전술한 소정의 조건을 만족하는 r의 값이 각각 r1과 r2인 경우, MxN 블록과 NxM 블록에 대한 역방향의 NSPT 행렬은 MN x max(r1, r2)로 설정될 수 있다. 여기서, max(r1, r2)는 r1과 r2 중 크거나 같은 값을 선택하는 것을 의미할 수 있다.
일예로, 4x8 블록에 대한 역방향의 NSPT 행렬은 32x16 행렬이고(즉, NSPT 행렬에서의 r의 값이 16임), 8x4 블록에 대한 역방향의 NSPT 행렬은 32x14 행렬일 수 있다(즉, NSPT 행렬에서의 r의 값은 14임). 현재 블록이 x번 모드를 가진 4x8 블록인 경우, 현재 블록에 대해 x번 모드에 대칭인 모드 또는 4x8 블록에 대칭인 8x4 블록 중 적어도 하나에 대한 NSPT 행렬이 적용될 수 있다. 이 경우, 8x4 블록에 대한 역방향의 NSPT 행렬인 32x16 행렬이 이용될 수 있다. 만약 역방향의 NSPT 행렬을 MN x max(r1, r2)와 같이 구성하지 않았다면, 8x4 블록에 대한 NSPT 행렬로서 32x14 행렬을 이용될 것이다. 그러나, 4x8 블록에 대한 NSPT 행렬과 8x4 블록에 대한 NSPT 행렬을 32 x max(16, 14) 행렬로 구성할 경우, 32x16 행렬이 온전히 적용될 수 있다.
반대로, 현재 블록이 x번 모드를 가진 8x4 블록인 경우, 현재 블록에 대해 x번 모드에 대칭인 모드 또는 8x4 블록에 대칭인 4x8 블록 중 적어도 하나에 대한 NSPT 행렬이 적용될 수 있다. 이 경우, 4x8 블록에 대한 역방향의 NSPT 행렬인 32x16 행렬이 이용될 수도 있고, 32x14 행렬이 이용될 수도 있다. 여기서, 32x14 행렬은, 32x16 행렬에서 왼쪽부터 14개의 행들을 샘플링하여 유도될 수 있다.
전술한 바와 같이 NSPT 행렬을 구성할 경우, 상기 소정의 조건을 만족하면서 최대 개수의 변환 기저 벡터들로 구성된 변환을 적용할 수 있어서 코딩 성능을 극대화할 수 있다.
전술한 실시예에서 r의 값은 16의 배수가 되도록 설정될 수 있다. 일예로, 4x8 블록과 8x4 블록에 대한 역방향의 NSPT의 경우, 32x20 행렬이 아닌 32x16 행렬이 적용될 수 있다. 변환 블록의 변환 계수들은 소정의 계수 그룹(Coefficient Group, CG)의 단위로 부호화될 수 있다. 여기서, CG는 16개의 변환 계수들의 그룹으로 정의될 수 있고, 일예로 CG는 4x4, 2x8, 8x2와 같은 크기의 서브 블록일 수 있다. 하나의 CG 내에 넌-제로 변환 계수가 존재하지 않는 경우가 있을 수 있고, 이 경우 해당 CG에 대해서는 변환 계수의 부호화 과정이 스킵될 수 있다. 따라서, r의 값을 16의 배수로 설정할 경우, 구현의 복잡도가 낮아지는 장점이 있다.
MxN 블록의 레지듀얼 샘플들에 순방향의 NSPT를 적용하여 변환 계수들이 유도될 수 있다. 이때, 유도되는 변환 계수들의 개수는 zero-out에 의해 (M*N)의 값보다 작거나 같을 수 있다. 즉, 순방향의 NSPT 행렬은 r x (M*N) 행렬로 정의될 수 있고, 여기서 r은 NSPT의 출력 길이 또는 NSPT를 통해 유도되는 변환 계수의 개수를 의미하고 (M*N)은 NSPT의 입력 길이 또는 NSPT가 적용되는 레지듀얼 샘플의 개수를 의미할 수 있다.
상기 유도된 변환 계수들은 소정의 스캔 순서에 따라 MxN 블록 내부에 배열될 수 있고, 상기 변환 계수들이 채워지지 않은 영역은 0으로 채워질 수 있다(즉, zero-out). 따라서, 디코딩 장치에서 변환 계수들을 스캔하는 과정에서, NSPT가 적용되었다면 0으로 채워졌을 영역에서 넌-제로 변환 계수가 발견된 경우(또는, MxN 블록 내 마지막 유효 계수의 스캔 위치가 r보다 크거나 같은 경우), 해당 MxN 블록에 대해 NSPT가 적용되지 않은 것으로 간주되고, NSPT 인덱스가 시그날링되지 않을 수 있다. MxN 블록 내 좌상단 계수(즉, DC 성분 계수)에 0의 스캔 위치를 나타내는 인덱스가 할당되고, 소정의 순서에 따라 MxN 블록 내 나머지 계수에 1씩 증가된 인덱스가 할당될 수 있다.
NSPT가 적용될 수 있는 블록 크기들에 대해 이용 가능한 하나 또는 그 이상의 r의 값들이 정의될 수 있다. 일예로, NSPT가 적용될 수 있는 블록 크기들 각각에 대해서 하나 또는 그 이상의 r의 값들이 정의될 수 있다. 또는, NSPT가 적용될 수 있는 블록 크기 별로 하나의 r의 값이 정의될 수 있고, NSPT가 적용될 수 있는 블록 크기들 중 어느 하나에 대한 r의 값은, 다른 하나에 대한 r의 값과 상이할 수 있다. 또는, NSPT가 적용될 수 있는 블록 크기들 중 일부에 대해서는 하나의 r의 값이 정의되고, 나머지에 대해서는 둘 이상의 r의 값들이 정의될 수 있다.
복수의 r의 값들이 이용 가능한 경우, 복수의 r의 값들 중 어느 하나를 특정하는 인덱스 또는 r의 자체가 시그날링될 수 있다. 해당 인덱스는, VPS, SPS, PPS, PH, SH와 같은 하이 레벨 신택스(HLS)에서 시그날링되거나, CTU, CU, TU와 같은 블록 레벨에서 시그날링될 수도 있다. r의 값이 특정 범위에 속하는 값인 경우, 해당 범위를 포함할 수 있을만큼의 비트들을 할당하여 시그날링할 수 있다. 예를 들어, r의 값이 1 내지 256의 범위에 속하는 경우, 8-비트만큼을 fixed-length로 지정하여 시그날링할 수 있다.
현재 블록의 변환 커널은, 전술한 실시예 1 내지 3 중 어느 하나를 기반으로 결정될 수 있다. 또는, 현재 블록의 변환 커널은, 전술한 실시예 1 내지 3에 따른 발명이 서로 충돌되지 않는 범위 내에서, 실시예 1 내지 3 중 적어도 둘의 조합에 기초하여 결정될 수도 있다.
현재 블록의 역변환을 위한 변환 인덱스가 시그날링될 수 있다. 여기서, 변환 인덱스는, 변환 세트에 속한 하나 또는 그 이상의 변환 커널들(또는, 변환 행렬들) 중 어느 하나를 특정할 수 있다. 여기서, 변환 인덱스는, NSPT 세트에 속한 하나 또는 그 이상의 NSPT 커널들 중 어느 하나를 특정하는 NSPT 인덱스를 의미할 수 있다. 또는, 상기 변환 인덱스는, LFNST 세트에 속한 하나 또는 그 이상의 LFNST 커널들 중 어느 하나를 특정하는 LFNST 인덱스를 의미할 수도 있다.
상기 변환 인덱스가 NSPT 인덱스에 해당하는지 여부는, 현재 블록의 크기가 전술한 제1 그룹에 속한 블록 크기들 중 어느 하나인지 여부에 기초하여 결정될 수 있다. 이는, NSPT가 적용 가능한 블록 크기들과 LFNST가 적용 가능한 블록 크기들이 서로 구분되는 경우를 전제로 한다. 이 경우, 현재 블록의 크기가 제1 그룹에 속하면, 현재 블록에 대해 시그날링된 변환 인덱스는 NSPT 인덱스에 해당하고, 해당 변환 인덱스를 기반으로 NSPT 세트로부터 NSPT 커널이 결정될 수 있다. 반면, 현재 블록의 크기가 제1 그룹에 속하지 않는 경우, 현재 블록에 대해 시그날링된 변환 인덱스는 LFNST 인덱스에 해당하고, 해당 변환 인덱스를 기반으로 LFNST 세트로부터 LFNST 커널이 결정될 수 있다. 현재 블록의 크기가 제1 그룹에 속하지 않는 경우는, 현재 블록의 크기가 전술한 제2 그룹에 속하는 경우를 의미할 수 있다. 또는, 현재 블록의 크기가 제1 그룹에 속하지 않는 경우는, 현재 블록의 크기가 제2 그룹에 속한 블록 크기들 중 LFNST가 적용 가능한 블록 크기에 해당하는 경우를 의미할 수도 있다. 이와 같이, NSPT 인덱스와 LFNST 인덱스가 별개의 신택스로 구성되는 것이 아니라, 통합된 하나의 신택스로 구성될 수 있다.
일예로, 제1 그룹에 속한 NSPT가 적용 가능한 블록 크기들이 4x4, 4x8, 8x4, 8x8인 경우를 가정한다. 제1 그룹에 속한 블록 크기들에 대해서는 LFNST 대신에 NSPT가 적용될 수 있다. 구체적으로, 분리 일차 변환(e.g., DCT-2, separable KLT)과 LFNST의 조합 대신에 NSPT가 적용될 수 있다. 제1 그룹에 속한 4개의 블록 크기들에 대해서는 NSPT 인덱스가 시그날링될 수 있고, (LFNST가 허용되는) 나머지 블록 크기들에 대해서는 LFNST 인덱스가 시그날링될 수 있다.
이와 같이, NSPT 인덱스와 LFNST 인덱스를 통합된 하나의 신택스로 시그날링하는 경우, 부호화되는 정보량을 줄일 수 있다. 또한, 엔트로피 코딩을 위한 이진화, CABAC 컨텍스트, 또는 초기 값(initial value) 중 적어도 하나를 NSPT/LFNST 인덱스에 대해 동일하게 적용함으로써, 구현의 복잡도를 줄일 수도 있다.
또는, NSPT 인덱스와 LFNST 인덱스를 별개의 신택스로서 각각 시그날링할 수도 있다. 이 경우, 구현의 복잡도가 일부 증가될 수는 있으나, 각 인덱스에 대해 최적화된 엔트로피 코딩을 함으로써 압축 성능을 향상시킬 수 있다.
LFNST 세트에 속한 LFNST 커널 후보의 개수와 NSPT 세트에 속한 NSPT 커널 후보의 개수가 동일한 경우, LFNST 인덱스와 NSPT 인덱스에 대해 동일한 이진화(binarization)가 적용될 수 있다. LFNST 인덱스와 NSPT 인덱스의 빈(bin)들에 대해 동일한 CABAC 컨텍스트(또는, CABAC context increment)가 할당될 수도 있다.
LFNST 인덱스와 NSPT 인덱스에 대해 서로 다른 이진화 및/또는 CABAC 컨텍스트가 이용될 수 있다. LFNST 인덱스와 NSPT 인덱스에 대해 서로 다른 CABAC 초기 값이 할당될 수 있다. 일예로, LFNST 인덱스와 NSPT 인덱스 중 어느 하나는 fixed-length binarization을 기반으로 이진화되고, 다른 하나는 truncated unary binarization을 기반으로 이진화될 수 있다. LFNST 인덱스와 NSPT 인덱스의 이진화가 동일하더라도, 서로 다른 CABAC 컨텍스트 및/또는 CABAC 초기 값이 할당될 수 있다. LFNST 세트에 속한 LFNST 커널 후보의 개수와 NSPT 세트에 속한 NSPT 커널 후보의 개수가 서로 상이한 경우, LFNST 인덱스와 NSPT 인덱스에 대해 서로 다른 이진화 및/또는 CABAC 컨텍스트가 이용될 수 있다.
NSPT 세트에 속한 NSPT 커널 후보의 개수는, 블록 크기 별로 상이하게 설정될 수 있다. 또는, 상기 제1 그룹에 속한 블록 크기들은 복수의 서브 그룹으로 구분될 수 있다. 이 경우, NSPT 세트에 속한 NSPT 커널 후보의 개수는, 상기 복수의 서브 그룹 별로 상이하게 설정될 수 있다. 여기서, 복수의 서브 그룹 중 적어도 하나는 서로 다른 복수의 블록 크기들을 포함할 수 있다.
NSPT 세트에 속한 NSPT 커널 후보의 개수에 따라, NSPT 인덱스에 적용되는 이진화가 상이할 수 있다.
일예로, 특정 블록 크기에 대한 NSPT 세트 내 NSPT 커널 후보의 개수가 3개인 경우, NSPT 인덱스는 0 내지 3 중 어느 하나의 값을 가질 수 있다. NSPT 인덱스의 값이 0인 경우, 이는 현재 블록에 NSPT가 적용되지 않음을 나타낼 수 있다. NSPT 인덱스의 값이 0이 아닌 경우, 이는 3개의 NSPT 커널 후보들 중 해당 NSPT 인덱스에 대응하는 NSPT 커널 후보를 나타낼 수 있다. 하나의 빈(bin)을 할당하여 NSPT가 적용되는 경우와 그렇지 않은 경우를 구분할 수 있다. 해당 빈의 값이 0인 경우는 NSPT 인덱스의 값이 0인 경우에 해당할 수 있다. 반면, 해당 빈의 값이 1인 경우는 NSPT 인덱스의 값이 1, 2, 또는 3인 경우에 해당할 수 있다. 이 경우, 3개의 NSPT 커널 후보들을 구분하기 위해 truncated unary binarization이 적용될 수 있다. 즉, 2개의 빈들을 할당하여 0, 10, 11로 3개의 NSPT 커널 후보들을 구분할 수 있다.
특정 블록 크기에 대한 NSPT 세트 내 NSPT 커널 후보의 개수가 2개인 경우, NSPT 인덱스는 0 내지 2 중 어느 하나의 값을 가질 수 있다. NSPT 인덱스의 값이 0인 경우, 이는 현재 블록에 NSPT가 적용되지 않음을 나타낼 수 있다. NSPT 인덱스의 값이 0이 아닌 경우, 이는 2개의 NSPT 커널 후보들 중 해당 NSPT 인덱스에 대응하는 NSPT 커널 후보를 나타낼 수 있다. 하나의 빈(bin)을 할당하여 NSPT가 적용되는 경우와 그렇지 않은 경우를 구분할 수 있다. 2개의 NSPT 커널 후보들 중 어느 하나를 나타내는 하나의 빈을 할당하여, 2개의 NSPT 커널 후보들을 구분할 수 있다.
특정 블록 크기에 대한 NSPT 세트 내 NSPT 커널 후보의 개수가 1개인 경우, NSPT 인덱스는 0 또는 1 중 어느 하나의 값을 가질 수 있다. NSPT 인덱스의 값이 0인 경우, 이는 현재 블록에 NSPT가 적용되지 않음을 나타낼 수 있다. NSPT 인덱스의 값이 1인 경우, 이는 1개의 NSPT 커널 후보를 나타낼 수 있다. 이와 같은 경우, 하나의 빈만으로 NSPT의 적용 여부 및 NSPT 커널 후보를 특정할 수 있다.
상기 현재 블록의 역변환은 분리 일차 변환 및/또는 LFNST 기반의 역변환일 수 있다. 즉, 현재 블록의 (역양자화된) 변환 계수들 전부 또는 일부에 대해 역방향의 LFNST를 적용하고, 그런 다음 LFNST를 통해 유도된 변환 계수들에 대해 역방향의 분리 일차 변환을 적용하여 레지듀얼 샘플들을 유도할 수 있다. 일예로, 현재 블록의 일부 영역에 속한 (역양자화된) 변환 계수들에 대해 역방향의 LFNST가 적용될 수 있다. 여기서, 일부 영역은 순방향의 LFNST가 적용된 영역을 의미하며, 이하 ROI (region of interest) 영역이라 부르기로 한다. LFNST를 통해 유도된 변환 계수들은 소정의 스캔 순서에 따라 ROI 영역에 배열될 수 있다. 소정의 스캔 순서는, 행 우선 순서(row-first order) 또는 열 우선 순서(column-first order)일 수 있다. 상기 LFNST를 통해 유도된 변환 계수들 및 상기 현재 블록 내 ROI 영역을 제외한 나머지 영역에 속한 변환 계수들에 대해서 역방향의 분리 일차 변환이 적용될 수 있다. 또는, 순방향의 변환 과정에서, 상기 현재 블록 내 ROI 영역을 제외한 나머지 영역에 대해서 zero-out이 수행된 경우(즉, 해당 나머지 영역 내 변환 계수들이 0으로 설정된 경우), LFNST를 통해 유도된 변환 계수들에 대해서 역방향의 분리 일차 변환이 적용될 수 있다. 상기 ROI 영역의 크기는 현재 블록의 너비 또는 높이 중 적어도 하나에 기초하여 결정될 수 있다. 여기서, ROI 영역의 크기는, ROI 영역의 너비 또는 높이 중 적어도 하나를 의미할 수도 있고, ROI 영역에 속한 샘플 위치들의 개수를 의미할 수도 있다.
NSPT 커널은 8-bit 정밀도(precision)로 구성될 수 있다. NSPT 커널 내 계수들의 범위는 -128보다 크거나 같고 127보다 작거나 같을 수 있다. 해당 정밀도를 8-bit보다 올리는 경우, 행렬 곱셈을 통해 얻어지는 결과값에 대해 올라간 정밀도만큼 오른쪽으로 쉬프트할 수 있다. 예를 들어, 8-bit 정밀도를 가진 NSPT 커널을 기반으로 행렬 곱셈 후 얻어진 값을 S 비트만큼 오른쪽으로 쉬프트하여 버퍼에 저장하는 경우, 만일 N-bit 정밀도로 커널의 계수를 구성한다면 (S+(N-8)) 비트만큼 오른쪽으로 쉬프트하여 버퍼에 저장할 수 있다.
8-bit 정밀도로 NSPT 커널을 구성하는 경우, 변환을 수행하는 부/복호화기 내 내부 정밀도의 과도한 상승을 막을 수 있어, 메모리 요구량과 연산량 관점에서 구현 복잡도를 저감하면서도 압축 효율의 하락을 최소화할 수 있다.
표 11와 표 12는 8x32 블록에 적용될 수 있는 NSPT 커널들의 예시이고, 표 13과 표 14는 32x8 블록에 적용될 수 있는 NSPT 커널들의 예시이다. NSPT 커널을 구성하는 계수들은 8-bit 정밀도로 표현된 것이다. NSPT 커널의 계수들은 -128부터 127까지의 값을 가질 수 있다. 본 예시에서, 인코딩 장치와 디코딩 장치에 동일하게 기-정의된 NSPT 세트들의 개수는 총 35개이고, 각 NSPT 세트는 3개의 NSPT 커널 후보들로 구성될 수 있다.
본 예시에서, g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ]은 8x32 블록에 적용될 수 있는 NSPT 커널들을 나타내고, g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ]는 32x8 블록에 적용될 수 있는 NSPT 커널들을 나타낼 수 있다. 다만, 전술한 대칭성을 고려하여 NSPT 세트 및/또는 NSPT 커널이 결정될 수도 있다. 현재 블록이 8x32 블록이고 특정 인트라 예측 모드(예를 들어, 수직 방향성을 가진 모드)를 가지는 경우, 이러한 현재 블록과 대칭성을 가진 블록 즉, 32x8 블록에 대한 NSPT 세트 및/또는 NSPT 커널이 현재 블록에 동일하게 적용될 수 있다. 또는, 현재 블록이 32x8 블록이고 특정 인트라 예측 모드(예를 들어, 수직 방향성을 가진 모드)를 가지는 경우, 이러한 현재 블록과 대칭성을 가진 블록 즉, 8x32 블록에 대한 NSPT 세트 및/또는 NSPT 커널이 현재 블록에 동일하게 적용될 수 있다. 이때, 현재 블록으로부터의 입력 데이터를 전치한 후 해당 NSPT 커널을 곱해주게 된다.
아래 g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ]와 g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ]에서, [35]는 35개 NSPT 세트들로 구성됨을 나타내고, [3]은 각 NSPT 세트가 3개의 NSPT 커널 후보들로 구성되어 있음을 나타낼 수 있다. 예를 들어, 표 11 내지 표 14에서 /k는 세트 인덱스가 k인 NSPT 세트를 의미할 수 있고, k는 0 내지 34의 범위에 속할 수 있다. /k에 속한 3개의 행렬은 변환 인덱스가 각각 0, 1, 2인 NSPT 커널 후보들을 나타낼 수 있다. 또한, [48][256]은 순방향의 NSPT 행렬을 기준으로 48x256 행렬을 나타낼 수 있다. 구체적으로, 첫번째 [48]은 48개의 변환 기저 벡터들을 나타내고, 두번째 [256]는 각 변환 기저 벡터가 256개의 계수들로 구성된 일차원 벡터임을 나타낼 수 있다. 이는 순방향의 NSPT 관점에서, 순방향의 NSPT로의 입력이 길이가 256인 일차원 벡터임을 나타낼 수 있다. 역방향의 NSPT 행렬은 아래 g_nspt8x32 어레이 또는 g_nspt32x8 어레이로부터 선택된 NSPT 커널을 전치하여 유도될 수 있다. 이 경우, 역방향의 NSPT 행렬은 256x48 행렬이 될 수 있다.
또는, R개의 변환 기저 벡터(들)이 사용될 수 있다. 여기서, R은 48보다 작은 정수일 수 있다. 이 경우, 표 11 내지 표 14의 각 NSPT 커널에 대해서 위에서부터 48개가 아닌 R개의 행만이 선택될 수 있고, 순방향의 NSPT 행렬은 Rx256 행렬이 될 수 있다. 이때, 위에서부터 선택된 R개의 행(즉, 변환 기저 벡터)을 제외한 나머지 (48-R)개의 행들은 제거될 수 있다. 8x32 블록에 적용될 수 있는 NSPT 커널들은 g_nspt8x32[ 35 ][ 3 ][ R ][ 256 ]로 표현될 수 있고, 32x8 블록에 적용될 수 있는 NSPT 커널들은 g_nspt32x8[ 35 ][ 3 ][ R ][ 256 ]로 표현될 수 있다. 역방향의 NSPT 행렬은 아래 g_nspt8x32 어레이 또는 g_nspt32x8 어레이로부터 선택된 R개의 행을 전치하여 유도될 수 있다. 이 경우, 역방향의 NSPT 행렬은 256xR 행렬이 될 수 있다.
const int8_t g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ] = {
{ /0
{
{ -1,-1,-2,-2,-2,-2,-3,-3,-2,-3,-3,-4,-4,-4,-5,-5,-2,-4,-5,-6,-6,-7,-7,-7,-3,-5,-7,-8,-8,-9,-9,-9,-4,-7,-9,-10,-11,-11,-11,-11,-5,-8,-10,-12,-12,-13,-13,-13,-5,-9,-12,-14,-15,-15,-15,-15,-6,-11,-14,-16,-17,-17,-17,-17,-7,-12,-16,-18,-19,-20,-20,-19,-8,-14,-18,-20,-22,-22,-22,-21,-9,-16,-20,-23,-24,-25,-25,-24,-10,-17,-23,-26,-27,-28,-27,-27,-11,-19,-25,-29,-31,-31,-31,-29,-12,-21,-28,-32,-34,-35,-34,-32,-13,-23,-30,-35,-38,-38,-37,-36,-14,-24,-33,-38,-41,-42,-41,-39,-15,-26,-35,-41,-45,-46,-45,-42,-15,-27,-37,-44,-48,-49,-48,-46,-15,-28,-38,-45,-50,-51,-51,-48,-16,-28,-39,-47,-52,-54,-53,-51,-16,-28,-39,-47,-53,-55,-55,-53,-15,-28,-39,-47,-53,-56,-56,-54,-15,-27,-38,-46,-53,-56,-57,-55,-14,-26,-37,-45,-52,-56,-57,-56,-13,-24,-35,-44,-51,-55,-57,-56,-12,-23,-33,-42,-49,-53,-55,-55,-11,-21,-30,-39,-46,-51,-54,-54,-9,-18,-28,-36,-43,-49,-52,-52,-8,-16,-25,-33,-40,-46,-49,-50,-7,-14,-22,-30,-37,-42,-46,-48,-5,-12,-19,-26,-33,-39,-43,-45,-5,-10,-16,-23,-29,-35,-39,-42 },
{ -4,-7,-8,-8,-9,-8,-7,-6,-7,-10,-13,-14,-14,-14,-12,-10,-9,-14,-17,-19,-20,-19,-17,-15,-10,-17,-22,-24,-25,-24,-22,-19,-12,-20,-26,-29,-30,-28,-26,-23,-14,-23,-29,-33,-34,-33,-30,-26,-15,-26,-33,-37,-38,-37,-34,-30,-16,-28,-36,-40,-42,-40,-37,-33,-17,-30,-39,-44,-45,-44,-40,-36,-18,-31,-41,-47,-48,-47,-43,-38,-18,-32,-42,-49,-51,-50,-46,-40,-18,-32,-43,-50,-53,-52,-48,-42,-17,-31,-43,-50,-53,-53,-49,-43,-16,-29,-41,-49,-52,-53,-49,-44,-14,-26,-37,-45,-50,-50,-48,-43,-12,-22,-32,-40,-45,-47,-45,-40,-8,-17,-25,-32,-38,-40,-40,-36,-5,-11,-17,-24,-29,-32,-33,-31,-2,-4,-8,-14,-19,-23,-24,-24,2,2,0,-3,-8,-12,-15,-16,5,8,9,7,3,-1,-5,-8,8,13,16,17,14,10,5,1,10,18,23,25,24,20,15,10,12,22,29,33,33,30,25,19,14,25,34,39,41,39,34,27,14,26,36,43,46,45,40,34,14,27,38,45,49,49,45,39,13,26,37,45,50,51,48,42,12,24,35,44,50,51,49,44,11,22,33,41,47,50,49,45,9,19,29,37,43,46,46,44,7,15,24,32,38,42,43,41 },
{ 5,8,10,11,11,11,9,8,8,12,16,18,18,18,16,13,10,16,21,24,25,24,22,19,11,19,25,29,30,30,27,24,13,22,29,33,35,35,32,28,13,23,31,37,39,39,36,32,13,24,33,39,42,42,39,35,13,24,33,40,43,44,41,37,11,22,32,39,44,45,43,39,9,19,28,37,42,44,42,39,6,13,22,31,38,41,40,37,1,6,13,22,30,35,36,35,-4,-3,2,11,19,26,30,30,-9,-13,-10,-3,6,15,21,24,-15,-22,-23,-18,-9,1,10,15,-20,-32,-36,-34,-25,-14,-3,5,-24,-39,-48,-48,-41,-29,-16,-5,-26,-44,-55,-58,-52,-41,-27,-14,-26,-45,-59,-63,-60,-50,-36,-21,-25,-44,-58,-64,-63,-54,-41,-26,-22,-39,-53,-60,-60,-53,-42,-28,-17,-31,-43,-51,-51,-47,-37,-26,-11,-21,-30,-36,-38,-35,-28,-19,-5,-10,-15,-19,-21,-20,-16,-10,1,1,0,-2,-3,-3,-1,1,6,10,12,14,14,14,13,13,10,17,23,27,29,28,27,24,12,22,31,37,40,41,38,34,13,25,36,44,49,50,47,42,13,25,37,47,53,55,52,48,12,24,36,46,53,56,54,50,11,22,33,42,49,53,53,50 },
{ -7,-9,-10,-9,-7,-4,-1,1,-10,-14,-15,-13,-10,-6,-2,2,-13,-18,-20,-18,-13,-8,-2,3,-15,-22,-24,-22,-16,-9,-2,3,-17,-26,-28,-25,-18,-10,-2,4,-19,-29,-32,-28,-20,-11,-2,6,-21,-32,-34,-30,-21,-10,-1,7,-22,-34,-37,-31,-21,-10,1,10,-24,-36,-38,-32,-21,-8,3,12,-24,-37,-39,-32,-19,-6,6,16,-24,-36,-38,-30,-17,-2,11,20,-23,-36,-36,-27,-13,2,16,26,-24,-35,-35,-24,-8,9,22,32,-24,-35,-33,-21,-3,15,30,39,-24,-35,-32,-18,2,22,38,47,-25,-36,-32,-16,6,29,45,55,-27,-38,-34,-17,9,33,52,63,-29,-42,-38,-19,8,35,56,68,-32,-46,-43,-24,4,33,57,71,-34,-51,-49,-31,-2,30,56,73,-36,-55,-56,-38,-9,24,53,72,-37,-58,-60,-46,-17,16,48,69,-37,-58,-63,-50,-24,9,41,65,-36,-58,-64,-53,-29,3,35,61,-34,-55,-62,-53,-31,-1,30,56,-31,-50,-57,-51,-31,-3,27,53,-26,-43,-50,-45,-28,-3,25,50,-22,-36,-42,-38,-23,-1,25,48,-17,-28,-34,-30,-17,3,26,47,-12,-21,-25,-22,-10,6,27,47,-8,-14,-16,-13,-4,11,29,46,-4,-7,-8,-5,3,15,31,46 },
{ 7,11,14,15,15,15,13,10,10,16,21,24,25,24,21,18,12,20,26,30,32,32,29,25,13,22,30,35,38,38,35,30,13,22,31,37,41,42,39,34,11,20,29,37,41,43,41,36,8,15,25,33,39,42,41,37,3,9,17,27,34,39,39,36,-3,0,7,17,27,33,35,34,-9,-11,-6,4,15,24,29,30,-17,-23,-21,-12,1,12,20,24,-23,-36,-38,-30,-16,-2,9,16,-29,-46,-53,-47,-34,-17,-3,8,-31,-53,-63,-61,-48,-31,-14,0,-31,-53,-67,-67,-57,-40,-22,-7,-27,-49,-63,-67,-59,-44,-27,-11,-21,-39,-53,-57,-52,-40,-26,-11,-12,-25,-35,-39,-36,-29,-17,-6,-2,-8,-13,-16,-14,-10,-3,3,7,8,9,9,10,11,13,15,13,21,27,30,32,31,29,27,16,28,37,45,47,47,42,37,16,28,40,49,55,54,50,43,13,24,36,46,52,54,51,44,8,16,25,34,42,45,45,40,1,4,10,17,24,30,32,31,-6,-8,-7,-3,3,10,15,18,-11,-19,-23,-23,-18,-11,-4,2,-15,-27,-36,-39,-37,-30,-22,-13,-17,-31,-43,-50,-50,-45,-36,-26,-16,-32,-45,-54,-57,-54,-46,-35,-16,-30,-43,-53,-58,-57,-51,-42 },
{ 3,2,-1,-5,-8,-11,-13,-12,4,3,-1,-7,-14,-18,-20,-20,6,6,1,-8,-17,-23,-27,-26,9,10,4,-7,-18,-27,-32,-32,13,16,9,-3,-17,-29,-35,-36,17,23,16,2,-14,-29,-37,-39,23,31,26,10,-9,-26,-37,-41,29,41,37,20,-2,-22,-35,-41,36,51,49,31,7,-17,-33,-41,40,59,59,42,15,-11,-30,-40,42,64,66,50,23,-5,-27,-38,41,65,69,55,27,-1,-24,-37,37,59,66,53,28,-1,-24,-37,29,49,54,45,22,-3,-25,-38,19,32,36,29,11,-10,-29,-40,8,14,16,10,-4,-20,-34,-42,-3,-3,-5,-9,-18,-29,-38,-43,-11,-17,-20,-23,-28,-33,-38,-41,-16,-25,-29,-30,-31,-32,-33,-34,-19,-29,-32,-30,-26,-23,-22,-23,-20,-29,-30,-23,-15,-8,-6,-7,-19,-27,-24,-14,0,10,14,12,-18,-24,-19,-4,15,29,35,32,-18,-24,-16,2,25,44,53,50,-19,-25,-17,3,30,52,65,64,-21,-30,-23,-3,25,51,67,70,-24,-35,-33,-15,13,41,61,68,-27,-42,-43,-29,-4,25,49,61,-28,-46,-52,-43,-21,8,34,51,-27,-47,-56,-52,-34,-8,19,38,-24,-43,-56,-55,-44,-21,4,24,-21,-38,-50,-53,-46,-29,-7,13 },
{ 13,19,21,21,18,14,10,6,18,28,32,31,27,22,15,10,23,34,40,39,35,28,20,13,25,39,45,45,39,31,22,14,26,41,48,47,41,32,23,14,25,40,46,45,38,29,20,12,22,35,40,38,32,23,15,7,17,28,31,28,22,14,7,1,12,19,19,15,8,2,-4,-7,7,9,7,0,-7,-13,-16,-18,3,1,-6,-15,-23,-29,-30,-29,1,-4,-14,-27,-38,-43,-44,-40,2,-4,-17,-33,-47,-54,-55,-49,6,3,-11,-30,-47,-58,-59,-55,14,14,3,-16,-36,-50,-56,-54,21,28,22,6,-16,-36,-46,-48,27,40,42,29,8,-14,-31,-38,28,46,53,48,30,8,-12,-24,24,42,54,55,45,26,6,-10,16,31,44,50,47,35,17,2,4,12,24,33,37,33,22,9,-9,-10,-2,8,17,21,17,11,-22,-32,-31,-22,-9,2,7,7,-32,-50,-54,-48,-33,-17,-4,3,-37,-58,-69,-64,-50,-30,-12,0,-35,-58,-69,-68,-53,-33,-13,2,-28,-48,-58,-56,-44,-24,-5,9,-19,-33,-39,-36,-25,-8,9,20,-10,-17,-18,-13,-1,13,26,34,-1,-2,2,10,22,34,44,48,6,11,19,30,42,53,60,61,13,21,31,43,55,65,70,70 },
{ -10,-12,-9,-4,4,10,13,14,-15,-18,-14,-5,6,15,21,23,-19,-24,-19,-7,8,20,28,31,-23,-31,-25,-11,7,24,34,38,-28,-37,-32,-16,6,25,38,43,-31,-44,-39,-21,2,24,40,46,-34,-48,-46,-28,-2,22,40,48,-35,-52,-51,-34,-7,19,39,49,-33,-51,-53,-38,-12,15,37,48,-28,-45,-49,-38,-14,12,34,47,-19,-33,-39,-32,-14,10,31,44,-7,-16,-23,-22,-9,10,28,41,7,4,-4,-7,-3,10,25,36,20,24,17,8,5,9,19,29,31,41,36,22,9,5,9,18,39,54,48,30,9,-4,-4,3,42,59,55,31,3,-17,-22,-15,40,58,51,26,-7,-32,-40,-34,35,50,43,17,-18,-46,-56,-50,29,42,34,9,-25,-55,-67,-61,22,32,27,5,-26,-54,-69,-65,15,23,21,6,-20,-44,-59,-59,7,14,15,8,-8,-26,-40,-43,-1,4,9,10,4,-6,-16,-21,-9,-8,-1,8,13,13,9,3,-17,-21,-13,1,16,26,28,25,-25,-33,-27,-9,13,32,42,42,-31,-45,-42,-23,4,31,48,54,-34,-52,-54,-37,-8,24,49,59,-34,-54,-59,-47,-19,14,43,59,-30,-50,-58,-49,-27,4,34,53,-24,-42,-50,-46,-28,-2,25,44 },
{ 16,24,28,28,26,21,16,10,22,33,40,41,38,33,24,16,25,38,46,48,45,39,30,20,25,39,47,50,47,40,31,21,21,34,42,44,42,37,28,20,14,23,30,32,31,27,21,14,5,9,12,14,14,13,10,6,-4,-7,-8,-8,-6,-5,-4,-5,-12,-21,-28,-29,-27,-23,-19,-16,-15,-29,-39,-45,-44,-39,-33,-26,-13,-27,-41,-49,-52,-48,-42,-34,-6,-17,-30,-42,-48,-49,-44,-38,5,0,-10,-22,-33,-38,-39,-36,15,20,16,7,-6,-18,-25,-28,23,35,40,35,24,9,-5,-14,23,40,51,55,47,33,16,1,14,30,47,56,57,47,31,14,-1,7,22,37,45,45,34,20,-18,-22,-14,2,18,26,26,18,-32,-48,-49,-36,-16,2,11,11,-38,-60,-70,-62,-43,-20,-4,3,-33,-57,-68,-67,-51,-30,-11,-1,-20,-36,-47,-48,-39,-23,-9,0,-3,-9,-14,-15,-11,-4,3,7,13,18,20,20,21,21,19,16,23,36,43,46,44,40,31,23,26,41,51,55,53,45,34,23,22,36,44,47,44,37,26,15,14,22,26,26,23,16,8,0,3,4,2,-2,-7,-13,-18,-21,-8,-14,-22,-31,-39,-44,-46,-44,-17,-29,-41,-53,-62,-68,-68,-63 },
{ 5,9,15,21,26,29,28,23,4,10,18,28,37,42,41,36,0,4,14,26,39,47,49,44,-7,-6,3,17,33,45,49,47,-15,-19,-13,2,21,36,45,46,-23,-33,-30,-16,4,23,35,40,-28,-43,-45,-34,-15,6,22,31,-27,-47,-55,-49,-32,-10,9,21,-20,-39,-54,-54,-43,-23,-3,11,-5,-19,-36,-45,-42,-28,-11,4,16,11,-4,-20,-28,-24,-13,-1,36,44,33,13,-5,-13,-10,-3,50,68,66,45,19,1,-6,-4,50,75,76,60,33,10,-3,-6,37,58,63,51,29,7,-7,-11,15,27,30,22,7,-8,-17,-19,-7,-9,-11,-15,-22,-28,-30,-28,-22,-34,-40,-43,-42,-41,-37,-31,-27,-41,-49,-49,-45,-38,-32,-25,-22,-34,-37,-33,-25,-17,-12,-10,-12,-18,-15,-5,7,15,17,13,-3,-2,6,21,36,45,43,35,1,5,16,32,49,59,59,48,0,2,10,24,41,53,55,48,-4,-6,-5,3,15,28,36,35,-7,-13,-19,-21,-16,-6,5,11,-5,-13,-24,-34,-39,-35,-26,-15,1,-3,-15,-31,-45,-51,-46,-36,12,14,6,-11,-32,-46,-51,-45,23,35,33,20,-2,-24,-38,-41,32,51,59,52,33,9,-12,-24,37,61,74,74,60,39,15,-2 },
{ 27,37,37,31,22,12,4,-2,36,50,52,44,30,17,4,-4,40,56,58,48,32,15,1,-8,40,56,57,46,28,10,-5,-14,35,50,50,37,19,0,-14,-22,27,38,36,23,5,-12,-24,-30,17,23,18,6,-10,-25,-35,-39,7,7,1,-11,-26,-38,-45,-46,-1,-6,-14,-25,-37,-46,-51,-49,-5,-12,-20,-29,-38,-46,-49,-47,-5,-11,-17,-23,-29,-34,-38,-38,-4,-8,-9,-8,-10,-14,-19,-22,-5,-6,0,8,14,13,7,-1,-8,-9,2,19,34,39,33,22,-14,-17,-6,17,42,55,53,42,-20,-30,-22,1,32,56,62,55,-23,-38,-40,-21,10,40,58,58,-17,-36,-46,-40,-16,15,38,48,-3,-18,-35,-42,-34,-12,13,29,16,9,-9,-29,-37,-29,-10,9,36,40,25,-2,-26,-34,-26,-9,48,64,53,26,-7,-29,-32,-22,51,72,69,44,10,-19,-32,-28,42,63,64,46,15,-14,-30,-31,25,38,42,30,9,-14,-29,-30,3,7,9,5,-5,-17,-25,-25,-17,-24,-24,-22,-20,-19,-17,-14,-30,-45,-47,-40,-28,-16,-6,1,-34,-51,-56,-45,-27,-6,11,21,-28,-45,-47,-36,-13,12,32,42,-17,-28,-28,-15,8,34,54,63,-4,-8,-5,8,29,53,70,77 },
{ -5,-4,0,3,3,0,-4,-7,-5,-3,3,7,7,2,-5,-11,-7,-3,5,11,12,5,-5,-14,-9,-4,6,15,16,8,-5,-17,-13,-8,6,17,20,11,-5,-20,-18,-13,3,18,22,13,-5,-22,-24,-21,-2,16,23,14,-5,-24,-31,-29,-8,14,23,15,-5,-27,-39,-39,-15,11,24,17,-5,-28,-45,-46,-20,11,26,20,-4,-30,-50,-51,-22,12,31,24,-1,-30,-52,-54,-22,17,37,31,2,-30,-53,-53,-18,24,47,38,6,-31,-52,-52,-14,31,55,45,8,-33,-52,-49,-10,36,60,47,7,-38,-52,-49,-9,38,60,46,2,-46,-53,-49,-9,36,58,40,-7,-56,-52,-50,-11,34,52,33,-17,-68,-50,-49,-11,31,49,27,-25,-77,-48,-46,-10,32,48,25,-29,-83,-46,-44,-7,34,53,29,-26,-84,-45,-43,-7,37,57,37,-19,-78,-45,-44,-8,36,60,44,-8,-68,-45,-46,-14,31,58,50,2,-56,-45,-49,-21,21,52,48,9,-46,-43,-50,-27,11,41,43,10,-38,-39,-46,-29,2,30,33,8,-34,-31,-39,-26,-1,22,26,4,-32,-21,-26,-17,1,18,20,2,-30,-10,-13,-6,7,18,18,0,-28,-1,0,6,14,20,17,0,-25,5,8,13,20,22,17,1,-22 },
{ -23,-27,-21,-9,5,16,23,23,-31,-38,-30,-13,8,25,34,36,-36,-45,-37,-17,9,30,43,45,-37,-49,-41,-20,8,32,47,51,-35,-47,-42,-21,6,31,47,53,-28,-39,-36,-20,4,27,43,50,-16,-25,-26,-16,1,20,35,42,-1,-5,-10,-9,-1,12,24,32,16,17,10,2,-2,3,11,18,29,37,29,12,-2,-8,-5,1,38,51,44,21,-4,-19,-22,-17,37,56,51,26,-6,-30,-38,-35,28,45,47,24,-10,-38,-52,-50,9,23,28,16,-12,-40,-55,-57,-15,-8,3,5,-9,-30,-47,-53,-36,-37,-20,-3,0,-11,-27,-39,-51,-57,-37,-6,16,16,1,-16,-54,-64,-40,-1,32,43,30,9,-48,-56,-35,5,44,59,50,28,-34,-42,-25,8,42,61,55,36,-17,-22,-13,7,30,42,41,26,-1,0,1,6,11,13,10,3,14,19,16,7,-6,-17,-25,-28,23,33,30,13,-14,-39,-53,-55,24,37,39,22,-9,-42,-65,-69,16,30,36,28,3,-29,-55,-66,3,13,24,27,17,-6,-30,-45,-13,-11,2,17,23,16,-1,-17,-29,-34,-23,-1,21,30,25,11,-38,-53,-45,-21,10,34,40,33,-42,-60,-58,-36,-2,28,45,44,-38,-58,-59,-42,-12,20,40,46 },
{ 25,34,38,36,31,24,16,9,29,43,48,47,41,33,22,13,27,38,44,44,40,31,21,12,17,25,30,30,28,22,14,7,4,6,8,9,9,7,3,-1,-9,-15,-16,-16,-13,-11,-10,-10,-18,-30,-36,-36,-32,-26,-22,-18,-19,-35,-45,-46,-42,-36,-29,-23,-13,-27,-39,-42,-41,-35,-29,-23,1,-7,-15,-21,-22,-21,-19,-17,15,17,15,11,7,3,-1,-4,23,34,39,40,37,29,19,10,19,31,44,50,52,45,34,22,3,8,19,32,40,42,35,25,-17,-23,-21,-9,6,17,20,17,-27,-45,-53,-48,-32,-15,-3,3,-21,-40,-57,-60,-53,-37,-21,-10,0,-10,-24,-36,-38,-33,-23,-14,24,28,24,13,1,-7,-9,-9,35,54,60,54,39,23,10,1,29,48,62,63,54,37,20,7,6,16,27,34,33,25,14,4,-20,-26,-23,-15,-8,-5,-5,-7,-36,-54,-60,-55,-44,-33,-23,-18,-33,-53,-64,-62,-53,-39,-28,-20,-15,-27,-33,-33,-27,-19,-13,-10,8,10,12,14,18,19,15,8,23,35,45,52,54,51,40,25,24,37,51,59,64,59,47,29,10,16,24,32,36,35,26,15,-13,-19,-21,-20,-18,-16,-16,-18,-34,-52,-64,-71,-72,-69,-62,-54 },
{ -10,-7,0,6,7,1,-7,-12,-13,-9,2,11,12,4,-8,-18,-17,-13,3,16,18,8,-9,-22,-22,-17,2,19,23,11,-9,-26,-29,-24,0,22,28,15,-8,-29,-37,-32,-4,23,32,19,-7,-31,-44,-41,-10,22,35,22,-6,-32,-51,-49,-15,21,37,26,-4,-33,-57,-55,-18,22,41,29,-3,-35,-57,-57,-18,25,44,32,-2,-37,-55,-53,-14,29,49,34,-3,-40,-48,-45,-7,35,52,35,-5,-44,-41,-35,2,40,54,33,-10,-50,-32,-26,7,41,50,27,-17,-58,-25,-18,9,36,42,17,-27,-64,-18,-14,7,28,30,6,-34,-69,-11,-9,4,18,20,-1,-36,-66,-5,-5,1,10,12,-1,-28,-53,3,0,-2,2,6,3,-12,-30,12,8,-3,-7,0,7,6,-3,24,18,-3,-16,-11,6,21,23,36,30,0,-25,-25,-3,27,43,49,43,6,-31,-42,-17,24,54,58,56,13,-35,-55,-34,15,58,65,65,22,-34,-65,-47,5,57,65,70,27,-29,-64,-53,-1,55,60,66,30,-23,-59,-50,-2,53,48,56,27,-18,-50,-45,1,54,35,40,18,-17,-43,-35,5,56,20,22,6,-20,-36,-27,11,57,7,6,-6,-23,-32,-19,16,57,-3,-5,-14,-24,-26,-13,18,53 },
{ 39,52,59,56,50,40,28,17,42,59,66,66,59,48,34,21,31,43,49,49,45,37,26,16,11,14,15,15,14,12,8,3,-9,-17,-22,-23,-21,-17,-14,-12,-21,-37,-48,-51,-47,-40,-32,-25,-20,-38,-53,-58,-56,-48,-39,-30,-7,-21,-35,-42,-43,-40,-33,-27,11,6,-3,-9,-14,-15,-15,-14,23,29,29,27,23,18,11,5,22,33,42,48,50,45,35,24,7,14,26,40,50,54,47,35,-13,-17,-11,4,23,36,40,33,-24,-39,-44,-38,-19,1,15,19,-16,-34,-50,-56,-49,-32,-14,-2,7,-2,-19,-36,-45,-42,-31,-19,31,37,31,12,-10,-24,-29,-24,35,54,60,52,30,6,-11,-18,16,32,48,54,47,28,7,-7,-17,-14,1,20,30,27,14,0,-43,-55,-49,-27,-4,8,8,1,-44,-65,-66,-52,-28,-9,-1,-1,-23,-37,-42,-35,-23,-10,-3,-2,8,9,7,7,7,6,4,0,31,44,49,45,36,23,10,0,32,48,55,52,39,22,6,-5,15,24,29,26,16,3,-9,-15,-8,-10,-11,-13,-19,-24,-27,-26,-24,-33,-39,-40,-41,-38,-34,-27,-23,-34,-38,-38,-33,-26,-18,-12,-8,-11,-10,-5,3,12,18,19,12,18,26,36,47,55,56,51 },
{ 21,22,11,-6,-22,-32,-34,-29,29,32,17,-6,-29,-44,-48,-42,36,40,25,-1,-28,-46,-53,-48,38,46,33,6,-21,-41,-49,-47,37,46,37,14,-11,-29,-39,-39,27,36,32,18,0,-15,-24,-26,10,15,16,13,7,1,-5,-8,-11,-12,-7,1,9,13,13,10,-29,-39,-34,-16,5,21,29,28,-36,-54,-52,-32,-2,25,39,42,-29,-49,-55,-38,-8,23,44,51,-7,-24,-36,-32,-9,20,43,53,23,15,-3,-14,-8,13,36,48,48,52,32,7,-6,1,19,34,58,70,53,19,-11,-18,-7,10,46,62,49,15,-21,-39,-33,-16,20,29,24,0,-31,-50,-51,-35,-11,-10,-8,-14,-29,-43,-45,-37,-36,-41,-31,-17,-10,-13,-18,-19,-46,-56,-38,-7,18,27,20,9,-45,-52,-33,6,43,58,52,33,-31,-37,-19,14,47,64,57,40,-13,-16,-5,14,33,40,35,22,4,4,6,8,7,2,-6,-11,16,20,17,6,-12,-30,-44,-46,20,28,25,12,-13,-42,-62,-67,16,24,29,21,0,-30,-55,-66,3,11,21,26,17,-4,-29,-46,-14,-12,2,19,29,21,3,-16,-31,-39,-25,0,25,36,29,13,-44,-60,-52,-24,10,35,42,33,-47,-68,-65,-42,-6,25,41,41 },
{ -24,-20,-3,11,16,9,-4,-14,-31,-26,-3,18,25,15,-5,-21,-38,-32,-4,23,32,20,-6,-27,-43,-37,-5,26,37,23,-7,-33,-49,-42,-7,28,40,24,-9,-39,-51,-46,-8,30,42,25,-11,-44,-52,-46,-8,30,44,25,-13,-48,-50,-45,-7,32,45,26,-14,-51,-46,-41,-5,32,46,26,-15,-53,-39,-35,-3,32,44,25,-15,-53,-28,-25,0,29,41,23,-15,-51,-14,-13,3,24,32,18,-15,-47,2,1,5,14,20,10,-15,-41,17,14,5,2,4,1,-13,-31,33,27,4,-13,-14,-8,-8,-16,46,39,4,-26,-30,-15,0,4,57,48,4,-36,-44,-19,13,27,58,52,4,-42,-50,-19,25,50,54,47,3,-42,-53,-18,34,67,44,39,0,-42,-51,-17,38,76,31,27,-3,-37,-47,-17,36,73,16,16,-3,-27,-37,-17,26,61,0,3,-1,-12,-21,-12,13,38,-15,-10,1,5,0,-5,1,12,-31,-24,0,20,21,7,-9,-14,-44,-39,-4,29,37,18,-13,-35,-54,-50,-12,31,48,28,-15,-49,-57,-58,-19,29,52,34,-14,-59,-56,-58,-23,26,54,37,-13,-63,-46,-51,-20,24,50,37,-11,-62,-32,-36,-13,23,45,34,-9,-57,-17,-20,-4,22,38,30,-6,-48 },
{ 27,34,30,14,-8,-28,-42,-44,31,42,38,20,-8,-36,-56,-62,26,37,38,23,-4,-34,-59,-68,14,24,30,24,3,-25,-51,-64,-5,2,14,20,11,-10,-35,-52,-26,-25,-7,12,18,8,-14,-32,-44,-49,-29,1,23,25,10,-9,-51,-64,-46,-9,24,39,31,14,-43,-60,-50,-16,23,45,46,32,-18,-34,-35,-14,18,43,49,41,19,8,-6,-6,8,27,38,36,51,51,26,2,-5,3,15,21,68,74,46,4,-24,-25,-13,0,57,66,38,-4,-39,-49,-37,-19,26,29,13,-17,-44,-52,-44,-27,-11,-13,-16,-23,-31,-34,-28,-17,-37,-42,-32,-15,-1,5,7,7,-39,-47,-28,2,29,42,40,31,-26,-29,-13,16,44,56,54,41,-6,-7,2,17,32,40,37,30,11,12,10,6,3,0,-2,-2,19,23,14,-3,-22,-37,-42,-37,19,24,17,-2,-28,-49,-60,-55,11,18,17,8,-10,-31,-46,-49,-3,2,10,16,15,5,-10,-20,-16,-18,-7,10,27,34,28,16,-22,-30,-27,-9,19,41,50,43,-15,-29,-36,-29,-5,25,45,50,4,-7,-26,-36,-28,-4,23,37,30,28,5,-22,-35,-28,-6,13,53,62,44,8,-25,-37,-29,-12,61,81,69,35,-4,-31,-37,-28 },
{ 38,49,54,53,47,37,24,13,35,48,54,55,50,41,27,14,17,22,27,30,30,26,16,6,-6,-13,-13,-8,-3,0,-2,-7,-24,-40,-47,-42,-33,-24,-20,-19,-26,-47,-57,-55,-45,-35,-29,-25,-11,-27,-38,-39,-34,-27,-23,-22,13,7,0,-4,-3,-2,-6,-10,30,35,35,34,33,28,17,4,27,37,43,49,50,46,32,16,7,10,17,28,39,41,32,18,-16,-26,-27,-17,1,14,15,8,-21,-41,-56,-53,-38,-19,-9,-8,-2,-20,-40,-50,-46,-35,-24,-19,27,25,10,-5,-16,-19,-20,-20,40,53,52,43,29,13,-1,-11,24,37,48,53,50,36,17,-1,-12,-14,-4,12,26,28,17,2,-38,-57,-60,-43,-18,-1,4,-2,-31,-56,-69,-63,-41,-19,-8,-8,4,-8,-24,-29,-22,-11,-5,-6,40,47,38,28,20,15,9,0,51,66,67,56,44,30,16,3,30,40,39,33,24,16,7,-2,-5,-12,-19,-23,-22,-17,-13,-12,-27,-46,-58,-60,-50,-35,-22,-15,-25,-42,-53,-52,-40,-22,-9,-4,-4,-10,-13,-8,4,17,22,17,19,25,30,37,47,50,46,31,25,35,41,47,50,49,39,24,10,11,11,10,8,3,-4,-12,-16,-25,-35,-45,-52,-57,-59,-57 },
{ -36,-31,-8,14,23,16,0,-13,-46,-40,-9,22,34,24,0,-20,-53,-46,-10,27,42,29,-1,-27,-56,-50,-10,30,45,30,-4,-33,-55,-48,-9,31,46,28,-8,-40,-47,-42,-5,32,43,24,-14,-47,-35,-30,1,32,40,19,-19,-51,-20,-15,8,31,35,14,-23,-54,-4,0,14,27,27,7,-26,-53,9,11,14,18,16,1,-25,-47,20,17,7,3,1,-5,-20,-35,28,21,-2,-17,-16,-10,-10,-17,37,24,-10,-34,-32,-12,4,8,42,30,-12,-44,-39,-8,23,35,47,35,-7,-42,-40,-2,41,60,43,38,-1,-37,-37,1,49,75,31,30,4,-28,-36,-4,44,73,11,16,3,-19,-30,-14,22,53,-15,-6,2,-4,-18,-20,-4,19,-38,-28,1,17,7,-14,-23,-15,-58,-45,1,38,39,6,-30,-40,-63,-55,-1,50,60,27,-24,-52,-58,-52,-7,45,66,37,-16,-52,-38,-41,-11,29,49,32,-11,-47,-11,-16,-10,8,22,14,-12,-37,19,14,2,-5,-4,-5,-13,-24,47,44,17,-11,-25,-21,-11,-6,61,63,28,-14,-37,-30,-5,15,62,63,28,-19,-45,-32,5,39,46,48,15,-28,-48,-30,17,60,25,23,-3,-35,-48,-23,28,73,5,0,-18,-39,-42,-17,32,76 },
{ 22,30,30,21,2,-19,-36,-42,21,31,34,25,4,-23,-46,-56,11,20,26,23,7,-20,-46,-59,-5,0,11,17,10,-11,-36,-52,-22,-22,-8,8,13,2,-20,-37,-32,-39,-25,-1,17,17,2,-16,-31,-43,-34,-8,19,30,22,6,-17,-33,-32,-12,18,37,38,25,10,-6,-20,-12,12,35,43,35,39,27,1,-11,0,20,33,33,59,53,19,-12,-19,-5,11,18,58,59,24,-15,-35,-31,-15,-1,37,38,14,-19,-43,-44,-32,-17,1,1,-6,-18,-30,-33,-27,-19,-33,-36,-24,-8,2,2,-2,-5,-47,-54,-29,8,36,41,29,13,-38,-43,-20,20,54,59,44,21,-10,-14,-3,19,39,41,24,6,21,19,13,8,3,-5,-17,-25,37,40,21,-2,-25,-43,-52,-52,35,36,19,-6,-30,-46,-56,-54,15,13,3,-7,-13,-15,-19,-24,-7,-14,-18,-11,8,26,33,24,-15,-29,-33,-20,13,49,67,61,-6,-19,-32,-27,-1,36,65,66,15,9,-9,-22,-19,0,24,36,32,35,23,-2,-26,-33,-27,-12,28,42,42,23,-11,-44,-58,-53,2,17,36,37,14,-24,-57,-65,-37,-31,1,31,36,13,-23,-47,-71,-78,-45,6,45,47,22,-7,-82,-101,-73,-18,37,63,54,30 },
{ -56,-55,-33,-7,5,1,-12,-22,-63,-62,-32,1,17,9,-12,-30,-57,-51,-17,19,34,21,-9,-33,-42,-32,4,38,50,32,-4,-34,-26,-13,20,50,58,36,-2,-34,-12,-1,23,46,49,29,-6,-37,-1,4,13,25,27,11,-17,-41,9,6,-1,-3,-4,-12,-28,-43,24,13,-10,-26,-30,-29,-33,-39,39,27,-9,-35,-39,-31,-23,-22,50,38,-1,-31,-33,-14,3,8,49,41,3,-25,-20,9,35,43,37,28,-5,-27,-15,24,61,71,17,7,-20,-38,-22,20,61,79,-1,-8,-25,-39,-33,0,38,59,-10,-8,-9,-19,-26,-19,2,21,-18,-3,18,22,4,-19,-28,-21,-28,-10,29,53,38,-2,-37,-49,-41,-29,12,51,56,17,-31,-57,-42,-47,-18,23,45,26,-17,-49,-22,-36,-35,-10,19,21,-3,-30,19,3,-21,-26,-7,10,8,-8,63,51,10,-23,-24,-2,15,13,81,79,31,-18,-35,-14,16,29,66,64,24,-23,-44,-23,15,37,24,22,-3,-34,-44,-24,13,37,-18,-23,-29,-34,-31,-11,15,31,-42,-48,-34,-16,1,14,21,21,-47,-45,-18,16,37,37,22,3,-35,-30,3,40,56,42,6,-25,-22,-15,12,40,48,21,-25,-62,-13,-9,8,24,21,-10,-56,-92 },
{ -4,-13,-30,-46,-56,-50,-35,-18,6,-1,-20,-43,-56,-54,-37,-18,22,23,7,-16,-33,-33,-20,-3,32,43,35,16,0,-3,6,17,28,43,46,35,24,21,28,35,6,19,27,27,24,26,35,43,-24,-20,-10,-3,3,12,26,38,-43,-50,-43,-35,-25,-11,7,24,-39,-47,-47,-43,-39,-29,-11,7,-13,-12,-9,-15,-24,-28,-20,-6,14,32,45,36,13,-9,-17,-12,15,45,70,72,46,13,-9,-13,-15,8,43,59,47,18,-7,-15,-50,-48,-20,6,11,1,-13,-17,-55,-67,-60,-42,-28,-22,-20,-15,-15,-27,-35,-37,-33,-25,-14,-5,40,44,33,12,-3,-4,6,15,57,77,68,44,20,14,21,30,27,40,38,21,5,4,18,31,-22,-25,-26,-31,-34,-25,-2,20,-49,-59,-58,-53,-51,-39,-17,8,-34,-36,-24,-15,-15,-17,-10,4,-4,12,35,48,43,24,9,7,10,31,59,75,66,41,15,4,-5,7,27,39,35,15,-6,-12,-25,-31,-26,-20,-20,-28,-34,-30,-27,-40,-48,-50,-50,-48,-42,-30,-3,-10,-19,-26,-27,-23,-15,-6,29,34,30,23,20,21,26,28,37,50,48,42,37,39,43,45,16,20,15,5,1,6,18,28,-19,-28,-42,-55,-59,-50,-30,-9 },
{ -28,-20,-6,3,4,7,17,26,-25,-12,6,11,8,8,20,33,-19,-2,18,19,7,2,13,31,-16,6,26,22,1,-11,0,21,-16,9,31,22,-7,-25,-16,8,-22,5,29,20,-13,-37,-30,-3,-32,-4,25,19,-15,-41,-36,-8,-43,-15,23,23,-10,-38,-34,-7,-54,-23,22,29,1,-26,-24,3,-56,-26,23,36,11,-14,-9,18,-53,-22,26,37,14,-7,2,33,-44,-14,28,32,3,-14,4,43,-35,-3,32,22,-18,-34,-6,45,-31,5,38,17,-35,-58,-23,40,-38,6,48,26,-38,-68,-34,37,-55,-5,53,43,-21,-62,-31,40,-80,-28,49,56,0,-44,-21,50,-94,-49,36,58,9,-35,-12,57,-92,-49,30,51,4,-39,-16,56,-71,-31,38,49,-6,-54,-30,46,-47,-5,54,51,-13,-65,-45,35,-35,6,58,53,-13,-67,-46,32,-38,-2,47,44,-11,-55,-34,40,-47,-20,26,32,-9,-43,-16,53,-52,-30,11,20,-8,-31,-4,62,-44,-25,12,20,-6,-28,-4,59,-31,-11,23,28,-2,-30,-14,42,-21,0,31,35,3,-34,-28,20,-21,-2,29,36,6,-32,-38,1,-28,-14,16,30,9,-24,-33,-6,-35,-27,0,19,13,-9,-18,2,-35,-32,-10,10,14,5,1,15 },
{ -8,-22,-33,-28,-4,27,51,56,-4,-22,-38,-37,-11,28,60,71,12,-4,-29,-37,-20,16,52,67,32,21,-8,-29,-25,0,31,49,48,44,15,-15,-27,-17,6,23,46,53,30,-1,-23,-28,-17,-4,24,35,29,9,-14,-28,-31,-26,-14,-2,11,13,0,-19,-34,-39,-53,-45,-15,12,18,0,-24,-40,-65,-70,-33,12,34,25,-4,-31,-46,-56,-32,13,47,46,17,-15,3,-12,-11,14,44,51,28,-5,55,39,10,4,21,32,21,-5,80,66,12,-22,-20,-5,-2,-15,74,54,-6,-50,-55,-33,-20,-24,42,23,-26,-57,-52,-27,-12,-17,8,-10,-36,-37,-12,16,22,5,-7,-23,-28,-7,33,61,54,23,-4,-16,-18,9,51,70,55,17,10,-3,-13,0,28,39,18,-17,26,12,-11,-16,-7,-8,-31,-60,35,22,-6,-20,-19,-25,-50,-81,34,22,-3,-11,-1,1,-24,-61,26,12,-10,-8,20,42,26,-15,18,-1,-27,-22,18,58,63,26,19,-3,-36,-44,-10,37,56,37,27,10,-26,-48,-37,-3,21,15,34,30,2,-25,-34,-25,-14,-16,28,34,27,11,-5,-15,-26,-35,0,9,21,30,27,13,-11,-34,-39,-38,-16,16,38,36,11,-20,-66,-77,-56,-16,22,37,23,-5 },
{ 60,57,28,-7,-28,-25,-8,8,65,64,28,-14,-38,-33,-9,14,53,49,17,-22,-42,-33,-4,22,26,22,-1,-28,-39,-26,5,32,-3,-7,-17,-28,-30,-13,17,42,-26,-27,-22,-19,-13,2,26,46,-39,-34,-14,0,7,14,28,42,-40,-30,1,21,24,21,22,29,-38,-20,17,39,35,16,4,4,-30,-12,26,46,32,1,-22,-27,-24,-9,24,38,19,-19,-48,-54,-17,-8,13,23,5,-32,-60,-66,-8,-6,3,9,0,-25,-49,-55,5,0,-4,-2,3,0,-10,-18,22,11,-7,-12,2,22,34,30,33,23,-7,-28,-15,23,57,66,34,27,-5,-38,-42,-3,48,71,16,21,4,-28,-47,-32,11,46,-16,0,16,7,-21,-35,-23,4,-49,-28,19,44,27,-12,-34,-29,-70,-52,8,58,63,19,-27,-42,-55,-53,-8,41,56,31,-13,-38,-13,-22,-15,5,19,13,-6,-21,40,28,-2,-23,-26,-16,-5,-2,76,66,17,-33,-53,-33,1,21,68,68,23,-29,-51,-30,14,43,29,31,10,-20,-33,-11,29,54,-21,-20,-15,-13,-9,7,33,49,-56,-54,-30,-3,13,18,22,22,-57,-56,-22,16,30,19,-4,-19,-36,-28,5,38,44,13,-32,-61,-8,3,30,53,47,7,-49,-87 },
{ -15,-27,-42,-52,-54,-46,-30,-16,-5,-14,-30,-43,-48,-42,-26,-11,15,16,5,-8,-15,-13,-4,5,28,40,37,29,21,19,22,24,22,37,44,42,38,35,36,34,-3,6,16,21,22,24,27,28,-32,-33,-26,-18,-13,-7,1,8,-39,-50,-48,-44,-40,-34,-24,-14,-18,-25,-28,-30,-35,-37,-34,-26,16,23,23,17,3,-11,-20,-21,32,48,58,56,45,25,6,-6,11,23,34,45,47,38,22,6,-21,-29,-31,-17,3,15,16,8,-22,-47,-65,-66,-43,-18,-3,1,15,-1,-29,-46,-43,-25,-10,-4,50,57,39,18,5,2,2,0,42,56,57,49,41,30,17,4,-7,-10,-6,7,19,23,12,-2,-42,-64,-72,-53,-24,-5,-6,-15,-19,-44,-60,-52,-26,-8,-10,-21,36,30,13,8,17,20,7,-14,62,70,56,45,43,40,20,-6,36,36,22,12,16,20,11,-8,-10,-27,-45,-50,-37,-18,-10,-16,-28,-48,-67,-67,-50,-26,-13,-14,-2,-9,-15,-14,-2,10,12,2,28,39,45,49,53,49,36,15,26,39,46,50,47,40,24,6,-4,-5,-7,-8,-11,-13,-18,-22,-25,-38,-47,-54,-53,-50,-43,-37,-12,-19,-26,-29,-28,-22,-17,-13,25,32,37,42,45,47,44,35 },
{ -28,-11,9,13,3,-3,5,17,-28,-7,19,21,4,-6,3,21,-30,-4,26,25,1,-14,-3,19,-33,-4,29,25,-6,-24,-12,15,-40,-8,30,24,-12,-34,-22,11,-47,-13,30,25,-14,-40,-26,10,-54,-16,32,29,-12,-38,-24,15,-57,-18,35,35,-6,-34,-17,24,-60,-17,39,38,-4,-30,-10,36,-58,-15,41,38,-8,-34,-7,45,-53,-10,43,33,-19,-43,-10,50,-47,-5,45,30,-29,-56,-17,51,-47,-5,46,30,-34,-63,-22,51,-48,-8,44,35,-26,-60,-20,53,-52,-17,37,38,-12,-45,-14,53,-46,-23,24,35,-1,-32,-7,51,-27,-18,12,24,1,-23,-7,41,3,-2,4,10,-2,-20,-11,24,33,16,-3,-5,-5,-14,-14,6,50,23,-15,-18,-2,1,-7,-7,56,18,-32,-31,6,24,9,-13,55,11,-47,-43,12,45,23,-19,57,10,-54,-48,15,56,30,-29,62,17,-49,-49,14,58,26,-44,68,26,-40,-44,13,54,19,-60,66,30,-34,-43,10,51,14,-69,57,24,-35,-42,8,49,17,-66,45,16,-37,-45,5,51,25,-53,39,12,-36,-43,2,49,35,-37,35,15,-26,-38,-1,43,35,-24,33,19,-14,-29,-5,29,26,-22,27,20,-5,-20,-9,14,11,-25 },
{ -7,7,23,23,2,-30,-57,-63,-12,4,26,33,12,-25,-59,-73,-23,-9,18,33,24,-8,-42,-59,-32,-25,2,25,29,13,-13,-31,-33,-34,-16,9,26,26,15,2,-16,-26,-23,-9,11,26,31,27,15,3,-14,-20,-10,12,31,39,46,39,5,-24,-30,-10,20,40,59,58,23,-21,-45,-32,2,31,32,45,25,-14,-44,-42,-12,19,-22,-4,11,-2,-25,-32,-15,10,-71,-54,-8,16,8,-6,-6,8,-88,-69,-9,37,42,21,6,7,-51,-40,11,50,50,26,4,1,5,14,31,38,23,-2,-16,-13,42,47,31,5,-24,-42,-39,-23,43,38,9,-28,-55,-56,-38,-13,13,6,-15,-35,-37,-23,2,23,-17,-23,-24,-15,6,30,52,60,-24,-29,-17,6,32,53,63,64,-11,-12,-2,13,23,22,19,19,8,9,11,11,-2,-27,-46,-46,18,17,15,10,-8,-41,-75,-82,13,9,4,9,11,-8,-41,-64,5,-8,-18,-4,26,40,25,-4,6,-13,-35,-29,11,53,65,45,22,4,-30,-44,-23,22,54,52,37,32,-1,-34,-42,-21,9,22,34,41,30,-1,-30,-38,-30,-18,0,15,30,29,8,-18,-34,-39,-50,-41,-5,29,40,21,-8,-29,-83,-86,-46,8,45,47,22,-6 },
{ -67,-63,-30,15,46,46,24,-2,-66,-67,-31,18,51,51,22,-10,-40,-42,-19,17,42,37,7,-25,3,-2,1,14,24,15,-14,-42,45,39,19,7,4,-6,-31,-54,66,58,22,-5,-13,-18,-34,-51,62,48,5,-24,-26,-17,-20,-31,37,19,-23,-44,-31,-5,7,0,13,-9,-45,-54,-27,15,40,36,2,-16,-40,-44,-12,34,61,59,2,-2,-12,-14,7,39,60,57,1,12,18,16,17,24,29,26,-15,5,29,30,12,-8,-21,-24,-36,-18,15,27,3,-33,-60,-66,-44,-33,-1,19,7,-27,-62,-73,-21,-21,-4,15,20,6,-20,-39,17,12,2,5,20,32,33,18,38,34,4,-21,-14,20,50,56,31,30,1,-40,-55,-22,27,54,-1,11,5,-25,-54,-48,-8,27,-38,-16,18,21,-6,-28,-22,1,-58,-38,18,58,47,12,-12,-13,-53,-43,2,49,61,31,-4,-18,-16,-25,-15,9,22,13,-9,-21,38,19,-13,-29,-27,-20,-18,-17,70,56,6,-35,-43,-28,-8,0,67,58,17,-21,-28,-6,19,26,23,19,-1,-16,-8,19,40,42,-26,-31,-32,-21,1,25,37,31,-43,-50,-38,-17,5,16,10,-4,-24,-22,-6,13,22,8,-22,-47,11,21,37,49,41,9,-38,-73 },
{ 41,51,59,61,59,50,38,24,20,25,32,37,38,34,26,16,-16,-24,-23,-17,-11,-7,-6,-7,-34,-52,-56,-53,-47,-39,-32,-26,-19,-33,-41,-42,-42,-38,-34,-28,15,15,12,7,1,-5,-8,-10,32,46,55,53,45,33,23,14,12,29,46,53,49,43,35,26,-29,-24,-7,3,9,13,18,20,-44,-53,-46,-43,-40,-30,-14,1,-18,-22,-25,-36,-50,-49,-34,-13,19,35,39,22,-9,-27,-24,-9,20,46,70,64,37,11,3,9,-22,-9,18,34,29,19,17,22,-49,-60,-52,-33,-18,-7,7,21,-16,-36,-47,-48,-41,-28,-8,12,46,43,26,8,-8,-14,-8,5,53,64,57,47,30,11,0,2,3,-1,0,13,23,16,2,-5,-37,-63,-68,-44,-10,3,-4,-13,-17,-42,-59,-43,-11,5,-2,-15,39,33,14,11,22,24,8,-11,60,66,54,40,34,26,8,-10,18,21,12,2,-2,-3,-8,-14,-36,-43,-48,-47,-41,-27,-17,-12,-43,-47,-39,-32,-23,-13,-1,5,-13,1,22,31,29,23,24,26,8,31,57,63,46,27,20,25,-6,10,29,28,4,-18,-19,-1,-28,-26,-17,-22,-43,-60,-48,-20,-25,-25,-18,-19,-32,-39,-26,1,6,14,26,33,31,27,34,48 },
{ 49,27,-1,-9,4,12,3,-11,48,20,-17,-23,-2,14,4,-17,43,8,-35,-36,-6,16,7,-19,39,0,-44,-41,-3,24,13,-19,41,0,-45,-37,7,35,21,-17,46,6,-37,-28,19,47,26,-17,49,11,-30,-19,27,50,26,-23,45,10,-29,-18,26,47,17,-34,38,4,-34,-23,19,35,4,-48,30,0,-35,-27,11,27,-7,-58,24,1,-27,-21,12,25,-8,-59,18,5,-14,-10,18,31,1,-48,6,4,-4,-2,20,33,13,-28,-10,-1,2,-3,5,21,16,-9,-30,-6,12,-3,-18,-7,9,6,-48,-7,32,12,-30,-34,-4,19,-68,-9,59,41,-26,-50,-14,32,-79,-19,65,62,-15,-56,-16,45,-83,-30,54,57,-13,-55,-16,55,-64,-30,37,43,-18,-58,-16,59,-30,-11,29,28,-22,-53,-17,57,5,9,23,18,-17,-42,-12,49,27,15,8,4,-8,-20,-4,35,33,7,-17,-13,0,3,4,16,38,-1,-41,-30,8,24,10,-8,47,3,-46,-37,16,42,13,-31,62,17,-40,-34,23,52,15,-50,69,28,-35,-37,20,56,15,-62,66,26,-38,-46,10,51,16,-64,54,20,-40,-53,-1,46,20,-56,43,16,-35,-46,-3,43,29,-37,33,16,-20,-31,2,42,34,-17 },
{ -6,-17,-30,-31,-10,27,63,75,5,-5,-23,-33,-19,18,60,80,21,18,0,-21,-25,-4,31,54,26,35,23,-3,-25,-26,-8,13,13,29,34,15,-15,-36,-38,-24,-20,0,23,26,2,-28,-44,-43,-52,-38,-1,26,23,-3,-29,-40,-57,-57,-21,20,38,24,-3,-23,-26,-36,-24,10,39,40,19,-3,32,14,-8,-5,18,31,24,8,80,59,8,-22,-17,2,12,7,76,63,6,-39,-46,-26,-6,-1,26,17,-15,-42,-45,-26,-9,-3,-34,-35,-28,-18,-4,8,11,5,-59,-50,-15,22,47,47,31,10,-34,-23,10,42,55,46,20,-4,10,18,24,21,11,-5,-24,-35,29,34,16,-13,-37,-48,-50,-49,17,18,0,-27,-44,-37,-24,-17,-8,-6,-7,-14,-9,14,37,40,-24,-18,-5,4,17,43,71,72,-19,-12,3,8,6,14,32,44,-6,4,15,9,-17,-39,-40,-24,2,12,24,20,-10,-51,-73,-67,-2,1,13,25,21,-4,-36,-47,-7,-19,-17,3,32,44,31,9,4,-17,-39,-33,4,45,63,50,31,14,-24,-49,-36,3,37,43,50,47,17,-24,-46,-35,-11,3,25,39,36,18,-10,-29,-33,-31,-37,-23,9,33,34,12,-15,-33,-91,-88,-42,15,49,46,16,-15 },
{ 61,62,34,-8,-39,-38,-13,11,49,54,30,-12,-44,-41,-10,21,8,15,9,-15,-36,-30,2,33,-38,-29,-11,-10,-18,-11,15,42,-68,-53,-15,6,6,7,23,42,-62,-45,2,29,26,15,17,29,-35,-14,28,47,33,7,-4,3,-5,14,42,48,22,-14,-33,-28,10,19,31,27,-1,-35,-54,-47,10,5,0,-6,-19,-37,-46,-40,12,-8,-28,-30,-21,-12,-7,-5,23,-1,-31,-33,-6,24,42,40,36,17,-15,-21,6,43,68,65,29,23,0,-11,0,24,41,44,1,3,1,-4,-11,-16,-18,-14,-27,-23,-3,11,2,-28,-57,-65,-32,-29,-2,29,38,5,-44,-70,-5,-12,-2,24,46,42,5,-31,29,16,-8,-15,6,33,39,19,41,35,-7,-50,-53,-14,30,44,23,30,10,-37,-70,-46,5,38,-24,1,26,17,-17,-30,-8,21,-71,-41,22,57,46,10,-6,2,-74,-62,-2,51,57,24,-9,-16,-25,-30,-14,11,20,0,-24,-28,45,32,2,-18,-22,-25,-25,-21,85,70,19,-25,-39,-23,-3,8,60,50,7,-28,-29,0,32,41,-1,-10,-28,-33,-15,21,50,50,-40,-48,-40,-24,1,23,29,19,-36,-31,-10,14,26,14,-15,-39,-3,10,35,55,47,8,-48,-87 },
{ -52,-18,25,32,8,-12,-7,11,-58,-17,37,44,8,-19,-11,15,-61,-15,42,43,-1,-31,-18,17,-57,-12,42,36,-14,-45,-25,19,-51,-8,41,28,-26,-54,-26,27,-41,-2,39,24,-29,-53,-18,39,-32,3,39,23,-26,-44,-5,54,-26,3,33,21,-21,-35,6,64,-20,-2,21,13,-20,-29,9,63,-10,-6,6,4,-17,-26,3,50,6,-4,-6,-1,-8,-18,-6,25,25,3,-13,-1,9,-2,-11,-3,45,8,-26,-6,28,23,-9,-27,55,7,-44,-23,35,46,0,-43,62,6,-61,-44,28,55,10,-50,61,14,-55,-54,16,56,16,-53,48,23,-31,-39,9,47,18,-49,10,16,-3,-15,8,34,12,-42,-39,-8,15,8,3,12,4,-28,-72,-27,26,24,-6,-12,-4,-9,-77,-23,43,37,-15,-34,-8,15,-53,-5,53,42,-22,-49,-8,39,-25,9,50,31,-30,-52,-4,55,-9,8,28,14,-31,-47,-1,59,0,-2,1,-3,-21,-27,3,46,9,-7,-17,-9,0,1,7,21,28,0,-25,-10,21,27,7,-13,48,12,-29,-18,27,42,4,-46,65,21,-38,-35,19,46,2,-66,67,25,-43,-51,6,48,10,-65,59,23,-41,-53,-1,48,28,-42,43,19,-29,-43,-1,47,39,-17 },
{ 43,49,53,57,59,53,38,21,15,13,13,21,29,29,19,6,-21,-36,-42,-35,-23,-15,-16,-19,-26,-47,-56,-55,-44,-36,-34,-33,5,-6,-16,-19,-17,-16,-20,-24,34,40,37,34,30,24,12,1,26,38,47,49,49,43,33,20,-16,-12,0,10,17,22,22,19,-46,-53,-48,-40,-34,-22,-8,3,-22,-27,-27,-35,-44,-42,-27,-9,21,34,42,25,-5,-21,-18,-6,20,47,68,63,33,10,3,8,-27,-15,11,25,21,11,12,17,-48,-64,-54,-38,-24,-13,2,15,-3,-20,-33,-36,-33,-24,-7,9,54,57,40,24,7,-4,-2,7,44,50,48,41,33,17,4,1,-20,-32,-32,-15,4,8,-3,-9,-43,-67,-75,-53,-20,-4,-7,-15,8,-1,-11,-8,5,12,3,-9,53,66,63,47,35,24,11,-1,20,33,34,22,6,0,-2,-2,-45,-47,-40,-39,-42,-34,-18,-4,-54,-58,-41,-32,-29,-23,-6,10,-5,9,33,40,31,20,20,26,28,47,63,64,43,22,14,19,11,12,10,3,-13,-25,-23,-10,-16,-33,-48,-54,-54,-51,-39,-23,-6,-21,-35,-32,-19,-6,0,0,24,22,18,26,44,57,48,29,29,28,24,28,41,45,34,11,-5,-14,-29,-37,-36,-34,-38,-46 },
{ -12,-2,20,36,28,-11,-61,-86,-17,-12,10,36,37,2,-53,-88,-16,-22,-12,16,35,21,-20,-56,2,-19,-30,-12,20,34,18,-10,34,5,-33,-36,-4,32,43,29,58,35,-18,-46,-27,14,42,45,59,49,3,-37,-41,-10,23,36,19,31,15,-17,-36,-26,-2,16,-45,-16,16,12,-10,-22,-18,-5,-85,-54,10,40,24,-4,-19,-16,-77,-50,13,51,44,11,-12,-16,-18,-8,20,38,28,5,-11,-12,45,38,19,-1,-17,-20,-14,-3,57,45,0,-38,-49,-35,-7,14,22,9,-21,-41,-39,-13,18,36,-21,-27,-23,-10,9,27,39,44,-35,-32,-6,28,48,39,24,15,-8,-9,9,32,33,7,-26,-37,23,17,9,6,-4,-30,-62,-69,30,20,-3,-16,-19,-23,-36,-44,14,4,-15,-22,-7,19,33,26,-8,-9,-13,-15,2,36,66,71,-21,-8,5,1,-8,0,27,48,-25,-2,27,25,-11,-45,-42,-15,-27,-5,33,42,10,-42,-70,-51,-21,-16,9,33,29,1,-25,-28,1,-15,-24,-9,17,33,34,27,38,12,-31,-48,-24,18,49,55,63,43,-7,-47,-50,-17,19,33,38,40,16,-10,-24,-23,-16,-12,-28,-16,7,27,31,11,-21,-42,-85,-77,-27,32,63,47,-2,-44 },
{ 37,-5,-50,-46,-6,22,14,-12,54,6,-50,-49,0,33,19,-17,69,22,-36,-35,14,45,22,-25,67,27,-27,-23,25,50,19,-35,45,12,-30,-20,26,45,10,-48,14,-11,-36,-23,18,35,-1,-57,-9,-21,-31,-18,14,26,-5,-55,-17,-12,-8,-2,15,23,-1,-42,-18,6,22,16,12,15,5,-20,-26,13,39,20,-6,-6,5,3,-45,3,41,11,-35,-35,-1,25,-60,-8,40,10,-52,-58,-5,45,-61,-12,48,25,-44,-58,-2,62,-41,-8,46,43,-16,-41,6,68,-12,-6,23,32,2,-23,3,51,23,-4,-15,-1,1,-13,-10,17,60,7,-46,-32,5,5,-16,-19,70,18,-47,-37,22,38,-2,-37,52,13,-39,-26,38,62,16,-40,13,-3,-29,-21,28,54,16,-40,-23,-13,-9,-12,1,14,-2,-38,-41,-6,26,15,-12,-20,-16,-22,-50,1,55,40,-14,-35,-12,12,-55,-6,54,44,-18,-42,0,49,-51,-17,33,25,-29,-48,3,69,-25,-14,13,11,-27,-46,-1,61,13,5,5,7,-8,-23,-6,31,41,17,-7,1,15,9,-5,-5,55,13,-34,-22,24,36,1,-36,55,5,-56,-50,16,51,9,-53,58,11,-53,-53,11,54,19,-53,57,26,-28,-36,13,53,25,-42 },
{ 78,72,38,-7,-39,-42,-24,-2,50,48,21,-14,-38,-38,-17,8,-7,-10,-12,-18,-21,-13,7,25,-52,-55,-33,-10,6,17,29,39,-58,-56,-24,12,31,34,34,34,-21,-19,8,34,38,26,11,6,23,25,33,37,23,-5,-29,-34,40,38,27,18,-4,-35,-59,-61,26,11,-7,-14,-21,-37,-53,-54,1,-20,-36,-30,-12,-3,-5,-8,-3,-22,-35,-21,13,41,54,48,11,3,-7,-4,19,50,69,70,15,22,20,5,-5,2,23,38,-8,9,22,10,-28,-54,-47,-21,-36,-22,11,21,-10,-52,-71,-52,-32,-33,-1,33,34,4,-25,-27,10,-8,-13,13,44,48,36,24,48,23,-19,-32,-9,22,38,41,51,34,-10,-47,-55,-33,-4,16,7,13,8,-6,-24,-34,-28,-12,-47,-30,12,43,46,17,-11,-17,-53,-51,-7,41,59,42,8,-9,-5,-16,-16,-4,6,4,-3,-6,53,42,5,-30,-47,-42,-21,-3,62,57,24,-17,-44,-36,-9,15,3,6,5,3,1,8,25,37,-57,-55,-29,6,32,36,34,30,-51,-57,-31,6,28,22,0,-11,9,6,8,17,15,-11,-45,-54,54,54,35,21,5,-19,-45,-53,42,32,7,-10,-8,0,4,2,-7,-26,-50,-54,-26,20,55,67 },
{ 24,18,-8,-33,-34,4,58,85,20,21,-1,-31,-41,-11,43,79,1,14,13,-8,-31,-26,7,38,-27,-4,24,22,-4,-28,-27,-10,-53,-26,23,45,27,-13,-42,-44,-48,-36,9,45,43,9,-31,-49,-10,-20,-9,18,35,22,-7,-30,45,15,-20,-21,3,19,13,-4,84,46,-24,-53,-32,5,25,17,60,43,-17,-55,-41,-3,25,26,-7,0,-7,-21,-17,4,21,19,-67,-43,2,24,25,18,8,-3,-72,-43,18,51,46,15,-14,-30,-15,-2,26,37,19,-9,-32,-42,42,38,15,-11,-30,-30,-25,-22,43,35,-7,-46,-51,-21,14,26,0,-2,-17,-33,-25,13,56,65,-32,-23,-2,9,14,26,41,46,-31,-16,17,38,29,1,-21,-25,-3,1,14,26,15,-22,-62,-78,23,12,-8,-10,-2,-6,-32,-56,27,14,-21,-38,-12,28,40,17,12,12,-12,-34,-19,32,72,64,-17,5,14,-5,-20,-4,27,39,-47,-10,36,34,-5,-37,-43,-27,-48,-22,27,46,17,-25,-51,-54,-19,-14,3,18,21,11,-4,-19,28,13,-15,-28,-12,22,42,32,61,40,-14,-53,-49,0,46,47,37,33,0,-35,-40,-16,12,15,-25,-12,6,14,14,5,-14,-34,-75,-58,-5,45,63,39,-13,-60 },
{ -62,-26,9,-4,-44,-62,-43,-10,-51,-4,41,29,-19,-45,-25,11,-36,15,63,53,8,-14,7,41,-31,10,48,41,6,-6,22,57,-30,-11,9,0,-24,-23,11,48,-11,-13,-17,-31,-46,-41,-9,25,25,12,-9,-23,-31,-29,-15,2,47,33,7,4,12,10,-1,-11,39,17,-9,8,44,50,18,-20,14,-20,-50,-25,35,58,21,-33,10,-23,-66,-53,7,40,8,-49,28,19,-22,-38,-4,25,-2,-58,21,49,36,4,4,20,2,-47,-37,15,41,16,-1,13,13,-20,-93,-36,14,-3,-29,-9,20,12,-77,-24,25,-2,-46,-32,17,33,-16,35,71,29,-35,-36,11,39,11,38,53,25,-19,-25,7,27,1,-11,-23,-24,-15,0,8,1,8,-27,-62,-52,0,34,16,-24,44,18,-29,-26,29,60,23,-44,45,47,14,-3,26,52,12,-57,-11,12,12,-12,-12,8,-5,-50,-70,-31,3,-15,-38,-23,-3,-16,-79,-24,36,22,-24,-21,20,34,-42,11,68,55,-6,-21,24,59,-11,20,52,34,-20,-39,-1,40,1,-1,-1,-13,-38,-48,-23,6,16,-10,-35,-32,-15,-4,-5,-10,39,8,-29,-19,30,57,33,-12,55,22,-23,-17,38,69,36,-30,41,11,-37,-45,-6,22,-8,-67 },
{ -6,25,66,77,55,27,21,30,-37,-14,28,41,17,-7,-3,19,-57,-48,-19,-12,-36,-52,-34,3,-30,-30,-16,-20,-47,-62,-38,4,20,23,27,16,-13,-29,-11,26,41,44,46,43,24,9,21,48,16,6,7,19,23,17,26,45,-13,-46,-52,-29,-7,-3,2,18,3,-40,-63,-41,-15,-16,-24,-17,49,16,-11,3,21,5,-26,-37,65,42,23,39,59,37,-9,-36,21,-4,-17,8,42,39,2,-26,-21,-49,-67,-46,-10,6,-2,-14,-7,-17,-25,-30,-24,-15,-5,2,15,40,60,43,6,-12,0,21,-12,18,60,63,18,-16,-3,30,-56,-55,-19,4,-16,-39,-20,27,-16,-46,-43,-22,-22,-37,-20,22,69,34,4,13,21,5,-1,20,86,53,9,18,43,32,8,9,28,-16,-57,-33,14,17,-10,-18,-19,-55,-73,-47,-2,4,-23,-36,-9,-9,-1,17,29,14,-13,-21,7,33,60,64,40,11,-1,7,-18,5,33,26,-13,-34,-12,27,-42,-37,-18,-22,-53,-66,-21,38,-21,-23,-11,-5,-24,-35,-4,48,25,20,24,40,36,17,17,40,43,23,9,25,42,27,2,-1,30,-10,-48,-39,-4,-1,-29,-47,29,-14,-62,-57,-14,6,-20,-49,50,26,-9,-4,36,59,35,-6 },
{ -20,3,17,14,16,25,21,-1,-15,9,16,4,3,16,15,-12,-12,11,8,-16,-21,-2,2,-24,-8,15,7,-26,-33,-10,-1,-29,-9,19,14,-21,-28,2,13,-18,-18,18,21,-10,-13,22,34,-2,-33,9,21,-8,-9,30,45,5,-42,3,17,-15,-19,20,36,-3,-40,11,23,-20,-36,0,17,-23,-31,27,39,-13,-39,-7,7,-36,-35,29,47,-6,-30,6,19,-33,-50,16,36,-14,-27,24,40,-19,-59,8,24,-32,-40,28,56,-8,-47,26,36,-37,-53,19,52,-13,-41,44,60,-23,-55,11,40,-31,-57,34,60,-15,-46,17,36,-45,-81,9,42,-25,-43,31,47,-48,-71,14,38,-36,-49,39,61,-42,-44,42,57,-35,-61,32,67,-37,-40,53,67,-31,-69,20,59,-39,-64,24,55,-28,-66,15,55,-42,-78,1,38,-23,-49,25,54,-41,-60,9,41,-14,-36,31,56,-39,-26,33,47,-14,-39,23,47,-38,-13,36,40,-24,-53,7,38,-36,-28,15,23,-30,-50,7,38,-27,-43,-3,16,-17,-30,19,45,-17,-40,-1,24,1,-12,24,39,-16,-25,11,33,8,-14,7,19,-25,-14,14,25,-1,-27,-13,3,-27,-11,7,12,-11,-30,-10,11,-8,-12,1,6,-8,-14,10,34,19 },
{ -73,-77,-51,-7,31,43,38,25,-28,-32,-19,5,26,30,20,10,40,40,29,18,8,-5,-16,-19,64,67,41,11,-16,-36,-44,-38,28,26,7,-14,-31,-39,-38,-28,-28,-34,-35,-29,-18,-8,3,12,-44,-51,-40,-13,15,34,48,51,-8,-13,-4,16,35,47,54,57,34,33,29,26,19,10,9,16,31,29,17,6,-17,-43,-51,-37,-3,-13,-18,-14,-26,-52,-69,-58,-16,-35,-30,-3,16,3,-19,-24,9,-10,-14,18,55,60,46,31,37,19,-1,3,24,41,45,45,29,17,-7,-27,-40,-38,-20,6,-7,-8,-3,-8,-36,-67,-62,-27,-31,-28,10,48,43,-2,-26,-8,-7,-26,-4,46,66,45,23,28,40,0,-32,-20,2,5,13,33,64,28,-28,-50,-50,-49,-29,9,38,20,-1,-2,-6,-25,-29,-2,-18,-26,-2,45,64,35,2,4,-41,-54,-30,26,60,37,5,3,4,-18,-28,-14,-5,-18,-27,-10,60,45,13,-13,-37,-49,-41,-6,42,42,26,13,-4,-18,-6,26,-24,-26,-12,13,27,23,29,50,-50,-65,-44,-4,22,18,12,27,-4,-17,-17,2,9,-14,-36,-24,52,47,30,24,12,-20,-48,-44,46,36,16,8,11,4,-9,-8,-15,-34,-51,-45,-12,20,37,44 },
{ -73,-16,47,42,-14,-45,-20,28,-73,-14,56,52,-13,-52,-19,40,-53,-7,49,41,-17,-49,-13,50,-19,2,28,19,-24,-44,-6,53,19,9,3,-5,-24,-29,0,45,44,10,-21,-20,-10,-7,4,26,56,4,-41,-23,16,23,7,-2,52,-5,-53,-20,41,50,7,-33,44,-8,-57,-20,53,61,0,-63,29,-2,-40,-21,40,52,-9,-76,5,10,-8,-13,14,26,-12,-63,-30,11,26,0,-14,-3,-4,-25,-65,-1,50,15,-36,-26,12,27,-65,-8,51,26,-40,-42,20,65,-31,-2,37,22,-33,-42,13,66,21,7,4,7,-12,-27,-4,34,60,7,-40,-17,20,13,-11,-13,57,1,-59,-33,40,50,-5,-45,31,-2,-46,-26,39,55,2,-51,-7,0,-4,-4,14,24,-2,-37,-42,-1,37,22,-16,-24,-11,-4,-51,-8,45,34,-27,-51,-8,35,-33,-10,29,27,-22,-43,3,62,8,-2,1,10,-6,-22,6,54,47,6,-27,-12,11,3,-5,12,57,8,-42,-25,24,28,-12,-34,44,2,-45,-27,32,44,-8,-55,16,-4,-30,-21,25,44,4,-43,-12,-1,0,-3,4,15,7,-13,-32,1,30,17,-16,-24,-4,15,-50,-5,44,32,-24,-47,-12,37,-53,-14,37,35,-15,-44,-8,50 },
{ -27,-24,3,38,51,16,-42,-75,-13,-22,-9,24,44,22,-30,-66,18,-3,-20,-8,15,18,-2,-24,47,21,-21,-36,-20,7,22,21,51,34,-11,-42,-41,-7,32,49,12,19,4,-20,-32,-15,21,48,-45,-17,16,19,-3,-15,-2,22,-73,-42,22,52,28,-11,-25,-10,-49,-32,21,56,40,-8,-38,-31,20,3,4,22,18,-10,-30,-26,78,32,-23,-32,-18,-9,-4,4,72,30,-39,-59,-31,3,27,38,15,-5,-32,-30,-5,20,38,45,-41,-33,-1,29,35,20,7,10,-46,-27,23,57,44,-8,-46,-44,-1,1,16,29,10,-33,-61,-56,43,22,-10,-26,-27,-19,-9,2,32,16,-20,-40,-24,14,52,68,-9,-9,-8,-6,2,20,48,64,-35,-22,10,32,20,-9,-22,-11,-25,-13,15,35,23,-26,-71,-71,10,6,1,4,11,0,-28,-45,34,22,-16,-38,-15,28,49,34,18,21,-10,-47,-37,18,64,66,-24,3,18,-4,-27,-14,9,16,-53,-17,32,42,11,-19,-40,-49,-45,-21,19,38,33,6,-32,-59,2,0,-6,-9,4,24,18,-11,47,33,-13,-53,-47,8,49,37,35,40,7,-42,-53,-13,33,36,-27,-2,20,13,-5,-5,-1,-11,-85,-53,11,51,47,19,-20,-53 },
{ 20,-10,-15,11,18,-3,-5,19,20,-19,-24,9,18,-10,-15,19,25,-18,-26,12,19,-16,-25,14,34,-14,-23,19,26,-17,-30,12,40,-14,-23,25,35,-14,-31,15,41,-20,-31,23,36,-13,-29,20,43,-26,-43,16,34,-14,-30,25,51,-24,-44,14,32,-18,-32,27,59,-18,-40,21,37,-20,-36,29,52,-23,-37,30,44,-22,-40,28,40,-33,-41,34,49,-24,-47,28,38,-38,-43,35,49,-29,-50,29,48,-27,-39,34,45,-33,-51,36,53,-17,-32,31,38,-35,-44,45,41,-18,-33,23,30,-33,-38,52,20,-24,-29,19,27,-29,-33,47,4,-17,-17,18,27,-18,-30,30,2,1,2,15,19,-9,-22,12,-11,11,12,-2,-2,-1,-9,-1,-30,12,16,-22,-26,6,13,-6,-50,16,33,-25,-40,16,36,-8,-58,25,53,-16,-40,23,44,-19,-65,25,60,-14,-48,20,41,-39,-65,22,53,-25,-57,19,41,-52,-57,24,49,-32,-60,27,58,-46,-45,30,48,-31,-55,35,67,-35,-42,27,48,-26,-54,28,61,-35,-47,17,42,-20,-50,15,43,-41,-49,8,38,-11,-41,11,36,-42,-37,8,33,-5,-28,17,38,-29,-19,11,24,-9,-26,14,38,-15,-5,13,13,-18,-31,2,25,-11 },
},
{
{ 1,1,1,1,1,0,0,-2,1,1,1,1,1,0,-1,-3,1,1,1,1,0,-1,-3,-6,1,1,1,0,-1,-3,-6,-9,1,1,0,-1,-3,-5,-8,-12,1,0,-1,-2,-4,-7,-11,-15,1,0,-1,-3,-6,-10,-14,-18,0,0,-2,-5,-8,-12,-17,-22,0,-1,-3,-7,-11,-15,-21,-26,0,-2,-5,-8,-13,-18,-24,-30,-1,-3,-6,-11,-16,-22,-28,-33,-1,-4,-8,-13,-19,-26,-32,-37,-2,-5,-10,-16,-22,-29,-36,-41,-2,-6,-12,-18,-26,-33,-40,-45,-3,-8,-14,-21,-29,-37,-43,-48,-4,-9,-16,-24,-32,-40,-47,-51,-4,-10,-18,-27,-36,-44,-50,-54,-5,-12,-20,-29,-39,-47,-52,-56,-6,-13,-22,-32,-41,-49,-55,-58,-7,-15,-24,-34,-44,-51,-56,-59,-7,-16,-26,-36,-46,-53,-58,-60,-8,-17,-27,-38,-47,-54,-58,-60,-8,-18,-29,-39,-48,-55,-59,-61,-9,-19,-30,-40,-49,-55,-59,-61,-9,-20,-31,-41,-50,-56,-59,-61,-10,-20,-31,-41,-50,-56,-59,-60,-10,-20,-32,-42,-50,-55,-58,-59,-10,-21,-32,-42,-49,-55,-57,-58,-10,-21,-32,-42,-49,-54,-56,-57,-10,-21,-32,-41,-48,-52,-55,-55,-10,-21,-31,-40,-46,-50,-53,-53,-11,-21,-31,-39,-44,-48,-50,-51 },
{ 1,2,3,5,5,6,6,6,2,4,7,9,11,12,12,12,4,7,10,14,16,18,18,17,5,10,14,19,22,24,24,23,7,13,19,24,28,30,31,28,8,15,22,29,33,36,36,33,10,18,26,34,39,42,41,37,11,21,30,38,44,47,46,41,13,24,34,43,50,52,50,43,14,27,38,47,53,56,52,45,16,29,41,51,57,58,53,44,17,32,44,53,58,59,53,43,18,33,46,55,60,58,51,40,19,35,47,56,58,56,47,35,20,35,47,54,56,51,42,29,20,35,46,52,52,46,36,23,20,34,44,48,47,39,28,15,19,33,41,44,40,32,20,8,18,30,37,37,32,23,11,0,17,28,32,31,24,14,3,-7,15,24,27,23,15,5,-6,-14,13,20,20,16,7,-4,-13,-21,11,15,14,7,-2,-12,-21,-27,8,11,7,0,-10,-20,-27,-33,6,6,1,-8,-18,-27,-33,-37,3,1,-5,-14,-24,-33,-38,-41,1,-3,-11,-21,-30,-37,-42,-44,-2,-7,-16,-26,-35,-41,-45,-46,-4,-11,-21,-30,-39,-44,-47,-47,-6,-15,-24,-33,-41,-46,-47,-47,-9,-17,-27,-35,-42,-45,-47,-46,-11,-20,-28,-36,-41,-44,-45,-44 },
{ 3,6,9,11,12,12,10,8,6,11,15,19,20,21,18,15,8,16,22,27,29,29,26,21,11,21,28,34,37,37,33,27,14,25,34,41,44,43,38,31,16,29,39,46,48,47,41,33,18,32,43,49,52,49,42,33,20,34,45,51,53,49,41,31,21,36,47,52,52,47,38,27,21,36,45,50,48,41,31,21,21,34,42,44,41,32,22,13,20,32,37,36,30,21,11,3,18,27,30,26,18,8,-2,-7,15,21,21,15,4,-6,-14,-17,11,14,10,1,-10,-20,-25,-25,7,6,-1,-12,-24,-33,-35,-31,3,-2,-12,-25,-37,-43,-43,-35,-2,-9,-22,-36,-46,-50,-46,-36,-6,-16,-30,-44,-52,-53,-45,-33,-9,-22,-37,-49,-54,-52,-42,-28,-12,-27,-41,-51,-54,-48,-36,-21,-15,-29,-42,-50,-49,-41,-27,-12,-16,-30,-41,-45,-41,-31,-16,-2,-16,-29,-36,-37,-31,-19,-4,9,-15,-26,-31,-28,-19,-6,8,20,-13,-21,-22,-17,-6,8,21,31,-11,-15,-13,-5,8,21,32,40,-7,-9,-3,8,21,33,42,48,-4,-1,7,20,33,44,51,54,1,6,17,30,42,52,57,58,6,14,26,39,50,57,61,61,12,22,34,46,55,61,62,61 },
{ -7,-11,-13,-15,-16,-14,-10,-3,-10,-17,-21,-25,-25,-22,-14,-5,-14,-23,-29,-32,-32,-26,-16,-3,-17,-28,-35,-38,-36,-29,-15,1,-20,-32,-40,-42,-38,-28,-12,7,-22,-35,-42,-44,-37,-24,-5,14,-23,-36,-43,-42,-33,-17,3,24,-23,-36,-41,-38,-27,-9,14,35,-23,-35,-39,-33,-19,2,26,47,-22,-33,-34,-26,-9,13,38,57,-20,-29,-28,-17,1,25,48,66,-18,-25,-22,-9,11,35,57,72,-16,-21,-16,-2,19,42,63,75,-14,-17,-11,3,24,45,63,74,-12,-15,-9,5,24,43,60,69,-11,-14,-9,3,20,38,53,62,-11,-15,-12,-2,14,29,43,53,-12,-18,-17,-9,3,18,32,43,-15,-23,-25,-20,-9,5,20,32,-17,-29,-34,-31,-22,-8,8,23,-20,-35,-43,-42,-33,-19,-1,16,-24,-41,-51,-52,-42,-27,-7,12,-27,-46,-58,-58,-48,-31,-10,10,-29,-51,-62,-62,-50,-32,-10,10,-31,-53,-64,-62,-50,-30,-8,12,-31,-53,-62,-60,-46,-26,-3,17,-30,-49,-58,-53,-38,-18,3,22,-28,-45,-51,-44,-29,-9,11,28,-25,-39,-42,-34,-18,1,19,34,-20,-31,-32,-23,-7,10,27,40,-15,-22,-20,-10,4,19,34,44,-8,-12,-9,1,14,27,39,48 },
{ -2,-4,-7,-9,-10,-11,-12,-13,-4,-8,-12,-16,-18,-20,-22,-23,-6,-11,-17,-22,-26,-29,-32,-34,-7,-14,-21,-27,-32,-37,-41,-43,-8,-16,-23,-30,-36,-42,-48,-50,-9,-16,-23,-30,-37,-44,-50,-54,-8,-14,-20,-27,-34,-42,-49,-54,-6,-11,-16,-21,-28,-37,-45,-52,-3,-5,-8,-12,-19,-28,-39,-48,1,2,2,-1,-7,-17,-31,-43,6,11,14,14,7,-5,-21,-37,12,21,28,29,22,8,-12,-31,18,33,43,44,36,18,-5,-28,24,43,55,57,45,25,-3,-27,30,51,64,64,51,25,-4,-29,34,58,70,68,50,22,-9,-33,37,61,73,66,45,14,-16,-38,38,62,69,59,34,3,-26,-45,37,57,60,46,19,-11,-35,-49,34,50,48,31,4,-24,-43,-52,30,41,36,15,-11,-34,-49,-52,24,31,21,1,-22,-41,-49,-49,18,20,9,-10,-30,-42,-46,-42,11,10,-2,-17,-32,-39,-38,-33,6,2,-8,-20,-29,-31,-28,-21,2,-2,-9,-18,-21,-20,-15,-8,0,-2,-6,-9,-9,-5,1,6,0,0,0,2,6,11,16,19,1,4,9,15,21,27,30,31,4,11,19,28,36,41,42,40,9,19,30,40,48,51,51,47,15,27,38,48,55,58,55,50 },
{ -8,-14,-19,-21,-20,-16,-9,-1,-13,-23,-30,-33,-30,-23,-12,-1,-18,-30,-39,-40,-36,-25,-11,2,-22,-36,-44,-45,-37,-24,-7,7,-24,-40,-47,-45,-35,-18,0,15,-25,-41,-46,-42,-28,-9,11,26,-25,-38,-41,-34,-17,5,24,36,-23,-35,-35,-24,-3,19,38,47,-22,-31,-27,-12,10,34,50,54,-19,-26,-19,-2,22,45,57,57,-16,-20,-11,7,31,50,59,53,-14,-16,-6,13,35,51,54,45,-12,-13,-3,15,34,45,44,31,-11,-12,-4,11,25,32,27,13,-12,-14,-8,3,12,15,7,-7,-13,-18,-15,-8,-3,-3,-12,-25,-15,-22,-22,-18,-16,-19,-29,-41,-17,-26,-27,-26,-25,-30,-40,-51,-19,-27,-28,-27,-29,-34,-45,-55,-18,-26,-26,-24,-27,-34,-45,-57,-16,-20,-19,-16,-19,-28,-42,-55,-12,-12,-6,-3,-7,-18,-35,-50,-5,1,10,14,8,-7,-26,-45,3,15,28,32,23,5,-19,-40,12,30,45,48,37,14,-12,-37,20,43,58,60,45,19,-10,-35,27,52,68,66,48,20,-10,-35,32,59,72,67,45,17,-14,-38,36,61,72,62,39,9,-19,-41,35,58,64,53,28,0,-26,-46,32,49,51,37,14,-11,-34,-49,27,39,36,21,0,-22,-40,-52 },
{ 5,7,9,12,14,17,19,19,7,11,15,20,24,29,32,32,9,14,20,25,32,38,43,43,9,15,21,28,36,45,50,52,9,14,20,26,36,46,54,56,6,9,13,20,30,41,51,55,2,1,2,7,18,31,43,48,-4,-10,-12,-9,2,17,31,39,-11,-22,-29,-26,-16,2,19,29,-19,-35,-44,-43,-31,-12,8,20,-26,-46,-57,-56,-42,-20,1,14,-32,-56,-66,-63,-46,-23,-2,10,-37,-60,-71,-63,-44,-19,0,9,-37,-58,-63,-54,-31,-8,7,10,-33,-49,-48,-34,-11,7,14,10,-26,-35,-28,-10,10,22,20,9,-17,-18,-5,15,31,33,23,3,-7,0,17,35,43,37,16,-6,3,16,34,46,47,30,4,-20,12,28,44,50,40,17,-12,-35,18,35,48,45,27,-1,-30,-49,20,36,42,33,9,-20,-45,-60,20,31,32,17,-10,-37,-57,-64,16,24,19,1,-25,-49,-63,-65,13,16,8,-12,-36,-54,-62,-58,9,10,1,-17,-36,-49,-52,-46,6,6,-1,-14,-28,-35,-35,-29,5,7,3,-6,-13,-17,-15,-10,6,11,11,9,5,5,7,9,10,19,24,26,26,26,27,26,16,29,38,43,46,45,44,41,24,39,50,57,60,60,56,51 },
{ -14,-22,-26,-26,-23,-14,-4,5,-20,-32,-38,-38,-30,-18,-3,10,-25,-39,-46,-43,-32,-15,4,18,-28,-44,-49,-43,-28,-7,14,27,-30,-45,-48,-38,-19,5,26,37,-29,-43,-42,-30,-7,18,37,46,-27,-38,-34,-18,7,31,47,50,-24,-32,-24,-6,20,42,52,50,-21,-25,-15,5,29,47,52,43,-17,-19,-8,12,32,44,42,30,-14,-15,-4,13,27,31,23,9,-12,-12,-3,9,16,13,0,-15,-11,-11,-5,2,1,-10,-26,-38,-10,-10,-7,-6,-14,-30,-46,-56,-8,-8,-7,-11,-25,-44,-60,-65,-6,-5,-4,-11,-29,-51,-65,-67,-2,2,3,-6,-26,-48,-63,-61,5,13,15,5,-16,-39,-50,-48,13,25,30,20,-2,-23,-34,-30,21,39,44,34,13,-7,-16,-12,29,49,56,44,23,5,-1,4,34,55,59,47,27,13,10,17,36,53,54,40,24,14,17,27,33,47,42,28,15,12,21,34,28,33,25,10,2,7,22,40,17,15,2,-11,-12,0,22,43,5,-6,-22,-31,-25,-6,21,45,-8,-26,-43,-47,-34,-9,22,47,-20,-43,-60,-57,-38,-8,25,50,-29,-54,-66,-60,-35,-3,29,53,-35,-57,-65,-53,-26,5,34,54,-37,-55,-57,-42,-16,13,38,55 },
{ -1,-3,-6,-11,-17,-23,-27,-27,-2,-5,-10,-18,-29,-39,-44,-44,-2,-4,-11,-21,-36,-49,-56,-55,0,-1,-8,-20,-36,-53,-61,-60,4,5,0,-13,-31,-49,-60,-58,10,15,12,0,-18,-37,-48,-48,17,27,28,17,0,-18,-30,-31,25,40,43,35,19,1,-10,-13,32,51,57,49,34,17,7,4,36,56,61,54,39,26,17,15,36,52,55,46,34,23,20,21,30,42,39,29,18,14,16,22,22,24,16,4,-3,0,10,20,8,2,-12,-24,-25,-14,4,18,-6,-21,-38,-46,-41,-21,2,18,-20,-41,-58,-60,-45,-19,6,20,-30,-53,-67,-60,-37,-7,16,23,-33,-55,-59,-46,-17,10,25,25,-31,-44,-40,-20,8,27,30,22,-22,-27,-14,9,30,39,30,14,-12,-6,12,33,46,39,22,1,0,13,31,47,45,30,5,-15,10,26,41,45,33,9,-17,-32,17,32,40,34,11,-16,-38,-47,19,30,31,15,-13,-39,-56,-55,16,23,15,-5,-32,-54,-61,-54,11,11,0,-21,-44,-56,-55,-42,5,2,-10,-28,-42,-47,-39,-23,1,-3,-13,-24,-31,-26,-14,2,1,-1,-5,-8,-6,3,16,29,5,10,13,18,26,37,48,55,16,25,34,45,56,66,73,75 },
{ -21,-31,-36,-34,-26,-14,-1,8,-29,-45,-50,-47,-32,-14,3,14,-35,-53,-57,-48,-29,-6,12,21,-38,-56,-56,-43,-19,6,23,28,-38,-52,-50,-30,-4,21,35,32,-33,-44,-36,-15,13,35,40,32,-27,-32,-20,3,28,42,40,23,-19,-19,-4,19,38,44,32,9,-12,-7,9,29,42,37,16,-11,-6,2,17,33,35,21,-6,-34,-1,8,20,28,21,-1,-31,-53,2,11,19,18,3,-25,-52,-68,4,11,15,7,-14,-42,-66,-72,5,11,11,-1,-23,-48,-61,-63,6,11,9,-2,-22,-37,-44,-40,8,13,11,2,-10,-18,-17,-12,9,14,14,9,5,8,13,15,9,14,16,17,21,30,36,36,8,11,14,19,31,45,52,46,3,4,6,16,34,52,57,49,-3,-8,-6,7,30,49,54,42,-13,-24,-23,-7,18,38,41,29,-25,-41,-41,-23,4,22,23,9,-36,-56,-55,-35,-9,7,5,-10,-44,-64,-62,-39,-15,-4,-11,-27,-44,-62,-54,-33,-14,-9,-21,-40,-39,-48,-36,-16,-5,-9,-27,-48,-26,-27,-10,5,8,-5,-29,-52,-11,0,18,28,22,0,-29,-53,8,27,44,49,33,5,-27,-52,27,50,65,61,40,9,-23,-47,44,67,75,66,42,11,-19,-41 },
{ 11,15,12,2,-12,-24,-29,-24,15,19,13,-3,-24,-40,-43,-34,19,23,14,-8,-33,-51,-51,-34,22,27,15,-10,-38,-56,-50,-27,26,31,18,-9,-37,-51,-41,-10,29,36,23,-4,-29,-39,-21,13,33,40,27,2,-19,-21,4,41,35,44,30,7,-9,-4,26,65,36,43,30,7,-5,7,43,83,33,37,21,-1,-10,7,47,88,26,24,5,-16,-23,-2,40,81,17,10,-13,-36,-40,-18,25,67,9,-4,-30,-52,-56,-33,9,49,3,-11,-35,-58,-62,-43,-5,33,4,-6,-28,-49,-58,-44,-13,21,11,8,-8,-30,-43,-40,-16,14,23,30,19,-5,-27,-31,-16,10,39,54,44,17,-13,-25,-13,9,53,72,61,27,-7,-21,-10,12,62,82,64,26,-10,-22,-7,15,64,77,55,12,-20,-24,-5,20,53,60,30,-10,-31,-26,0,24,37,31,0,-30,-39,-22,7,28,17,3,-26,-44,-38,-13,15,31,0,-19,-42,-45,-28,0,24,31,-12,-30,-40,-34,-11,15,28,26,-16,-26,-27,-12,10,25,26,15,-12,-15,-6,11,25,29,17,-2,-5,2,15,29,33,22,1,-22,5,17,29,36,27,7,-21,-45,13,25,33,29,11,-17,-45,-64,16,26,25,14,-10,-39,-63,-77 },
{ -13,-19,-22,-21,-21,-21,-23,-25,-16,-24,-26,-27,-26,-28,-33,-38,-16,-22,-22,-20,-21,-25,-36,-47,-13,-15,-11,-7,-8,-16,-33,-51,-7,-4,4,11,10,-3,-26,-51,0,9,21,30,28,13,-17,-48,7,20,34,45,44,26,-7,-42,12,27,43,54,52,35,0,-38,12,26,43,53,54,36,2,-36,7,16,29,41,43,31,0,-37,-5,-4,5,18,26,21,-3,-37,-21,-29,-24,-7,10,14,-5,-36,-38,-54,-50,-26,1,15,0,-33,-50,-72,-62,-31,7,25,8,-27,-59,-77,-61,-19,25,40,17,-25,-59,-73,-46,3,48,56,23,-26,-55,-59,-25,29,68,63,21,-32,-44,-42,-2,48,73,58,8,-43,-33,-24,14,52,65,38,-11,-54,-22,-12,18,45,43,14,-29,-62,-17,-9,14,27,19,-9,-41,-61,-16,-13,0,7,-2,-21,-40,-51,-19,-21,-15,-10,-13,-20,-28,-32,-22,-29,-25,-17,-11,-7,-6,-9,-24,-32,-28,-14,1,14,19,15,-23,-31,-22,-3,19,36,40,33,-20,-24,-13,10,36,51,52,39,-16,-19,-5,19,44,57,51,35,-14,-16,-3,19,40,47,40,22,-14,-19,-11,7,20,24,15,-1,-20,-30,-28,-19,-10,-10,-18,-28,-30,-43,-47,-45,-43,-44,-47,-51 },
{ -23,-34,-38,-36,-29,-17,-5,5,-32,-47,-52,-48,-36,-20,-3,11,-37,-52,-55,-46,-31,-12,6,19,-36,-50,-47,-35,-17,1,17,28,-31,-38,-32,-16,1,16,28,34,-21,-22,-11,4,17,26,30,33,-9,-2,11,22,28,25,22,23,4,16,29,33,27,15,6,8,14,30,39,34,16,-6,-17,-9,20,37,39,24,-5,-32,-37,-21,23,36,31,6,-29,-53,-50,-21,23,32,19,-13,-49,-67,-50,-11,22,25,8,-25,-58,-63,-36,11,19,21,3,-28,-48,-43,-6,40,18,19,4,-18,-29,-13,26,66,18,21,9,-6,-6,14,51,84,19,22,13,4,8,29,62,86,17,20,11,4,7,25,50,72,15,15,4,-6,-7,4,25,46,10,7,-7,-22,-29,-25,-6,18,6,1,-16,-35,-50,-49,-32,-4,5,1,-16,-40,-58,-63,-45,-16,10,10,-5,-31,-55,-61,-45,-15,20,27,14,-13,-40,-51,-36,-7,33,47,37,7,-23,-34,-22,7,44,64,54,24,-7,-18,-4,22,53,72,61,30,3,-5,10,35,53,71,55,26,3,1,19,43,47,55,38,10,-5,0,22,46,29,29,8,-14,-21,-8,18,43,5,-7,-27,-41,-39,-19,9,34,-23,-41,-57,-64,-53,-30,-2,23 },
{ 0,-3,-10,-19,-25,-22,-8,10,0,-5,-15,-27,-33,-28,-6,20,2,-2,-14,-27,-35,-26,2,34,6,3,-8,-24,-31,-20,12,49,12,12,0,-17,-26,-14,22,61,19,22,9,-11,-22,-11,26,67,26,31,16,-8,-24,-14,24,65,33,39,20,-10,-31,-23,16,58,39,44,20,-17,-42,-35,5,47,42,46,16,-26,-53,-46,-5,37,43,44,12,-32,-61,-50,-9,29,43,44,10,-35,-59,-47,-7,24,45,44,11,-30,-50,-33,0,19,44,44,14,-20,-31,-15,9,15,43,43,18,-7,-11,5,16,5,39,40,19,3,6,18,15,-9,33,30,15,8,17,24,9,-28,20,15,3,6,20,25,-2,-47,5,-6,-12,1,21,21,-12,-61,-12,-27,-25,-2,24,21,-19,-72,-27,-42,-32,3,32,24,-21,-76,-36,-49,-27,15,43,32,-18,-74,-40,-46,-17,29,57,40,-12,-68,-38,-40,-4,43,66,47,-6,-60,-36,-33,4,49,69,47,-3,-52,-34,-32,3,45,61,42,-2,-45,-36,-37,-7,30,47,33,-2,-36,-42,-49,-23,12,31,25,0,-28,-49,-59,-39,-4,19,21,4,-17,-52,-66,-45,-11,15,22,11,-6,-51,-61,-42,-8,19,27,19,4,-41,-49,-28,2,25,33,26,12 },
{ -16,-22,-27,-30,-35,-37,-35,-29,-18,-25,-30,-37,-42,-47,-46,-39,-14,-18,-21,-27,-35,-42,-43,-37,-4,-2,-1,-6,-15,-25,-30,-28,9,19,24,20,10,-3,-12,-14,21,37,44,42,30,16,5,-1,28,45,52,49,39,25,15,8,28,43,46,41,32,23,16,11,20,26,25,19,14,12,10,8,4,0,-7,-11,-9,-4,2,4,-17,-31,-40,-38,-28,-13,-4,-1,-35,-56,-61,-51,-30,-11,-2,-3,-46,-64,-63,-41,-15,3,4,-4,-41,-52,-37,-10,15,21,8,-7,-26,-21,3,29,43,31,5,-14,-4,13,40,58,52,25,-7,-24,15,39,62,63,41,3,-26,-31,24,45,53,42,9,-24,-37,-31,20,28,24,3,-24,-40,-36,-16,6,2,-12,-31,-43,-40,-18,7,-11,-24,-39,-46,-41,-20,9,33,-23,-39,-44,-38,-18,10,35,52,-27,-35,-29,-11,13,35,51,56,-20,-20,-4,17,36,47,48,46,-10,1,19,34,41,34,27,22,3,17,30,32,20,3,-7,-6,12,24,26,11,-16,-37,-42,-28,15,23,12,-17,-51,-70,-62,-36,16,18,-1,-37,-71,-78,-61,-24,18,19,-2,-36,-58,-57,-29,7,27,30,15,-7,-19,-7,22,51,39,48,43,33,33,48,71,90 },
{ 36,48,49,35,16,-5,-21,-26,47,63,59,40,11,-16,-33,-39,51,64,55,29,-2,-28,-42,-42,46,55,39,11,-18,-38,-43,-37,37,37,18,-9,-30,-38,-33,-21,21,15,-5,-24,-30,-25,-10,3,5,-7,-22,-28,-19,1,21,28,-9,-24,-31,-23,2,31,49,47,-19,-33,-33,-11,24,54,66,51,-24,-35,-26,1,37,61,57,35,-24,-30,-18,9,36,43,28,2,-21,-24,-11,8,19,11,-14,-37,-16,-15,-5,3,-4,-26,-54,-66,-6,-3,2,-1,-21,-50,-69,-74,5,11,12,0,-25,-48,-59,-54,16,25,23,9,-12,-27,-27,-21,24,33,32,19,8,7,12,14,25,33,29,24,25,35,40,37,18,18,15,18,32,47,51,40,3,-4,-8,3,26,45,44,29,-16,-32,-34,-14,14,30,25,8,-34,-54,-50,-27,0,10,-1,-17,-44,-60,-50,-26,-7,-8,-24,-36,-41,-50,-34,-13,-6,-19,-38,-47,-29,-24,-5,8,2,-21,-42,-45,-6,9,26,30,11,-16,-32,-31,17,37,50,42,18,-6,-15,-8,32,53,55,40,17,1,2,15,35,45,40,21,6,4,17,35,19,18,5,-9,-11,2,25,49,-9,-24,-39,-42,-30,-3,28,53,-40,-62,-73,-67,-42,-8,27,51 },
{ -9,-10,-6,3,10,8,-6,-24,-12,-13,-6,7,16,11,-12,-38,-15,-15,-4,12,23,13,-18,-50,-17,-18,-3,18,29,17,-20,-59,-21,-21,-2,23,37,22,-20,-62,-25,-25,-2,28,43,29,-15,-58,-29,-29,-4,30,49,34,-9,-49,-34,-34,-7,30,50,37,-3,-39,-39,-40,-11,27,48,35,1,-27,-43,-45,-16,20,37,27,0,-17,-45,-46,-21,9,22,13,-1,-4,-42,-45,-23,-1,6,0,-2,10,-36,-36,-20,-8,-9,-11,1,27,-23,-20,-10,-10,-18,-17,8,43,-5,3,5,-9,-25,-19,16,55,15,26,18,-8,-31,-21,22,62,34,44,25,-15,-41,-23,24,62,45,53,21,-26,-49,-27,21,54,50,50,11,-37,-56,-27,16,37,47,42,-1,-45,-53,-24,9,17,42,32,-10,-43,-42,-15,3,-5,35,25,-9,-30,-21,-2,-1,-24,31,23,0,-8,5,13,-5,-41,28,23,11,15,28,25,-8,-55,22,19,17,30,45,31,-13,-66,10,6,12,34,49,33,-16,-71,-8,-16,-4,27,48,32,-17,-69,-29,-42,-23,17,44,33,-12,-62,-52,-66,-39,11,44,36,-5,-51,-66,-80,-45,11,46,42,4,-38,-71,-77,-38,18,53,47,13,-25,-63,-64,-23,27,55,50,19,-15 },
{ 28,30,15,-12,-39,-50,-42,-21,36,39,15,-22,-55,-66,-49,-20,44,44,16,-26,-58,-62,-37,-4,47,49,18,-22,-48,-45,-12,20,50,50,21,-15,-32,-17,19,45,46,46,19,-9,-14,9,43,61,38,34,10,-7,-2,26,53,57,25,18,-3,-12,2,30,46,37,11,-2,-19,-19,-1,21,24,2,-2,-17,-29,-25,-6,7,-6,-35,-11,-24,-30,-21,-6,-6,-31,-64,-12,-21,-19,-6,4,-8,-44,-78,-8,-9,1,17,22,0,-41,-72,0,5,20,38,40,16,-23,-51,5,12,29,46,49,29,0,-20,3,7,20,37,43,34,19,7,-8,-12,-3,12,25,28,29,26,-24,-36,-31,-17,0,15,27,34,-37,-51,-49,-36,-19,0,20,32,-38,-52,-48,-40,-28,-10,11,26,-25,-27,-27,-28,-28,-16,5,20,5,12,8,-9,-23,-19,0,14,39,54,40,5,-21,-19,-2,11,66,82,51,5,-24,-21,-1,10,77,81,41,-10,-31,-18,4,9,63,56,9,-30,-32,-9,11,9,36,15,-24,-40,-23,7,19,4,4,-22,-45,-37,-2,26,23,-5,-20,-43,-46,-15,25,40,21,-22,-29,-42,-25,13,45,45,5,-45,-24,-22,3,37,54,31,-20,-70,-10,0,24,47,44,10,-43,-88 },
{ -47,-57,-56,-47,-42,-40,-40,-36,-52,-63,-57,-46,-39,-42,-46,-45,-44,-44,-31,-17,-13,-23,-35,-39,-23,-12,10,25,24,7,-15,-25,-1,21,49,62,56,29,2,-11,15,42,66,77,62,34,7,-3,18,38,55,57,42,18,1,1,6,16,22,19,4,-10,-10,3,-13,-17,-19,-25,-34,-32,-16,8,-32,-44,-49,-53,-50,-37,-10,19,-41,-52,-54,-49,-40,-20,8,32,-35,-39,-30,-19,-7,8,25,39,-16,-6,9,20,24,25,29,33,9,29,43,45,32,18,13,15,29,49,55,39,11,-10,-14,-7,34,49,39,9,-26,-44,-38,-22,28,28,7,-27,-55,-57,-42,-21,10,3,-21,-44,-50,-40,-20,-5,-6,-17,-29,-29,-17,2,13,13,-15,-21,-15,4,29,42,37,23,-16,-13,7,38,61,59,39,16,-12,-3,22,51,59,45,17,-4,-10,-1,20,34,29,6,-17,-25,-13,-9,1,3,-12,-34,-43,-37,-18,-20,-19,-26,-43,-54,-51,-31,-18,-22,-24,-33,-44,-47,-31,-9,-11,-10,-10,-15,-20,-14,3,20,4,11,14,13,13,22,35,44,17,28,34,33,36,42,50,50,20,30,30,28,28,33,35,34,9,7,1,-7,-8,-6,-2,1,-15,-26,-41,-52,-55,-52,-43,-34 },
{ 2,9,21,30,28,9,-21,-44,2,11,26,39,34,7,-33,-63,-3,4,21,36,33,3,-42,-72,-13,-8,10,29,29,1,-42,-70,-26,-25,-4,21,27,5,-33,-55,-38,-41,-15,16,30,16,-13,-30,-48,-50,-21,16,35,29,10,0,-52,-54,-22,17,39,38,27,24,-52,-49,-18,17,35,34,32,38,-42,-37,-10,13,17,13,19,36,-26,-18,-1,1,-11,-19,-4,26,-6,4,6,-13,-42,-51,-23,18,16,26,15,-24,-63,-65,-29,18,34,46,23,-24,-60,-55,-13,26,49,56,30,-13,-37,-22,12,33,51,57,30,0,-7,12,30,31,43,40,19,6,16,32,31,13,18,9,-2,3,24,32,12,-16,-12,-26,-25,-1,23,16,-17,-44,-38,-53,-35,1,19,-1,-41,-62,-52,-57,-26,14,22,-12,-52,-61,-45,-40,1,35,26,-13,-43,-42,-28,-10,29,48,29,-6,-21,-8,-9,13,43,48,23,0,5,28,2,20,36,27,6,3,26,58,-1,8,9,-6,-16,-1,36,72,-11,-14,-23,-35,-35,-7,36,68,-20,-30,-41,-51,-43,-13,26,52,-17,-23,-36,-45,-40,-18,11,28,5,7,-3,-20,-26,-21,-9,-1,40,53,42,14,-11,-24,-28,-26,73,91,75,39,0,-27,-40,-41 },
{ -41,-43,-22,12,42,52,44,23,-50,-52,-21,22,55,64,46,22,-54,-51,-17,25,53,50,28,5,-50,-46,-13,21,35,22,-4,-19,-42,-34,-8,13,10,-14,-37,-37,-27,-18,1,6,-13,-41,-51,-38,-9,3,13,3,-25,-47,-44,-15,10,23,24,4,-26,-38,-16,22,24,37,32,5,-21,-16,20,59,29,39,27,1,-13,3,46,80,24,27,12,-9,-14,12,51,71,11,7,-10,-25,-20,6,32,39,-2,-12,-28,-34,-26,-8,1,-5,-10,-19,-26,-26,-18,-17,-29,-43,-9,-9,-6,1,2,-15,-45,-62,0,9,23,34,26,-5,-44,-61,7,22,44,55,44,6,-31,-42,3,16,37,52,42,14,-10,-14,-15,-11,8,25,26,16,11,15,-39,-44,-26,-4,8,16,26,37,-56,-64,-47,-22,-5,12,33,46,-53,-57,-38,-23,-12,5,28,43,-28,-20,-9,-13,-18,-7,15,28,10,26,22,-5,-28,-23,-2,10,46,62,39,-9,-41,-34,-13,-3,65,75,33,-20,-44,-33,-12,-9,63,57,12,-28,-35,-14,-1,-10,41,26,-11,-28,-10,14,15,-11,12,-9,-27,-12,23,43,26,-20,-16,-34,-28,10,50,59,19,-37,-35,-43,-20,26,61,48,-3,-60,-42,-43,-13,28,46,24,-30,-82 },
{ -56,-59,-46,-27,-21,-27,-35,-31,-57,-57,-34,-13,-10,-25,-38,-35,-43,-30,-1,19,14,-10,-29,-24,-18,4,37,52,37,5,-16,-8,2,30,62,68,45,8,-8,8,7,33,56,56,27,-3,-6,21,-3,11,24,17,-8,-24,-9,31,-24,-22,-17,-24,-39,-42,-9,40,-42,-46,-43,-45,-52,-40,-1,47,-43,-45,-34,-32,-32,-23,10,49,-27,-15,3,9,3,-2,12,37,0,24,47,49,28,3,-2,13,21,50,72,62,26,-15,-30,-13,22,44,55,40,-1,-41,-50,-27,0,6,13,2,-27,-50,-48,-18,-34,-38,-25,-17,-22,-32,-22,5,-61,-63,-35,-2,10,7,13,29,-65,-59,-10,34,45,34,28,38,-52,-28,25,59,54,27,17,28,-27,2,45,56,25,-8,-12,9,-9,17,39,20,-24,-50,-38,-3,-3,14,13,-20,-60,-70,-40,-1,-3,1,-11,-40,-64,-52,-17,14,-5,-4,-14,-30,-30,-10,16,30,-2,1,2,4,16,33,41,32,3,11,20,33,46,50,36,15,4,13,26,39,45,32,6,-18,-4,1,12,21,16,-6,-33,-48,-19,-19,-11,-6,-16,-37,-58,-59,-29,-33,-24,-18,-24,-39,-46,-41,-27,-25,-12,1,2,-1,-2,4,-10,-1,20,39,49,50,50,50 },
{ 25,38,48,47,32,0,-35,-52,25,39,49,51,30,-9,-48,-67,10,17,28,33,19,-15,-51,-62,-15,-16,-3,12,10,-13,-36,-41,-41,-47,-28,-1,11,3,-9,-7,-56,-64,-35,1,23,24,20,26,-59,-59,-24,15,36,37,37,45,-46,-40,-5,26,35,31,32,47,-27,-14,13,24,14,0,6,32,-4,11,21,8,-23,-43,-26,12,16,27,20,-14,-58,-71,-44,2,28,37,17,-26,-65,-70,-33,9,35,38,17,-18,-42,-31,-2,24,29,32,18,4,5,18,28,30,13,12,15,27,44,45,32,15,-13,-15,3,35,53,39,5,-16,-42,-44,-13,27,38,4,-36,-45,-58,-60,-20,17,10,-30,-58,-51,-58,-49,-11,11,-8,-42,-51,-26,-37,-21,12,18,-10,-31,-17,15,-10,14,35,24,-3,-5,24,54,12,34,37,18,0,13,48,71,19,27,17,-4,-9,15,47,58,9,4,-15,-30,-23,4,25,26,-5,-19,-38,-42,-30,-10,-4,-14,-10,-22,-32,-30,-19,-16,-28,-45,-2,-4,-2,3,4,-12,-39,-58,14,23,32,37,26,-2,-35,-54,22,35,49,52,39,9,-21,-35,7,15,28,39,33,17,0,-8,-29,-35,-21,1,16,21,20,19,-70,-83,-66,-34,-1,20,32,36 },
{ -24,-16,2,21,27,23,23,26,-23,-13,11,28,29,21,22,32,-21,-8,13,23,15,3,8,31,-19,-7,9,10,-9,-25,-12,24,-17,-5,5,-4,-32,-48,-29,21,-11,0,6,-9,-40,-58,-30,25,-2,10,16,0,-32,-47,-20,38,6,22,30,17,-12,-29,-4,49,10,26,40,32,6,-12,4,50,0,17,35,37,14,-11,-4,37,-19,-6,20,31,10,-22,-25,15,-44,-34,3,24,4,-39,-47,-4,-65,-52,-3,28,6,-45,-59,-7,-71,-52,11,49,19,-39,-49,6,-65,-34,36,70,33,-27,-30,33,-53,-16,53,79,31,-25,-13,57,-48,-10,52,62,9,-35,-7,70,-49,-18,31,30,-22,-52,-8,69,-53,-29,9,1,-44,-59,-13,57,-52,-30,3,-6,-43,-55,-16,41,-41,-15,17,11,-23,-38,-17,23,-23,8,41,39,5,-22,-20,5,-10,21,57,57,24,-14,-27,-10,-12,14,50,58,27,-15,-35,-20,-32,-15,25,43,20,-20,-39,-20,-60,-49,-2,28,13,-20,-32,-10,-81,-67,-13,23,14,-13,-18,9,-81,-64,-4,30,20,-3,-1,28,-67,-38,17,38,20,-1,7,40,-36,-6,32,34,4,-14,3,41,-7,16,31,11,-25,-36,-10,32,10,23,15,-18,-51,-55,-22,20 },
{ 37,38,19,-14,-42,-46,-27,2,47,49,20,-21,-50,-52,-22,14,49,47,16,-21,-44,-36,-3,33,40,37,11,-15,-24,-11,21,48,26,19,2,-7,-3,13,34,48,5,-2,-6,0,13,21,24,29,-16,-21,-12,7,19,9,-6,-5,-32,-33,-11,15,18,-11,-40,-37,-40,-33,0,28,19,-29,-66,-48,-35,-22,18,45,21,-35,-62,-31,-27,-7,35,54,24,-26,-36,14,-22,-1,38,52,21,-16,-1,61,-26,-9,26,34,7,-13,21,92,-36,-25,4,8,-15,-25,20,92,-45,-35,-10,-8,-34,-43,-3,64,-42,-29,-1,-3,-36,-58,-29,29,-27,-4,28,22,-23,-59,-48,2,-8,23,57,51,-1,-48,-47,-7,-1,30,67,64,18,-29,-34,-2,-16,8,48,58,25,-14,-18,9,-49,-34,13,40,23,-5,-6,19,-81,-72,-13,24,16,-4,0,23,-95,-77,-16,19,8,-9,-1,23,-76,-51,5,22,-2,-18,-5,20,-39,-2,34,20,-16,-27,-8,16,4,37,43,9,-29,-33,-7,14,31,48,32,-10,-37,-24,0,10,32,34,5,-26,-28,-5,12,6,17,3,-22,-27,-6,20,21,-7,-6,-23,-29,-10,24,40,15,-27,-21,-30,-17,17,48,40,-4,-53,-24,-23,1,34,48,24,-28,-75 },
{ -30,-25,-11,-4,-15,-41,-63,-58,-29,-20,2,12,-6,-41,-64,-61,-20,-5,23,35,18,-18,-41,-34,-12,7,38,53,38,9,-7,3,-14,5,36,51,43,22,20,35,-27,-15,12,26,20,13,25,49,-43,-38,-19,-11,-16,-14,11,42,-48,-48,-36,-35,-43,-38,-5,28,-34,-29,-23,-31,-47,-42,-14,14,-1,13,16,-1,-23,-27,-10,4,35,56,56,33,6,-4,-1,-5,50,70,63,40,18,10,2,-14,33,38,28,14,10,11,1,-23,-10,-21,-27,-21,-2,12,-1,-29,-52,-67,-62,-33,2,18,4,-26,-63,-72,-49,-13,21,31,10,-20,-38,-27,-2,21,34,30,12,-15,9,29,36,29,16,12,7,-10,48,59,35,-5,-23,-10,4,-6,58,53,-3,-53,-53,-15,11,1,48,18,-47,-79,-51,6,28,5,27,-7,-56,-62,-9,40,37,0,18,-6,-30,-9,41,57,27,-18,20,10,8,34,59,45,-3,-40,22,20,25,40,40,4,-38,-53,12,9,10,14,-2,-33,-48,-41,-6,-15,-18,-21,-33,-39,-26,-1,-19,-29,-31,-31,-28,-12,20,46,-16,-18,-17,-13,-1,26,59,74,4,10,10,9,16,36,55,61,25,33,25,8,-3,-2,5,7,32,34,12,-22,-50,-61,-59,-53 },
{ -34,-28,-8,8,11,5,12,30,-32,-23,2,18,13,2,11,39,-24,-9,15,22,6,-13,-1,40,-13,5,25,21,-9,-35,-17,36,-4,13,29,15,-25,-54,-32,34,-4,13,26,11,-31,-62,-33,36,-10,6,24,15,-24,-51,-24,43,-21,-4,24,28,-4,-33,-11,48,-35,-15,27,42,16,-17,-7,43,-49,-27,27,53,25,-16,-15,28,-62,-35,26,53,20,-30,-33,10,-68,-41,24,47,4,-47,-45,0,-70,-36,27,39,-8,-51,-39,6,-57,-23,32,36,-9,-37,-12,22,-41,-7,35,30,-4,-10,19,33,-26,2,28,17,-3,11,37,29,-18,1,11,-7,-12,18,36,2,-11,-2,-9,-29,-20,15,16,-34,-3,-1,-19,-36,-18,14,0,-64,10,10,-14,-29,-4,24,-5,-78,27,23,-6,-15,17,41,5,-75,36,28,-6,-10,29,57,19,-59,36,19,-20,-21,28,63,34,-39,28,2,-42,-40,16,62,42,-23,25,-8,-59,-57,2,52,43,-16,33,0,-56,-64,-11,40,33,-17,57,25,-39,-58,-17,27,23,-24,81,54,-19,-48,-18,20,14,-29,97,66,-8,-41,-14,19,12,-30,85,54,-14,-37,-4,27,15,-25,53,18,-30,-30,10,37,22,-20,12,-17,-40,-22,20,41,22,-17 },
{ 30,43,58,63,53,20,-17,-35,19,31,47,58,46,11,-29,-46,-10,-9,7,23,19,-8,-36,-42,-44,-52,-33,-10,-4,-17,-28,-22,-64,-72,-50,-20,-6,-7,-5,11,-55,-57,-30,-3,10,12,22,41,-24,-13,11,25,24,21,32,52,14,31,42,36,15,5,18,42,39,51,45,15,-20,-31,-12,18,38,41,17,-21,-53,-59,-33,-1,20,10,-14,-40,-57,-50,-28,-6,-5,-16,-22,-21,-13,-6,-2,0,-21,-24,-5,26,47,41,21,2,-27,-20,19,62,73,51,12,-10,-31,-17,24,54,49,12,-19,-24,-32,-22,6,15,-10,-39,-41,-25,-30,-24,-14,-27,-54,-56,-31,-1,-14,-9,-12,-33,-45,-27,12,32,11,18,10,-6,-5,25,53,47,31,39,27,16,27,54,58,32,33,32,17,10,24,39,26,-11,12,1,-16,-18,-4,1,-21,-53,-14,-31,-43,-37,-25,-26,-49,-70,-22,-34,-35,-26,-16,-21,-40,-55,-7,-4,3,10,16,9,-5,-17,19,31,34,37,38,38,31,20,33,39,32,26,32,42,47,37,22,14,-8,-17,-3,23,37,31,0,-23,-54,-61,-40,-5,15,10,-7,-32,-59,-68,-45,-17,-6,-12,17,9,-11,-20,-13,-6,-13,-26,60,68,57,44,32,16,-7,-27 },
{ 60,54,23,-17,-40,-35,-13,12,63,55,13,-29,-46,-35,-4,22,51,35,-1,-30,-34,-15,12,30,26,10,-13,-20,-8,10,24,30,2,-13,-18,-3,19,26,22,14,-17,-26,-13,15,33,24,-2,-13,-27,-27,-2,29,34,0,-35,-36,-27,-22,10,36,22,-26,-57,-40,-25,-13,21,36,8,-41,-56,-13,-20,-7,24,32,-1,-38,-22,35,-19,-6,20,22,-6,-19,20,78,-21,-11,10,11,-8,-6,42,91,-23,-14,2,-1,-18,-10,32,64,-20,-11,3,-5,-26,-28,-6,13,-11,2,14,3,-25,-41,-42,-38,-2,15,29,21,-8,-34,-52,-62,0,16,36,36,19,-5,-30,-52,-12,0,22,36,37,30,6,-25,-33,-28,-7,16,39,50,36,0,-44,-48,-34,-13,20,49,45,9,-34,-37,-43,-38,-7,31,36,1,8,3,-30,-51,-28,11,15,-16,62,50,-9,-50,-35,0,0,-31,98,79,0,-44,-24,6,-4,-37,103,64,-12,-34,0,24,3,-35,62,20,-30,-20,28,42,8,-28,9,-29,-41,1,50,45,6,-18,-31,-53,-31,21,49,29,-4,-9,-41,-39,-6,28,27,-6,-19,5,-17,-4,17,18,-14,-40,-21,27,17,30,26,-8,-51,-53,-5,59,41,47,21,-27,-59,-44,20,85 },
{ 35,20,-6,-18,-2,26,28,-1,32,11,-23,-34,-6,30,27,-14,27,0,-37,-42,-6,32,21,-34,24,-3,-39,-40,2,38,12,-53,29,4,-30,-27,16,44,9,-65,38,16,-18,-16,25,49,8,-65,47,23,-14,-14,24,46,11,-49,48,21,-22,-26,11,38,16,-26,44,10,-37,-43,-6,27,23,0,37,2,-46,-53,-15,19,25,20,37,5,-38,-42,-14,10,18,27,43,19,-14,-19,-6,-2,1,24,49,31,10,5,-1,-20,-21,17,37,28,20,19,-2,-38,-37,15,9,3,16,26,-2,-45,-37,27,-29,-28,11,36,5,-40,-23,44,-63,-47,17,51,15,-31,-8,57,-74,-46,33,61,10,-33,-2,54,-67,-25,45,48,-12,-41,-6,36,-47,-6,42,22,-36,-49,-12,13,-30,5,31,-4,-46,-34,-6,-8,-16,9,16,-13,-24,0,8,-23,-8,6,6,-4,13,38,22,-38,-6,0,-2,6,40,62,22,-54,-5,-8,-13,3,45,58,11,-68,-1,-12,-27,-17,22,40,-2,-69,11,-8,-41,-42,-5,23,1,-50,34,8,-43,-56,-15,27,22,-20,63,30,-36,-54,-8,44,49,7,81,47,-26,-47,2,54,54,14,86,44,-25,-42,-2,36,31,-9,66,27,-32,-47,-20,3,-8,-40 },
{ 5,10,13,7,-14,-44,-74,-76,3,10,16,14,-5,-38,-67,-74,-4,2,15,23,17,-3,-26,-35,-16,-11,8,29,39,37,23,11,-30,-27,-6,21,43,53,52,40,-36,-38,-22,-2,17,34,41,36,-28,-30,-30,-29,-23,-9,4,6,0,-4,-21,-43,-52,-43,-26,-20,40,37,5,-33,-50,-39,-27,-27,67,67,29,-7,-12,-1,1,-13,66,60,29,15,28,42,30,-1,29,14,-3,9,44,58,31,-5,-20,-43,-47,-12,30,34,4,-22,-48,-70,-58,-22,6,-2,-25,-31,-35,-40,-26,-6,-7,-25,-32,-12,11,21,26,18,-9,-26,-10,24,52,64,55,20,-14,-14,20,56,48,52,28,-3,-21,-8,30,60,8,-4,-18,-25,-23,-7,17,32,-37,-50,-36,-18,-9,-11,-11,-7,-55,-47,-8,22,14,-16,-36,-37,-35,-9,41,60,25,-19,-40,-41,-8,27,65,58,17,-16,-23,-19,1,26,38,20,-6,-7,9,11,-13,-9,-16,-30,-23,13,42,33,-26,-36,-49,-52,-17,33,51,28,-16,-25,-40,-36,2,37,33,-6,18,15,-4,-8,12,23,-4,-47,53,49,23,6,9,-1,-36,-70,56,47,13,-4,-3,-9,-33,-57,25,3,-22,-20,1,14,7,-8,-20,-43,-48,-22,23,53,55,43 },
{ -76,-76,-60,-38,-24,-16,-10,-7,-59,-53,-30,-13,-6,-4,-4,-5,-14,7,25,26,19,11,6,-1,31,57,59,43,22,11,8,0,47,62,49,19,-3,-3,2,-4,25,25,-1,-29,-33,-17,-1,-6,-9,-26,-50,-60,-42,-8,9,-6,-30,-48,-59,-50,-12,24,25,-5,-20,-25,-25,-4,33,51,31,-13,11,18,20,32,47,45,10,-31,39,46,36,24,19,5,-21,-40,42,39,8,-19,-30,-32,-30,-27,25,6,-32,-55,-51,-26,-3,12,6,-17,-42,-45,-17,15,37,46,0,-11,-14,4,32,44,47,44,4,8,21,39,40,22,8,12,4,15,32,32,1,-39,-49,-23,-8,2,15,3,-40,-75,-61,-23,-25,-16,-1,-9,-39,-48,-22,9,-33,-19,6,11,3,11,34,43,-30,-7,25,35,38,49,60,44,-19,2,24,27,26,35,33,10,-11,1,1,-14,-20,-13,-18,-38,-3,-4,-25,-50,-52,-42,-46,-64,12,5,-25,-45,-36,-19,-28,-52,30,25,0,-4,20,36,17,-18,38,32,18,31,65,75,48,8,22,11,1,23,56,65,40,9,-5,-26,-40,-23,3,11,2,-7,-14,-39,-57,-58,-46,-37,-26,-15,17,4,-20,-37,-43,-34,-17,3,72,72,49,22,7,8,22,36 },
{ -56,-36,15,58,70,44,9,-13,-63,-39,19,62,60,29,-7,-24,-59,-34,12,33,19,-11,-29,-27,-40,-21,2,-2,-27,-43,-33,-12,-15,0,2,-23,-50,-43,-9,20,14,25,9,-24,-38,-12,32,52,35,39,17,-13,-13,25,60,53,37,37,10,-11,4,39,48,17,25,14,-11,-19,2,23,4,-44,4,-11,-28,-26,-3,2,-39,-88,-9,-20,-26,-12,9,-1,-46,-81,-7,-10,-4,16,32,21,-13,-33,2,7,16,31,43,38,30,28,7,10,7,8,12,23,43,61,5,-3,-23,-39,-41,-17,24,54,5,-8,-34,-60,-66,-45,-4,26,18,12,-6,-27,-42,-36,-19,-1,28,38,39,31,11,-8,-17,-16,17,34,58,66,45,10,-13,-19,-25,-9,30,52,34,6,-12,-17,-74,-59,-14,10,2,-7,-9,-8,-82,-69,-29,-16,-18,-8,5,4,-42,-20,-6,-16,-17,7,23,12,27,45,23,-9,-7,24,32,8,74,71,20,-20,-6,28,24,-12,66,43,-19,-42,-7,23,2,-36,25,-14,-56,-43,2,16,-17,-48,-13,-45,-50,-12,27,19,-21,-41,-19,-25,-5,33,47,17,-15,-13,3,12,32,49,31,1,-4,20,19,26,25,8,-19,-25,6,52,12,6,-19,-49,-66,-46,11,69 },
{ -9,6,25,21,-8,-29,-7,41,-10,10,33,26,-14,-40,-6,58,-18,4,33,24,-21,-47,-7,67,-31,-6,29,23,-24,-52,-10,64,-44,-16,28,27,-21,-51,-16,50,-53,-20,32,38,-10,-46,-20,30,-57,-18,40,49,4,-34,-23,6,-57,-16,44,53,12,-23,-23,-12,-58,-17,38,44,12,-11,-14,-22,-53,-21,20,22,4,3,3,-21,-43,-20,-2,-8,-5,20,25,-17,-19,-11,-19,-33,-8,40,40,-19,17,12,-25,-46,-8,50,42,-31,51,36,-24,-53,-6,49,23,-47,73,44,-25,-49,-1,34,1,-52,70,35,-29,-39,6,23,-10,-39,52,13,-32,-19,18,14,-9,-6,22,-7,-22,3,20,3,-1,29,-3,-16,-4,20,9,-17,3,56,-18,-12,18,26,-15,-43,0,66,-23,-1,35,20,-42,-60,-4,61,-22,8,40,14,-48,-60,-4,43,-26,7,40,15,-35,-36,-2,12,-35,0,36,24,-5,-6,-1,-20,-45,-9,29,30,20,17,-3,-49,-46,-18,14,21,25,28,-4,-63,-37,-19,-7,-3,17,31,2,-58,-12,-10,-24,-28,6,38,18,-38,23,8,-36,-46,0,47,39,-16,58,29,-37,-56,-3,52,45,-5,84,41,-35,-55,-7,39,33,-14,83,40,-30,-50,-15,17,7,-30 },
{ 46,25,-10,-18,12,57,79,59,41,13,-30,-40,-2,46,59,38,33,0,-44,-52,-22,8,8,-12,30,1,-35,-40,-22,-18,-37,-54,34,14,-6,-2,4,-16,-50,-58,30,22,21,36,36,6,-25,-26,9,7,23,46,48,22,9,25,-24,-26,-2,25,25,12,24,59,-51,-51,-26,-8,-17,-21,13,63,-42,-39,-18,-17,-41,-50,-10,43,-6,8,21,4,-36,-52,-25,12,29,51,57,33,-9,-31,-24,-10,31,46,53,38,16,2,-10,-22,-9,-8,1,12,25,28,4,-27,-57,-66,-51,-17,24,37,11,-26,-58,-69,-54,-19,21,33,7,-22,-5,-6,-10,-4,13,14,-1,-11,61,61,22,-6,-9,-7,-4,5,89,68,10,-26,-28,-14,2,21,54,20,-29,-38,-19,-5,10,30,-3,-36,-45,-13,10,6,9,24,-38,-47,-9,35,30,0,-8,8,-36,-12,43,61,21,-26,-31,-7,-15,22,60,45,-18,-52,-35,-7,-8,20,35,-3,-48,-41,-7,11,-19,-6,-8,-32,-31,5,33,24,-27,-25,-28,-22,13,52,51,9,-15,-17,-16,3,43,62,25,-30,12,9,1,11,33,23,-25,-70,33,23,-3,-11,-6,-17,-47,-70,38,14,-22,-34,-22,-10,-9,-8,28,1,-30,-29,4,39,62,69 },
{ -56,-50,-38,-34,-35,-17,24,55,-33,-18,-4,-11,-25,-15,27,60,7,33,44,21,-11,-15,15,40,30,60,63,31,-13,-29,-11,7,17,37,41,13,-25,-38,-31,-22,-26,-14,0,-6,-20,-24,-23,-29,-64,-51,-22,-1,10,15,7,-17,-68,-51,-10,21,42,50,31,-6,-41,-16,15,31,43,45,29,-9,1,20,19,3,-4,4,2,-20,35,36,-2,-47,-58,-31,-11,-19,50,35,-25,-71,-60,-16,10,0,48,23,-27,-43,-9,35,42,16,27,10,-8,6,44,59,31,3,-1,-5,7,34,46,16,-19,-25,-25,-18,10,26,-1,-47,-56,-31,-38,-20,11,6,-42,-68,-41,6,-29,-4,22,6,-32,-28,23,56,-12,15,32,14,0,30,70,65,-5,15,19,5,11,43,50,20,-9,-3,-12,-21,-8,8,-13,-52,-10,-13,-26,-32,-19,-21,-56,-90,3,0,-12,-9,3,-9,-45,-65,20,19,12,23,38,30,6,-5,21,15,10,27,48,48,46,48,2,-13,-20,-7,10,21,39,58,-16,-33,-43,-43,-41,-29,1,34,-5,-14,-23,-37,-55,-57,-28,8,24,33,33,11,-24,-42,-30,-3,28,50,63,55,20,-8,-12,-1,-19,-1,33,47,34,12,0,0,-89,-79,-34,2,12,5,-4,-6 },
{ 52,57,47,15,-22,-27,8,54,34,40,30,1,-34,-38,8,64,-8,-6,2,-8,-35,-38,3,54,-50,-41,-6,6,-14,-30,-6,33,-69,-43,16,42,16,-19,-19,5,-59,-22,46,71,31,-16,-29,-18,-43,0,57,62,19,-22,-30,-23,-31,1,34,25,-10,-23,-12,-11,-26,-10,-3,-21,-30,-2,24,8,-13,-12,-26,-44,-20,32,50,13,11,3,-26,-36,2,51,46,-12,38,24,-14,-23,15,44,9,-51,56,33,-11,-18,11,15,-29,-70,46,20,-19,-20,2,-2,-32,-43,21,-5,-25,-11,7,3,1,19,-3,-19,-15,7,14,11,34,70,-15,-13,8,19,1,-8,32,76,-14,1,25,15,-33,-48,-2,42,-11,13,34,4,-55,-67,-33,-4,-13,14,35,9,-36,-45,-30,-30,-27,2,33,27,13,10,-4,-35,-42,-18,16,34,48,54,18,-32,-47,-32,-11,10,45,57,21,-28,-23,-26,-38,-29,11,33,9,-27,27,4,-48,-58,-20,9,-2,-18,75,40,-35,-55,-18,6,1,-1,95,50,-17,-23,6,13,7,18,63,26,-7,8,25,10,1,27,4,-19,-6,27,21,-17,-20,27,-49,-48,3,36,0,-49,-36,26,-64,-33,30,40,-16,-61,-36,37,-37,6,57,48,-13,-49,-15,53 },
{ -29,0,49,75,67,37,21,19,-43,-14,36,58,35,6,1,13,-57,-34,2,5,-25,-42,-25,4,-47,-31,-13,-29,-60,-63,-25,9,-16,2,5,-21,-49,-35,5,27,20,39,35,9,-6,12,37,34,33,47,41,25,24,39,39,9,11,15,9,7,18,28,5,-37,-24,-32,-36,-24,-3,2,-32,-72,-36,-47,-43,-27,-3,1,-30,-63,-13,-14,-10,2,21,24,7,-12,25,30,23,20,27,38,41,37,46,42,16,-7,-7,14,40,51,32,16,-21,-49,-48,-26,6,29,4,-14,-36,-46,-49,-41,-24,-4,-13,-13,2,13,2,-20,-28,-19,-19,7,56,76,51,6,-18,-16,-27,5,56,72,37,3,-5,-3,-44,-23,5,2,-15,-10,9,11,-43,-42,-43,-56,-44,-5,24,16,-7,-13,-40,-54,-25,22,33,5,49,43,2,-14,16,40,17,-19,79,62,22,15,33,23,-17,-41,46,23,-2,8,16,-11,-42,-42,-15,-40,-37,-6,-2,-27,-35,-7,-50,-61,-27,7,2,-15,5,43,-37,-20,19,31,9,3,37,72,3,31,49,29,-8,-6,33,59,24,41,33,-9,-44,-32,0,13,5,9,-8,-39,-49,-38,-26,-30,-26,-24,-19,-10,1,2,-18,-47,-38,-24,14,53,73,58,10,-37 },
{ -20,10,34,13,-46,-81,-61,-12,-22,16,49,30,-31,-64,-31,17,-35,6,50,41,-2,-14,21,51,-56,-17,32,34,9,15,47,55,-71,-34,9,8,-6,9,31,13,-53,-25,-1,-14,-26,-11,-8,-44,-12,10,10,-17,-28,-13,-24,-75,30,43,22,-9,-6,18,0,-64,43,41,10,-11,17,57,43,-26,20,6,-27,-33,15,67,55,-2,-6,-27,-53,-50,-7,31,30,1,-5,-17,-31,-36,-26,-14,-5,-3,19,26,26,6,-27,-42,-22,7,25,50,63,38,-18,-42,-6,26,-9,19,50,33,-14,-19,18,34,-65,-37,12,13,-12,-1,25,17,-97,-57,-2,3,-10,5,12,-19,-57,-15,20,6,-7,6,-5,-47,12,44,37,-2,-8,12,-4,-46,50,56,8,-30,-7,26,12,-25,40,10,-45,-48,4,38,28,1,3,-31,-56,-30,17,34,22,12,-12,-23,-14,10,14,-3,-4,12,-1,16,42,35,-15,-48,-24,13,3,35,64,24,-48,-62,-18,24,-22,13,37,1,-46,-36,14,34,-56,-25,6,-5,-14,15,41,19,-60,-33,2,8,21,45,30,-22,-29,-2,13,13,26,31,-8,-70,18,27,7,-9,0,5,-29,-79,44,25,-22,-42,-17,11,1,-28,40,5,-45,-49,1,50,62,43 },
{ 13,21,20,0,-18,2,59,95,4,14,16,-8,-34,-18,41,81,-13,2,13,-8,-45,-44,-4,26,-28,-3,25,12,-29,-51,-39,-27,-40,-2,44,45,8,-25,-39,-49,-46,-9,44,58,36,14,-5,-34,-53,-23,16,29,30,37,31,-4,-42,-31,-22,-22,-5,33,45,10,-6,-11,-39,-62,-41,15,36,1,46,34,-20,-61,-40,6,14,-19,82,66,10,-24,-12,10,-2,-33,62,49,17,7,17,15,-7,-27,-4,-13,-4,19,25,6,-6,-3,-65,-62,-14,20,7,-14,2,24,-76,-45,12,20,-21,-31,11,40,-30,13,49,16,-43,-35,20,35,14,54,59,-4,-51,-16,24,5,12,35,20,-24,-25,15,15,-34,-23,-17,-21,-19,15,38,0,-62,-43,-41,-24,5,42,42,-11,-61,-25,-14,1,19,36,21,-10,-27,17,24,13,-1,-7,-6,8,21,42,32,-5,-38,-46,-18,30,57,30,12,-22,-47,-46,-13,37,60,3,-6,-7,-8,-16,-6,19,24,-22,-6,34,41,9,-15,-18,-24,-40,2,59,58,8,-29,-41,-49,-49,-4,44,32,-11,-26,-22,-34,-51,-15,7,-11,-19,10,30,4,-23,-10,-18,-36,-7,50,65,22,21,16,-21,-38,0,49,48,-11,58,39,-11,-37,-14,11,-11,-68 },
{ -88,-54,-10,6,5,12,18,2,-55,-15,22,17,1,8,17,-6,-5,35,45,10,-19,-4,11,-19,26,55,35,-18,-42,-11,12,-26,24,34,1,-48,-51,5,30,-24,-1,2,-23,-52,-26,39,48,-22,-22,-13,-17,-20,12,58,48,-29,-24,-2,12,11,21,44,23,-44,-17,17,35,14,-10,-5,-7,-44,-14,23,34,-7,-52,-39,-2,-14,-23,14,25,-25,-69,-25,42,29,-35,8,28,-16,-45,15,78,42,-45,9,44,5,-24,29,67,-1,-48,11,49,8,-31,3,12,-65,-52,10,45,-4,-48,-19,-16,-91,-50,9,38,-11,-41,5,18,-58,-45,11,34,-11,-17,54,79,-2,-35,15,24,-23,-16,63,86,14,-25,16,12,-42,-46,18,43,-13,-17,22,15,-45,-68,-27,-4,-41,-16,30,40,-14,-52,-29,-10,-34,-30,27,60,24,-13,4,22,-5,-60,4,55,32,6,30,49,17,-81,-21,28,4,-14,20,42,10,-71,-16,6,-34,-48,-6,14,-16,-19,22,10,-42,-47,-11,-2,-32,30,52,24,-18,-14,11,4,-29,30,39,17,4,22,34,13,-16,-12,-14,-12,8,29,27,9,-2,-48,-47,-22,0,5,-5,-4,8,-34,-18,3,1,-23,-33,-12,24,18,41,43,13,-28,-38,-3,42 },
{ 19,43,72,79,64,34,8,-8,-15,0,25,33,19,2,-10,-16,-56,-53,-38,-34,-38,-30,-18,-13,-50,-51,-44,-47,-43,-19,6,8,4,13,9,-5,-4,20,39,25,53,68,51,26,20,36,38,12,50,52,32,5,-1,8,2,-26,-1,-10,-25,-37,-33,-22,-28,-50,-46,-52,-47,-35,-21,-10,-15,-34,-38,-28,-2,17,24,30,25,5,1,27,52,49,36,36,43,27,18,41,43,13,-21,-12,18,16,-3,5,-7,-52,-83,-51,-7,-7,-26,-19,-21,-49,-56,-21,6,-15,-26,0,25,24,26,41,32,-17,-17,22,60,63,51,51,23,-28,-27,7,30,11,-9,-3,-7,-35,-37,-20,-22,-55,-65,-33,-6,-16,-23,-11,-24,-54,-49,0,31,15,12,31,21,-1,10,45,53,25,28,47,47,31,28,33,26,-1,-6,8,17,6,-14,-20,-24,-34,-53,-38,-16,-25,-49,-49,-37,-31,-57,-31,1,-9,-29,-18,2,3,-19,23,50,29,15,34,50,32,13,47,47,23,16,39,44,20,4,8,-9,-29,-21,-1,-2,-22,-22,-34,-49,-54,-37,-26,-34,-45,-18,-21,-20,-9,1,-6,-21,-27,10,24,38,50,44,28,15,11,17,28,39,37,26,17,23,31,-20,-24,-33,-43,-49,-37,-6,20 },
{ 55,38,-5,-35,-29,-4,-5,-35,51,30,-16,-38,-16,16,8,-35,27,5,-24,-23,12,42,26,-27,-2,-16,-22,-6,28,51,28,-22,-16,-18,-11,4,19,25,10,-23,-12,-2,8,4,-12,-12,-7,-18,0,18,26,-3,-42,-35,-1,5,3,28,33,-7,-51,-30,26,32,-14,17,34,-4,-42,-4,55,35,-40,-2,30,4,-26,12,47,0,-62,-12,32,10,-20,5,15,-56,-60,-5,41,12,-24,-1,-2,-84,-47,12,47,2,-29,12,23,-63,-29,21,33,-20,-34,40,68,-18,-20,17,12,-45,-44,49,91,7,-16,15,4,-54,-55,29,65,-9,-14,24,27,-32,-60,-7,20,-40,-23,33,61,7,-46,-22,0,-46,-51,20,78,30,-32,-8,20,-22,-86,-6,64,21,-29,14,52,6,-105,-19,41,-10,-42,23,65,8,-74,1,28,-36,-51,18,44,-16,-18,38,29,-39,-47,8,14,-45,18,52,25,-27,-24,10,-1,-52,8,22,12,-6,5,20,5,-30,-34,-19,2,10,14,21,18,2,-62,-32,8,11,-4,2,23,29,-47,-5,29,3,-37,-27,18,37,-12,32,46,-10,-61,-39,11,27,1,38,35,-14,-44,-23,9,5,-22,1,14,4,0,13,8,-25,-56,-36,0,24,38,35,0,-51 },
{ 20,-18,-49,-18,45,61,17,-32,31,-16,-54,-24,41,53,-2,-45,51,1,-45,-23,25,20,-24,-36,64,18,-28,-17,9,-6,-27,-4,59,17,-17,-5,3,-17,-13,43,27,-1,-9,9,4,-22,1,72,-11,-20,0,24,6,-29,-7,62,-35,-28,15,38,5,-43,-31,27,-41,-18,30,45,5,-43,-46,-9,-26,-7,26,36,11,-19,-26,-20,-6,-5,-2,5,18,24,12,-12,18,-9,-41,-32,20,55,31,-11,45,-5,-65,-51,16,48,16,-25,66,13,-46,-37,10,16,-16,-31,68,27,-9,-1,6,-17,-26,-5,30,13,17,26,-2,-29,-2,38,-32,-21,23,30,-17,-27,28,59,-66,-35,26,22,-31,-25,28,34,-57,-9,36,7,-37,-16,10,-25,-16,25,36,-4,-22,7,-4,-70,9,27,11,-16,6,42,5,-76,6,1,-24,-27,25,64,22,-48,-4,-20,-39,-26,20,47,31,-4,4,-6,-18,-20,-13,5,25,29,21,26,23,-12,-52,-38,16,42,10,37,48,0,-62,-52,12,35,-33,13,55,17,-42,-28,14,5,-81,-19,48,29,-9,5,13,-28,-98,-25,39,24,7,24,10,-56,-52,-1,20,-6,-4,31,13,-57,15,28,-10,-50,-23,35,32,-30,60,38,-34,-72,-25,44,51,0 },
{ 16,3,-22,-30,-2,50,87,66,20,8,-19,-36,-18,25,45,22,22,17,-1,-24,-32,-21,-22,-46,12,23,25,7,-18,-32,-49,-72,-15,10,40,36,15,-2,-15,-36,-49,-18,26,37,23,30,41,23,-68,-37,1,1,-8,24,62,47,-45,-20,-7,-36,-54,-12,34,21,8,31,18,-39,-70,-32,-1,-28,41,65,44,-9,-30,-5,-5,-50,19,36,36,17,20,37,16,-40,-46,-31,-4,10,30,48,26,-19,-83,-61,-25,-11,-2,12,15,1,-41,-12,7,-16,-41,-27,5,16,31,62,53,-7,-50,-29,11,24,46,69,46,-5,-26,-3,17,16,-12,-7,-7,-6,10,19,5,-12,-67,-62,-28,8,29,15,-21,-33,-58,-36,1,24,25,-5,-32,-20,9,29,27,15,-1,-17,-13,17,56,47,6,-21,-19,-6,15,50,37,5,-40,-39,-6,8,16,44,-2,-35,-46,-6,26,4,-18,5,-14,-26,-2,45,43,-17,-55,-26,2,7,35,57,31,-35,-62,-17,13,10,9,18,5,-23,-19,24,12,-18,-45,-30,0,14,29,56,20,-27,-65,-36,19,35,28,38,48,-1,-36,-2,37,13,-24,-17,60,25,0,27,27,-28,-69,-48,33,3,0,25,13,-35,-52,-6,-23,-41,-23,13,18,3,21,72 },
{ 50,21,-10,-15,-11,-13,-1,37,32,1,-23,-12,-1,-13,-7,38,7,-19,-22,10,21,-11,-22,27,-11,-26,-6,37,39,-16,-41,13,-13,-20,6,49,43,-25,-55,10,-2,-15,-1,35,29,-30,-45,22,14,-13,-25,3,16,-18,-23,41,35,-11,-45,-18,18,1,-7,44,59,-4,-55,-15,37,16,-17,18,69,0,-48,1,53,10,-45,-13,63,-6,-42,17,57,-8,-66,-18,44,-21,-41,21,47,-19,-49,15,28,-29,-40,17,32,-16,-10,59,25,-20,-26,12,13,-17,9,64,34,0,-11,6,-4,-23,-3,15,34,9,-3,3,-8,-18,-19,-39,16,-1,-3,6,8,11,-6,-63,-5,-15,-6,5,17,43,27,-48,-14,-13,-5,-11,-1,45,54,-22,-4,9,4,-34,-42,22,57,-10,5,33,26,-45,-77,0,52,-14,-10,40,47,-32,-71,0,43,-27,-50,23,67,0,-45,15,41,-40,-92,4,73,15,-29,26,39,-46,-110,0,66,-3,-40,22,41,-42,-77,17,43,-37,-55,20,42,-30,-30,36,25,-53,-52,26,45,-16,-2,39,15,-42,-27,33,37,-10,-8,18,12,-12,-4,18,15,-10,-37,-6,20,14,-5,-13,-11,-5,-57,-12,34,23,-19,-36,-15,19,-47,0,41,21,-25,-35,4,49 },
{ 88,47,-16,-40,-24,-10,-24,-44,64,19,-34,-36,2,20,-3,-31,19,-20,-39,-8,40,47,20,-6,-16,-38,-25,18,48,40,14,5,-21,-23,1,24,15,-13,-17,4,-3,8,24,14,-34,-62,-30,13,11,27,34,0,-56,-56,-2,33,0,19,28,-1,-33,-8,41,39,-29,-8,14,5,1,36,54,-2,-46,-24,4,4,8,36,13,-67,-35,-11,7,-5,-8,7,-21,-94,-2,19,17,-15,-25,4,2,-51,20,33,19,-24,-27,28,63,24,5,19,7,-30,-29,32,73,49,-27,-5,7,-20,-38,-7,22,7,-48,-5,37,11,-38,-44,-34,-38,-52,14,73,40,-17,-33,-34,-33,-47,13,54,31,4,11,14,8,-41,-12,-5,-16,11,44,45,34,-15,-22,-51,-49,5,32,16,16,38,5,-44,-33,5,-10,-42,-16,68,34,-6,13,18,-36,-62,-14,50,17,11,45,33,-27,-36,29,-13,-35,-6,40,31,-12,1,67,-50,-58,-24,15,10,-12,9,60,-12,-20,-14,-1,-5,-22,-16,16,55,33,0,-2,0,-20,-41,-30,77,34,-16,1,30,6,-39,-41,43,-22,-55,5,62,34,-17,-18,1,-59,-60,12,58,32,-3,14,13,-22,-26,8,17,-11,-11,38,61,39,13,-3,-36,-56,-22,47 },
{ 13,-2,7,44,57,14,-22,2,-1,-27,-21,22,36,-10,-36,12,-1,-36,-43,-4,11,-30,-40,32,27,-16,-35,-3,11,-29,-28,53,60,11,-17,16,31,-14,-21,58,61,10,-16,26,44,-11,-33,35,35,-23,-40,17,44,-19,-56,3,10,-48,-54,14,45,-18,-59,-10,18,-35,-42,23,54,-3,-36,6,48,-4,-23,22,44,9,-3,28,69,12,-27,-5,12,2,10,24,58,1,-42,-33,-16,-9,4,-2,30,-12,-33,-20,-13,-2,4,-31,5,-5,11,21,7,16,17,-40,-17,8,46,32,-3,20,35,-33,-36,7,41,-7,-50,8,47,-23,-51,3,25,-53,-88,10,61,-21,-40,21,34,-45,-59,34,55,-31,-27,39,58,-5,-16,40,29,-43,-37,28,54,8,-6,17,-3,-38,-63,-4,23,-10,-24,-12,-13,1,-59,-15,2,-21,-26,-18,2,46,-19,10,10,-3,-1,-5,10,63,21,29,15,19,23,-10,-18,41,26,1,-11,23,30,-33,-64,6,2,-40,-40,21,33,-41,-71,0,2,-47,-46,29,51,-17,-43,29,39,-18,-32,36,61,5,-12,51,79,4,-37,16,41,-4,-17,43,75,-9,-57,-13,12,-30,-40,13,47,-27,-54,-1,17,-26,-46,-5,24,-20,-10,46,58,11,-19,3 },
},
{
{ 1,1,1,2,2,3,3,4,1,3,4,5,6,6,7,8,2,5,7,9,10,12,13,13,3,7,10,13,16,18,18,19,5,9,14,18,21,24,24,24,6,12,17,23,27,29,30,29,7,14,21,27,32,34,34,33,8,15,23,30,36,38,38,36,8,17,25,33,39,41,42,40,9,17,27,35,41,44,44,42,9,18,27,36,42,46,46,44,9,18,28,37,43,47,47,45,9,18,28,37,44,48,48,46,9,18,28,37,44,48,49,47,9,18,28,37,44,48,49,47,9,18,28,37,44,49,49,48,9,18,27,36,44,49,50,48,8,17,27,36,44,48,50,49,8,17,26,36,43,48,50,49,8,17,26,35,43,48,50,49,8,16,25,35,42,47,49,49,8,16,25,34,42,47,49,49,7,15,24,33,41,46,49,48,7,15,24,32,40,46,48,48,7,14,23,32,39,45,48,48,7,14,22,31,38,44,47,47,6,13,21,30,37,43,46,47,6,13,20,29,36,42,45,46,5,12,19,27,35,41,44,45,5,11,18,26,33,39,43,44,5,10,17,25,32,37,41,42,4,9,16,23,30,35,39,41 },
{ 4,7,10,12,12,11,10,8,8,15,20,24,25,23,19,15,12,22,32,37,39,36,30,23,16,30,42,50,52,48,40,30,18,35,51,60,63,58,48,36,20,39,55,67,69,63,52,39,20,39,56,68,70,64,52,40,19,38,54,65,68,62,51,38,18,35,50,60,63,57,47,35,15,30,44,53,55,50,41,31,13,26,37,45,46,42,35,27,11,21,30,36,38,35,29,22,8,16,23,28,29,27,23,17,6,12,18,21,21,20,16,13,4,9,12,14,14,13,10,8,3,5,7,7,7,6,5,3,1,2,2,1,0,-1,-1,-2,-1,-1,-3,-4,-6,-7,-7,-6,-2,-4,-7,-9,-11,-12,-12,-11,-3,-6,-10,-14,-16,-17,-17,-15,-4,-9,-13,-18,-21,-23,-21,-19,-5,-11,-16,-22,-26,-27,-26,-23,-6,-12,-19,-25,-30,-32,-30,-27,-7,-14,-21,-29,-34,-36,-34,-30,-8,-15,-23,-31,-37,-39,-38,-33,-8,-16,-25,-34,-40,-43,-41,-36,-8,-17,-26,-35,-42,-45,-43,-38,-8,-17,-27,-36,-44,-47,-45,-40,-8,-17,-27,-37,-45,-48,-47,-42,-8,-17,-27,-37,-45,-48,-47,-43,-8,-16,-26,-36,-44,-48,-47,-43,-8,-16,-25,-34,-42,-46,-46,-42 },
{ 1,2,5,7,8,8,8,8,0,2,5,10,13,15,16,16,-2,-1,3,10,17,22,25,25,-4,-6,-1,7,18,27,31,32,-8,-12,-8,2,17,29,37,39,-12,-19,-16,-5,13,29,39,43,-16,-26,-25,-13,7,27,40,45,-20,-33,-34,-22,0,23,39,46,-24,-40,-43,-31,-7,18,38,47,-26,-45,-49,-38,-13,14,36,47,-28,-48,-54,-44,-19,10,34,46,-29,-50,-58,-48,-23,7,32,46,-30,-52,-60,-51,-26,4,30,45,-30,-52,-61,-53,-28,2,29,45,-30,-52,-61,-54,-30,1,27,44,-29,-51,-61,-54,-31,0,26,44,-29,-50,-60,-54,-31,-1,26,44,-28,-49,-59,-53,-31,-2,25,44,-27,-47,-57,-52,-31,-2,25,43,-26,-46,-55,-50,-30,-2,25,44,-25,-44,-53,-48,-29,-2,25,44,-23,-42,-50,-46,-28,-1,25,44,-22,-39,-48,-44,-26,0,26,44,-20,-37,-45,-41,-24,1,26,44,-19,-34,-42,-38,-21,3,27,45,-17,-31,-38,-35,-19,4,28,45,-16,-28,-35,-31,-16,6,28,45,-14,-25,-31,-27,-13,8,29,45,-12,-22,-27,-23,-9,10,30,45,-10,-19,-22,-19,-6,12,31,45,-7,-14,-18,-14,-2,15,32,45,-5,-10,-13,-9,2,17,32,44 },
{ -11,-18,-24,-27,-26,-22,-15,-8,-17,-31,-41,-47,-45,-38,-26,-15,-22,-41,-57,-64,-62,-50,-35,-21,-26,-48,-66,-74,-70,-57,-39,-23,-26,-49,-69,-76,-71,-56,-37,-20,-24,-45,-61,-68,-61,-47,-29,-14,-19,-35,-48,-52,-45,-32,-17,-5,-13,-24,-31,-32,-24,-13,-2,6,-7,-13,-15,-12,-4,5,13,17,-2,-3,-1,5,13,21,25,26,2,4,10,18,27,33,35,33,4,10,17,27,36,41,42,38,6,13,22,32,41,46,46,42,7,14,23,34,43,48,48,44,6,13,22,33,42,48,48,44,6,12,20,30,39,45,46,43,4,10,17,26,35,42,44,41,3,7,13,21,30,37,40,38,2,4,8,15,24,31,35,35,0,1,3,9,17,24,29,30,-2,-3,-2,2,9,17,23,25,-4,-7,-8,-5,1,9,16,20,-6,-11,-14,-13,-8,0,8,13,-8,-14,-19,-20,-16,-9,0,7,-9,-18,-24,-27,-25,-18,-8,0,-11,-21,-29,-33,-32,-26,-16,-6,-12,-23,-33,-39,-39,-33,-23,-12,-13,-25,-36,-44,-45,-40,-29,-18,-13,-26,-39,-48,-51,-46,-35,-23,-14,-27,-40,-51,-54,-50,-40,-28,-14,-27,-41,-51,-56,-53,-43,-31,-14,-27,-40,-50,-55,-53,-45,-33 },
{ 5,5,1,-7,-15,-20,-21,-20,9,10,4,-9,-24,-35,-39,-36,14,19,12,-7,-31,-48,-55,-51,21,30,24,1,-31,-55,-65,-62,28,42,39,14,-24,-55,-70,-67,33,53,53,29,-11,-48,-66,-67,37,60,64,43,3,-36,-58,-62,37,63,71,54,16,-23,-48,-55,35,61,72,59,26,-12,-38,-47,30,55,66,57,29,-5,-29,-40,24,44,55,49,28,0,-22,-32,17,32,41,39,23,2,-16,-26,10,20,28,27,18,2,-12,-20,4,9,15,16,11,2,-9,-15,-2,-1,3,5,5,0,-6,-10,-6,-9,-9,-5,-2,-1,-3,-6,-11,-17,-19,-15,-8,-3,-1,-1,-14,-24,-27,-23,-13,-4,1,3,-17,-29,-34,-29,-17,-5,4,7,-19,-33,-39,-34,-20,-5,7,12,-21,-36,-43,-38,-22,-4,10,16,-22,-39,-46,-40,-23,-3,13,21,-23,-40,-47,-41,-23,0,17,26,-23,-40,-47,-41,-21,2,21,31,-22,-39,-47,-40,-19,6,26,36,-21,-37,-44,-37,-16,10,31,41,-20,-35,-41,-33,-12,14,35,45,-18,-31,-36,-28,-7,19,40,50,-16,-27,-31,-22,-2,23,44,54,-13,-23,-25,-16,4,28,48,58,-10,-17,-18,-9,10,32,51,60,-6,-11,-10,-2,15,36,52,61 },
{ 17,28,36,37,31,22,11,3,26,44,57,60,51,35,18,5,31,54,71,73,62,40,18,2,31,56,71,73,58,34,10,-6,26,46,60,58,42,18,-4,-18,15,28,36,32,16,-5,-22,-31,4,8,9,2,-12,-27,-39,-42,-6,-10,-15,-23,-34,-45,-51,-50,-12,-22,-31,-38,-47,-54,-57,-54,-14,-26,-35,-42,-47,-52,-54,-52,-14,-25,-32,-36,-39,-42,-46,-45,-12,-21,-25,-25,-25,-29,-34,-37,-10,-15,-16,-12,-10,-13,-21,-27,-7,-9,-7,0,4,2,-7,-16,-4,-4,2,12,19,16,7,-5,-1,2,10,22,31,30,19,5,1,6,16,30,41,41,30,15,2,8,19,35,47,49,38,22,2,8,20,36,50,53,44,28,2,7,19,35,50,55,47,31,1,5,16,32,47,54,48,33,0,2,11,26,42,50,46,33,-3,-3,4,18,33,43,42,31,-5,-8,-3,8,24,35,35,28,-8,-13,-12,-2,13,24,28,23,-11,-18,-20,-13,1,13,19,17,-14,-24,-28,-24,-12,1,8,9,-16,-29,-36,-35,-25,-12,-2,1,-18,-33,-43,-45,-37,-25,-13,-7,-19,-36,-48,-53,-47,-36,-23,-15,-20,-37,-51,-57,-55,-45,-33,-23,-20,-37,-52,-59,-58,-51,-39,-29 },
{ 7,10,7,-3,-17,-27,-31,-28,11,17,13,-3,-25,-44,-50,-48,16,24,21,2,-27,-52,-65,-63,17,31,31,14,-19,-52,-69,-70,16,32,40,27,-4,-38,-62,-68,11,27,40,39,15,-18,-46,-59,2,15,33,42,32,4,-26,-44,-8,-1,19,39,42,23,-6,-28,-20,-19,1,29,45,36,11,-14,-30,-36,-18,16,41,43,22,-3,-38,-51,-36,-1,34,43,29,4,-44,-63,-52,-16,24,41,31,9,-48,-70,-63,-27,15,38,33,11,-48,-72,-66,-34,10,35,32,12,-46,-69,-66,-35,6,31,30,12,-42,-64,-61,-33,5,29,28,11,-38,-57,-54,-29,5,26,25,8,-32,-48,-45,-23,7,25,22,6,-26,-38,-34,-15,10,24,19,3,-20,-28,-23,-5,14,23,16,-1,-14,-17,-11,4,19,22,12,-5,-8,-7,1,13,23,22,8,-10,-2,2,12,22,26,20,3,-16,4,11,21,29,29,18,-2,-23,8,18,29,35,31,14,-9,-30,12,24,35,39,30,10,-16,-37,14,27,38,40,28,4,-23,-44,16,30,39,39,24,-2,-30,-51,16,30,39,36,19,-9,-38,-58,16,28,35,31,12,-16,-45,-65,14,24,29,23,4,-23,-51,-69,10,19,22,16,-3,-29,-54,-71 },
{ -7,-15,-26,-33,-34,-27,-16,-4,-7,-18,-34,-48,-51,-42,-24,-5,-1,-10,-29,-47,-56,-46,-24,-1,10,8,-9,-32,-45,-39,-16,8,24,31,19,-5,-23,-21,-1,21,36,52,44,21,-1,-3,14,34,43,63,59,34,12,8,23,42,44,65,58,33,10,8,25,46,40,55,46,18,-4,-3,20,45,31,42,26,-4,-25,-19,10,40,23,26,5,-27,-47,-36,-1,34,16,13,-11,-46,-64,-50,-11,28,11,5,-22,-57,-75,-58,-17,25,10,3,-25,-60,-77,-61,-19,24,10,5,-21,-55,-73,-57,-17,25,12,9,-14,-46,-63,-50,-12,28,16,15,-4,-34,-52,-41,-6,32,19,22,6,-21,-39,-31,1,37,22,29,17,-7,-25,-19,9,41,25,35,27,6,-12,-9,17,46,28,41,36,17,0,2,23,50,29,44,42,26,9,9,28,52,29,45,45,30,14,13,30,52,28,44,45,31,16,14,30,51,26,41,41,28,14,12,27,48,22,34,34,22,8,7,22,43,17,25,23,10,-2,-2,13,35,11,15,10,-3,-15,-14,3,26,4,4,-4,-18,-30,-28,-9,15,-2,-7,-18,-34,-45,-42,-22,3,-9,-18,-32,-48,-59,-55,-36,-9,-15,-27,-42,-59,-69,-66,-46,-19 },
{ 27,39,42,35,23,9,1,-1,38,58,62,51,28,9,-1,-3,46,68,70,51,22,-1,-9,-6,46,69,64,38,4,-18,-20,-11,42,57,47,13,-22,-38,-32,-14,32,40,22,-15,-47,-55,-37,-13,22,23,0,-37,-64,-61,-35,-5,16,12,-13,-48,-67,-57,-25,7,14,8,-17,-47,-61,-43,-9,24,14,11,-10,-37,-45,-26,10,40,17,17,0,-22,-28,-7,27,55,20,23,10,-9,-13,8,41,67,22,27,17,0,-3,17,50,75,23,30,20,4,0,20,52,79,23,30,20,3,-3,16,50,77,23,29,18,-1,-8,9,43,73,21,26,15,-6,-16,0,35,67,20,24,11,-12,-24,-10,25,59,18,21,7,-18,-33,-21,13,49,16,19,3,-23,-41,-32,2,39,16,17,1,-27,-47,-41,-9,28,15,17,1,-28,-51,-48,-18,19,15,17,2,-26,-52,-52,-25,11,16,20,6,-23,-50,-54,-31,4,17,22,11,-17,-46,-53,-34,-1,19,26,17,-9,-38,-49,-34,-4,21,31,25,1,-28,-41,-31,-5,23,36,33,12,-16,-32,-25,-4,25,40,41,24,-2,-20,-18,-2,25,43,47,34,11,-7,-9,3,26,44,51,42,23,5,1,9,25,43,52,46,30,15,9,14 },
{ -1,-5,-12,-24,-37,-45,-45,-36,0,-1,-11,-28,-49,-65,-66,-55,5,7,2,-15,-41,-63,-71,-63,8,17,22,14,-10,-39,-56,-55,6,21,40,45,30,-1,-27,-37,-2,13,39,60,58,34,3,-16,-16,-9,18,49,65,51,24,2,-30,-36,-15,21,49,51,33,13,-42,-58,-48,-13,23,37,30,16,-45,-68,-65,-39,-3,19,21,13,-41,-63,-67,-49,-20,2,9,8,-31,-50,-55,-46,-26,-8,0,2,-18,-30,-36,-32,-23,-13,-5,-1,-4,-7,-11,-13,-14,-12,-8,-4,10,15,15,9,0,-6,-7,-5,21,35,38,30,14,0,-6,-5,30,50,57,46,25,5,-5,-5,34,57,64,54,29,6,-6,-6,34,56,64,52,27,4,-8,-7,31,52,57,45,20,-2,-12,-9,26,42,46,33,10,-10,-17,-12,18,30,30,17,-4,-20,-22,-14,10,15,12,-1,-19,-29,-27,-15,2,2,-5,-18,-32,-38,-30,-15,-5,-10,-19,-32,-43,-42,-31,-13,-10,-18,-29,-40,-46,-42,-26,-7,-13,-22,-33,-42,-44,-35,-17,3,-13,-23,-32,-38,-36,-24,-4,15,-12,-20,-27,-28,-22,-6,14,31,-8,-14,-16,-13,-2,15,35,50,-2,-3,-1,7,21,39,57,68,6,9,15,25,41,59,74,82 },
{ -21,-35,-46,-46,-33,-12,8,18,-25,-44,-60,-63,-44,-13,16,31,-19,-36,-54,-57,-40,-5,28,45,-4,-14,-28,-35,-22,9,40,55,16,18,8,-4,-1,20,46,59,33,47,39,21,9,18,38,52,42,60,54,27,4,2,19,35,41,60,50,17,-15,-23,-6,14,33,47,35,-2,-38,-46,-30,-5,21,29,15,-19,-52,-61,-43,-18,8,11,-2,-29,-55,-61,-46,-23,-2,-3,-11,-29,-47,-52,-40,-21,-9,-11,-15,-22,-32,-34,-27,-15,-12,-14,-12,-10,-12,-13,-10,-4,-13,-14,-6,4,10,11,9,8,-14,-13,0,17,30,32,27,20,-15,-13,4,27,46,50,42,30,-16,-15,3,31,53,59,50,36,-19,-19,-2,26,51,58,50,36,-21,-24,-9,18,43,52,45,32,-25,-30,-18,7,31,40,36,23,-27,-36,-27,-6,15,25,21,12,-28,-38,-34,-18,-1,7,4,-3,-27,-39,-39,-28,-15,-11,-14,-18,-25,-37,-38,-32,-25,-25,-30,-33,-20,-29,-31,-29,-27,-32,-39,-43,-12,-17,-18,-18,-21,-32,-44,-49,-4,-3,-1,-1,-9,-26,-42,-50,6,14,20,20,8,-14,-36,-48,16,30,41,43,29,3,-24,-40,26,45,61,65,52,24,-7,-28,33,56,74,81,69,41,9,-15 },
{ 28,31,18,-3,-19,-20,-10,3,42,51,30,-4,-30,-32,-12,8,54,65,39,-7,-42,-40,-12,18,58,73,42,-13,-50,-45,-7,29,56,68,37,-22,-58,-43,3,44,46,56,23,-31,-59,-37,16,58,34,38,8,-37,-57,-26,29,70,22,23,-4,-41,-50,-15,40,78,14,13,-10,-38,-42,-6,46,80,9,8,-9,-31,-32,-1,44,76,6,6,-5,-20,-23,0,38,65,3,5,0,-10,-14,0,28,52,0,4,5,-1,-7,-1,17,36,-2,3,8,6,-1,-4,5,19,-5,0,9,11,3,-7,-7,2,-8,-4,8,15,6,-10,-19,-15,-11,-8,7,18,11,-11,-28,-31,-15,-12,4,20,15,-10,-34,-43,-18,-16,2,21,20,-6,-37,-51,-21,-21,-1,23,26,-1,-37,-58,-24,-25,-3,25,33,6,-35,-61,-27,-29,-6,27,39,14,-30,-61,-29,-33,-10,27,45,23,-22,-58,-32,-37,-13,26,50,32,-14,-54,-35,-41,-18,24,52,39,-6,-48,-37,-45,-23,20,52,44,1,-43,-39,-49,-30,13,49,45,6,-37,-40,-53,-35,6,44,45,10,-32,-40,-54,-40,-1,37,42,12,-27,-37,-53,-42,-7,29,37,12,-23,-33,-48,-41,-12,21,30,11,-20,-28,-42,-37,-13,15,24,9,-18 },
{ 2,7,17,34,52,62,59,43,0,2,14,35,60,78,76,60,-6,-9,-5,10,35,56,64,54,-8,-19,-28,-29,-14,10,26,30,-2,-15,-38,-56,-58,-40,-16,-1,13,6,-18,-50,-69,-64,-42,-23,29,34,19,-12,-43,-53,-44,-29,36,54,53,33,1,-21,-28,-23,29,50,65,59,38,12,-5,-11,10,25,43,55,49,31,12,0,-14,-12,4,25,38,33,21,9,-34,-47,-36,-11,15,25,21,12,-47,-68,-65,-39,-7,14,18,13,-47,-72,-72,-51,-18,5,13,11,-39,-60,-62,-45,-20,0,8,8,-25,-40,-41,-30,-14,-1,5,4,-10,-16,-15,-9,-3,1,2,1,5,8,11,12,10,5,0,-2,18,29,34,31,21,8,-2,-5,28,44,51,46,29,9,-5,-9,33,52,61,53,32,7,-9,-13,31,50,57,50,26,1,-15,-18,24,40,45,36,15,-9,-22,-22,15,25,27,19,0,-20,-29,-26,5,9,8,0,-15,-29,-33,-27,-4,-7,-10,-17,-27,-34,-32,-25,-12,-18,-24,-28,-33,-32,-26,-17,-16,-26,-32,-34,-32,-25,-15,-5,-18,-29,-35,-32,-24,-11,1,10,-16,-26,-28,-22,-8,9,23,29,-10,-15,-13,-2,15,34,46,49,-1,-2,4,18,37,56,65,65 },
{ -33,-52,-68,-65,-47,-18,10,23,-33,-56,-73,-76,-52,-15,20,38,-17,-30,-45,-48,-32,2,35,50,9,12,6,-2,1,20,43,55,30,48,52,38,24,24,36,46,35,60,64,47,19,5,11,23,24,41,45,24,-9,-28,-22,-5,2,10,10,-8,-38,-57,-49,-28,-18,-19,-19,-28,-49,-63,-59,-38,-30,-36,-29,-25,-33,-45,-45,-33,-34,-38,-23,-5,0,-10,-18,-17,-33,-34,-11,20,35,26,10,1,-31,-29,-1,37,60,53,33,16,-28,-26,2,42,67,64,43,24,-26,-25,-1,35,60,58,41,24,-24,-26,-8,21,43,44,31,18,-22,-26,-14,6,22,23,16,8,-19,-23,-18,-8,1,1,-3,-4,-12,-16,-17,-16,-17,-20,-21,-17,-5,-7,-11,-19,-29,-37,-36,-28,4,5,-2,-17,-35,-47,-47,-35,13,18,11,-8,-32,-49,-49,-36,21,30,26,5,-22,-41,-43,-31,28,41,38,19,-9,-30,-33,-22,31,46,47,29,3,-16,-19,-9,29,45,46,33,11,-4,-5,4,23,35,37,27,14,5,9,18,13,20,20,15,10,11,20,31,1,1,-1,-3,1,12,29,42,-11,-20,-26,-25,-13,8,32,49,-23,-39,-49,-47,-30,-1,30,50,-33,-53,-65,-63,-42,-10,24,48 },
{ 45,50,28,-9,-33,-27,-1,23,60,72,41,-11,-45,-36,4,40,64,77,46,-15,-55,-39,12,57,52,67,36,-23,-60,-40,20,71,30,38,15,-33,-63,-36,26,78,3,7,-5,-35,-52,-29,28,77,-20,-19,-14,-22,-32,-16,25,65,-35,-33,-11,1,-3,-3,18,48,-43,-36,0,28,24,6,7,26,-43,-35,10,47,41,8,-8,2,-44,-33,14,54,46,4,-25,-20,-42,-33,13,53,43,-5,-40,-39,-42,-34,9,46,37,-12,-52,-53,-39,-35,4,40,31,-17,-56,-60,-36,-33,1,33,27,-17,-54,-58,-32,-31,-2,27,23,-13,-46,-51,-28,-27,-3,22,21,-8,-36,-39,-24,-23,-2,20,20,-2,-23,-25,-19,-17,0,17,18,4,-10,-9,-14,-12,1,14,16,8,3,7,-8,-6,2,9,11,9,12,22,-4,-2,3,3,3,6,18,33,1,3,3,-3,-8,0,20,41,6,8,4,-9,-18,-9,19,46,11,15,6,-14,-29,-19,15,49,17,22,10,-17,-37,-28,10,50,23,29,15,-17,-44,-36,4,48,28,37,22,-14,-46,-43,-1,45,33,44,30,-9,-46,-46,-6,42,36,50,36,-3,-41,-45,-8,39,37,51,40,3,-34,-39,-8,35,34,49,40,8,-25,-32,-6,32 },
{ 23,27,21,1,-25,-46,-55,-47,27,34,27,6,-25,-52,-64,-60,22,28,26,15,-6,-28,-46,-48,7,10,12,19,20,10,-7,-19,-10,-17,-13,8,34,42,31,12,-21,-38,-38,-14,25,51,47,30,-20,-39,-50,-35,2,33,40,29,-4,-19,-37,-41,-20,6,18,15,21,16,-5,-25,-28,-16,-5,-2,42,49,28,-1,-20,-24,-20,-16,53,66,51,20,-7,-20,-24,-24,49,64,52,28,4,-12,-21,-25,35,43,36,21,7,-4,-14,-22,13,12,6,3,4,3,-5,-16,-9,-20,-26,-19,-2,8,5,-7,-27,-47,-53,-38,-8,14,15,3,-37,-62,-70,-48,-10,19,24,11,-37,-61,-67,-46,-6,25,30,16,-27,-45,-50,-31,4,30,32,18,-11,-21,-24,-10,16,34,32,15,7,6,6,13,27,34,27,9,23,31,31,31,32,28,15,-2,35,47,48,40,29,15,-3,-17,40,55,53,39,19,-2,-22,-33,39,52,49,29,4,-22,-41,-47,30,40,32,12,-14,-37,-51,-54,17,19,9,-9,-29,-44,-52,-51,1,-4,-15,-27,-38,-43,-42,-38,-12,-23,-34,-38,-35,-27,-21,-15,-20,-34,-40,-35,-17,3,15,18,-21,-31,-32,-15,14,43,58,56,-15,-21,-14,9,45,78,92,87 },
{ 44,60,66,55,36,14,-4,-12,42,58,60,51,30,7,-10,-18,22,23,18,9,-1,-10,-17,-21,-3,-18,-34,-39,-32,-23,-16,-15,-14,-38,-61,-61,-41,-15,-1,-1,-4,-24,-43,-42,-15,12,22,17,18,12,0,1,21,39,40,27,37,41,33,30,39,47,40,25,41,46,36,26,27,28,21,8,30,29,12,-2,-5,-4,-7,-12,12,2,-19,-34,-36,-31,-30,-30,-1,-17,-38,-50,-48,-41,-39,-39,-7,-22,-39,-43,-37,-30,-33,-37,-4,-15,-24,-21,-9,-5,-13,-26,3,-3,-4,8,24,27,12,-9,8,8,13,31,52,54,34,6,10,12,21,43,67,70,48,17,8,9,16,37,61,67,47,17,2,-1,1,16,38,46,32,8,-5,-14,-19,-11,7,18,10,-6,-9,-23,-36,-36,-24,-13,-13,-21,-8,-23,-41,-50,-45,-36,-32,-34,-1,-14,-33,-48,-51,-46,-41,-40,10,3,-15,-34,-43,-43,-40,-39,23,23,9,-10,-25,-29,-31,-31,34,42,33,16,1,-7,-12,-17,40,52,49,36,24,16,10,1,38,52,52,45,38,35,29,18,27,36,38,35,37,40,40,30,5,5,2,4,14,29,37,33,-22,-36,-46,-44,-27,0,20,25,-46,-71,-87,-87,-66,-32,-3,10 },
{ -40,-28,5,30,26,-1,-23,-27,-51,-36,11,50,42,2,-32,-38,-63,-46,11,57,51,2,-38,-40,-67,-55,4,53,45,-3,-38,-34,-65,-53,0,41,31,-12,-34,-19,-52,-41,3,30,12,-21,-25,1,-33,-19,14,22,-4,-29,-15,25,-16,3,28,21,-17,-36,-6,46,-6,16,39,21,-26,-43,-1,63,-7,17,40,22,-30,-50,-2,70,-16,7,36,21,-31,-54,-7,70,-28,-6,28,23,-27,-55,-11,66,-40,-20,23,27,-19,-52,-16,61,-49,-30,19,34,-8,-48,-19,54,-55,-37,18,42,5,-40,-22,46,-59,-42,17,49,16,-33,-24,37,-62,-45,16,54,26,-27,-28,29,-62,-47,14,57,31,-24,-30,20,-61,-47,12,55,33,-22,-34,13,-59,-47,9,51,31,-24,-37,7,-56,-45,7,46,28,-25,-39,3,-50,-41,7,42,24,-26,-39,2,-43,-33,8,38,19,-26,-37,4,-34,-25,10,34,15,-26,-32,8,-26,-16,14,31,11,-25,-28,15,-18,-8,17,28,7,-25,-22,21,-10,0,19,24,3,-24,-15,29,-3,6,20,19,-3,-24,-9,36,1,9,18,12,-11,-26,-6,42,2,10,14,3,-19,-30,-4,45,2,7,8,-5,-26,-32,-4,45,1,5,3,-10,-28,-31,-4,42 },
{ -24,-29,-15,13,32,22,-7,-31,-30,-42,-27,10,37,28,-12,-47,-21,-36,-30,3,35,27,-16,-58,4,-13,-23,-4,27,26,-14,-58,36,21,-9,-11,15,25,-5,-48,63,50,0,-24,-2,23,8,-31,77,62,-2,-42,-23,19,22,-11,76,61,-11,-61,-39,17,35,8,69,49,-22,-71,-47,18,45,21,54,37,-27,-69,-39,23,49,26,41,24,-25,-53,-24,29,47,22,29,16,-20,-34,-5,35,40,11,18,7,-15,-17,10,37,30,-5,8,-1,-13,-6,19,35,15,-23,1,-8,-14,-1,24,29,-1,-43,-5,-14,-15,2,26,24,-15,-61,-11,-18,-16,4,27,19,-27,-76,-12,-20,-16,6,28,18,-31,-83,-11,-18,-15,7,30,21,-28,-81,-7,-14,-13,8,31,26,-21,-74,-4,-10,-11,6,31,30,-10,-60,1,-5,-9,3,26,33,2,-44,7,1,-9,-4,18,32,14,-24,12,6,-9,-12,7,29,24,-4,18,12,-9,-22,-7,21,32,13,25,20,-8,-31,-23,10,32,26,33,29,-4,-37,-40,-5,29,34,41,40,4,-40,-52,-20,22,39,50,52,15,-36,-59,-31,16,41,56,63,26,-28,-58,-37,11,42,58,68,37,-17,-51,-35,8,40,55,66,40,-6,-38,-29,7,37 },
{ 4,6,-1,-22,-53,-76,-82,-67,7,13,10,-8,-40,-72,-84,-75,6,15,24,24,8,-18,-39,-44,-3,3,20,41,53,45,23,5,-17,-20,-10,19,55,70,62,40,-20,-35,-42,-28,9,42,52,44,-4,-20,-46,-57,-43,-11,14,21,23,20,-10,-45,-59,-47,-22,-5,45,56,39,-1,-37,-46,-35,-20,43,64,60,35,1,-22,-26,-21,19,35,45,42,27,7,-8,-13,-14,-11,5,24,32,24,9,-3,-42,-52,-38,-6,23,29,18,5,-54,-73,-61,-28,9,25,19,7,-48,-65,-60,-32,0,17,15,6,-27,-39,-37,-22,-2,10,9,2,0,-1,-4,-3,1,4,2,-3,25,34,28,16,5,-1,-4,-8,43,57,50,28,5,-6,-10,-11,50,67,57,29,1,-13,-15,-14,46,59,49,20,-9,-21,-19,-14,30,39,26,1,-21,-26,-18,-10,9,9,-2,-20,-31,-26,-11,-2,-9,-16,-27,-37,-35,-20,0,9,-22,-34,-43,-43,-31,-7,14,21,-26,-39,-42,-35,-15,11,28,30,-22,-30,-29,-15,7,28,38,34,-12,-15,-8,9,28,42,42,30,-2,1,11,27,41,42,33,15,4,10,20,32,34,25,6,-11,4,9,16,18,10,-10,-32,-46,0,2,2,-4,-21,-46,-68,-77 },
{ -55,-77,-85,-65,-32,1,18,17,-41,-62,-67,-52,-17,14,25,20,0,-1,-2,4,19,29,25,13,38,56,57,49,39,27,9,-6,45,64,64,44,22,0,-19,-30,15,22,12,-5,-21,-30,-38,-43,-20,-32,-46,-52,-47,-35,-31,-33,-32,-50,-59,-53,-30,-6,1,-7,-18,-25,-28,-13,15,37,39,22,7,12,15,26,45,61,56,36,25,36,38,37,42,48,45,30,27,37,31,18,10,12,14,10,17,20,9,-13,-29,-28,-20,-14,4,2,-12,-35,-52,-53,-41,-30,-6,-10,-21,-38,-53,-53,-44,-33,-9,-11,-16,-25,-33,-35,-31,-25,-8,-6,-2,-1,-2,-5,-8,-10,-4,1,12,22,27,25,18,8,-3,4,18,34,45,46,37,22,-5,1,14,33,48,53,45,29,-10,-9,1,18,37,45,41,26,-14,-19,-15,-4,11,22,22,13,-16,-24,-29,-26,-17,-8,-4,-6,-11,-22,-33,-39,-39,-34,-28,-24,-1,-9,-23,-37,-46,-46,-42,-35,14,13,0,-18,-32,-39,-38,-35,29,35,28,12,-4,-16,-22,-23,37,50,48,38,25,12,2,-6,33,45,50,47,43,34,23,11,12,17,20,27,33,37,31,20,-21,-30,-32,-22,-2,16,23,19,-52,-74,-82,-72,-44,-15,5,10 },
{ 45,23,-15,-23,1,21,8,-20,59,29,-28,-42,-3,29,11,-30,71,34,-38,-54,-2,40,17,-39,77,39,-43,-62,3,56,25,-45,80,40,-47,-62,12,67,31,-51,72,37,-44,-60,16,73,29,-58,60,28,-41,-53,17,66,22,-64,44,21,-35,-45,15,58,14,-68,30,13,-27,-34,13,46,7,-65,18,9,-18,-24,11,37,4,-57,8,5,-9,-14,8,27,4,-44,1,2,-1,-6,4,18,4,-30,-7,-1,6,1,0,8,5,-15,-13,-4,10,7,-4,-1,4,-1,-19,-7,14,12,-7,-11,3,12,-23,-10,16,16,-10,-20,0,22,-29,-13,19,21,-12,-28,-3,30,-32,-16,21,26,-11,-34,-7,37,-36,-19,22,30,-10,-38,-11,41,-40,-22,23,35,-7,-42,-15,44,-44,-26,23,39,-4,-44,-18,45,-47,-29,22,43,1,-44,-21,45,-49,-32,22,45,5,-43,-24,43,-50,-34,21,47,9,-42,-26,42,-51,-34,20,49,13,-40,-28,39,-48,-34,19,49,15,-38,-28,37,-45,-31,18,47,16,-35,-28,34,-40,-29,16,43,15,-33,-28,31,-36,-26,13,37,11,-32,-27,29,-30,-23,10,30,7,-31,-25,27,-24,-19,7,22,3,-28,-21,26,-18,-14,6,17,1,-24,-16,25 },
{ 55,47,3,-49,-70,-38,13,44,62,61,12,-50,-74,-39,24,62,47,51,22,-25,-48,-19,34,67,10,18,17,3,-8,4,34,54,-36,-30,-3,20,23,15,15,20,-63,-65,-21,27,35,10,-15,-22,-61,-64,-22,28,36,-3,-44,-55,-33,-35,-6,31,32,-9,-54,-71,5,5,14,28,27,-5,-45,-62,31,33,20,14,13,3,-19,-36,44,40,10,-12,-7,9,10,-2,44,35,-8,-40,-29,9,33,29,42,28,-21,-58,-45,7,48,51,36,24,-22,-61,-48,5,50,60,30,21,-15,-48,-40,4,44,55,23,20,-4,-28,-25,3,32,41,15,16,6,-6,-8,3,16,20,4,8,10,10,7,3,0,-3,-8,-4,9,20,19,3,-16,-25,-21,-18,3,25,28,4,-28,-44,-33,-30,-4,27,35,6,-36,-57,-38,-39,-11,25,37,10,-36,-62,-39,-42,-16,21,38,14,-29,-57,-34,-38,-17,17,36,19,-19,-46,-24,-27,-14,12,31,21,-7,-29,-10,-13,-8,6,20,19,3,-12,6,4,-1,-2,4,10,11,6,22,21,6,-12,-15,-2,15,23,36,37,13,-21,-35,-16,17,37,45,48,18,-27,-48,-28,16,48,50,52,21,-27,-55,-34,15,52,46,49,19,-26,-51,-34,13,51 },
{ 22,24,24,30,47,63,67,53,18,16,8,5,19,43,56,50,9,0,-19,-37,-37,-16,6,15,3,-4,-22,-46,-61,-57,-38,-21,2,5,6,-4,-24,-39,-41,-33,-3,8,32,48,39,14,-8,-17,-17,-9,22,55,68,50,23,4,-29,-36,-18,13,37,40,26,12,-24,-40,-47,-37,-18,-2,5,6,2,-10,-31,-48,-47,-32,-14,-2,34,35,14,-17,-39,-36,-20,-4,51,66,53,21,-10,-20,-12,-1,43,59,60,40,14,0,-1,5,11,21,29,29,19,10,7,11,-28,-31,-18,0,10,10,11,13,-56,-71,-57,-28,-3,7,10,13,-63,-82,-70,-37,-8,4,8,11,-45,-61,-49,-23,-1,5,4,7,-12,-15,-6,7,14,8,1,1,22,31,37,38,28,10,-4,-6,45,61,65,54,32,5,-11,-13,47,64,62,47,19,-7,-20,-18,33,40,34,17,-6,-23,-27,-20,8,6,-5,-19,-31,-35,-28,-16,-14,-25,-39,-47,-47,-36,-20,-6,-25,-40,-51,-52,-39,-20,0,11,-24,-35,-40,-32,-13,9,25,30,-11,-16,-13,0,20,39,47,43,5,8,15,28,45,53,54,41,15,22,28,36,40,38,29,18,14,18,19,14,4,-9,-20,-25,3,2,-7,-22,-42,-61,-70,-68 },
{ -61,-73,-67,-42,-15,7,20,22,-43,-49,-39,-23,-3,13,23,24,1,15,25,23,15,10,12,13,32,59,66,47,13,-8,-12,-7,22,43,47,21,-14,-32,-32,-22,-15,-11,-12,-24,-35,-34,-25,-17,-42,-49,-49,-41,-24,-3,7,4,-32,-40,-35,-18,14,39,41,26,1,4,6,16,40,56,51,28,28,38,31,22,26,34,27,8,38,45,27,0,-12,-10,-12,-22,27,30,5,-28,-45,-44,-41,-44,10,8,-13,-41,-54,-47,-45,-49,-5,-6,-16,-29,-29,-19,-22,-34,-14,-12,-8,-3,11,24,15,-8,-17,-13,1,19,44,60,49,17,-19,-12,4,28,58,75,65,32,-18,-14,0,18,41,60,53,27,-15,-13,-8,-4,6,21,21,7,-8,-8,-12,-24,-31,-23,-16,-19,2,3,-7,-33,-56,-56,-46,-38,13,19,8,-23,-54,-63,-53,-42,22,34,29,1,-32,-45,-38,-29,23,41,44,26,-1,-13,-9,-5,12,30,44,39,24,18,22,22,-8,4,22,31,31,34,40,40,-33,-30,-11,6,18,30,43,45,-50,-57,-43,-24,-6,13,30,37,-52,-61,-53,-39,-26,-10,8,18,-28,-32,-27,-25,-27,-26,-15,-3,13,24,30,20,-4,-25,-30,-22,52,75,82,65,26,-12,-31,-31 },
{ 45,13,-38,-42,2,36,19,-22,63,25,-44,-56,3,48,20,-37,77,39,-38,-54,8,54,17,-54,71,42,-30,-47,15,60,13,-67,48,25,-30,-39,18,56,12,-69,13,2,-27,-32,13,48,10,-61,-15,-12,-15,-16,6,29,10,-42,-30,-13,10,6,-1,10,8,-19,-41,-8,37,29,-8,-13,5,4,-47,-9,48,41,-18,-34,0,23,-56,-17,47,39,-28,-50,-5,37,-60,-27,38,35,-34,-59,-7,48,-63,-32,32,34,-32,-58,-7,56,-55,-30,29,36,-22,-51,-4,59,-44,-22,30,39,-11,-40,-2,57,-32,-15,28,39,-1,-30,-1,50,-21,-9,23,33,4,-21,-2,39,-13,-7,13,22,3,-17,-5,27,-5,-6,1,7,-1,-13,-9,12,4,-3,-8,-6,-4,-9,-11,-2,14,3,-14,-16,-5,-1,-9,-13,25,12,-16,-22,-3,10,-2,-21,38,22,-14,-25,2,23,8,-24,47,30,-13,-28,5,35,17,-27,53,34,-15,-33,5,44,25,-29,54,35,-19,-40,1,48,28,-33,52,30,-25,-48,-5,46,29,-37,48,26,-30,-54,-11,43,26,-41,44,23,-31,-55,-15,39,25,-45,40,23,-26,-48,-11,38,21,-46,39,25,-15,-33,-1,38,20,-44,37,28,-2,-16,9,39,19,-39 },
{ 54,45,3,-45,-59,-20,34,61,52,51,8,-44,-58,-20,40,74,26,29,13,-16,-30,-9,31,55,-17,-11,7,15,9,1,5,14,-54,-48,-6,35,40,4,-27,-32,-55,-57,-14,37,44,3,-44,-61,-24,-28,-10,21,31,1,-40,-58,24,17,2,1,6,1,-17,-31,60,49,8,-23,-18,5,15,8,65,54,0,-42,-33,8,37,39,48,33,-13,-48,-38,8,46,53,20,8,-21,-41,-29,7,41,50,-4,-11,-18,-19,-12,6,25,32,-19,-20,-7,7,10,4,2,5,-27,-22,6,31,28,1,-21,-24,-30,-23,13,46,39,-2,-39,-49,-32,-24,15,50,44,-3,-49,-63,-31,-26,9,43,38,-3,-46,-62,-27,-25,-1,24,25,-3,-32,-44,-17,-20,-10,4,8,-1,-14,-19,-4,-9,-13,-13,-9,-1,7,10,12,7,-9,-24,-23,-2,24,37,29,25,1,-26,-32,-5,36,57,41,40,11,-25,-37,-9,39,68,47,47,19,-20,-40,-16,34,67,40,44,20,-15,-36,-23,21,54,23,27,15,-8,-29,-26,2,30,-1,3,5,0,-14,-24,-16,1,-28,-25,-6,12,8,-12,-28,-25,-49,-48,-14,25,34,7,-29,-44,-61,-60,-18,37,59,29,-21,-50,-59,-58,-15,43,70,44,-8,-45 },
{ -15,-9,-11,-33,-68,-86,-79,-52,-12,4,16,4,-27,-51,-48,-31,-11,10,38,47,39,27,23,20,-17,-7,15,34,47,59,60,51,-18,-23,-29,-28,-12,15,34,33,3,-5,-31,-59,-60,-39,-17,-9,32,35,14,-20,-41,-41,-39,-36,34,52,50,36,21,5,-17,-35,2,14,29,43,56,48,15,-20,-36,-41,-29,-3,31,49,26,-9,-50,-63,-66,-50,-14,18,17,-7,-24,-32,-45,-54,-38,-7,5,-7,22,29,15,-17,-32,-15,1,-4,51,75,65,24,-12,-12,2,1,45,72,74,39,0,-7,4,5,8,29,41,26,-2,-8,3,7,-39,-30,-8,-2,-12,-11,2,8,-69,-70,-41,-20,-16,-10,3,9,-73,-74,-45,-17,-8,-3,6,10,-50,-48,-20,3,8,7,9,9,-15,-5,17,30,24,13,8,5,17,32,45,45,27,10,2,-2,35,49,51,37,13,-3,-9,-10,34,42,33,11,-12,-22,-20,-17,21,18,1,-23,-39,-35,-24,-17,4,-6,-26,-47,-48,-31,-12,-8,-7,-19,-37,-47,-34,-6,13,10,-7,-16,-27,-27,-3,29,41,27,2,-2,-6,2,27,54,57,31,11,12,12,18,36,53,41,11,12,15,12,10,14,14,-4,-32,6,6,-3,-15,-25,-35,-54,-75 },
{ -69,-57,-37,-27,-14,14,31,20,-46,-18,8,-1,-8,14,30,15,-13,37,65,29,-11,-2,12,-5,-11,49,75,24,-32,-24,-7,-25,-44,7,36,-13,-55,-25,-2,-28,-71,-32,-1,-34,-46,6,31,-13,-66,-24,6,-20,-17,46,65,2,-33,16,40,2,-4,59,70,-1,-7,46,62,0,-27,30,44,-27,-10,43,52,-23,-61,-7,11,-55,-32,16,29,-40,-78,-21,-2,-68,-53,-7,18,-33,-59,-2,15,-58,-62,-13,26,-7,-23,34,47,-35,-57,-7,39,15,1,59,70,-13,-50,2,47,19,1,56,72,-5,-41,6,43,6,-23,29,54,-11,-35,8,36,-14,-56,-8,27,-24,-31,11,32,-24,-74,-33,6,-35,-28,13,35,-19,-73,-37,0,-37,-26,15,42,-4,-53,-23,9,-28,-27,13,46,13,-27,2,28,-12,-32,4,40,23,-5,24,46,2,-40,-10,27,18,3,34,54,10,-47,-24,8,4,-5,28,49,7,-47,-29,-5,-12,-20,11,32,-5,-33,-19,-3,-18,-32,-7,12,-19,-11,5,13,-11,-34,-18,-4,-32,12,31,34,5,-25,-18,-10,-36,23,43,46,17,-12,-7,-3,-30,12,29,33,13,-3,8,13,-14,-14,-8,-4,-8,-6,19,30,6,-40,-44,-39,-34,-15,20,38,20 },
{ 41,65,61,28,10,9,-9,-38,17,42,34,1,-7,9,-4,-43,-33,-18,-20,-44,-31,15,16,-32,-59,-42,-31,-53,-32,32,43,-13,-47,-6,21,-11,-15,41,57,-4,-24,41,80,28,-14,25,39,-15,-31,39,87,22,-44,-14,9,-35,-65,-2,46,-11,-73,-39,-4,-42,-91,-35,20,-24,-70,-21,17,-25,-80,-27,30,-2,-33,20,53,1,-50,6,57,22,-5,48,76,15,-23,29,64,19,-12,41,68,9,-13,30,47,-10,-45,10,40,-15,-15,18,23,-38,-74,-21,11,-39,-21,7,11,-46,-77,-25,0,-52,-24,5,14,-30,-52,-5,10,-52,-25,6,26,-3,-16,27,31,-41,-26,7,34,16,11,54,51,-27,-29,2,30,17,16,59,58,-19,-34,-8,18,4,1,45,50,-19,-36,-13,6,-15,-24,18,32,-26,-31,-10,3,-27,-46,-9,11,-33,-20,3,14,-22,-54,-25,-1,-35,-7,19,32,-6,-45,-25,-1,-28,-1,30,48,14,-28,-13,10,-13,-7,24,48,25,-11,0,24,5,-24,3,33,22,-4,9,34,19,-43,-24,8,8,-8,7,34,24,-56,-41,-11,-6,-18,-3,24,21,-47,-36,-9,-6,-21,-15,9,9,-21,-5,18,12,-14,-20,-7,-5,8,29,47,36,1,-18,-15,-16 },
{ 29,-13,-63,-52,4,31,-2,-45,51,8,-55,-53,17,51,3,-59,70,36,-25,-29,34,63,11,-60,57,41,-7,-18,28,56,12,-50,14,10,-13,-24,-1,22,4,-34,-33,-25,-13,-19,-22,-10,-4,-12,-58,-31,15,15,-18,-25,-2,16,-55,-15,52,57,-1,-29,2,40,-49,-6,65,68,0,-38,-1,53,-41,-15,38,44,-17,-54,-10,52,-31,-24,2,6,-34,-57,-17,44,-9,-20,-17,-12,-29,-42,-14,36,21,2,-16,-10,-4,-11,-2,28,46,23,-9,-2,22,21,9,18,59,32,-12,-4,36,39,12,1,58,26,-26,-19,33,43,5,-21,50,13,-46,-39,21,37,-6,-44,41,4,-55,-53,10,32,-14,-59,38,4,-51,-49,8,30,-14,-61,38,12,-34,-35,13,34,-7,-54,37,21,-14,-16,21,38,3,-41,29,22,0,-2,24,37,11,-23,14,13,4,4,18,26,13,-6,-4,-2,0,2,4,8,9,8,-24,-19,-5,-1,-12,-16,-2,18,-38,-28,-3,4,-19,-35,-13,25,-44,-27,10,19,-15,-45,-21,31,-42,-19,29,43,-3,-46,-24,38,-41,-12,45,62,12,-42,-23,45,-44,-16,44,67,17,-40,-21,48,-53,-31,25,49,8,-41,-22,46,-57,-46,-1,22,-8,-45,-25,39 },
{ -62,-48,5,58,69,24,-31,-52,-52,-47,-2,46,53,13,-36,-55,-10,-12,-6,3,4,-10,-25,-27,39,34,1,-32,-40,-22,4,20,61,55,10,-38,-51,-12,39,62,33,33,8,-21,-25,4,46,69,-18,-17,-6,5,8,9,19,32,-53,-52,-16,26,32,2,-24,-22,-51,-47,-9,37,43,-7,-58,-64,-15,-15,4,34,34,-7,-55,-69,24,19,10,13,16,-1,-27,-38,46,36,2,-16,-8,7,10,6,50,34,-14,-43,-30,10,40,45,37,23,-22,-54,-38,8,49,63,18,8,-20,-40,-31,3,40,58,0,-2,-8,-13,-12,-1,19,36,-16,-10,7,20,12,-5,-8,4,-27,-16,17,43,29,-9,-32,-27,-35,-22,17,50,38,-11,-47,-46,-39,-31,9,45,38,-11,-50,-53,-38,-32,-2,31,31,-7,-41,-43,-26,-27,-9,14,19,-2,-20,-20,-7,-12,-12,-3,3,3,5,11,17,9,-9,-18,-12,5,28,41,40,30,-2,-29,-29,1,40,61,53,45,4,-34,-39,-8,36,63,52,46,9,-30,-42,-17,21,45,37,35,8,-21,-33,-22,1,18,11,10,3,-6,-12,-15,-16,-13,-21,-20,-6,12,18,3,-23,-37,-51,-48,-15,28,51,28,-18,-49,-63,-61,-20,36,67,47,-8,-50 },
{ 1,-7,-4,24,61,76,69,44,4,-11,-20,-7,18,32,28,16,13,-2,-22,-32,-38,-41,-39,-30,21,18,6,-7,-30,-53,-55,-41,11,16,29,39,28,1,-10,-4,-15,-19,2,36,48,40,34,37,-27,-42,-39,-14,8,17,32,44,-3,-18,-33,-38,-37,-31,-6,21,36,33,18,-6,-33,-47,-34,-5,41,50,45,34,8,-21,-27,-12,9,11,19,34,37,15,-4,-5,-32,-46,-35,-1,31,31,13,3,-45,-65,-66,-32,11,26,15,4,-15,-31,-41,-31,-2,13,7,-2,34,33,13,-4,-5,1,-3,-9,65,77,54,19,-3,-8,-11,-14,59,71,56,20,-9,-15,-14,-15,14,23,17,-3,-19,-17,-10,-10,-40,-39,-29,-26,-23,-10,2,1,-71,-75,-51,-29,-11,7,19,15,-70,-67,-36,-7,11,24,31,24,-36,-25,6,26,29,30,28,20,6,25,48,48,30,15,8,2,32,52,62,44,8,-14,-20,-20,31,44,43,14,-26,-45,-43,-35,8,13,5,-22,-49,-53,-39,-30,-18,-21,-27,-40,-46,-30,-9,-4,-29,-35,-34,-31,-15,15,36,30,-21,-24,-18,-4,23,55,70,51,-2,0,7,18,37,60,60,37,15,19,19,14,12,12,3,-17,19,21,11,-10,-34,-52,-66,-77 },
{ -46,-68,-78,-54,-16,7,9,-1,-2,-13,-22,-13,12,22,11,-5,48,56,48,38,34,20,0,-13,38,51,39,21,5,-9,-18,-22,-14,-20,-31,-36,-35,-29,-21,-12,-41,-54,-52,-39,-19,-6,7,14,-14,-11,2,20,31,30,31,33,22,36,47,53,41,24,18,24,24,28,26,15,-6,-25,-25,-6,-1,-11,-25,-35,-44,-54,-45,-22,-15,-30,-44,-38,-29,-28,-25,-11,-2,-12,-15,3,26,27,17,13,18,16,16,38,64,61,42,28,22,21,14,25,45,45,29,18,12,3,-14,-17,-8,-6,-11,-9,1,-12,-34,-48,-49,-48,-45,-33,1,-6,-26,-40,-50,-52,-50,-36,10,12,7,-2,-11,-19,-21,-15,12,24,34,39,36,27,20,16,1,15,35,51,56,53,46,37,-22,-13,7,27,39,42,42,38,-38,-41,-28,-14,-5,2,11,17,-36,-43,-42,-42,-44,-39,-26,-9,-10,-15,-21,-35,-51,-57,-45,-27,25,31,24,3,-23,-39,-38,-25,44,59,56,40,16,-1,-7,-7,33,46,49,45,39,32,24,15,-5,-3,0,11,27,39,38,26,-41,-54,-56,-39,-8,20,29,20,-40,-58,-66,-59,-31,-3,7,1,6,1,-11,-20,-18,-12,-14,-21,65,76,66,45,21,0,-19,-32 },
{ 12,-16,-11,26,14,-38,-31,29,24,-22,-24,32,28,-41,-34,45,48,-19,-42,30,45,-32,-34,56,72,-14,-61,19,55,-27,-39,54,94,-7,-78,4,59,-23,-51,39,92,-2,-77,0,63,-18,-56,25,76,-4,-67,8,69,-10,-54,18,47,-11,-52,14,63,-6,-45,18,20,-15,-36,14,43,-13,-37,22,3,-12,-17,12,20,-24,-29,26,-8,-4,3,13,2,-27,-20,31,-16,4,20,15,-7,-25,-8,34,-27,4,28,13,-13,-17,3,31,-35,-1,26,6,-18,-11,10,23,-41,-4,23,-2,-23,-3,14,10,-40,-1,23,-7,-26,4,17,-7,-36,5,27,-10,-28,12,21,-24,-31,12,32,-11,-28,20,25,-36,-28,16,35,-13,-30,27,32,-43,-29,16,34,-17,-33,31,38,-47,-32,13,32,-21,-39,32,45,-47,-36,11,31,-23,-43,32,48,-44,-39,9,34,-20,-45,28,49,-42,-40,9,39,-14,-46,21,45,-40,-45,8,44,-7,-47,14,43,-37,-47,5,46,0,-44,9,38,-33,-51,0,46,5,-41,4,35,-27,-53,-4,43,9,-38,-1,33,-19,-52,-7,40,11,-35,-3,31,-10,-47,-8,35,12,-30,-6,28,-3,-39,-6,30,10,-28,-9,23,0,-29,-3,25,8,-25,-11,17,1 },
{ 82,24,-44,-28,35,42,-17,-66,83,19,-63,-46,37,53,-15,-72,62,6,-63,-41,35,50,-2,-46,26,-4,-35,-15,27,30,5,-9,-12,-13,3,23,13,-13,-7,24,-36,-21,27,47,-6,-57,-26,45,-43,-24,32,50,-16,-75,-34,56,-28,-21,20,44,-8,-63,-23,64,1,-12,0,23,8,-28,-5,63,29,0,-22,-1,16,-1,4,46,53,11,-37,-23,17,14,-2,12,62,20,-42,-37,16,23,-11,-23,60,23,-39,-37,19,31,-15,-48,42,18,-27,-28,23,39,-11,-59,16,7,-15,-15,24,41,-2,-52,-12,-5,-5,-5,17,36,8,-38,-35,-15,7,2,3,20,13,-20,-46,-15,21,9,-14,0,13,-3,-49,-8,38,16,-30,-22,9,12,-47,0,51,23,-40,-40,5,23,-48,2,59,28,-44,-48,4,33,-51,-3,53,30,-40,-47,6,38,-53,-13,42,28,-31,-35,12,38,-52,-21,28,22,-20,-20,17,31,-44,-21,15,14,-10,-4,19,17,-25,-13,6,5,-5,7,16,-1,1,4,2,-6,-4,15,11,-23,25,20,-2,-19,-7,20,6,-42,46,32,-9,-32,-10,27,8,-54,52,34,-17,-43,-8,39,17,-54,47,24,-27,-47,-4,50,31,-43,33,12,-31,-45,0,54,40,-29 },
{ 54,39,-8,-49,-52,-9,40,58,39,32,-2,-33,-33,-4,33,47,-4,-4,0,8,12,6,1,2,-40,-42,-7,37,45,9,-33,-44,-36,-41,-10,33,44,1,-47,-58,10,-1,-5,6,9,-6,-22,-26,54,39,3,-24,-26,-4,20,29,51,42,1,-37,-38,-1,47,65,11,6,-7,-22,-28,-2,40,59,-32,-31,-8,9,3,-6,5,19,-51,-42,2,39,32,-9,-33,-28,-36,-28,13,51,42,-9,-51,-57,-7,-4,15,36,32,-6,-45,-55,21,14,2,1,6,0,-16,-27,38,21,-15,-35,-22,6,19,13,43,24,-24,-56,-38,11,46,46,40,24,-21,-55,-41,13,58,62,24,20,-6,-33,-27,11,45,49,1,9,11,1,-5,4,15,14,-25,-8,21,30,17,-3,-20,-28,-50,-28,21,47,33,-8,-46,-62,-59,-41,13,48,35,-8,-50,-71,-54,-40,3,33,27,-3,-34,-52,-32,-26,-3,12,10,2,-6,-16,2,1,-1,-9,-11,5,25,27,33,29,5,-24,-31,-1,41,56,52,46,11,-32,-48,-11,42,63,48,45,10,-33,-52,-21,28,49,25,23,4,-23,-39,-21,8,19,-11,-9,-2,1,-3,-6,-9,-17,-48,-41,-6,31,42,19,-19,-49,-66,-58,-8,48,69,39,-20,-66 },
{ -8,-5,10,33,55,68,72,59,-9,-14,-9,-3,-1,7,19,24,2,-4,-10,-26,-55,-66,-54,-30,14,17,19,12,-18,-47,-49,-34,7,9,24,47,52,33,17,10,-12,-27,-22,9,42,55,49,38,-5,-29,-50,-46,-25,-2,14,20,28,19,-8,-35,-49,-49,-32,-15,42,53,50,27,-4,-28,-34,-25,1,15,35,48,37,17,-1,-9,-55,-55,-28,9,34,36,25,10,-59,-73,-59,-33,-2,21,24,14,-4,-11,-22,-30,-26,-7,6,5,56,64,42,4,-23,-22,-11,-6,69,84,69,27,-11,-21,-16,-10,21,33,34,17,-5,-12,-9,-7,-49,-48,-29,-11,-4,0,3,0,-78,-85,-56,-22,2,13,14,8,-53,-55,-32,-4,16,23,20,11,3,9,19,24,24,22,16,6,50,59,54,34,14,5,0,-7,54,61,42,10,-15,-21,-19,-20,22,19,0,-28,-44,-36,-25,-21,-16,-25,-37,-49,-44,-24,-9,-7,-33,-40,-41,-33,-13,12,22,15,-22,-22,-11,5,27,45,41,26,0,9,24,38,48,49,35,15,12,23,34,37,30,18,1,-12,7,13,16,5,-13,-30,-40,-39,-6,-7,-11,-25,-42,-53,-49,-39,-12,-13,-15,-20,-25,-20,-10,0,-1,1,8,15,25,40,52,54 },
{ -48,-67,-74,-53,-21,5,25,33,4,1,-4,1,9,10,14,22,50,64,62,51,29,-3,-19,-9,22,28,20,17,3,-27,-41,-29,-32,-50,-62,-42,-18,-16,-20,-10,-23,-44,-52,-28,12,27,25,25,30,32,25,28,39,38,34,32,42,57,48,27,6,-8,-8,4,-4,2,-2,-21,-46,-55,-48,-26,-45,-45,-34,-29,-30,-34,-30,-18,-38,-31,-11,13,30,31,22,14,0,13,26,41,58,63,50,33,26,34,27,18,22,31,28,18,22,21,-6,-35,-40,-28,-20,-16,6,-2,-31,-60,-69,-57,-47,-36,-3,-5,-17,-31,-35,-31,-30,-28,-4,6,17,25,30,26,13,0,-9,5,29,53,64,59,40,21,-21,-13,7,31,48,46,33,19,-26,-30,-25,-14,-5,-1,0,1,-11,-20,-33,-43,-49,-46,-34,-18,18,14,-5,-29,-47,-51,-38,-19,43,46,33,11,-9,-19,-12,0,38,47,44,38,29,20,19,24,2,5,13,27,39,37,35,36,-37,-45,-35,-9,15,20,20,23,-49,-62,-59,-36,-15,-12,-13,-5,-18,-28,-31,-24,-18,-28,-36,-26,33,33,25,18,8,-16,-34,-29,56,63,53,44,30,9,-11,-14,26,23,13,11,18,18,13,12,-30,-48,-61,-53,-24,4,21,27 },
{ 35,-3,-49,-30,39,55,-10,-80,43,12,-42,-39,31,61,-4,-81,33,26,-11,-29,6,37,9,-42,-11,15,21,-8,-22,0,17,9,-63,-18,40,20,-37,-36,14,48,-71,-35,38,45,-23,-50,2,56,-30,-19,25,41,-1,-36,-11,36,32,8,-7,9,11,-13,-17,8,79,22,-48,-34,17,18,-12,-15,79,19,-61,-51,24,43,-2,-27,54,8,-51,-34,34,49,3,-31,16,-4,-25,-7,34,37,-2,-31,-20,-12,3,17,22,9,-13,-25,-43,-16,24,30,2,-21,-20,-12,-52,-15,35,30,-20,-43,-18,13,-48,-11,39,27,-33,-51,-6,42,-37,-4,39,22,-35,-44,10,66,-22,1,29,16,-26,-31,20,71,-10,1,13,5,-15,-13,20,53,3,0,-4,-7,-5,1,10,19,16,2,-18,-17,6,15,-4,-23,29,9,-23,-22,15,30,-11,-56,39,16,-24,-24,22,42,-8,-71,42,19,-25,-29,21,52,2,-70,35,15,-25,-34,13,52,15,-55,20,10,-20,-34,0,42,23,-33,4,6,-6,-24,-14,20,24,-8,-14,5,15,-5,-23,-5,16,12,-36,-1,37,21,-26,-31,3,27,-57,-14,47,43,-21,-48,-10,33,-76,-29,46,54,-10,-49,-16,36,-79,-39,34,52,-1,-41,-14,37 },
{ -36,24,36,-32,-52,18,50,-3,-56,26,55,-27,-57,22,49,-23,-78,15,66,-14,-53,26,41,-51,-78,5,59,-11,-43,33,36,-66,-53,8,45,-18,-40,37,42,-59,-10,19,23,-29,-39,33,44,-38,24,20,5,-25,-28,21,36,-17,33,4,-14,-7,-3,7,15,-5,30,-20,-35,17,29,-8,-13,1,31,-32,-44,31,45,-23,-36,6,46,-24,-46,33,50,-33,-47,19,62,-9,-45,27,46,-38,-46,38,70,-2,-48,16,40,-36,-38,57,60,-4,-48,7,34,-31,-29,64,42,-10,-45,4,32,-24,-27,58,23,-13,-34,9,33,-18,-28,42,6,-12,-18,15,32,-11,-31,21,-3,-7,-3,17,27,-6,-28,4,-11,-2,6,11,14,-4,-23,-6,-16,2,11,-1,-4,-2,-10,-9,-21,5,16,-13,-22,3,7,-6,-26,9,23,-17,-32,9,24,-1,-31,12,33,-14,-37,16,38,-1,-39,12,41,-10,-40,17,42,-7,-50,8,46,-7,-43,15,39,-22,-56,4,47,-4,-43,12,33,-37,-62,-1,47,-1,-43,11,30,-47,-60,-2,44,1,-39,14,31,-50,-53,1,43,0,-35,18,38,-42,-38,7,38,-4,-35,19,43,-30,-24,12,31,-13,-41,13,44,-17,-13,13,21,-20,-44,5,38,-9 },
{ -88,-49,25,59,42,0,-37,-49,-57,-27,24,36,11,-8,-20,-29,9,26,19,-20,-43,-12,19,18,46,57,14,-52,-62,-1,51,49,22,27,1,-38,-32,21,49,29,-31,-25,-10,2,21,32,6,-31,-50,-40,-5,32,49,19,-41,-81,-12,-10,6,27,28,-1,-48,-77,36,28,6,-9,-13,-12,-11,-14,46,33,-5,-33,-33,-7,35,57,21,7,-15,-26,-26,-1,53,89,-13,-21,-13,3,1,-6,25,68,-33,-30,0,37,28,-19,-26,14,-24,-23,9,52,39,-30,-64,-35,1,-6,3,36,35,-25,-69,-52,25,5,-14,3,21,-8,-40,-35,43,14,-32,-31,6,18,7,6,48,20,-35,-51,-6,34,42,39,42,21,-27,-47,-13,31,50,48,21,16,-8,-28,-14,16,31,30,-6,6,11,-2,-10,-6,-4,-5,-34,-8,25,25,1,-20,-33,-37,-57,-21,32,42,12,-21,-43,-47,-66,-30,29,46,19,-11,-28,-34,-59,-27,22,33,13,0,-1,-3,-33,-13,13,9,-8,1,24,29,4,12,7,-20,-35,-5,36,45,34,36,7,-38,-53,-14,34,42,45,42,8,-37,-51,-13,22,19,26,25,5,-19,-19,3,7,-15,-14,-12,-6,7,26,30,-2,-49,-48,-46,-19,20,52,47,-7,-70 },
{ 15,13,19,34,54,59,51,31,1,-12,-17,-15,-7,0,1,0,-1,-15,-24,-33,-48,-51,-44,-29,9,10,19,21,1,-18,-19,-10,1,8,32,51,50,37,32,28,-17,-26,-18,-4,7,16,24,28,-8,-20,-37,-47,-50,-36,-18,-4,26,30,16,-6,-22,-28,-25,-20,24,39,48,45,38,24,4,-10,-22,-17,-1,17,32,36,19,0,-48,-55,-51,-39,-16,7,10,-1,-14,-17,-25,-39,-36,-17,-4,-3,41,54,44,11,-15,-14,-4,-2,42,64,64,39,8,0,2,2,-14,-3,13,15,6,4,6,3,-66,-73,-48,-23,-7,1,5,1,-61,-72,-54,-25,-5,2,3,0,6,0,2,9,12,8,2,-2,72,73,58,38,20,7,-1,-6,73,75,50,23,2,-8,-9,-8,18,5,-15,-28,-30,-23,-13,-6,-40,-60,-66,-55,-33,-16,-2,5,-52,-63,-53,-26,4,16,19,18,-15,-12,8,33,48,43,30,20,26,40,57,63,56,31,10,2,28,39,39,32,10,-17,-29,-24,2,-3,-14,-29,-48,-59,-52,-34,-19,-31,-44,-54,-57,-49,-29,-10,-10,-16,-21,-19,-7,10,28,34,12,17,22,33,46,59,61,53,12,20,27,33,37,33,25,14,-14,-16,-17,-21,-31,-45,-55,-56 },
{ 62,59,42,23,10,-8,-35,-48,7,-4,-17,-16,0,6,-8,-24,-42,-55,-53,-35,-3,25,31,17,-19,-14,3,6,4,18,30,28,19,43,68,44,-7,-25,-13,3,2,16,32,16,-29,-50,-36,-17,-28,-43,-39,-23,-15,-8,-3,-2,-5,-33,-42,-14,28,51,41,20,47,26,3,10,36,47,33,8,49,41,18,0,-9,-12,-20,-28,0,-2,-2,-17,-42,-51,-50,-44,-47,-40,-9,2,-14,-23,-20,-16,-53,-34,14,39,33,27,32,30,-18,-3,29,44,34,34,47,49,17,18,17,3,-14,-9,14,28,31,19,-10,-42,-61,-53,-29,-6,30,11,-22,-48,-58,-49,-38,-25,20,9,-7,-9,1,5,-5,-15,2,-1,8,33,63,64,36,4,-20,-22,-2,36,71,75,42,5,-30,-36,-25,1,27,29,8,-16,-12,-19,-25,-29,-31,-31,-34,-37,23,23,8,-24,-54,-59,-45,-31,41,54,44,8,-32,-39,-15,3,18,35,47,31,3,3,30,47,-33,-21,6,20,15,22,47,63,-70,-66,-36,-8,3,10,26,37,-50,-53,-33,-11,-6,-14,-17,-11,13,12,13,14,4,-22,-46,-50,61,61,42,30,18,-4,-34,-50,53,36,5,-4,11,22,10,-10,-2,-33,-66,-62,-15,33,46,31 },
{ -26,16,67,42,-33,-54,-3,50,-42,-15,33,30,-27,-46,3,51,-26,-33,-17,0,-5,-8,8,23,33,0,-30,-15,21,31,5,-20,78,40,-21,-22,28,42,-6,-56,40,25,-18,-31,5,26,-11,-57,-35,-20,-7,-14,-12,6,4,-17,-73,-32,30,28,-11,-8,21,30,-55,-6,64,51,-19,-32,16,51,-12,10,41,29,-31,-51,-4,40,23,5,-12,-16,-27,-34,-13,15,44,-1,-47,-33,6,12,0,-5,57,3,-53,-23,47,57,14,-21,49,8,-37,-11,56,65,8,-40,26,4,-22,-8,31,31,-14,-52,-3,-4,-8,-7,-5,-11,-30,-46,-29,-9,14,5,-25,-35,-24,-13,-40,-7,36,27,-21,-34,2,33,-44,-4,48,40,-13,-22,28,70,-43,-9,38,34,-16,-21,32,78,-34,-14,18,13,-26,-31,12,53,-12,-10,-1,-5,-26,-34,-13,12,19,6,-8,-9,-8,-14,-24,-28,44,21,-11,-7,21,22,-15,-50,53,20,-24,-13,42,58,5,-57,42,6,-41,-32,35,69,19,-50,24,-8,-50,-47,9,50,22,-34,12,-3,-30,-41,-15,17,13,-15,4,14,15,-5,-23,-16,1,6,-20,16,52,39,-14,-36,-7,26,-63,-14,55,58,-6,-45,-11,41,-96,-52,25,44,-11,-48,-12,47 },
{ 61,44,-11,-57,-48,4,37,26,21,20,-4,-28,-16,17,24,3,-39,-27,2,24,30,19,-8,-36,-52,-43,6,42,31,2,-30,-48,-4,-5,12,15,-8,-22,-17,-10,45,34,9,-18,-36,-22,20,44,41,20,-8,-23,-25,-1,42,62,-3,-21,-21,1,15,11,14,24,-28,-36,-15,28,44,4,-35,-39,-8,-14,1,28,29,-8,-50,-62,25,19,8,1,-3,-9,-20,-30,31,25,-1,-28,-29,2,28,25,8,8,-7,-35,-37,9,59,61,-21,-8,3,-13,-22,5,44,51,-38,-12,23,22,-1,-8,-1,1,-37,-10,35,46,16,-19,-41,-47,-29,-10,24,38,20,-16,-51,-67,-9,-9,-1,8,12,2,-21,-42,19,1,-24,-26,-3,23,26,6,44,18,-30,-50,-19,31,57,44,57,30,-22,-49,-30,19,56,51,40,28,-4,-26,-24,-1,19,22,1,6,11,11,-1,-18,-27,-24,-42,-26,15,43,27,-19,-54,-56,-68,-48,10,56,48,-6,-48,-51,-50,-42,1,42,39,4,-17,-14,-1,-7,-5,5,4,3,19,36,52,33,-6,-33,-38,-13,37,70,78,52,-5,-51,-63,-27,31,67,49,34,-5,-32,-35,-22,7,27,-15,-18,-7,17,30,11,-19,-35,-69,-62,-14,51,80,41,-33,-79 },
{ 54,-15,-43,20,36,-30,-37,32,63,-21,-57,24,50,-33,-42,47,57,-21,-58,25,58,-28,-43,51,33,-16,-40,22,45,-29,-41,43,0,-3,-9,13,19,-25,-33,26,-32,9,22,-1,-8,-9,-7,11,-57,16,42,-18,-29,17,23,-3,-63,24,50,-32,-43,34,39,-24,-60,25,53,-37,-50,41,42,-50,-45,23,42,-33,-41,42,33,-64,-26,14,27,-22,-25,37,27,-59,-5,7,9,-11,-10,28,23,-38,15,-1,-11,-3,2,11,15,-12,30,-8,-25,5,12,-9,-1,8,42,-11,-34,14,23,-24,-19,22,48,-15,-39,23,34,-34,-33,31,49,-18,-43,30,47,-36,-44,39,46,-20,-45,29,51,-32,-42,44,44,-17,-47,18,47,-26,-38,46,40,-11,-41,9,38,-22,-33,43,35,-1,-30,2,26,-18,-29,35,23,5,-15,0,16,-12,-20,23,2,4,-2,0,5,-5,-10,10,-22,0,10,0,-4,2,0,-2,-44,-2,25,0,-15,9,12,-14,-54,1,37,-1,-27,12,22,-23,-56,8,48,-5,-41,14,33,-28,-51,16,53,-11,-53,14,43,-29,-50,18,54,-15,-60,16,52,-30,-49,14,47,-17,-56,19,51,-35,-48,7,39,-13,-45,22,46,-41,-39,4,30,-6,-26,25,37,-43 },
{ -9,-3,-14,-37,-60,-72,-74,-52,0,15,19,19,23,19,8,4,-5,7,13,27,59,72,64,45,-12,-13,-29,-40,-21,-1,6,7,5,8,-14,-44,-61,-60,-59,-43,13,34,40,35,22,0,-20,-22,-16,-3,17,42,65,57,39,25,-32,-43,-49,-37,-7,14,24,28,11,3,-28,-51,-59,-47,-26,-1,46,59,43,18,-6,-27,-29,-12,12,26,40,51,51,24,0,-2,-49,-55,-35,2,35,32,12,6,-49,-61,-64,-43,-10,4,1,2,23,21,-3,-23,-21,-17,-11,-2,71,83,60,19,-6,-14,-12,0,31,48,43,21,2,-4,-3,5,-54,-46,-26,-12,-4,3,6,9,-77,-77,-49,-21,-1,9,9,9,-24,-18,-4,6,13,11,5,2,44,56,47,30,15,4,-6,-10,61,65,42,12,-6,-11,-16,-17,15,7,-15,-30,-28,-18,-12,-11,-36,-48,-56,-46,-22,-1,8,6,-38,-43,-34,-13,13,29,29,21,-1,8,22,35,43,37,26,16,24,36,42,40,24,5,-8,-9,15,19,16,1,-22,-41,-44,-31,-10,-14,-22,-32,-43,-51,-40,-21,-17,-23,-25,-19,-12,-5,9,20,1,-1,4,19,36,47,51,48,14,15,16,24,33,33,28,18,4,-1,-11,-19,-26,-37,-45,-46 },
}
},
...
1,4,19,36,47,51,48,14,15,16,24,33,33,28,18,4,-1,-11,-19,-26,-37,-45,-46 },
}
},
쪋쪋
const int16_t g_nspt8x32[ 35 ][ 3 ][ 48 ][ 256 ] = {
{ /0
{
{ -1,-2,-2,-2,-3,-3,-3,-3,-2,-3,-4,-4,-5,-5,-5,-5,-2,-4,-5,-6,-7,-7,-7,-7,-3,-5,-7,-8,-8,-9,-9,-9,-4,-7,-9,-10,-10,-11,-11,-11,-5,-8,-10,-12,-12,-13,-13,-13,-5,-9,-12,-14,-15,-15,-15,-15,-6,-11,-14,-16,-17,-17,-17,-17,-7,-12,-16,-18,-19,-20,-20,-19,-8,-14,-18,-20,-22,-22,-22,-22,-9,-16,-20,-23,-24,-25,-25,-24,-10,-17,-23,-26,-27,-28,-28,-27,-11,-19,-25,-29,-31,-31,-31,-30,-12,-21,-28,-32,-34,-35,-34,-33,-13,-23,-30,-35,-37,-38,-37,-36,-14,-25,-33,-38,-41,-42,-41,-39,-15,-26,-35,-41,-44,-45,-45,-43,-15,-27,-37,-43,-47,-49,-48,-46,-16,-28,-38,-45,-50,-51,-51,-49,-16,-29,-39,-46,-51,-53,-53,-51,-16,-29,-39,-47,-52,-55,-55,-53,-16,-28,-39,-47,-53,-56,-56,-55,-15,-27,-38,-46,-53,-56,-57,-56,-14,-26,-37,-45,-52,-56,-57,-56,-13,-25,-35,-44,-50,-55,-57,-56,-12,-23,-33,-41,-48,-53,-55,-55,-11,-21,-30,-39,-46,-51,-54,-54,-10,-19,-28,-36,-43,-49,-52,-53,-8,-16,-25,-33,-40,-46,-49,-51,-7,-14,-22,-30,-37,-42,-46,-48,-5,-12,-19,-26,-33,-39,-43,-45,-5,-10,-16,-23,-29,-35,-39,-42 },
{ -5,-7,-8,-9,-9,-8,-7,-6,-7,-11,-13,-15,-15,-14,-12,-11,-9,-14,-18,-20,-20,-19,-17,-15,-11,-17,-22,-24,-25,-24,-22,-19,-13,-20,-26,-29,-29,-28,-26,-23,-14,-23,-29,-33,-33,-32,-30,-26,-16,-26,-33,-36,-37,-36,-34,-30,-17,-28,-36,-40,-41,-40,-37,-33,-18,-30,-39,-43,-45,-44,-40,-36,-19,-32,-41,-46,-48,-47,-43,-39,-19,-32,-42,-48,-50,-49,-46,-41,-19,-32,-42,-49,-52,-51,-48,-43,-18,-32,-42,-49,-53,-52,-49,-44,-17,-30,-40,-48,-52,-53,-49,-45,-15,-27,-37,-45,-49,-50,-48,-43,-12,-22,-32,-39,-45,-47,-45,-41,-9,-17,-25,-32,-38,-40,-40,-37,-6,-11,-17,-23,-29,-32,-33,-31,-2,-4,-8,-13,-19,-23,-25,-24,2,2,0,-3,-8,-12,-15,-16,5,8,9,7,3,-1,-5,-8,8,14,17,17,14,10,5,1,10,18,23,25,24,20,15,10,12,22,29,33,33,30,25,19,14,25,34,39,40,38,34,28,14,27,37,43,45,44,40,34,14,27,38,45,49,48,45,39,14,26,37,45,50,50,48,43,13,25,35,44,49,51,49,45,11,22,33,41,47,49,48,45,9,19,29,37,43,46,46,44,7,16,25,32,38,42,43,42 },
{ 6,9,10,11,12,11,10,8,8,13,16,18,19,18,17,15,10,17,21,24,25,24,23,20,12,20,25,29,30,30,28,25,13,22,29,33,35,34,32,29,14,24,31,36,38,38,36,32,14,24,33,38,41,41,39,35,14,24,33,39,42,43,41,38,12,22,32,39,43,44,43,39,10,19,28,36,41,44,43,40,6,13,22,30,37,40,41,38,1,6,13,22,30,35,37,36,-4,-3,2,10,19,26,30,31,-10,-13,-10,-3,6,15,21,24,-15,-23,-23,-18,-9,1,10,15,-20,-32,-36,-33,-25,-14,-3,5,-25,-40,-48,-47,-40,-29,-16,-5,-27,-45,-55,-58,-52,-41,-28,-15,-27,-46,-59,-63,-60,-50,-36,-23,-26,-45,-58,-64,-62,-54,-41,-28,-22,-39,-53,-59,-60,-53,-42,-29,-17,-31,-43,-50,-51,-47,-37,-26,-11,-21,-30,-36,-38,-35,-28,-20,-5,-10,-15,-19,-21,-20,-16,-10,1,1,0,-2,-3,-3,-1,1,6,10,13,14,14,14,13,13,11,18,24,27,29,28,27,25,13,23,31,37,40,40,38,35,14,26,36,43,48,49,47,43,14,26,37,46,51,54,52,48,13,25,36,45,52,55,54,51,12,23,33,42,49,53,53,51 },
{ -8,-11,-11,-9,-7,-4,-1,2,-11,-15,-16,-14,-10,-6,-1,3,-14,-19,-20,-18,-13,-8,-2,3,-16,-23,-24,-21,-16,-9,-2,4,-18,-26,-28,-24,-18,-10,-2,5,-20,-29,-31,-27,-19,-10,-1,6,-22,-32,-34,-29,-20,-10,-1,7,-23,-34,-36,-31,-21,-10,1,9,-24,-36,-38,-31,-21,-9,3,12,-25,-37,-38,-31,-19,-6,6,15,-25,-37,-38,-29,-17,-3,10,20,-24,-36,-36,-27,-13,2,15,25,-24,-35,-34,-24,-8,8,22,32,-24,-35,-33,-21,-3,15,29,39,-25,-35,-32,-18,2,21,37,47,-26,-36,-32,-16,6,28,45,56,-27,-38,-34,-16,8,32,52,64,-30,-42,-37,-19,7,34,56,69,-33,-46,-43,-24,4,33,57,72,-35,-51,-48,-31,-2,29,56,74,-37,-55,-55,-38,-10,23,53,72,-38,-58,-60,-45,-17,16,47,70,-39,-59,-63,-50,-24,9,41,65,-37,-59,-63,-53,-29,3,35,61,-35,-56,-62,-52,-31,-1,30,56,-32,-51,-57,-50,-30,-3,27,53,-27,-44,-50,-44,-28,-3,25,50,-22,-36,-42,-37,-23,-1,25,48,-17,-28,-33,-29,-17,2,25,47,-12,-21,-24,-21,-10,6,27,47,-8,-14,-16,-13,-4,11,29,46,-4,-8,-9,-6,3,15,31,46 },
{ 8,11,14,15,16,15,14,12,10,17,21,24,25,25,23,19,12,20,26,30,32,32,30,26,13,22,29,34,37,37,35,31,13,22,30,36,40,41,39,35,11,20,29,36,40,42,41,37,8,16,24,32,38,41,41,38,3,9,17,26,33,38,39,37,-3,0,7,17,26,32,35,34,-9,-11,-5,4,15,24,29,30,-17,-23,-21,-11,1,12,20,24,-24,-36,-37,-29,-15,-2,9,16,-30,-46,-52,-46,-33,-17,-3,7,-33,-54,-62,-60,-47,-31,-14,-2,-32,-54,-66,-66,-57,-41,-24,-9,-29,-50,-63,-66,-58,-45,-28,-13,-22,-40,-53,-56,-52,-41,-27,-13,-13,-25,-35,-39,-36,-29,-18,-8,-2,-8,-13,-15,-14,-10,-4,3,7,8,9,9,9,11,13,15,14,21,27,30,31,31,30,28,17,29,38,44,47,46,43,38,17,30,41,49,54,54,51,45,14,25,36,46,52,54,51,46,8,16,25,34,41,45,45,41,1,4,9,16,24,29,32,32,-6,-8,-8,-3,3,9,15,18,-12,-20,-23,-23,-18,-11,-4,2,-16,-27,-36,-38,-36,-30,-22,-13,-18,-32,-43,-49,-49,-44,-36,-27,-18,-33,-45,-53,-56,-53,-46,-37,-17,-31,-44,-53,-57,-57,-51,-43 },
{ 3,3,-1,-5,-9,-12,-14,-14,4,4,-1,-7,-14,-19,-22,-22,6,6,1,-8,-17,-24,-28,-29,9,10,4,-6,-18,-27,-32,-34,13,15,9,-3,-17,-28,-35,-37,18,23,16,2,-14,-27,-36,-40,24,31,25,10,-9,-25,-36,-41,30,41,36,19,-2,-21,-34,-41,37,51,48,30,7,-15,-32,-41,41,60,58,40,15,-10,-29,-40,44,64,65,48,22,-4,-25,-38,43,65,68,53,27,0,-23,-37,38,60,65,52,28,1,-22,-37,30,49,53,44,23,-2,-24,-38,19,33,36,28,12,-9,-28,-40,8,15,16,10,-3,-18,-33,-43,-3,-3,-4,-9,-17,-28,-38,-44,-11,-17,-19,-23,-27,-33,-39,-43,-17,-25,-29,-30,-31,-32,-34,-36,-19,-29,-32,-30,-26,-24,-23,-24,-20,-29,-30,-23,-15,-9,-7,-8,-19,-27,-24,-14,0,10,14,12,-18,-24,-19,-4,14,28,35,33,-18,-24,-16,2,25,44,53,52,-19,-25,-17,3,29,52,65,66,-21,-30,-23,-3,24,50,67,72,-25,-36,-32,-14,13,40,61,70,-27,-42,-42,-29,-3,25,49,63,-28,-46,-51,-42,-20,8,34,51,-28,-47,-56,-51,-33,-9,18,37,-26,-45,-56,-55,-42,-21,3,23,-22,-40,-51,-53,-44,-28,-8,11 },
{ 15,21,23,22,19,15,10,6,21,30,34,33,29,23,16,10,25,36,41,40,35,28,20,13,26,40,45,44,39,31,22,14,27,41,47,45,40,31,23,14,26,40,44,43,37,29,20,12,23,35,39,36,30,23,15,7,18,28,30,27,21,14,7,1,13,19,19,15,8,2,-3,-8,7,9,6,0,-6,-12,-16,-18,3,1,-6,-14,-22,-27,-29,-29,1,-4,-15,-26,-36,-42,-43,-41,2,-4,-17,-32,-46,-53,-54,-51,6,2,-11,-29,-45,-57,-59,-56,14,14,3,-16,-36,-50,-57,-56,21,28,21,5,-16,-35,-47,-50,28,40,41,28,8,-14,-30,-38,29,47,52,46,29,9,-11,-24,26,43,54,54,44,26,6,-9,17,32,44,50,46,35,18,3,5,13,25,33,37,32,22,10,-9,-9,-2,8,17,20,17,11,-23,-32,-31,-22,-9,2,7,7,-33,-50,-54,-47,-33,-17,-4,3,-38,-60,-69,-63,-49,-30,-12,0,-36,-59,-69,-66,-52,-33,-13,1,-30,-49,-58,-55,-43,-24,-6,7,-21,-34,-39,-36,-24,-8,8,19,-10,-17,-18,-12,-1,13,26,34,-1,-1,3,10,22,34,44,50,7,12,20,30,41,52,60,63,13,22,32,43,54,64,70,71 },
{ -12,-14,-10,-4,4,10,15,16,-16,-19,-15,-5,6,16,23,25,-20,-25,-20,-7,7,20,30,33,-24,-31,-25,-11,7,23,34,39,-28,-37,-31,-15,5,23,37,44,-31,-43,-37,-20,2,23,38,47,-34,-48,-44,-26,-2,20,38,48,-35,-51,-49,-32,-7,17,37,49,-35,-51,-52,-36,-12,14,36,49,-29,-46,-48,-37,-14,11,33,47,-20,-34,-39,-32,-14,9,31,45,-8,-18,-24,-22,-10,9,28,42,7,3,-5,-8,-4,9,25,37,20,24,16,7,4,9,20,30,32,42,35,21,9,5,11,19,40,55,48,29,9,-2,-3,4,44,60,54,30,3,-15,-20,-15,41,59,50,25,-7,-31,-39,-35,36,51,43,16,-18,-45,-56,-52,29,42,34,9,-25,-54,-67,-64,23,33,27,5,-26,-53,-69,-68,15,24,21,6,-19,-44,-59,-61,8,14,15,7,-8,-26,-40,-44,0,4,8,9,4,-6,-16,-22,-9,-8,-1,7,13,13,9,3,-17,-21,-13,1,16,26,29,26,-25,-33,-27,-10,13,31,42,44,-31,-45,-41,-23,4,30,48,55,-35,-52,-53,-35,-8,23,48,60,-35,-55,-58,-45,-18,13,42,59,-31,-51,-57,-48,-26,4,33,52,-25,-43,-51,-45,-27,-2,24,44 },
{ 18,26,29,29,26,22,17,11,24,36,41,42,38,33,25,18,26,40,46,47,45,39,30,21,25,39,46,48,45,40,31,22,22,33,41,42,40,35,28,20,14,23,28,30,29,26,20,14,5,9,12,13,13,12,9,5,-5,-7,-8,-7,-6,-4,-4,-5,-13,-21,-26,-27,-25,-22,-19,-17,-16,-29,-38,-42,-41,-37,-32,-27,-15,-29,-41,-48,-50,-47,-42,-35,-7,-19,-32,-42,-48,-49,-45,-39,4,-2,-12,-23,-34,-39,-40,-37,16,19,15,5,-8,-19,-26,-29,24,36,39,34,22,8,-5,-14,25,42,52,54,46,33,16,2,17,32,47,56,57,47,32,16,1,8,23,37,45,45,35,22,-19,-22,-14,2,18,26,26,19,-33,-49,-48,-35,-16,1,10,11,-40,-62,-70,-61,-42,-21,-5,2,-35,-58,-68,-66,-50,-31,-13,-3,-21,-37,-47,-47,-38,-23,-10,-1,-3,-9,-14,-15,-10,-3,3,7,14,19,20,20,21,21,20,17,24,37,44,46,44,40,32,24,27,42,52,55,53,45,35,24,23,37,44,47,44,37,26,16,14,21,26,25,22,15,7,0,2,3,1,-3,-8,-14,-19,-22,-9,-16,-23,-30,-38,-43,-46,-45,-18,-29,-40,-51,-60,-66,-67,-63 },
{ 5,9,15,21,27,29,29,25,4,9,18,28,37,42,43,38,0,4,13,25,38,47,49,46,-7,-6,2,16,32,44,50,49,-16,-20,-13,2,19,35,45,46,-23,-33,-30,-16,3,21,34,40,-29,-43,-45,-33,-15,5,22,31,-29,-47,-54,-47,-31,-11,8,20,-21,-40,-53,-52,-41,-23,-4,10,-6,-20,-36,-44,-41,-29,-12,2,16,10,-6,-21,-29,-25,-14,-2,36,44,31,11,-6,-14,-11,-4,51,69,64,42,18,1,-6,-4,51,77,76,59,33,11,-2,-6,39,60,65,51,31,9,-5,-10,16,29,31,23,9,-5,-15,-18,-7,-8,-10,-14,-20,-27,-30,-28,-23,-34,-40,-42,-42,-41,-38,-33,-28,-42,-49,-49,-45,-39,-33,-27,-22,-34,-37,-33,-25,-18,-13,-11,-12,-17,-14,-5,6,14,17,13,-3,-2,7,21,35,45,44,37,1,5,16,32,49,58,59,50,-1,2,10,24,40,53,56,51,-5,-7,-5,2,14,27,36,36,-8,-14,-19,-21,-16,-7,4,12,-6,-13,-24,-34,-39,-36,-26,-15,1,-3,-15,-30,-44,-50,-46,-36,13,15,7,-10,-30,-45,-51,-45,24,36,34,20,-2,-23,-36,-41,33,53,59,50,32,8,-12,-23,37,61,73,71,57,36,14,-2 },
{ 30,39,39,32,23,12,4,-2,38,52,52,44,30,16,4,-4,42,57,58,47,31,15,1,-8,40,56,56,44,27,10,-5,-14,36,49,48,35,18,1,-13,-22,27,37,34,21,5,-11,-23,-30,17,22,17,5,-10,-24,-34,-39,7,7,1,-11,-25,-37,-44,-46,-1,-6,-13,-24,-36,-45,-51,-51,-5,-12,-19,-28,-37,-45,-49,-49,-5,-12,-17,-23,-29,-35,-39,-40,-4,-8,-9,-9,-11,-15,-20,-23,-5,-5,0,8,13,12,5,-1,-8,-8,3,19,32,38,32,23,-15,-17,-5,17,41,54,54,45,-21,-30,-21,2,32,55,63,59,-24,-39,-39,-21,10,39,58,61,-19,-38,-46,-40,-16,14,38,50,-5,-20,-37,-43,-34,-12,13,30,15,8,-10,-29,-37,-29,-10,9,35,40,24,-2,-26,-33,-26,-10,48,64,53,26,-6,-28,-32,-23,52,72,69,44,11,-18,-32,-29,43,64,64,46,16,-13,-30,-32,25,38,41,30,10,-12,-28,-30,2,6,8,4,-5,-16,-24,-25,-18,-25,-25,-23,-20,-19,-17,-14,-30,-45,-47,-41,-29,-16,-6,1,-34,-51,-55,-44,-26,-6,11,21,-28,-44,-46,-35,-12,12,32,43,-17,-28,-28,-15,8,33,54,63,-5,-10,-6,7,28,51,69,77 },
{ -5,-4,0,4,4,1,-4,-7,-6,-4,3,8,9,3,-5,-11,-8,-4,5,12,13,6,-5,-15,-10,-6,6,15,17,9,-5,-18,-13,-9,5,17,20,11,-5,-20,-18,-14,2,18,22,13,-5,-22,-24,-21,-2,16,23,14,-5,-24,-31,-29,-8,14,23,15,-5,-26,-39,-38,-14,12,24,17,-5,-27,-44,-45,-18,12,26,19,-3,-29,-49,-50,-21,13,30,24,-1,-29,-51,-53,-21,17,37,30,2,-29,-53,-53,-18,24,46,37,6,-30,-51,-52,-13,31,54,44,8,-31,-51,-49,-10,36,60,47,7,-36,-50,-49,-9,38,60,46,2,-44,-51,-49,-9,36,58,40,-6,-55,-51,-51,-11,34,53,34,-16,-67,-50,-49,-12,32,50,28,-25,-78,-48,-47,-10,33,49,27,-29,-84,-47,-45,-8,35,53,29,-27,-85,-45,-44,-7,38,57,37,-19,-80,-45,-44,-8,37,61,44,-8,-69,-45,-47,-13,32,59,50,2,-56,-45,-50,-21,22,53,48,9,-45,-44,-51,-27,12,41,43,9,-38,-39,-47,-29,4,30,33,7,-34,-31,-39,-25,0,22,25,3,-32,-21,-26,-16,2,18,19,0,-30,-11,-13,-5,8,18,16,-1,-28,-1,-1,6,15,21,16,0,-24,4,7,13,20,22,17,1,-20 },
{ -23,-28,-22,-9,5,17,24,24,-31,-39,-31,-13,8,25,35,38,-36,-45,-37,-16,9,30,43,47,-37,-49,-40,-19,8,31,47,52,-35,-46,-40,-20,6,30,47,53,-28,-39,-35,-19,4,25,42,50,-16,-25,-25,-15,1,19,34,42,-1,-6,-10,-9,-1,11,23,31,16,16,8,1,-2,2,10,17,29,38,28,11,-3,-8,-5,1,39,52,44,21,-3,-18,-21,-17,38,57,51,26,-5,-28,-37,-35,29,47,47,25,-8,-36,-51,-51,10,25,29,17,-10,-38,-56,-60,-14,-6,5,6,-8,-30,-49,-56,-35,-36,-19,-3,0,-11,-29,-42,-50,-56,-36,-5,16,15,0,-17,-53,-64,-40,-1,32,42,30,10,-47,-56,-35,5,43,58,51,30,-34,-42,-25,8,41,60,56,39,-18,-22,-13,7,29,42,42,29,-1,-1,1,5,10,12,10,4,14,18,16,7,-6,-18,-26,-28,23,33,30,13,-13,-39,-54,-57,24,37,39,21,-9,-41,-65,-71,17,31,36,28,3,-28,-54,-66,3,13,24,26,16,-5,-29,-45,-13,-10,3,17,23,17,1,-16,-29,-34,-23,-1,21,30,26,13,-38,-53,-44,-20,10,33,40,34,-41,-60,-58,-36,-3,27,44,45,-37,-58,-59,-42,-12,18,39,46 },
{ 25,34,37,35,31,24,17,10,29,42,47,46,41,33,23,14,26,38,43,42,38,31,22,13,17,25,28,29,26,21,14,8,4,6,7,8,8,6,3,-1,-9,-14,-16,-15,-13,-11,-10,-10,-18,-29,-35,-34,-30,-26,-22,-19,-20,-35,-43,-44,-40,-35,-30,-25,-14,-27,-38,-40,-39,-34,-30,-25,0,-8,-16,-21,-22,-22,-20,-18,15,16,13,9,5,1,-3,-5,23,33,37,37,33,27,18,10,19,31,43,48,50,44,35,23,3,9,20,32,40,42,36,27,-17,-22,-18,-6,8,19,23,20,-27,-45,-50,-45,-30,-13,-1,5,-22,-41,-56,-58,-51,-36,-21,-10,-2,-13,-26,-36,-38,-34,-24,-16,22,26,22,11,0,-7,-11,-10,35,53,58,52,38,23,10,1,30,49,62,62,53,37,21,8,8,18,29,35,33,26,15,5,-20,-25,-22,-15,-8,-5,-5,-7,-36,-55,-60,-56,-45,-34,-24,-19,-34,-55,-66,-63,-55,-41,-30,-21,-15,-27,-34,-34,-27,-19,-13,-10,9,11,13,16,19,20,17,11,24,37,47,54,56,54,43,29,24,38,52,60,65,59,48,32,9,16,24,31,34,33,25,15,-13,-19,-22,-21,-19,-19,-19,-20,-33,-51,-63,-70,-71,-70,-64,-57 },
{ -10,-8,0,7,8,2,-6,-12,-13,-10,2,12,14,5,-8,-18,-17,-13,3,17,19,9,-9,-23,-22,-18,2,20,24,12,-9,-27,-29,-24,0,22,29,16,-8,-30,-36,-33,-4,23,32,19,-7,-32,-44,-41,-9,23,35,22,-6,-33,-50,-49,-14,23,38,26,-4,-34,-56,-55,-17,23,42,29,-3,-35,-57,-57,-17,26,45,32,-2,-37,-54,-53,-14,30,49,34,-3,-40,-48,-46,-7,35,52,35,-5,-44,-41,-36,1,40,54,33,-10,-50,-32,-27,7,42,51,29,-16,-57,-25,-19,9,37,44,19,-25,-64,-18,-14,7,30,33,9,-32,-69,-11,-10,4,19,22,1,-35,-66,-5,-5,1,10,13,-1,-28,-54,3,1,-1,2,7,3,-12,-31,12,8,-2,-6,0,7,6,-4,24,18,-2,-16,-12,5,21,23,35,31,1,-26,-27,-4,26,43,48,44,7,-32,-44,-19,23,54,57,57,14,-36,-57,-36,14,58,64,66,22,-34,-66,-48,4,57,63,69,27,-30,-64,-53,-1,55,58,64,29,-24,-59,-50,-2,53,46,54,25,-20,-50,-44,1,54,33,38,16,-19,-43,-34,6,56,19,22,5,-21,-37,-27,12,57,7,7,-6,-23,-32,-19,15,55,-1,-3,-12,-23,-26,-13,16,51 },
{ 39,54,60,57,50,40,28,17,42,60,67,67,59,49,35,22,30,42,49,49,45,37,27,17,9,12,14,15,14,12,8,4,-12,-20,-24,-23,-21,-17,-14,-12,-23,-41,-49,-51,-46,-40,-32,-25,-22,-41,-54,-58,-55,-48,-40,-31,-7,-24,-37,-43,-44,-40,-35,-29,11,5,-4,-11,-16,-17,-18,-16,24,29,28,26,20,14,8,2,23,35,43,48,49,43,33,23,8,16,29,42,52,54,47,37,-13,-15,-8,8,27,39,43,37,-23,-39,-43,-35,-17,4,18,23,-16,-35,-51,-56,-50,-32,-13,1,7,-4,-21,-38,-47,-45,-32,-18,30,36,29,10,-12,-26,-31,-25,34,54,59,51,29,6,-11,-18,15,33,49,54,47,28,8,-7,-16,-14,2,20,30,27,14,0,-41,-54,-48,-27,-5,8,8,1,-41,-64,-65,-52,-28,-10,-1,-2,-19,-35,-41,-35,-23,-10,-3,-2,10,10,8,7,7,7,4,0,30,43,49,44,35,23,11,1,29,46,53,51,37,22,6,-4,13,22,26,24,14,1,-9,-15,-9,-11,-12,-15,-19,-25,-27,-26,-23,-33,-39,-40,-40,-38,-34,-27,-21,-32,-36,-36,-31,-25,-17,-12,-7,-10,-9,-3,5,13,18,18,10,15,24,35,45,53,54,49 },
{ 21,22,12,-5,-21,-31,-34,-30,29,32,18,-5,-28,-43,-48,-44,35,40,26,0,-26,-45,-53,-50,37,46,33,8,-19,-39,-48,-48,34,44,36,15,-8,-27,-38,-39,24,34,30,17,1,-13,-22,-26,8,14,15,12,7,1,-5,-8,-12,-12,-7,1,8,12,13,10,-29,-38,-32,-15,5,20,28,28,-36,-54,-50,-30,-2,23,38,42,-29,-49,-53,-37,-8,22,43,51,-8,-26,-37,-32,-9,19,43,55,21,12,-6,-15,-8,13,37,50,45,49,29,5,-5,2,20,35,57,68,51,18,-9,-16,-5,11,47,63,49,16,-19,-37,-33,-17,22,32,26,1,-30,-50,-52,-38,-9,-8,-6,-14,-29,-44,-48,-41,-34,-40,-31,-17,-12,-14,-20,-21,-45,-56,-38,-8,17,26,20,10,-45,-53,-33,6,42,58,55,37,-31,-38,-19,14,47,65,60,45,-14,-17,-6,14,33,40,36,25,3,4,6,8,7,1,-7,-12,16,20,18,7,-11,-31,-47,-49,20,29,27,13,-12,-42,-64,-71,16,25,30,22,0,-29,-56,-68,3,11,21,26,17,-4,-28,-46,-15,-13,1,18,28,22,5,-14,-31,-40,-26,-1,24,36,30,16,-43,-59,-52,-24,10,34,43,36,-44,-65,-63,-41,-7,24,41,42 },
{ -24,-20,-4,12,17,10,-4,-14,-31,-27,-4,19,26,16,-4,-21,-37,-32,-4,23,33,20,-6,-28,-42,-38,-5,26,38,23,-7,-34,-46,-42,-7,28,41,25,-9,-39,-49,-45,-8,29,42,25,-11,-44,-50,-45,-8,30,44,26,-12,-48,-48,-45,-7,32,45,26,-13,-50,-44,-40,-5,32,45,26,-14,-51,-37,-34,-2,32,44,25,-14,-52,-27,-24,1,30,41,23,-15,-50,-14,-13,3,24,33,18,-15,-47,1,0,5,15,21,10,-15,-41,15,13,5,3,5,1,-13,-31,30,26,5,-11,-13,-8,-9,-16,42,38,5,-24,-29,-16,-1,3,54,47,4,-35,-44,-20,11,27,56,52,5,-42,-52,-22,23,51,52,48,3,-43,-56,-21,33,69,43,40,1,-43,-54,-21,37,78,31,29,-2,-38,-50,-19,35,75,16,17,-2,-28,-39,-19,25,62,0,4,0,-12,-22,-13,12,38,-15,-10,1,5,0,-5,0,12,-32,-25,0,20,22,8,-9,-15,-43,-40,-5,30,39,20,-13,-36,-53,-51,-13,32,50,29,-14,-50,-56,-58,-19,30,54,36,-14,-59,-54,-57,-22,27,55,38,-12,-63,-43,-50,-19,25,51,38,-11,-62,-29,-35,-12,23,46,34,-8,-56,-15,-19,-4,22,38,29,-6,-47 },
{ 26,33,29,15,-6,-26,-41,-43,30,41,37,21,-6,-35,-56,-63,25,37,38,23,-3,-33,-59,-69,13,24,30,24,4,-23,-50,-65,-5,2,15,20,12,-9,-34,-52,-25,-24,-6,12,18,8,-13,-32,-43,-48,-29,1,22,24,10,-8,-50,-65,-46,-10,23,37,31,15,-43,-61,-51,-17,22,44,47,34,-18,-37,-37,-16,16,41,49,43,17,6,-8,-8,8,27,40,39,49,49,24,1,-5,5,18,25,67,73,45,4,-22,-23,-10,2,56,68,40,-3,-37,-47,-36,-19,27,32,16,-16,-44,-53,-46,-29,-9,-10,-14,-23,-33,-37,-31,-22,-35,-41,-32,-16,-4,2,4,4,-38,-48,-30,0,28,42,41,32,-26,-31,-15,15,44,58,57,45,-6,-8,0,16,33,42,40,33,11,12,9,7,3,1,-1,-1,19,24,15,-2,-22,-38,-44,-39,20,25,18,-1,-27,-49,-62,-58,11,18,18,9,-9,-30,-46,-51,-3,1,9,15,16,7,-8,-19,-16,-19,-10,8,26,36,32,20,-22,-31,-29,-11,17,41,52,46,-14,-29,-36,-30,-7,23,45,51,5,-6,-24,-34,-29,-6,21,35,28,29,7,-20,-34,-29,-9,10,47,59,44,9,-23,-36,-30,-14,53,74,66,35,-2,-29,-35,-28 },
{ 34,46,52,50,45,36,25,13,32,45,52,53,48,40,27,15,14,20,25,28,28,24,16,7,-9,-15,-14,-9,-5,-2,-4,-7,-25,-42,-47,-42,-34,-26,-22,-20,-26,-47,-55,-53,-45,-36,-30,-26,-10,-27,-37,-37,-33,-27,-23,-22,13,7,0,-3,-3,-3,-6,-10,29,35,35,33,31,25,16,6,25,37,43,48,48,44,31,18,5,11,19,30,40,40,33,20,-17,-26,-24,-13,3,15,16,11,-23,-42,-54,-50,-36,-19,-8,-5,-4,-22,-41,-51,-47,-37,-25,-19,26,22,8,-8,-19,-23,-23,-21,40,53,51,42,26,11,-2,-11,24,39,50,53,50,36,18,2,-11,-12,-1,15,27,29,19,5,-38,-57,-60,-42,-18,-1,4,-1,-32,-59,-70,-64,-42,-21,-9,-8,2,-10,-25,-29,-23,-12,-6,-7,38,47,40,29,21,15,8,0,49,67,70,59,45,30,16,4,28,40,40,34,24,15,6,-1,-6,-12,-20,-23,-23,-18,-14,-12,-28,-48,-60,-62,-52,-37,-23,-14,-25,-43,-54,-52,-40,-22,-8,-3,-3,-9,-11,-6,6,18,23,18,19,26,33,40,48,51,47,33,23,34,41,48,50,47,37,23,8,10,11,10,7,1,-7,-13,-16,-24,-34,-43,-51,-57,-59,-56 },
{ -35,-31,-9,14,23,16,0,-12,-45,-41,-10,22,35,24,1,-19,-52,-47,-10,27,43,29,-1,-26,-54,-50,-10,30,45,30,-4,-33,-53,-48,-8,31,46,28,-8,-40,-45,-41,-4,33,44,25,-13,-46,-34,-29,2,33,41,20,-17,-50,-20,-16,8,32,36,15,-21,-52,-5,-1,13,28,28,8,-24,-51,8,10,14,20,18,2,-24,-47,18,16,8,5,3,-4,-20,-35,26,21,-1,-14,-14,-10,-12,-19,35,24,-9,-32,-30,-13,1,4,40,30,-11,-43,-40,-11,19,32,45,35,-8,-44,-43,-5,37,59,42,38,-1,-39,-40,-3,47,77,32,32,3,-31,-39,-7,44,77,12,18,4,-21,-33,-16,23,58,-12,-4,3,-4,-19,-20,-3,23,-36,-27,2,18,8,-14,-23,-13,-56,-45,1,39,41,7,-30,-40,-61,-56,-3,51,63,29,-24,-54,-55,-53,-9,45,69,39,-16,-54,-36,-40,-12,29,51,34,-11,-48,-9,-15,-10,7,22,15,-11,-37,20,17,2,-7,-7,-6,-12,-22,47,45,18,-13,-28,-23,-10,-2,58,63,28,-15,-39,-32,-4,20,57,62,28,-19,-46,-33,6,42,41,46,14,-27,-48,-31,17,61,21,22,-3,-34,-48,-25,26,71,3,1,-16,-37,-42,-18,28,72 },
{ 21,28,29,20,3,-16,-33,-38,20,30,32,24,5,-21,-44,-54,10,19,25,22,8,-17,-43,-57,-4,0,10,16,10,-9,-34,-51,-20,-21,-8,8,14,3,-18,-36,-29,-38,-24,-1,16,17,2,-16,-30,-42,-34,-8,17,28,22,6,-17,-34,-33,-12,16,35,36,24,7,-9,-22,-13,11,33,42,35,33,23,-2,-12,0,20,33,34,54,49,17,-11,-16,-3,13,21,55,58,25,-13,-32,-27,-11,1,37,39,17,-17,-41,-43,-31,-16,4,5,-3,-17,-31,-36,-30,-20,-28,-32,-23,-10,-3,-4,-7,-8,-42,-52,-30,4,31,37,26,12,-36,-43,-23,17,52,59,46,24,-11,-17,-4,19,40,44,30,12,17,16,13,10,6,-1,-13,-21,34,38,23,0,-23,-42,-52,-53,32,36,21,-5,-29,-47,-60,-59,14,14,4,-6,-13,-17,-23,-29,-6,-14,-19,-12,7,26,33,24,-14,-29,-35,-22,12,51,71,66,-4,-19,-33,-29,-3,36,68,71,17,10,-9,-25,-22,-3,23,38,33,38,25,-2,-29,-39,-32,-15,28,44,45,25,-11,-47,-62,-58,1,16,37,40,19,-20,-57,-69,-36,-33,-1,32,41,20,-19,-47,-66,-79,-50,4,46,51,27,-5,-72,-99,-78,-25,32,61,55,31 },
{ -54,-55,-33,-6,7,2,-12,-21,-61,-63,-31,3,18,10,-12,-29,-56,-52,-16,20,35,22,-8,-32,-41,-33,4,39,50,33,-3,-33,-26,-14,20,50,58,37,-1,-33,-12,-1,24,46,49,30,-5,-36,0,5,16,27,28,13,-15,-39,10,8,3,1,-1,-10,-27,-42,22,14,-8,-23,-27,-28,-33,-38,35,25,-9,-35,-39,-32,-25,-23,46,36,-3,-33,-36,-18,-1,5,46,40,1,-28,-24,4,30,40,37,29,-5,-28,-18,20,57,70,18,11,-18,-38,-24,18,61,81,2,-4,-23,-39,-33,0,40,63,-7,-6,-10,-21,-27,-18,5,26,-15,-4,15,19,3,-18,-27,-18,-25,-11,26,53,40,0,-37,-49,-39,-30,10,51,59,20,-31,-59,-41,-48,-20,24,48,29,-17,-52,-22,-36,-36,-9,22,23,-2,-32,18,3,-20,-26,-7,10,8,-8,60,53,12,-23,-27,-5,14,15,76,81,33,-20,-39,-19,15,31,62,65,26,-25,-49,-26,14,39,21,21,-4,-36,-46,-25,13,40,-19,-25,-30,-34,-29,-9,16,32,-41,-48,-33,-13,5,17,21,20,-44,-44,-18,17,41,39,20,-1,-32,-31,0,39,57,43,4,-31,-20,-16,9,39,48,22,-25,-64,-9,-7,8,25,23,-5,-52,-88 },
{ -6,-15,-31,-45,-52,-47,-33,-18,4,-3,-22,-43,-54,-51,-36,-19,21,22,6,-16,-32,-31,-19,-5,32,43,35,16,1,-2,6,16,29,45,46,35,25,22,28,34,8,22,29,28,25,28,35,41,-22,-17,-8,-1,5,14,26,36,-41,-49,-42,-33,-22,-9,8,23,-38,-49,-50,-44,-38,-27,-11,7,-13,-16,-16,-21,-27,-29,-20,-6,14,30,40,29,7,-11,-18,-12,16,47,72,71,44,12,-8,-13,-14,12,49,64,52,21,-3,-13,-49,-46,-16,11,17,6,-9,-15,-53,-68,-61,-41,-26,-20,-19,-16,-15,-30,-39,-41,-35,-26,-16,-8,38,42,30,9,-5,-5,3,11,55,78,69,45,21,15,20,28,28,43,42,24,7,6,18,30,-20,-24,-25,-31,-34,-25,-2,19,-46,-59,-61,-56,-52,-40,-18,6,-31,-37,-27,-18,-15,-17,-10,3,-2,12,35,48,45,26,11,7,10,32,60,76,67,42,16,3,-5,7,26,37,34,14,-7,-13,-25,-31,-28,-24,-24,-30,-34,-30,-25,-39,-49,-51,-52,-47,-39,-28,-1,-7,-16,-23,-24,-20,-11,-2,27,34,33,26,23,24,29,31,32,46,47,42,36,38,42,45,13,17,14,5,-1,2,14,25,-16,-24,-38,-52,-59,-52,-33,-12 },
{ -23,-16,-4,3,2,6,16,22,-21,-10,7,11,5,6,17,29,-18,-1,18,17,4,-1,11,27,-15,5,26,20,-2,-12,-1,19,-16,8,30,20,-8,-24,-14,9,-21,5,30,20,-13,-33,-25,-1,-30,-3,28,21,-14,-36,-31,-5,-40,-12,26,24,-9,-34,-29,-5,-50,-20,24,29,-2,-26,-22,3,-52,-24,25,34,7,-17,-10,15,-51,-22,26,36,10,-10,-1,28,-43,-15,29,32,3,-14,3,38,-36,-6,33,25,-14,-30,-5,41,-32,3,40,21,-31,-53,-20,39,-37,4,50,28,-37,-66,-32,36,-52,-7,54,44,-23,-65,-33,39,-76,-29,51,57,-4,-50,-24,49,-89,-50,39,62,7,-41,-15,57,-89,-51,34,57,5,-43,-19,57,-71,-35,41,55,-4,-57,-31,49,-51,-11,56,57,-12,-68,-46,39,-40,0,59,58,-12,-72,-47,35,-40,-6,48,48,-11,-60,-37,43,-46,-20,28,35,-9,-47,-19,55,-48,-28,13,23,-9,-34,-7,63,-39,-24,13,22,-6,-31,-5,59,-28,-11,22,28,-3,-31,-16,42,-20,-3,29,35,3,-34,-29,18,-21,-5,26,35,8,-30,-37,0,-25,-15,14,29,11,-21,-30,-6,-29,-25,-1,18,13,-8,-16,2,-27,-29,-10,9,13,4,2,14 },
{ -9,-23,-34,-28,-5,25,48,52,-4,-22,-40,-39,-12,27,59,71,12,-4,-30,-38,-21,15,52,69,32,23,-8,-29,-26,-2,31,52,48,46,16,-15,-28,-18,5,25,46,55,31,-2,-24,-29,-18,-2,25,38,32,9,-15,-30,-32,-25,-13,1,15,15,-1,-22,-36,-39,-52,-43,-10,16,18,-3,-29,-43,-64,-70,-31,15,35,21,-10,-35,-48,-61,-35,15,50,45,14,-19,-4,-22,-18,15,49,55,29,-5,48,33,5,6,27,39,26,-2,76,67,14,-19,-15,1,3,-11,73,61,1,-46,-55,-35,-21,-23,42,30,-20,-57,-58,-36,-19,-21,8,-7,-33,-38,-20,6,15,1,-9,-24,-30,-8,29,57,52,25,-8,-20,-21,8,52,71,59,23,6,-6,-15,1,30,42,21,-11,23,11,-10,-14,-6,-8,-31,-56,32,24,-3,-17,-18,-26,-51,-79,32,23,0,-9,-1,0,-24,-58,23,11,-10,-7,20,41,26,-12,16,-2,-29,-23,16,55,62,28,17,-2,-35,-45,-14,32,53,38,26,12,-22,-45,-39,-8,16,15,30,30,6,-20,-31,-27,-18,-18,22,30,28,16,0,-14,-28,-37,-4,4,19,33,31,16,-11,-34,-36,-39,-19,14,38,36,12,-17,-53,-70,-56,-20,18,35,23,-2 },
{ 55,55,28,-6,-26,-24,-9,6,61,62,27,-14,-38,-33,-11,10,50,47,15,-23,-43,-33,-6,19,26,22,-1,-28,-39,-26,4,29,0,-5,-17,-28,-30,-13,16,39,-20,-24,-22,-20,-15,1,25,45,-32,-31,-16,-3,5,14,28,41,-35,-30,-3,17,22,21,24,30,-34,-21,13,34,33,19,9,8,-28,-14,23,43,32,7,-14,-21,-22,-10,22,38,22,-12,-40,-48,-16,-10,14,26,10,-25,-56,-65,-8,-8,4,13,5,-23,-51,-61,4,-2,-3,2,5,-2,-19,-31,20,9,-8,-10,4,20,26,18,31,21,-9,-27,-13,23,54,60,36,28,-7,-40,-43,-2,50,74,21,25,3,-33,-51,-33,15,53,-10,4,17,4,-26,-38,-21,10,-44,-28,18,44,26,-13,-33,-25,-67,-55,6,60,68,22,-27,-42,-53,-58,-12,43,63,36,-13,-42,-11,-23,-18,4,21,15,-6,-25,42,31,-1,-26,-29,-17,-5,-3,76,71,21,-34,-59,-36,1,22,63,70,26,-30,-54,-33,15,45,22,26,9,-20,-34,-12,29,55,-27,-27,-18,-12,-7,9,33,48,-56,-58,-33,-2,17,21,20,18,-51,-56,-23,17,34,22,-6,-25,-29,-26,4,38,47,16,-33,-64,-2,4,27,51,48,10,-45,-85 },
{ -14,-26,-40,-46,-47,-39,-26,-14,-5,-14,-29,-41,-43,-37,-25,-12,13,14,4,-8,-15,-13,-5,2,25,38,35,26,19,16,19,20,21,37,43,40,35,32,32,30,-2,8,18,22,23,24,26,26,-28,-29,-23,-15,-8,-2,4,10,-36,-47,-46,-41,-35,-29,-20,-10,-17,-27,-31,-32,-35,-35,-31,-23,14,18,15,9,-2,-14,-21,-21,29,45,55,51,39,20,2,-9,10,26,41,51,49,37,19,4,-21,-26,-21,-5,13,20,17,7,-24,-49,-66,-62,-39,-15,-2,0,11,-8,-37,-53,-49,-30,-13,-5,46,55,35,12,-2,-3,-1,0,42,60,64,53,42,30,19,8,-6,-4,2,14,23,25,15,3,-43,-66,-72,-52,-23,-6,-5,-12,-22,-49,-64,-56,-30,-13,-13,-21,32,28,12,7,15,17,3,-15,58,74,62,51,47,41,20,-6,32,38,27,17,19,21,12,-6,-13,-29,-46,-53,-40,-22,-11,-13,-28,-49,-68,-69,-55,-31,-15,-12,-1,-7,-13,-11,-2,9,12,5,27,39,49,53,57,51,38,18,23,37,45,50,48,40,23,8,-5,-8,-10,-12,-15,-18,-22,-23,-23,-37,-47,-55,-55,-53,-46,-37,-11,-17,-23,-26,-26,-20,-16,-12,21,30,37,43,49,51,45,35 },
{ -25,-11,9,12,2,-3,5,13,-26,-6,20,20,2,-7,3,17,-29,-3,28,24,-1,-14,-3,16,-33,-4,31,25,-8,-24,-11,13,-41,-8,32,24,-14,-32,-18,11,-46,-12,33,26,-15,-37,-21,12,-52,-15,35,29,-13,-36,-20,16,-55,-17,37,34,-9,-33,-15,23,-59,-17,41,37,-7,-31,-10,32,-58,-17,43,37,-10,-34,-8,40,-55,-12,46,36,-18,-41,-10,46,-49,-8,47,33,-26,-53,-15,48,-48,-6,49,33,-32,-61,-22,48,-48,-9,47,37,-27,-62,-23,49,-50,-17,40,40,-15,-50,-18,51,-44,-24,27,39,-3,-38,-10,51,-28,-19,16,29,1,-28,-9,46,0,-4,5,14,-1,-25,-12,30,29,13,-5,-3,-4,-16,-15,11,46,22,-16,-18,0,1,-8,-4,54,20,-34,-31,7,25,7,-14,53,14,-48,-46,13,47,22,-21,57,14,-55,-52,14,58,29,-32,60,22,-50,-54,13,61,26,-48,64,30,-42,-50,11,58,23,-63,58,33,-34,-48,8,56,20,-69,48,25,-34,-46,6,52,23,-64,38,18,-33,-47,2,52,29,-52,31,14,-30,-43,-2,46,36,-35,27,17,-20,-36,-5,39,33,-23,23,18,-9,-26,-7,26,24,-20,16,16,-2,-17,-8,13,11,-22 },
{ -5,6,20,20,1,-26,-48,-52,-10,3,24,30,10,-24,-54,-66,-20,-8,17,31,22,-8,-39,-56,-28,-24,2,24,29,13,-12,-31,-31,-33,-16,10,27,28,15,0,-16,-27,-24,-8,13,28,31,24,14,0,-17,-20,-7,15,32,36,45,36,2,-26,-28,-7,21,36,60,59,20,-25,-45,-28,5,29,37,50,26,-18,-46,-40,-9,19,-14,3,14,-5,-31,-34,-15,9,-64,-51,-7,14,2,-12,-8,6,-86,-73,-13,35,40,17,4,6,-53,-49,4,50,55,31,8,2,2,7,27,41,34,10,-9,-10,41,48,33,10,-17,-35,-36,-26,45,44,14,-28,-59,-60,-43,-22,15,11,-12,-39,-46,-32,-5,14,-16,-22,-24,-17,1,27,51,59,-25,-31,-17,7,33,56,68,69,-12,-13,-3,13,24,25,24,23,8,11,13,11,-4,-29,-46,-47,17,20,19,11,-9,-43,-79,-85,11,8,6,11,12,-6,-39,-63,1,-10,-20,-6,25,43,32,2,4,-14,-36,-33,6,52,67,52,21,6,-27,-45,-28,16,51,54,34,35,7,-29,-43,-27,2,18,29,40,37,8,-25,-38,-36,-24,-4,10,28,34,15,-13,-35,-42,-44,-43,-12,25,42,25,-5,-26,-64,-79,-51,-1,39,46,26,0 },
{ -68,-67,-32,17,48,45,23,-1,-68,-73,-32,23,57,54,23,-7,-42,-45,-19,22,48,40,9,-22,2,-1,1,16,27,16,-14,-41,44,40,19,7,4,-8,-33,-54,64,62,22,-7,-15,-21,-37,-52,62,53,7,-25,-27,-20,-23,-33,39,25,-21,-43,-31,-8,2,-4,15,-5,-44,-54,-28,11,34,31,3,-15,-42,-48,-15,29,57,58,1,-4,-17,-21,1,36,61,61,-2,10,15,10,12,26,37,39,-17,6,31,30,12,-3,-9,-8,-34,-16,20,32,6,-30,-54,-58,-41,-33,1,23,11,-28,-66,-78,-20,-25,-7,16,24,5,-29,-53,14,8,-2,4,23,35,27,4,35,35,5,-21,-13,23,51,51,29,33,5,-40,-58,-23,31,57,0,13,9,-25,-57,-52,-7,33,-34,-16,19,23,-7,-31,-23,5,-52,-42,15,59,49,12,-14,-12,-47,-46,-5,44,61,31,-6,-20,-9,-23,-18,4,20,14,-9,-23,39,23,-11,-29,-27,-17,-15,-16,63,58,10,-34,-41,-24,-5,2,54,54,19,-19,-29,-6,20,26,12,13,-1,-15,-9,15,37,39,-27,-32,-32,-21,-1,21,33,28,-36,-45,-34,-15,6,15,8,-5,-18,-18,-5,14,24,10,-20,-45,8,17,31,45,42,13,-33,-68 },
{ 40,53,60,58,53,44,32,20,21,28,35,39,37,33,25,17,-16,-24,-22,-14,-9,-5,-2,-2,-35,-57,-60,-53,-44,-36,-29,-21,-20,-39,-47,-46,-43,-39,-33,-25,17,13,7,2,-5,-10,-13,-13,36,50,56,51,40,27,17,8,16,36,53,58,52,43,33,22,-26,-20,-1,13,20,23,24,21,-42,-58,-51,-42,-32,-19,-5,6,-15,-30,-40,-49,-56,-48,-30,-10,25,33,28,8,-20,-35,-28,-12,25,52,74,65,35,5,-4,2,-20,-3,28,48,41,23,15,17,-52,-63,-50,-25,-7,1,12,21,-19,-43,-56,-55,-43,-28,-6,13,45,41,21,-1,-17,-21,-11,4,52,69,64,51,28,8,-1,1,-1,0,7,20,27,17,4,-2,-37,-66,-68,-45,-11,3,-1,-9,-16,-42,-59,-44,-15,1,-3,-13,35,33,20,14,21,20,6,-8,49,63,59,43,33,22,6,-7,10,16,11,1,-5,-6,-8,-9,-33,-42,-47,-46,-42,-28,-15,-6,-33,-40,-35,-29,-20,-11,0,7,-6,4,22,33,32,25,22,22,10,28,50,57,44,25,16,18,-4,6,21,20,0,-18,-21,-6,-21,-24,-19,-24,-42,-54,-44,-20,-17,-20,-17,-18,-27,-31,-21,0,4,9,21,30,32,31,34,42 },
{ 43,25,-3,-10,2,9,0,-10,46,20,-19,-24,-1,12,2,-14,43,8,-36,-35,-3,16,6,-16,40,1,-45,-39,1,24,11,-16,41,0,-46,-34,11,34,19,-15,45,5,-41,-27,20,43,23,-16,49,10,-34,-21,26,46,22,-21,46,10,-33,-20,25,43,16,-30,40,6,-36,-24,20,36,6,-41,31,2,-36,-27,14,30,-2,-51,25,3,-30,-24,13,27,-5,-54,18,6,-19,-16,17,33,1,-48,7,6,-8,-9,19,36,13,-33,-9,2,1,-8,6,28,18,-16,-28,-3,14,-5,-15,2,13,-1,-45,-7,34,11,-30,-27,1,12,-64,-12,59,39,-28,-47,-11,25,-74,-24,65,63,-16,-57,-15,40,-76,-34,55,63,-12,-58,-16,52,-57,-34,37,50,-15,-61,-18,58,-26,-16,27,33,-19,-56,-19,56,6,4,19,21,-15,-44,-14,50,26,12,4,6,-5,-20,-5,35,33,7,-20,-14,3,3,2,15,41,4,-41,-32,10,25,8,-9,48,10,-45,-41,16,45,11,-34,58,20,-42,-41,21,57,15,-53,62,30,-37,-46,17,62,18,-64,60,31,-38,-53,6,57,23,-64,49,27,-35,-57,-4,52,27,-53,37,22,-28,-48,-6,45,34,-35,26,19,-15,-32,-5,37,33,-20 },
{ -3,-15,-29,-28,-8,25,55,61,5,-4,-24,-35,-19,18,57,74,20,18,-2,-25,-27,-3,33,55,24,35,22,-5,-26,-25,-3,21,10,30,36,15,-17,-36,-34,-16,-20,2,28,29,1,-30,-44,-38,-49,-36,4,30,21,-8,-33,-40,-54,-59,-19,24,37,19,-10,-27,-27,-42,-27,13,42,37,13,-9,26,6,-14,-2,24,35,22,5,73,55,5,-19,-9,10,15,7,75,69,9,-36,-42,-21,-2,3,33,27,-8,-43,-50,-31,-10,-1,-27,-30,-27,-24,-16,-4,3,4,-57,-53,-21,16,38,38,26,10,-34,-30,4,41,59,52,26,2,9,14,22,26,24,10,-11,-28,28,35,18,-10,-33,-43,-49,-50,17,20,3,-27,-48,-43,-34,-28,-8,-7,-6,-12,-10,8,29,30,-23,-19,-6,5,19,43,71,70,-17,-13,2,7,6,16,37,51,-4,4,14,8,-19,-41,-40,-17,4,11,22,22,-9,-55,-77,-66,0,0,10,27,28,-1,-36,-47,-4,-19,-23,0,36,52,35,12,10,-13,-42,-41,-2,45,66,52,34,22,-20,-54,-47,-6,32,42,41,48,26,-16,-48,-43,-20,0,12,30,39,31,2,-27,-37,-33,-38,-32,2,36,46,22,-13,-33,-69,-84,-53,3,45,49,19,-14 },
{ 57,59,32,-10,-37,-33,-10,9,47,54,29,-14,-45,-40,-10,16,9,15,10,-15,-37,-30,-1,25,-35,-28,-9,-8,-17,-12,13,36,-64,-53,-14,9,7,7,22,39,-58,-49,0,30,26,15,18,29,-33,-19,23,44,31,8,1,8,-4,9,36,44,20,-11,-25,-20,11,18,31,28,1,-31,-47,-40,12,7,5,3,-14,-36,-45,-40,12,-8,-24,-20,-16,-17,-18,-14,19,-7,-32,-30,-6,15,25,25,32,12,-20,-23,2,35,58,58,28,23,-1,-14,0,25,46,55,4,6,4,-2,-9,-10,-4,7,-22,-21,-3,12,1,-31,-53,-51,-29,-32,-7,28,37,-2,-54,-74,-5,-15,-6,26,53,45,-1,-42,27,18,-9,-17,11,42,43,13,39,40,-4,-58,-60,-12,36,43,18,32,17,-38,-80,-52,6,39,-28,-2,33,25,-17,-35,-10,21,-70,-50,19,65,54,11,-10,1,-65,-70,-13,50,63,27,-11,-17,-10,-25,-21,4,20,2,-24,-29,56,45,4,-25,-28,-25,-24,-20,81,76,24,-28,-43,-22,2,11,44,45,7,-29,-30,4,38,45,-10,-18,-31,-34,-16,21,50,49,-37,-48,-40,-22,3,21,24,14,-27,-29,-9,18,32,15,-20,-45,-1,6,30,54,54,14,-47,-87 },
{ -48,-18,24,29,6,-11,-4,10,-55,-18,38,42,6,-20,-10,13,-59,-15,44,43,-3,-30,-17,15,-55,-12,45,38,-14,-42,-21,19,-51,-9,44,31,-23,-49,-23,25,-42,-5,42,26,-27,-51,-17,36,-33,-1,39,24,-27,-45,-8,48,-25,-1,33,21,-23,-40,0,57,-19,-5,24,17,-19,-33,4,60,-11,-8,11,11,-16,-30,1,52,3,-8,-2,6,-8,-23,-7,32,23,-2,-13,5,8,-10,-13,9,43,5,-28,-1,27,11,-15,-17,54,7,-45,-18,36,36,-7,-36,60,9,-62,-42,34,53,5,-46,57,20,-57,-59,19,62,17,-49,43,30,-32,-51,4,53,23,-48,8,23,-1,-26,0,40,17,-44,-37,-4,19,3,-2,18,11,-34,-67,-27,28,23,-7,-5,3,-16,-70,-25,43,38,-16,-31,-4,8,-45,-11,49,44,-21,-50,-8,34,-22,2,43,34,-26,-54,-7,54,-6,1,21,19,-25,-51,-5,61,5,-3,-4,2,-12,-29,-4,49,16,-3,-19,-6,8,1,1,22,31,3,-29,-13,26,29,2,-15,45,14,-36,-28,26,46,1,-50,61,27,-41,-46,16,51,6,-69,60,36,-36,-58,4,56,20,-65,49,33,-29,-55,-8,52,37,-40,29,24,-20,-47,-15,41,42,-15 },
{ 37,42,44,43,43,36,24,12,18,16,15,21,26,24,16,7,-15,-30,-34,-25,-12,-8,-8,-9,-24,-47,-53,-46,-33,-26,-25,-22,0,-16,-26,-24,-18,-16,-19,-21,30,32,25,21,18,12,3,-6,29,42,48,46,42,33,22,10,-8,2,16,24,26,26,23,16,-41,-47,-38,-28,-18,-7,5,8,-26,-41,-41,-46,-46,-36,-18,-4,20,22,21,1,-24,-31,-23,-8,29,55,71,62,28,2,-6,0,-16,-3,29,47,41,20,11,12,-48,-71,-59,-32,-10,-1,6,15,-9,-34,-52,-53,-44,-27,-8,9,52,62,43,18,-4,-13,-7,5,43,62,69,57,38,17,4,4,-25,-37,-31,-11,6,9,1,-3,-44,-77,-89,-65,-29,-8,-6,-10,14,4,-10,-9,4,11,2,-10,53,75,76,59,44,29,11,-5,10,26,32,19,4,-1,-2,-5,-46,-55,-52,-53,-53,-37,-16,-3,-41,-49,-39,-31,-27,-17,0,12,2,18,41,49,41,27,23,23,22,41,58,61,42,20,9,11,5,3,0,-8,-21,-31,-28,-14,-11,-29,-45,-55,-55,-49,-35,-21,0,-12,-24,-24,-11,3,10,7,18,19,17,24,43,58,50,31,17,21,18,20,32,36,27,8,-4,-7,-18,-29,-35,-36,-41,-45 },
{ -15,-4,20,36,27,-12,-56,-71,-16,-13,11,39,39,1,-54,-85,-12,-22,-11,19,39,20,-26,-62,4,-20,-31,-11,23,34,11,-22,32,2,-39,-37,0,35,40,18,54,33,-24,-51,-25,21,47,41,55,51,1,-44,-43,-3,33,42,16,40,22,-22,-41,-22,8,26,-43,-5,28,9,-23,-27,-13,4,-79,-52,18,39,11,-15,-20,-10,-75,-58,9,52,40,5,-16,-17,-20,-22,11,42,39,12,-12,-16,40,30,14,8,3,-5,-12,-9,54,50,5,-31,-41,-30,-10,4,25,18,-14,-43,-49,-25,7,27,-17,-22,-22,-15,-5,10,32,45,-35,-34,-10,25,44,36,30,31,-9,-12,6,34,39,14,-15,-19,23,19,9,7,0,-26,-57,-63,26,21,-4,-19,-19,-23,-40,-54,9,6,-13,-21,-6,22,30,10,-11,-9,-9,-16,1,38,69,65,-22,-8,9,1,-15,-4,29,49,-24,-4,30,30,-14,-54,-44,-10,-23,-9,29,46,15,-42,-71,-47,-11,-20,-2,30,37,11,-22,-26,13,-11,-33,-20,16,39,39,25,43,23,-28,-59,-34,15,48,52,53,47,6,-42,-56,-24,14,31,18,31,24,5,-15,-24,-20,-13,-36,-27,3,33,41,15,-22,-41,-68,-76,-36,24,60,48,0,-38 },
{ 38,0,-44,-39,-3,21,15,-6,52,8,-50,-48,0,31,19,-11,65,20,-41,-38,10,39,21,-18,61,26,-30,-26,21,45,17,-29,45,15,-30,-21,25,43,9,-42,18,-3,-34,-22,20,37,2,-51,-6,-14,-29,-19,15,30,-1,-53,-18,-10,-11,-10,12,26,0,-47,-23,4,16,5,9,20,5,-32,-28,15,38,13,-4,6,10,-9,-45,8,47,12,-29,-19,8,14,-61,-7,46,10,-50,-46,2,36,-63,-14,53,22,-53,-61,-4,53,-42,-13,50,45,-26,-54,-2,65,-11,-12,27,43,3,-33,-2,59,25,-10,-18,13,12,-19,-12,34,63,7,-53,-27,12,-3,-22,-2,70,24,-52,-41,23,29,-12,-27,50,20,-41,-32,38,59,10,-37,8,1,-27,-26,28,61,18,-41,-25,-9,-4,-16,-4,22,4,-40,-41,-4,31,13,-17,-15,-9,-25,-54,-5,56,42,-14,-31,-6,7,-53,-14,49,44,-19,-43,0,43,-41,-19,30,27,-27,-51,-1,66,-10,-12,11,16,-18,-47,-6,62,24,4,-3,8,2,-21,-11,30,43,13,-21,-5,23,14,-9,-7,54,15,-44,-33,25,42,0,-40,54,17,-52,-56,13,56,13,-56,51,23,-40,-53,4,55,26,-50,40,27,-18,-38,0,46,29,-36 },
{ 61,62,33,-6,-33,-32,-17,-1,43,47,22,-12,-35,-34,-15,4,-1,-3,-6,-15,-22,-17,0,16,-41,-47,-28,-9,0,8,19,29,-51,-56,-25,9,24,27,29,32,-22,-29,-1,30,36,27,18,16,17,14,24,36,28,6,-10,-13,38,36,27,22,4,-24,-42,-44,31,20,3,-6,-19,-40,-56,-55,6,-13,-29,-26,-18,-21,-29,-32,-6,-29,-40,-23,7,25,27,19,6,-9,-17,-6,24,56,69,63,15,21,17,4,4,26,55,63,-1,19,29,5,-34,-46,-20,11,-31,-15,18,19,-27,-72,-80,-49,-32,-41,-3,40,35,-12,-51,-54,7,-19,-23,21,67,64,30,0,47,27,-22,-39,-2,44,55,41,48,46,1,-59,-79,-39,9,28,-2,16,23,2,-39,-54,-31,-5,-54,-41,13,58,55,13,-14,-14,-41,-59,-21,38,66,49,11,-9,20,-7,-27,-18,1,6,-1,-8,62,56,9,-33,-50,-41,-20,-7,44,49,28,-9,-36,-29,-5,13,-19,-15,-1,9,10,15,26,35,-54,-60,-34,6,32,32,26,26,-28,-40,-24,7,24,10,-12,-14,20,16,15,19,14,-15,-46,-49,41,43,30,19,5,-13,-33,-41,26,23,2,-14,-12,2,12,10,-3,-14,-36,-50,-33,10,48,59 },
{ 22,16,-7,-28,-26,5,44,59,18,21,1,-28,-35,-7,38,65,2,13,13,-11,-31,-22,11,41,-25,-3,22,15,-12,-28,-17,7,-48,-25,23,40,16,-19,-35,-23,-44,-37,13,49,38,-1,-33,-37,-12,-25,-5,31,42,15,-18,-32,37,4,-22,-5,21,20,-1,-17,78,37,-33,-44,-12,13,14,3,64,51,-23,-62,-36,5,22,19,6,18,-6,-39,-34,1,23,25,-62,-34,5,10,3,9,16,16,-82,-52,19,51,40,14,-4,-10,-23,-14,26,51,35,1,-28,-40,42,36,18,0,-11,-21,-36,-42,49,46,-5,-51,-49,-21,-1,-1,2,5,-20,-48,-40,9,52,57,-38,-27,-2,4,7,26,53,64,-37,-21,22,47,36,2,-11,0,-1,0,13,32,21,-27,-69,-73,30,17,-14,-19,-2,-9,-46,-69,27,21,-20,-48,-13,39,41,7,-2,10,-3,-31,-22,40,83,65,-31,-3,23,5,-26,-12,26,41,-42,-15,36,40,-7,-49,-54,-28,-27,-24,17,48,26,-23,-54,-56,6,-10,-12,8,28,24,6,-14,36,17,-24,-43,-20,25,50,38,47,37,-7,-49,-54,-10,39,46,18,25,13,-11,-27,-24,-5,8,-25,-19,5,26,28,6,-23,-35,-51,-58,-23,30,58,41,-8,-46 },
{ -45,-19,10,2,-28,-39,-25,-5,-42,-8,31,22,-17,-38,-22,5,-33,6,49,40,0,-22,-5,23,-28,5,44,39,3,-12,10,41,-27,-8,19,15,-10,-17,11,46,-13,-14,-6,-11,-27,-29,0,36,15,-1,-12,-17,-28,-32,-13,17,38,18,-4,-4,-6,-16,-15,0,46,21,-6,9,27,15,-4,-11,26,-5,-34,-2,42,43,11,-18,10,-25,-69,-37,32,49,15,-29,23,2,-53,-56,6,39,8,-42,29,51,16,-24,-5,24,2,-51,-24,40,58,15,-2,19,6,-41,-95,-32,32,8,-19,3,17,-13,-89,-46,19,-4,-46,-24,21,21,-23,18,66,24,-47,-40,16,43,16,43,68,42,-20,-36,6,40,11,-6,-16,-10,-8,-13,-1,15,17,-31,-82,-62,2,29,8,-16,49,22,-43,-42,30,68,23,-44,36,56,23,-4,31,67,17,-62,-30,8,25,-9,-17,11,-3,-59,-79,-44,9,-10,-49,-31,-4,-19,-69,-31,40,34,-26,-29,20,43,-20,8,63,67,3,-27,21,71,11,15,33,33,-10,-44,-11,43,16,-7,-25,-21,-26,-45,-35,0,27,-9,-48,-36,0,8,-10,-18,38,14,-27,-20,36,68,35,-14,41,26,-11,-14,30,64,37,-24,19,12,-22,-38,-21,4,-8,-53 },
{ -8,15,45,49,34,17,13,15,-27,-8,26,35,16,0,3,14,-42,-34,-5,0,-19,-29,-16,5,-28,-29,-12,-13,-34,-44,-25,3,7,7,13,3,-23,-34,-17,12,27,33,35,27,4,-10,2,25,17,16,23,28,19,8,15,34,-5,-24,-21,1,9,6,13,30,-4,-41,-56,-30,-8,-7,-3,10,29,-7,-37,-23,-4,-9,-19,-15,57,38,11,16,27,10,-19,-31,34,26,12,31,51,36,-5,-31,-14,-35,-49,-20,25,34,8,-22,-16,-38,-60,-60,-25,4,2,-13,13,34,34,2,-25,-15,0,4,-7,44,93,80,18,-13,1,23,-66,-51,12,38,3,-28,-11,29,-31,-73,-65,-33,-34,-46,-22,24,76,34,-11,-3,5,-9,-9,19,98,81,27,28,52,41,11,10,21,-12,-56,-36,20,30,0,-16,-33,-67,-84,-65,-14,1,-24,-39,-15,-6,11,18,23,12,-13,-25,5,43,81,78,43,15,6,10,-21,1,32,24,-20,-38,-10,30,-38,-47,-33,-34,-60,-74,-26,37,-7,-21,-16,-5,-11,-28,-7,44,35,29,25,45,54,34,18,32,42,26,2,14,43,33,3,-9,21,-7,-50,-54,-17,-5,-30,-49,14,-7,-48,-57,-23,2,-16,-45,24,25,7,5,33,57,41,1 },
{ -2,3,8,9,9,9,5,-3,-2,5,7,5,5,9,5,-6,-1,3,0,-6,-5,4,3,-10,1,5,-3,-15,-14,-2,0,-13,1,9,0,-15,-15,-1,3,-10,-3,13,8,-9,-10,7,13,-3,-15,8,13,-3,-4,15,20,1,-29,0,13,-3,-5,15,20,0,-32,1,16,-7,-14,7,14,-8,-26,12,22,-11,-24,-3,7,-15,-24,21,34,-9,-28,-4,6,-19,-33,20,37,-7,-24,6,16,-14,-50,8,31,-18,-28,19,34,-6,-52,12,29,-34,-41,21,43,-4,-46,31,51,-29,-53,14,41,-15,-56,38,70,-17,-52,17,38,-32,-86,16,67,-28,-57,29,46,-50,-87,11,58,-43,-67,45,65,-55,-68,35,78,-42,-78,50,84,-50,-56,49,90,-38,-89,39,79,-51,-70,23,76,-32,-90,25,70,-59,-71,-3,50,-20,-65,31,64,-58,-48,1,40,-11,-41,37,65,-47,-16,24,42,-11,-41,23,53,-37,-3,27,35,-19,-50,1,35,-31,-16,7,16,-19,-39,2,27,-20,-27,-11,3,-7,-12,15,30,-11,-20,-6,11,6,2,16,23,-7,-7,7,19,10,-6,-2,5,-10,-2,7,12,4,-15,-19,-8,-9,-4,-1,3,-2,-13,-13,-2,2,-6,-5,-2,-1,0,6,17,20 },
{ -38,-40,-26,-1,18,24,21,15,-21,-24,-14,3,16,20,16,13,13,16,11,8,5,2,-3,-3,33,38,24,7,-7,-18,-23,-21,22,27,14,-3,-16,-25,-29,-26,-8,-7,-11,-13,-13,-13,-14,-10,-25,-31,-27,-13,2,12,15,16,-12,-23,-18,-2,17,32,38,37,15,10,7,11,19,27,33,33,26,29,20,10,-2,-8,-3,4,7,10,7,-2,-24,-43,-45,-31,-16,-26,-17,-3,-10,-36,-51,-46,-6,-28,-23,12,37,24,-4,-18,29,6,-11,10,50,67,52,30,38,28,-6,-23,-13,13,36,40,0,9,1,-27,-63,-74,-40,1,-38,-30,13,41,7,-52,-65,-26,-18,-39,-3,73,93,44,-1,0,42,2,-41,-14,35,45,36,37,67,50,-30,-83,-75,-46,-7,26,24,32,16,-10,-37,-50,-39,-4,-38,-38,6,68,79,36,-5,-7,-42,-64,-41,30,81,54,12,-1,23,-2,-33,-36,-21,-20,-22,-10,64,64,26,-25,-59,-62,-38,-3,19,39,39,22,0,-12,2,27,-48,-43,-16,19,41,39,38,46,-47,-66,-50,-13,18,17,8,18,10,-1,-10,-3,-1,-22,-47,-35,53,58,39,25,13,-15,-45,-46,34,34,17,9,14,13,5,0,-21,-36,-53,-52,-23,11,39,47 },
{ -51,-10,37,30,-5,-25,-16,6,-59,-16,44,41,-8,-34,-17,16,-51,-12,40,34,-14,-37,-12,30,-25,-5,29,21,-22,-39,-5,40,3,3,15,7,-24,-32,1,45,28,8,-2,-2,-14,-22,2,40,44,2,-24,-8,2,-5,-1,21,49,-5,-45,-12,25,19,0,-1,53,-6,-62,-18,44,39,-1,-28,39,0,-55,-21,47,49,-6,-53,17,13,-32,-22,37,45,-8,-65,-17,21,8,-19,9,32,-4,-56,-63,9,42,-6,-25,5,8,-25,-74,-7,59,18,-46,-27,17,19,-45,-12,56,37,-47,-48,19,59,12,-7,18,34,-20,-51,7,72,64,4,-42,-2,13,-24,-18,38,66,10,-70,-38,43,33,-20,-21,33,8,-55,-39,54,72,-6,-60,-18,8,-1,-22,14,53,3,-63,-56,1,50,13,-29,-11,2,-24,-55,-14,55,43,-36,-55,0,30,-24,-16,26,35,-21,-52,5,67,21,-5,-11,11,1,-31,-2,62,58,13,-39,-18,20,6,-16,12,51,19,-44,-35,29,39,-11,-35,25,11,-35,-33,28,52,-2,-55,-7,0,-11,-21,11,42,8,-44,-26,-3,17,1,-11,4,9,-12,-32,-6,34,24,-17,-27,-1,18,-36,-9,36,34,-16,-40,-9,36,-30,-17,20,27,-9,-39,-11,43 },
{ -14,-13,3,23,24,1,-26,-35,-10,-16,-5,19,26,7,-22,-37,4,-8,-11,3,15,11,-7,-20,23,9,-12,-14,-2,10,11,4,34,23,-9,-26,-20,3,21,22,18,23,-1,-25,-28,-7,18,28,-20,3,9,-5,-19,-11,7,20,-53,-22,17,21,1,-8,-5,5,-59,-34,21,42,22,-4,-15,-10,-13,-17,15,40,24,-3,-21,-20,48,23,-3,3,4,-5,-16,-17,71,41,-25,-46,-27,-6,1,2,38,14,-37,-55,-33,6,28,30,-24,-24,-16,-7,7,25,35,36,-52,-37,16,53,50,18,-1,-3,-14,-15,22,54,33,-20,-55,-56,44,20,-2,-8,-20,-39,-56,-54,43,21,-22,-45,-34,0,27,33,-3,-9,-15,-12,-4,31,80,96,-33,-29,5,32,18,-5,9,43,-14,-16,11,41,25,-41,-87,-66,16,8,-4,7,24,-6,-61,-85,26,23,-16,-40,-6,44,50,14,4,21,1,-50,-47,25,86,88,-32,0,32,2,-40,-32,9,39,-44,-23,33,54,19,-35,-62,-51,-24,-25,-3,34,52,18,-40,-72,24,7,-26,-35,5,47,33,-11,50,43,-10,-61,-57,7,56,45,18,36,21,-21,-48,-30,14,36,-38,-15,21,31,12,-14,-21,-11,-70,-63,-7,46,55,23,-21,-39 },
{ 8,-4,-9,2,7,2,-1,6,7,-10,-11,4,7,-2,-5,7,8,-8,-10,5,6,-6,-10,5,15,-5,-8,9,10,-7,-11,5,19,-5,-10,12,13,-8,-14,6,20,-8,-16,10,16,-7,-13,8,25,-11,-22,8,16,-7,-13,11,30,-11,-24,9,18,-9,-14,11,37,-12,-28,13,22,-9,-17,11,39,-15,-31,15,25,-12,-20,13,42,-22,-35,22,30,-14,-23,16,47,-29,-39,31,37,-18,-30,17,53,-29,-48,32,44,-22,-37,21,60,-24,-48,33,44,-30,-42,26,58,-20,-49,31,43,-36,-45,38,41,-25,-45,32,44,-38,-43,51,23,-25,-39,33,45,-34,-46,54,14,-12,-20,27,40,-31,-45,43,1,4,-1,6,15,-19,-36,27,-28,12,18,-13,-12,-2,-7,13,-64,11,45,-22,-37,18,25,1,-76,19,68,-26,-55,33,42,-22,-79,28,85,-24,-74,35,49,-51,-72,23,80,-30,-85,37,62,-64,-63,19,69,-32,-81,38,78,-57,-45,16,51,-30,-64,38,75,-46,-32,14,44,-20,-54,24,59,-45,-25,8,35,-7,-38,13,40,-40,-22,0,22,-4,-30,6,30,-32,-14,-1,15,-2,-21,5,27,-16,-5,4,14,-1,-15,5,24,-1,-1,2,7,-5,-18,-4,12,-4 },
},
{
{ 1,1,1,1,1,0,-1,-2,1,1,1,1,0,0,-2,-4,1,1,1,1,0,-2,-4,-6,1,1,1,0,-1,-3,-6,-9,1,1,0,-1,-3,-5,-8,-12,1,1,0,-2,-4,-7,-11,-15,1,0,-1,-3,-6,-10,-14,-18,0,-1,-2,-5,-8,-12,-17,-22,0,-1,-4,-7,-11,-15,-21,-26,0,-2,-5,-9,-13,-18,-24,-29,-1,-3,-6,-11,-16,-22,-28,-33,-1,-4,-8,-13,-19,-25,-32,-37,-2,-5,-10,-16,-22,-29,-36,-41,-2,-6,-12,-18,-26,-33,-40,-45,-3,-8,-14,-21,-29,-37,-44,-48,-4,-9,-16,-24,-32,-40,-47,-51,-4,-10,-18,-27,-36,-44,-50,-54,-5,-12,-20,-29,-39,-47,-53,-56,-6,-13,-22,-32,-41,-49,-55,-58,-7,-15,-24,-34,-44,-51,-56,-59,-7,-16,-26,-36,-46,-53,-58,-60,-8,-17,-27,-38,-47,-54,-59,-61,-9,-18,-29,-39,-48,-55,-59,-61,-9,-19,-30,-40,-49,-55,-59,-61,-9,-20,-31,-41,-50,-56,-59,-61,-10,-20,-31,-42,-50,-56,-59,-60,-10,-21,-32,-42,-50,-55,-58,-59,-10,-21,-32,-42,-49,-54,-57,-58,-10,-21,-32,-42,-49,-53,-56,-57,-11,-22,-32,-41,-48,-52,-54,-55,-11,-22,-32,-40,-46,-50,-52,-53,-12,-22,-31,-39,-44,-48,-50,-51 },
{ 1,2,4,5,6,7,7,7,2,5,7,9,11,12,13,12,4,7,11,14,17,18,19,18,5,10,15,19,22,24,24,23,7,13,18,23,28,30,30,28,8,16,22,28,33,36,36,33,10,18,26,33,39,42,41,37,12,21,30,38,44,47,46,41,13,24,34,43,49,52,50,44,15,27,38,47,53,56,52,45,16,30,41,51,57,58,53,45,18,32,44,54,59,59,53,43,19,34,46,55,60,58,51,40,20,35,47,56,58,56,47,35,20,35,47,54,56,51,42,29,20,35,46,52,52,46,35,23,20,34,44,48,46,39,28,15,19,33,41,44,40,31,20,8,19,30,37,37,32,23,11,0,17,28,32,31,24,14,3,-7,16,24,27,23,15,5,-6,-14,13,20,20,16,7,-4,-13,-21,11,15,14,7,-2,-12,-21,-27,8,11,7,0,-10,-20,-27,-33,6,6,1,-8,-18,-26,-33,-37,3,1,-5,-14,-24,-32,-38,-41,0,-4,-11,-20,-30,-37,-42,-44,-2,-8,-16,-26,-34,-41,-45,-46,-5,-12,-21,-30,-38,-43,-47,-47,-7,-15,-24,-33,-40,-45,-47,-47,-9,-18,-27,-35,-41,-45,-47,-46,-12,-21,-29,-36,-41,-44,-46,-45 },
{ 4,6,9,11,12,12,11,9,6,11,16,19,21,21,19,15,9,16,22,27,29,29,26,22,12,21,28,34,37,37,33,27,14,25,34,40,43,42,38,31,17,29,39,45,48,47,41,34,19,32,42,49,51,49,42,34,20,35,45,51,52,49,41,32,22,36,46,51,51,46,38,28,22,37,45,49,47,41,31,22,22,35,42,44,40,32,22,13,20,32,37,37,30,21,11,3,18,27,30,26,18,8,-1,-7,15,22,21,15,4,-6,-14,-17,11,14,10,1,-10,-20,-26,-25,7,6,-1,-12,-24,-33,-35,-32,3,-2,-12,-25,-37,-43,-42,-35,-2,-10,-22,-36,-46,-50,-45,-36,-6,-17,-31,-43,-52,-52,-45,-33,-10,-23,-37,-49,-54,-52,-42,-29,-13,-28,-42,-51,-53,-48,-36,-21,-15,-30,-42,-49,-48,-41,-27,-12,-16,-30,-41,-44,-41,-30,-16,-2,-17,-29,-36,-37,-30,-19,-4,9,-16,-26,-31,-28,-19,-6,8,20,-14,-22,-23,-17,-6,8,21,31,-11,-15,-13,-5,8,21,32,40,-7,-9,-3,7,20,33,42,48,-4,-1,7,19,32,43,51,54,1,7,17,30,42,52,57,59,7,15,27,39,50,57,61,61,13,23,35,46,55,61,63,62 },
{ -8,-11,-14,-16,-17,-15,-10,-3,-11,-17,-22,-25,-25,-22,-14,-4,-14,-23,-29,-32,-32,-26,-15,-2,-17,-28,-35,-38,-36,-28,-14,1,-20,-32,-40,-42,-38,-27,-12,7,-22,-35,-42,-43,-36,-24,-5,14,-23,-36,-42,-41,-33,-17,3,24,-23,-36,-41,-38,-27,-9,14,35,-23,-35,-39,-33,-19,2,26,47,-22,-33,-34,-26,-9,13,38,58,-20,-29,-28,-18,1,24,48,67,-18,-25,-22,-9,11,34,57,73,-16,-21,-16,-2,19,42,63,76,-14,-17,-11,3,23,45,63,76,-12,-15,-9,5,24,43,60,70,-11,-14,-9,3,20,37,53,63,-11,-15,-11,-2,13,28,43,54,-13,-18,-17,-10,3,17,32,43,-15,-23,-25,-20,-9,4,20,33,-18,-29,-33,-31,-22,-8,8,23,-21,-35,-43,-42,-33,-19,-1,16,-24,-41,-50,-51,-42,-27,-7,11,-27,-46,-57,-57,-48,-31,-10,10,-30,-51,-61,-61,-50,-32,-10,10,-32,-53,-64,-62,-50,-30,-8,12,-32,-53,-62,-59,-45,-26,-3,16,-32,-50,-57,-52,-38,-18,3,22,-29,-46,-50,-44,-28,-9,11,28,-26,-39,-42,-33,-18,0,19,34,-21,-32,-32,-23,-7,10,27,40,-16,-22,-20,-11,4,19,34,45,-9,-13,-9,1,14,27,39,48 },
{ -2,-5,-7,-9,-11,-12,-13,-14,-4,-8,-12,-16,-19,-21,-24,-25,-6,-11,-17,-22,-26,-30,-33,-35,-7,-14,-20,-26,-32,-37,-41,-44,-8,-16,-23,-29,-35,-41,-47,-50,-9,-16,-23,-29,-36,-43,-49,-54,-8,-14,-20,-26,-33,-41,-49,-54,-6,-11,-16,-21,-28,-36,-45,-52,-4,-6,-9,-12,-19,-28,-39,-48,0,1,1,-1,-7,-17,-30,-43,6,11,14,13,7,-5,-21,-37,12,21,27,29,22,8,-12,-31,18,32,42,44,36,18,-5,-28,24,43,54,56,46,25,-2,-27,30,52,64,64,51,26,-3,-29,35,59,70,67,50,23,-8,-33,38,62,73,65,45,14,-16,-39,39,62,68,59,34,3,-25,-45,38,57,60,46,20,-10,-35,-49,34,51,48,31,4,-23,-43,-53,30,41,35,15,-11,-34,-49,-53,24,31,21,1,-22,-41,-49,-50,18,19,8,-10,-29,-42,-46,-42,11,10,-2,-18,-31,-39,-38,-33,6,2,-9,-20,-29,-31,-28,-21,2,-2,-10,-18,-21,-19,-14,-8,0,-3,-7,-10,-9,-5,1,6,0,-1,0,1,6,11,16,19,1,4,8,14,21,27,30,31,5,11,19,27,35,40,42,41,10,20,30,39,47,51,51,47,17,29,39,48,55,57,56,51 },
{ -9,-15,-20,-21,-20,-16,-9,-1,-15,-24,-30,-33,-30,-23,-12,-1,-19,-31,-39,-40,-35,-25,-11,2,-22,-36,-44,-44,-36,-24,-7,7,-25,-40,-47,-44,-34,-18,0,15,-26,-40,-45,-41,-27,-9,10,25,-25,-38,-41,-33,-17,4,24,36,-24,-35,-35,-24,-4,18,37,47,-22,-31,-27,-12,10,33,50,55,-19,-26,-19,-2,22,44,57,59,-17,-20,-11,7,31,50,59,55,-14,-16,-5,13,35,51,54,46,-12,-13,-2,15,34,44,44,31,-11,-12,-3,11,25,32,26,13,-12,-14,-8,3,12,14,6,-7,-13,-18,-14,-8,-3,-4,-13,-26,-15,-22,-21,-18,-16,-19,-29,-41,-18,-25,-26,-25,-25,-30,-40,-51,-19,-27,-28,-27,-29,-34,-45,-56,-19,-26,-26,-24,-26,-34,-45,-58,-17,-21,-19,-16,-19,-28,-42,-56,-12,-12,-7,-3,-7,-18,-35,-51,-5,1,10,13,8,-6,-26,-46,4,15,27,31,23,6,-18,-40,12,30,44,47,37,15,-12,-37,21,43,58,59,45,20,-9,-35,29,53,67,64,48,20,-10,-35,34,60,71,65,45,17,-13,-38,37,61,71,61,38,10,-19,-42,37,59,63,52,27,0,-26,-46,34,51,52,37,14,-11,-34,-50,28,41,37,22,0,-21,-40,-53 },
{ 5,8,10,12,15,17,20,20,7,12,16,20,25,30,33,34,9,14,20,25,32,39,44,45,9,15,21,28,36,44,51,53,9,14,19,26,35,45,53,56,6,9,13,19,29,40,50,55,1,1,2,8,18,30,42,48,-5,-10,-12,-8,2,17,31,40,-12,-22,-28,-25,-15,2,18,29,-19,-35,-43,-42,-30,-12,8,20,-27,-47,-57,-54,-42,-21,0,13,-33,-56,-66,-62,-46,-24,-3,9,-38,-61,-70,-62,-44,-19,0,9,-38,-59,-63,-53,-30,-8,7,10,-35,-50,-48,-33,-11,7,15,11,-27,-36,-28,-10,10,23,21,10,-18,-18,-5,15,31,33,23,4,-7,0,17,35,43,37,16,-6,4,17,34,46,46,30,4,-20,13,29,44,50,40,17,-12,-35,19,36,48,44,27,-1,-30,-49,21,37,42,33,9,-20,-45,-60,20,32,31,16,-9,-36,-57,-65,17,25,19,1,-25,-48,-62,-66,13,16,8,-11,-35,-52,-62,-59,9,10,0,-17,-35,-48,-51,-47,6,6,-2,-15,-28,-35,-35,-29,5,6,2,-7,-14,-17,-15,-10,7,11,11,7,4,4,7,9,11,20,24,24,25,26,27,27,18,31,38,42,44,45,44,41,27,42,51,56,58,59,56,51 },
{ -15,-23,-27,-26,-22,-14,-4,5,-21,-33,-38,-38,-30,-18,-2,11,-26,-40,-46,-42,-31,-14,4,19,-29,-44,-48,-42,-27,-7,14,28,-31,-45,-48,-37,-19,4,25,38,-30,-43,-42,-29,-7,17,36,46,-28,-38,-33,-17,6,29,46,51,-24,-32,-24,-5,19,40,52,51,-21,-25,-15,5,29,46,52,45,-17,-19,-7,12,32,44,42,31,-15,-14,-3,13,28,31,24,10,-13,-12,-3,9,16,13,0,-15,-11,-11,-4,2,2,-9,-25,-39,-10,-11,-7,-6,-13,-29,-46,-57,-9,-9,-7,-11,-24,-43,-60,-67,-6,-5,-5,-12,-28,-49,-65,-69,-1,3,3,-6,-26,-47,-62,-62,5,13,15,5,-16,-37,-49,-49,14,26,29,18,-2,-22,-33,-31,22,39,43,32,12,-7,-15,-13,30,50,55,43,23,6,0,4,35,56,58,46,27,13,11,18,37,54,54,40,24,15,17,28,35,48,42,28,15,12,21,35,29,34,25,10,2,6,21,40,18,15,2,-10,-12,-1,21,43,5,-6,-21,-29,-25,-6,20,45,-9,-26,-41,-45,-33,-9,21,47,-22,-44,-58,-55,-37,-8,24,50,-31,-55,-65,-58,-33,-3,29,54,-38,-59,-65,-52,-26,5,34,56,-40,-58,-58,-42,-16,12,38,56 },
{ -1,-3,-6,-11,-18,-24,-28,-28,-2,-5,-10,-19,-29,-39,-45,-46,-1,-4,-11,-22,-35,-48,-56,-57,0,-1,-8,-20,-36,-51,-61,-61,4,5,-1,-13,-30,-47,-58,-59,10,15,11,0,-17,-35,-46,-49,17,27,27,16,0,-17,-29,-32,25,40,42,34,18,2,-10,-14,33,51,56,48,33,17,7,3,37,57,60,54,39,25,17,15,37,53,55,46,34,23,20,21,32,44,40,30,19,14,16,22,22,25,17,4,-3,0,10,21,8,2,-12,-24,-24,-14,4,19,-7,-23,-39,-46,-40,-21,2,18,-21,-43,-58,-59,-44,-20,5,20,-31,-54,-67,-59,-37,-8,15,24,-34,-56,-58,-45,-17,9,24,26,-32,-44,-39,-19,8,26,30,23,-23,-27,-13,9,30,38,30,16,-12,-6,13,33,45,39,22,3,1,14,32,46,44,29,5,-15,11,27,41,44,33,9,-16,-33,18,33,40,33,12,-15,-38,-48,20,31,31,14,-12,-38,-56,-57,16,23,14,-6,-32,-54,-61,-57,11,11,-1,-21,-43,-56,-56,-44,5,2,-11,-28,-42,-47,-39,-24,1,-3,-13,-24,-30,-26,-14,1,1,0,-5,-9,-5,3,17,30,6,10,13,17,25,37,48,56,16,25,34,43,54,66,73,75 },
{ -22,-32,-36,-33,-25,-13,-1,8,-31,-46,-51,-46,-31,-14,4,14,-37,-53,-57,-47,-29,-6,12,21,-39,-56,-55,-42,-18,5,23,28,-38,-52,-49,-30,-4,20,34,33,-33,-44,-36,-15,12,33,40,34,-27,-32,-20,3,27,41,40,25,-20,-20,-4,18,37,44,33,11,-13,-8,9,29,42,37,18,-10,-6,2,17,32,35,22,-5,-33,-1,8,20,27,21,-1,-31,-55,3,12,19,18,3,-24,-52,-70,5,12,15,7,-14,-41,-66,-74,6,12,11,-1,-23,-47,-61,-65,7,11,9,-3,-21,-36,-43,-41,8,12,10,1,-10,-17,-16,-13,9,14,13,9,6,8,13,15,9,14,15,16,21,30,36,37,7,11,13,19,31,44,52,48,3,4,7,17,34,51,57,50,-3,-8,-6,8,29,48,54,43,-13,-24,-22,-6,18,37,40,29,-26,-41,-40,-22,3,21,22,9,-37,-57,-54,-34,-9,6,4,-10,-45,-65,-61,-38,-15,-5,-11,-27,-46,-63,-54,-33,-13,-9,-21,-40,-40,-48,-36,-16,-5,-8,-27,-48,-27,-27,-11,5,8,-4,-29,-53,-11,0,17,27,22,1,-29,-54,9,27,43,47,32,6,-26,-52,29,51,64,59,40,9,-23,-47,45,68,75,65,41,11,-19,-41 },
{ 12,15,11,0,-14,-25,-29,-24,16,20,12,-5,-25,-41,-43,-34,20,24,13,-9,-34,-50,-50,-34,23,28,14,-11,-37,-53,-48,-27,27,32,18,-9,-36,-48,-39,-11,30,37,22,-4,-29,-37,-20,12,34,41,27,2,-19,-20,3,39,35,44,30,6,-10,-5,26,64,36,43,29,6,-6,6,42,82,33,37,20,-1,-9,7,47,89,26,24,5,-16,-22,-2,41,82,17,10,-13,-35,-39,-18,25,67,9,-4,-29,-51,-56,-34,8,49,3,-11,-35,-58,-62,-45,-6,32,4,-6,-28,-49,-59,-45,-14,21,11,8,-9,-31,-44,-40,-16,14,24,30,18,-6,-27,-31,-15,10,39,54,43,15,-13,-24,-12,9,54,73,60,26,-6,-20,-9,12,63,83,64,25,-9,-21,-8,15,65,78,54,12,-19,-24,-6,19,55,61,29,-9,-30,-26,-1,24,38,31,-1,-30,-39,-23,6,29,16,2,-26,-44,-38,-14,15,33,-1,-20,-42,-44,-28,-1,24,33,-12,-30,-39,-33,-11,14,28,29,-16,-26,-26,-12,9,24,26,16,-12,-15,-6,11,25,28,17,0,-5,2,15,28,32,22,1,-22,5,17,29,36,26,7,-21,-45,13,26,33,28,11,-16,-45,-65,17,27,26,14,-10,-38,-62,-78 },
{ -14,-19,-21,-20,-20,-20,-23,-25,-18,-25,-26,-25,-24,-27,-33,-39,-17,-22,-22,-19,-19,-25,-36,-48,-13,-15,-10,-6,-7,-16,-34,-52,-7,-4,4,11,10,-3,-26,-51,0,9,20,29,28,13,-16,-47,7,19,34,44,43,26,-6,-41,12,27,42,53,52,35,1,-37,13,27,43,53,54,37,3,-35,7,17,29,41,43,31,0,-36,-4,-3,5,18,27,21,-4,-37,-21,-29,-23,-6,10,13,-5,-36,-38,-55,-49,-25,2,14,0,-32,-52,-73,-62,-30,7,24,8,-26,-60,-78,-60,-17,25,39,18,-24,-60,-74,-45,5,47,56,23,-24,-56,-59,-24,29,67,62,21,-31,-44,-41,-1,48,71,57,9,-42,-33,-23,14,51,64,38,-10,-54,-22,-12,18,44,43,15,-28,-63,-17,-8,14,27,20,-8,-41,-63,-16,-13,0,7,-1,-21,-41,-53,-19,-21,-14,-9,-13,-20,-29,-33,-22,-29,-25,-17,-11,-8,-7,-9,-25,-33,-28,-14,1,14,19,16,-24,-31,-22,-3,19,36,40,34,-22,-25,-12,11,36,51,52,40,-17,-19,-4,21,44,57,52,37,-14,-16,-2,20,40,46,40,22,-15,-20,-10,7,20,23,14,-1,-22,-31,-28,-18,-10,-11,-19,-28,-31,-44,-47,-44,-41,-43,-47,-51 },
{ -25,-35,-39,-36,-29,-17,-5,5,-33,-49,-53,-48,-36,-20,-2,11,-37,-52,-55,-46,-31,-12,6,19,-36,-49,-46,-34,-17,1,17,28,-30,-37,-31,-16,0,15,28,34,-20,-20,-10,4,17,25,30,33,-8,-1,11,22,27,26,24,24,4,16,28,32,27,16,8,8,14,30,39,33,17,-4,-14,-9,21,37,38,24,-4,-29,-35,-23,24,36,30,5,-29,-51,-50,-24,24,32,18,-13,-48,-66,-50,-14,23,26,8,-26,-57,-62,-37,9,19,22,2,-28,-47,-43,-7,39,19,20,4,-18,-28,-13,26,67,18,21,9,-5,-6,14,51,85,19,22,13,4,7,28,61,87,17,21,12,4,6,23,50,73,15,15,5,-6,-8,3,24,46,10,7,-6,-22,-29,-25,-6,18,6,1,-16,-35,-49,-49,-33,-5,5,1,-16,-40,-58,-63,-45,-18,9,10,-6,-31,-55,-61,-46,-17,19,27,13,-14,-40,-51,-36,-8,32,47,36,7,-23,-34,-22,6,45,65,53,24,-6,-18,-4,21,54,72,61,30,3,-4,10,35,54,71,55,26,3,1,19,44,48,55,38,10,-6,0,22,47,29,28,8,-14,-21,-9,17,44,4,-7,-27,-41,-39,-20,8,34,-24,-41,-57,-63,-53,-31,-2,23 },
{ 0,-3,-11,-19,-25,-21,-8,10,0,-5,-15,-27,-33,-27,-5,21,3,-2,-14,-28,-35,-25,2,34,7,4,-8,-24,-31,-20,12,48,13,13,0,-17,-26,-14,21,60,20,22,9,-11,-22,-11,25,66,27,31,16,-9,-24,-14,23,65,33,39,20,-11,-31,-23,15,58,39,44,20,-17,-42,-35,4,48,42,46,16,-26,-53,-47,-5,38,43,45,12,-33,-61,-50,-10,30,44,45,10,-35,-59,-48,-8,25,45,44,11,-30,-50,-35,-2,21,44,45,14,-20,-31,-16,8,17,43,43,18,-7,-11,3,14,7,39,40,19,4,6,16,14,-8,32,30,15,9,17,23,8,-27,19,14,4,7,20,23,-2,-46,3,-7,-11,2,22,21,-12,-61,-14,-27,-24,0,24,21,-19,-72,-28,-42,-30,5,33,25,-20,-76,-36,-49,-26,16,44,33,-17,-75,-41,-46,-16,31,58,41,-12,-69,-39,-40,-3,43,66,48,-6,-61,-37,-33,5,49,69,47,-3,-53,-34,-32,3,45,61,42,-2,-46,-36,-37,-7,30,47,33,-2,-37,-41,-49,-23,13,32,25,0,-27,-49,-59,-38,-2,20,21,5,-16,-52,-66,-44,-10,16,23,12,-4,-50,-61,-41,-7,19,27,19,5,-40,-48,-28,2,24,32,25,12 },
{ -16,-22,-27,-30,-34,-36,-35,-29,-18,-26,-30,-36,-42,-47,-46,-40,-14,-17,-21,-26,-35,-41,-43,-38,-4,-1,-1,-6,-15,-25,-30,-28,9,19,24,20,9,-3,-12,-14,21,37,43,41,30,17,6,0,28,45,52,48,39,26,16,9,28,43,46,41,33,24,17,12,21,27,26,20,15,12,11,10,4,1,-5,-10,-9,-4,2,4,-16,-30,-38,-37,-28,-14,-4,-1,-35,-55,-60,-51,-31,-13,-3,-3,-46,-64,-63,-41,-16,2,4,-4,-42,-53,-37,-10,14,21,9,-7,-27,-21,2,29,42,31,7,-14,-4,13,39,57,52,27,-5,-24,15,39,61,61,41,5,-25,-33,24,45,52,41,11,-22,-37,-33,21,29,24,4,-23,-39,-36,-18,7,3,-12,-30,-42,-40,-19,6,-9,-24,-39,-46,-41,-20,9,33,-23,-40,-45,-39,-18,10,36,55,-28,-36,-30,-12,14,36,53,59,-21,-21,-5,17,36,48,50,47,-10,1,19,34,40,35,28,22,3,17,29,31,19,2,-8,-8,12,24,26,9,-17,-37,-42,-30,15,23,11,-18,-51,-70,-62,-39,16,18,-2,-37,-70,-77,-61,-26,18,19,-3,-36,-57,-56,-28,7,26,29,13,-8,-19,-6,22,51,38,47,40,31,33,48,71,89 },
{ 36,49,48,34,16,-5,-20,-26,47,64,58,39,11,-16,-33,-39,51,64,54,29,-2,-28,-43,-43,45,55,39,12,-17,-37,-44,-39,36,36,19,-7,-28,-37,-34,-23,20,15,-4,-22,-29,-25,-11,2,5,-7,-21,-27,-19,0,19,28,-9,-24,-31,-23,0,29,48,49,-19,-34,-34,-12,22,53,67,54,-24,-37,-28,0,36,61,59,39,-26,-32,-19,9,37,44,30,3,-23,-26,-11,9,20,12,-13,-38,-17,-16,-5,3,-3,-26,-54,-68,-6,-3,2,-1,-21,-50,-70,-75,5,11,12,0,-25,-47,-59,-54,16,25,23,8,-12,-26,-27,-20,25,34,32,19,8,6,12,16,25,34,29,24,25,34,40,39,18,18,15,18,31,46,52,42,2,-5,-9,3,25,44,45,30,-16,-33,-35,-14,13,29,25,7,-33,-54,-49,-26,0,10,-1,-19,-44,-59,-49,-25,-7,-8,-25,-39,-41,-50,-33,-13,-6,-18,-38,-50,-29,-23,-4,8,2,-20,-42,-47,-6,10,26,30,12,-14,-31,-32,17,37,49,40,19,-4,-14,-9,32,53,53,39,17,2,3,15,35,44,39,21,6,4,17,35,19,17,4,-9,-11,2,25,48,-8,-24,-39,-41,-29,-3,28,52,-39,-62,-71,-64,-40,-7,26,49 },
{ -12,-12,-6,4,11,8,-6,-23,-15,-15,-5,9,17,11,-12,-37,-17,-17,-4,14,23,13,-17,-49,-19,-19,-2,19,29,17,-19,-57,-22,-21,-1,24,36,22,-18,-59,-25,-24,-1,28,42,28,-14,-57,-29,-27,-3,30,48,33,-8,-48,-32,-32,-5,30,48,36,-3,-39,-37,-38,-10,26,46,34,1,-28,-41,-44,-16,19,37,28,1,-18,-44,-46,-21,9,23,15,-1,-6,-42,-45,-23,-1,7,2,-1,8,-36,-36,-21,-8,-8,-10,2,25,-22,-19,-10,-10,-18,-17,8,42,-3,3,4,-9,-25,-18,16,55,17,26,17,-10,-31,-21,21,63,35,44,24,-16,-41,-24,24,63,46,53,21,-27,-49,-28,21,56,50,50,11,-37,-56,-30,14,39,46,42,-1,-44,-54,-27,7,19,41,31,-9,-42,-43,-18,2,-3,34,25,-7,-29,-22,-4,-3,-22,30,23,2,-6,5,11,-5,-40,26,23,13,17,28,24,-9,-54,20,18,19,32,45,31,-12,-65,8,5,13,35,50,34,-16,-71,-10,-18,-3,28,49,33,-16,-70,-32,-45,-23,18,45,34,-13,-64,-54,-68,-39,12,46,36,-5,-52,-66,-81,-43,13,48,43,4,-39,-71,-77,-37,20,54,48,14,-25,-61,-62,-21,29,56,50,19,-15 },
{ 28,30,15,-13,-38,-49,-41,-20,37,39,14,-23,-55,-66,-48,-20,44,45,16,-26,-58,-61,-37,-4,47,49,18,-22,-47,-44,-13,20,49,49,21,-14,-31,-17,17,45,44,44,18,-9,-13,8,41,62,36,32,10,-7,-2,23,52,59,23,16,-3,-11,2,28,46,41,9,-3,-18,-18,-1,20,26,7,-3,-17,-27,-23,-6,6,-4,-31,-11,-24,-28,-19,-6,-7,-31,-62,-12,-21,-18,-6,3,-10,-44,-78,-9,-9,1,16,21,-1,-41,-73,-1,4,20,38,40,16,-22,-51,4,11,29,46,50,30,1,-21,1,6,21,38,44,36,20,7,-9,-12,-3,14,26,29,29,26,-25,-37,-31,-16,2,16,27,33,-37,-52,-50,-36,-19,1,19,30,-38,-53,-49,-41,-28,-11,10,24,-25,-28,-28,-29,-29,-17,3,18,4,13,8,-10,-23,-19,-1,13,39,55,40,5,-20,-20,-3,11,67,84,53,6,-23,-21,-2,11,78,82,41,-8,-30,-18,3,11,63,55,9,-29,-32,-10,11,12,34,12,-25,-39,-23,6,19,7,1,-26,-45,-36,-3,25,23,-3,-24,-45,-47,-15,24,39,21,-21,-32,-44,-25,14,45,44,4,-45,-26,-22,5,39,54,30,-21,-70,-10,2,27,49,44,9,-43,-87 },
{ -45,-56,-56,-47,-41,-39,-39,-35,-51,-64,-57,-46,-39,-42,-46,-46,-43,-44,-31,-17,-13,-22,-35,-40,-21,-12,10,24,24,7,-14,-25,1,22,48,61,55,30,3,-11,16,43,66,76,63,36,10,-2,19,39,56,58,45,21,3,1,8,18,23,20,7,-7,-9,1,-11,-15,-18,-25,-32,-31,-17,6,-30,-44,-49,-54,-50,-38,-11,18,-40,-53,-56,-51,-42,-21,7,31,-35,-41,-32,-22,-9,7,26,40,-18,-8,8,20,25,26,31,34,8,28,44,46,33,20,14,14,28,49,55,39,13,-9,-15,-9,34,49,38,9,-24,-43,-39,-25,27,27,7,-27,-53,-57,-43,-22,9,1,-21,-44,-50,-40,-21,-4,-7,-18,-29,-29,-17,0,13,16,-16,-21,-14,5,28,41,38,26,-16,-11,9,38,59,58,41,19,-11,-1,24,50,57,45,18,-3,-9,1,20,33,28,7,-16,-26,-12,-8,1,2,-12,-33,-43,-40,-17,-19,-19,-26,-42,-53,-52,-34,-18,-21,-24,-33,-42,-45,-32,-11,-11,-9,-10,-15,-19,-13,3,20,3,11,14,13,14,23,35,45,17,28,33,32,35,41,50,51,21,30,29,27,27,32,34,34,10,8,1,-6,-8,-7,-3,0,-14,-25,-39,-50,-53,-51,-43,-34 },
{ 1,7,19,28,27,9,-20,-42,0,9,24,38,34,8,-33,-64,-5,2,21,37,34,4,-42,-74,-14,-10,10,30,31,3,-42,-73,-27,-27,-4,22,30,7,-32,-57,-38,-42,-15,18,31,17,-12,-31,-47,-50,-21,16,36,30,10,-1,-49,-54,-22,17,39,39,28,24,-49,-49,-18,16,35,34,33,38,-40,-37,-11,12,17,14,20,37,-25,-18,-2,1,-11,-18,-3,26,-6,3,6,-13,-42,-51,-23,18,15,26,15,-24,-63,-65,-29,19,34,47,23,-24,-60,-56,-13,29,48,57,30,-13,-39,-24,12,36,50,57,30,-1,-8,9,29,33,41,38,18,6,14,29,31,14,17,8,-2,3,22,30,12,-15,-12,-26,-24,-1,23,16,-16,-43,-37,-51,-33,1,20,0,-39,-62,-51,-55,-25,14,23,-10,-50,-63,-45,-40,1,35,27,-10,-41,-45,-28,-10,29,48,31,-3,-20,-10,-8,14,42,47,24,3,5,27,3,20,35,26,7,3,26,57,1,8,7,-7,-16,-1,36,72,-10,-15,-24,-36,-35,-8,35,68,-19,-30,-42,-52,-44,-14,25,53,-17,-23,-36,-46,-42,-19,11,29,4,8,-3,-21,-29,-22,-9,1,39,54,42,12,-13,-26,-28,-24,72,93,75,37,-2,-28,-39,-38 },
{ -40,-43,-23,11,41,50,42,22,-50,-53,-22,21,54,64,47,23,-53,-52,-18,25,52,51,29,6,-49,-46,-13,21,34,23,-3,-19,-41,-34,-7,13,10,-12,-36,-39,-26,-17,2,6,-12,-39,-51,-41,-8,4,13,3,-25,-47,-45,-18,10,24,25,4,-26,-40,-19,18,24,37,32,5,-21,-18,17,57,28,39,27,1,-15,1,45,82,24,27,12,-10,-15,11,52,74,12,7,-10,-25,-20,5,33,44,-1,-12,-27,-34,-26,-9,2,-2,-10,-19,-26,-26,-19,-18,-29,-42,-9,-9,-5,1,1,-18,-45,-62,0,9,24,34,25,-7,-44,-61,6,22,45,56,43,7,-30,-42,2,15,38,54,43,16,-8,-15,-14,-11,9,28,30,19,12,15,-37,-45,-26,-3,11,17,26,37,-55,-64,-48,-22,-5,12,32,47,-51,-58,-39,-24,-13,3,27,44,-27,-20,-10,-14,-20,-11,13,28,11,28,21,-6,-29,-26,-4,11,46,63,40,-9,-41,-36,-15,-2,63,75,33,-19,-44,-34,-13,-6,61,56,13,-26,-34,-15,-1,-8,38,24,-11,-26,-10,14,14,-9,10,-11,-28,-11,24,42,25,-18,-17,-36,-27,11,50,57,18,-36,-36,-43,-19,28,61,47,-4,-59,-41,-42,-10,31,47,23,-31,-79 },
{ -51,-57,-46,-28,-21,-25,-32,-28,-54,-57,-36,-16,-12,-25,-36,-34,-40,-30,-3,16,13,-10,-28,-25,-16,5,36,50,37,7,-14,-10,3,31,61,67,47,13,-5,6,9,34,56,57,31,1,-4,17,-1,13,24,19,-5,-21,-8,27,-21,-20,-16,-24,-38,-41,-9,36,-38,-45,-45,-47,-54,-41,-2,45,-41,-46,-38,-36,-35,-25,9,49,-27,-17,0,6,0,-2,14,38,0,24,47,48,28,5,0,15,22,52,73,62,27,-12,-28,-13,24,48,56,40,0,-40,-49,-28,3,8,12,1,-27,-50,-48,-20,-31,-38,-27,-19,-23,-31,-21,4,-59,-65,-38,-4,9,8,13,28,-63,-60,-12,32,44,37,30,37,-50,-27,25,58,55,31,19,25,-24,5,46,55,27,-5,-11,5,-6,20,40,20,-22,-48,-40,-7,1,15,12,-21,-58,-70,-41,-2,-2,0,-13,-41,-64,-52,-18,16,-6,-6,-15,-30,-30,-10,18,34,-3,0,1,4,16,32,43,37,3,11,21,33,44,50,38,17,5,14,27,39,44,31,6,-17,-1,4,13,20,14,-6,-33,-50,-15,-17,-11,-8,-17,-37,-58,-60,-25,-31,-25,-21,-25,-38,-45,-41,-24,-25,-14,-1,2,1,0,5,-8,0,20,39,50,53,51,49 },
{ 21,35,46,46,32,1,-33,-50,23,37,49,52,31,-8,-48,-67,9,17,29,34,20,-14,-51,-64,-15,-15,-1,13,11,-12,-36,-44,-39,-45,-27,0,11,3,-10,-10,-53,-63,-35,0,22,24,19,24,-57,-59,-27,11,34,37,38,45,-45,-42,-9,22,34,33,35,48,-27,-16,10,22,15,3,11,34,-4,9,19,8,-22,-40,-23,14,16,28,21,-14,-58,-71,-44,3,29,39,18,-26,-67,-74,-35,9,35,40,19,-18,-45,-35,-3,26,28,33,19,4,3,15,27,33,12,12,14,27,43,44,32,16,-14,-17,2,34,53,40,6,-17,-41,-45,-14,28,38,5,-35,-47,-56,-60,-18,18,11,-29,-57,-53,-56,-48,-9,13,-7,-41,-51,-27,-36,-20,14,19,-9,-30,-16,15,-10,14,36,23,-3,-5,23,54,13,34,36,14,-1,13,47,72,21,27,15,-7,-11,13,46,58,10,4,-16,-32,-25,1,23,26,-3,-18,-38,-42,-31,-13,-6,-14,-10,-21,-30,-29,-20,-17,-28,-45,-3,-3,-1,5,5,-11,-38,-58,14,24,33,39,29,1,-33,-54,22,35,49,53,41,11,-21,-35,9,15,27,39,34,17,-1,-10,-27,-35,-22,1,17,21,19,17,-68,-85,-67,-33,0,22,31,33 },
{ -23,-18,0,18,25,21,21,23,-22,-14,9,27,28,20,21,31,-21,-9,13,23,15,2,7,30,-18,-7,11,12,-8,-25,-12,24,-16,-4,8,-1,-30,-48,-30,21,-11,1,9,-7,-39,-59,-32,25,-4,10,17,1,-33,-50,-24,37,3,20,30,17,-14,-33,-7,49,6,23,39,32,4,-16,1,52,-2,15,35,37,13,-13,-4,40,-19,-6,21,32,11,-23,-25,20,-41,-32,6,27,5,-40,-47,0,-61,-49,0,32,8,-47,-61,-5,-68,-51,13,53,20,-42,-51,8,-65,-35,37,72,33,-31,-34,34,-54,-20,53,80,31,-29,-16,58,-50,-13,52,63,9,-38,-11,70,-50,-20,32,33,-19,-54,-11,69,-53,-29,12,6,-42,-61,-16,58,-51,-30,6,-1,-41,-58,-17,43,-41,-15,20,13,-24,-41,-18,26,-24,7,42,39,3,-25,-21,8,-11,20,57,56,22,-16,-28,-8,-13,13,49,57,26,-16,-34,-18,-31,-15,25,43,22,-18,-37,-18,-57,-49,-2,28,16,-17,-30,-10,-77,-67,-14,23,16,-11,-18,8,-76,-64,-4,31,20,-4,-3,25,-62,-36,18,37,19,-4,3,37,-31,-3,32,33,2,-17,1,38,-2,19,31,9,-27,-36,-10,31,14,24,13,-19,-50,-51,-18,23 },
{ 34,38,20,-13,-40,-44,-26,1,45,50,21,-21,-51,-53,-23,12,47,47,17,-21,-46,-38,-4,31,38,36,10,-16,-26,-13,19,47,24,18,1,-8,-4,12,35,48,4,-3,-6,0,13,23,27,29,-16,-22,-12,8,21,14,-2,-6,-31,-35,-12,15,20,-6,-37,-40,-38,-35,-2,28,21,-25,-65,-53,-34,-24,15,43,21,-33,-62,-37,-28,-9,32,52,24,-25,-36,11,-22,-2,37,52,22,-15,0,61,-25,-8,26,34,7,-13,22,93,-32,-22,5,8,-16,-27,19,93,-40,-33,-8,-8,-36,-46,-5,63,-39,-28,0,-3,-38,-62,-32,28,-26,-4,29,23,-24,-61,-48,2,-9,23,58,52,0,-48,-46,-7,-2,29,68,66,20,-27,-34,-2,-17,6,48,60,28,-12,-18,8,-48,-36,12,41,25,-5,-6,19,-77,-73,-14,25,17,-4,-1,23,-91,-77,-16,18,8,-10,-2,24,-73,-51,5,20,-3,-19,-5,21,-38,-1,34,19,-17,-29,-9,18,6,39,43,8,-30,-33,-7,16,33,50,32,-9,-36,-24,1,12,34,35,5,-25,-27,-5,12,6,18,2,-23,-26,-5,19,20,-7,-7,-26,-30,-10,25,39,13,-28,-23,-32,-18,18,49,39,-5,-52,-24,-23,2,36,49,23,-28,-70 },
{ -26,-24,-12,-5,-13,-36,-56,-52,-26,-20,-1,10,-4,-37,-61,-60,-20,-6,20,32,18,-16,-41,-36,-13,6,35,51,39,10,-7,-1,-13,4,34,50,44,24,19,31,-23,-13,12,27,23,16,25,47,-36,-34,-17,-8,-12,-11,12,41,-41,-45,-36,-35,-41,-36,-6,28,-31,-30,-27,-35,-48,-42,-14,15,-3,8,10,-6,-25,-29,-11,6,30,51,53,32,6,-5,-2,-3,48,70,65,43,21,9,1,-11,37,42,32,17,11,10,0,-21,-3,-16,-25,-21,-3,11,0,-26,-46,-67,-64,-35,0,18,4,-24,-62,-76,-53,-14,20,30,10,-18,-42,-32,-4,23,37,30,11,-14,4,28,39,34,19,11,4,-10,45,61,41,-1,-23,-13,0,-4,58,57,1,-52,-55,-20,10,5,49,20,-46,-80,-54,4,30,11,24,-9,-57,-63,-10,40,38,3,12,-11,-32,-9,41,57,28,-19,13,5,8,35,59,45,-4,-44,18,19,28,42,41,5,-40,-56,12,11,12,14,-3,-33,-50,-42,-4,-13,-17,-21,-33,-39,-26,1,-18,-29,-31,-31,-27,-11,21,49,-18,-20,-19,-13,1,27,61,76,1,7,9,10,18,38,55,61,23,32,27,9,-2,-3,2,5,30,35,13,-22,-52,-64,-61,-53 },
{ -29,-26,-9,8,11,5,8,24,-30,-23,2,18,14,1,7,34,-24,-11,15,23,7,-13,-3,38,-14,2,24,23,-7,-35,-18,36,-7,10,28,18,-22,-53,-33,35,-6,10,26,14,-28,-62,-34,38,-11,4,24,17,-22,-52,-26,44,-20,-5,24,29,-4,-36,-15,48,-33,-16,26,43,15,-22,-11,43,-46,-27,27,54,24,-21,-19,29,-57,-34,27,54,21,-32,-35,12,-63,-39,26,49,7,-47,-44,4,-66,-36,27,41,-5,-50,-38,10,-56,-25,30,37,-8,-37,-12,25,-43,-9,35,30,-5,-12,17,33,-28,1,29,16,-6,8,33,27,-18,3,13,-7,-14,14,33,0,-10,2,-6,-27,-20,15,17,-32,-2,3,-16,-35,-17,17,5,-60,10,11,-15,-31,-4,28,0,-74,24,22,-8,-19,16,44,9,-74,33,27,-9,-14,27,59,20,-61,36,20,-21,-23,27,63,33,-43,30,6,-42,-42,15,63,42,-27,29,-3,-59,-59,1,55,45,-18,37,4,-58,-67,-11,44,36,-18,58,26,-43,-61,-16,31,25,-25,79,54,-23,-52,-18,23,15,-29,95,65,-11,-44,-14,21,13,-29,81,54,-15,-39,-4,28,15,-25,50,18,-30,-29,11,36,20,-19,6,-19,-39,-20,20,39,19,-17 },
{ 27,40,54,60,52,21,-15,-34,20,32,47,58,45,11,-29,-47,-6,-7,9,23,19,-8,-37,-42,-39,-50,-33,-10,-5,-17,-28,-22,-60,-72,-51,-21,-8,-8,-4,11,-53,-59,-32,-4,7,11,22,42,-27,-17,8,24,23,21,34,52,8,26,41,37,17,6,19,42,34,50,48,18,-17,-30,-12,18,37,44,22,-19,-54,-61,-34,-1,24,15,-12,-42,-62,-53,-29,-6,1,-13,-24,-26,-17,-7,0,2,-18,-24,-10,23,48,45,25,3,-26,-23,15,62,76,56,14,-11,-30,-18,23,54,50,12,-20,-27,-30,-21,6,14,-11,-41,-44,-27,-28,-22,-12,-27,-54,-57,-33,-2,-13,-8,-11,-32,-45,-27,11,34,9,18,10,-6,-4,26,53,49,28,37,26,16,28,55,59,35,33,31,16,9,23,37,26,-9,15,2,-18,-20,-8,-2,-22,-53,-9,-28,-43,-39,-28,-28,-49,-68,-20,-33,-34,-26,-16,-20,-38,-52,-8,-4,5,12,18,11,-4,-15,16,31,36,39,39,38,30,20,31,38,33,27,32,40,44,36,19,13,-8,-17,-4,20,34,30,-3,-25,-56,-61,-40,-6,13,10,-11,-35,-60,-67,-44,-17,-6,-10,12,7,-9,-18,-13,-8,-12,-22,55,69,60,45,29,13,-8,-24 },
{ 49,50,24,-14,-39,-34,-13,9,55,53,15,-27,-47,-36,-6,19,46,36,1,-29,-36,-17,11,28,25,12,-11,-21,-10,8,24,30,3,-11,-18,-4,17,26,25,15,-16,-26,-14,14,34,27,3,-13,-27,-28,-4,27,37,6,-31,-38,-28,-24,7,35,26,-20,-56,-46,-27,-16,18,36,12,-38,-59,-20,-20,-8,22,33,1,-39,-27,29,-16,-4,20,22,-4,-19,17,77,-16,-7,10,10,-8,-5,43,95,-18,-12,0,-4,-19,-9,34,67,-16,-11,0,-8,-27,-28,-6,13,-9,1,12,1,-25,-42,-44,-40,-1,15,29,20,-6,-33,-52,-63,0,16,36,36,22,-2,-29,-52,-10,0,21,37,41,33,8,-23,-27,-26,-8,16,41,51,37,1,-38,-46,-35,-15,18,49,45,10,-30,-37,-45,-41,-10,29,36,3,6,4,-30,-53,-31,9,16,-13,57,52,-7,-51,-37,-2,0,-28,93,83,1,-45,-26,5,-3,-35,100,65,-12,-34,0,24,2,-34,59,17,-32,-18,29,42,7,-29,6,-33,-41,6,53,45,5,-19,-35,-57,-28,27,52,27,-7,-10,-45,-40,-1,32,26,-10,-22,6,-21,-3,21,18,-18,-44,-20,31,13,31,29,-11,-56,-53,-2,58,38,48,20,-31,-61,-40,22,78 },
{ 31,21,-3,-17,-4,21,27,3,30,14,-20,-33,-8,29,28,-10,27,4,-33,-41,-7,32,23,-31,23,-1,-37,-41,0,38,15,-51,25,3,-32,-30,13,45,12,-66,32,14,-20,-20,22,51,11,-66,41,22,-15,-17,22,48,15,-52,44,23,-20,-26,11,41,19,-31,44,15,-34,-42,-5,30,24,-6,37,7,-43,-54,-16,21,25,14,36,6,-39,-45,-15,13,20,23,39,17,-19,-23,-5,2,4,21,44,28,5,3,3,-16,-20,14,35,26,16,19,2,-36,-37,13,13,3,13,25,1,-44,-39,27,-21,-27,9,37,8,-43,-27,45,-54,-46,16,53,16,-35,-13,58,-68,-47,33,65,11,-37,-4,57,-65,-27,47,52,-12,-44,-7,37,-48,-8,45,26,-38,-50,-9,15,-34,4,34,-2,-48,-34,-3,-7,-20,9,19,-12,-26,1,10,-23,-10,8,9,-5,10,38,23,-41,-4,4,-1,2,37,64,23,-56,-2,-4,-15,-3,42,61,15,-68,3,-9,-31,-23,21,46,4,-67,14,-6,-44,-46,-3,30,7,-47,35,11,-45,-58,-13,33,24,-19,63,32,-38,-58,-8,45,47,4,78,49,-28,-52,-1,51,48,9,80,44,-26,-44,-2,34,27,-9,59,26,-31,-44,-17,4,-7,-35 },
{ 0,6,13,9,-9,-39,-71,-74,0,6,14,15,-3,-38,-71,-80,-4,1,14,23,18,-5,-32,-41,-12,-10,8,29,40,36,21,10,-25,-25,-5,22,45,56,56,44,-33,-37,-22,-1,20,38,47,44,-29,-32,-30,-29,-23,-6,10,12,-6,-7,-21,-43,-54,-44,-26,-20,29,32,6,-34,-55,-45,-31,-28,58,66,32,-8,-18,-6,-1,-14,65,65,35,15,26,43,33,0,36,24,1,9,44,63,35,-5,-11,-39,-50,-16,29,36,4,-25,-45,-74,-64,-26,5,-2,-27,-33,-40,-46,-28,-5,-4,-25,-34,-11,3,18,29,24,-5,-25,-10,26,46,65,60,23,-12,-13,19,55,50,56,28,-6,-22,-8,27,55,16,-2,-24,-30,-24,-7,14,27,-29,-51,-42,-20,-6,-7,-11,-8,-50,-50,-11,23,20,-12,-34,-34,-34,-11,41,62,27,-18,-38,-35,-9,27,67,56,13,-18,-22,-13,3,27,38,17,-10,-10,9,15,-9,-7,-15,-31,-26,11,40,31,-24,-35,-48,-51,-16,32,47,25,-19,-26,-38,-32,4,35,30,-7,13,14,-1,-4,13,22,-4,-44,48,48,25,7,5,-3,-33,-63,52,47,13,-6,-8,-12,-30,-50,22,1,-23,-20,0,13,7,-6,-22,-43,-43,-14,27,52,48,34 },
{ -63,-69,-57,-37,-23,-14,-8,-5,-56,-54,-32,-15,-5,-3,-2,-4,-20,0,20,25,20,12,6,-2,23,51,58,45,24,12,6,-3,43,63,55,24,0,-4,0,-6,30,33,7,-25,-34,-19,-2,-5,0,-17,-45,-60,-47,-12,10,-2,-23,-46,-62,-57,-19,21,28,-1,-22,-31,-34,-12,29,52,35,-12,3,10,15,32,51,50,12,-33,31,43,41,33,26,6,-24,-44,39,43,18,-10,-29,-37,-34,-27,26,10,-28,-55,-56,-30,-2,18,4,-18,-45,-50,-19,17,42,51,-4,-15,-19,2,35,49,49,42,2,5,19,41,44,22,2,3,7,15,32,33,3,-42,-57,-29,-3,4,13,2,-39,-77,-62,-21,-19,-15,-3,-10,-38,-44,-17,14,-28,-19,4,12,7,16,37,46,-26,-7,21,34,39,48,59,43,-16,2,21,23,22,32,29,5,-8,2,0,-17,-22,-14,-19,-40,0,0,-23,-50,-51,-40,-43,-61,11,7,-24,-44,-35,-17,-25,-46,26,23,1,-3,20,36,18,-13,33,31,21,33,64,72,47,9,20,11,5,25,54,61,38,8,-7,-26,-38,-22,0,8,2,-7,-19,-42,-57,-61,-50,-39,-25,-13,10,2,-20,-38,-45,-33,-15,2,66,74,54,27,10,12,21,28 },
{ -47,-36,6,49,66,42,7,-12,-54,-40,14,60,61,30,-8,-24,-53,-35,11,36,24,-8,-30,-27,-37,-22,5,4,-22,-43,-35,-13,-17,0,7,-18,-49,-46,-13,19,10,25,12,-24,-43,-19,29,54,30,39,17,-16,-21,19,61,57,34,37,11,-14,-2,40,54,21,26,18,-9,-21,1,28,12,-42,8,-6,-27,-28,-3,7,-35,-91,-6,-18,-28,-15,8,0,-49,-86,-7,-12,-7,12,32,22,-13,-35,2,5,13,30,46,41,32,29,7,10,7,10,14,25,45,61,5,-1,-19,-36,-43,-19,22,49,4,-6,-32,-60,-70,-48,-7,21,14,11,-7,-30,-44,-36,-19,-3,24,36,36,31,14,-4,-14,-15,20,33,55,65,49,14,-11,-17,-15,-8,27,53,37,5,-12,-15,-62,-59,-17,11,1,-12,-10,-5,-78,-73,-28,-14,-20,-12,5,7,-49,-22,-1,-13,-21,4,24,14,18,48,29,-10,-11,22,31,7,71,76,22,-25,-9,28,24,-13,68,46,-23,-46,-7,25,4,-35,27,-16,-61,-43,7,19,-15,-44,-14,-50,-51,-8,30,18,-22,-37,-22,-27,-2,37,46,12,-19,-11,1,14,38,52,27,-5,-6,20,17,27,29,9,-21,-25,6,48,6,2,-21,-51,-63,-38,15,61 },
{ -8,4,21,20,-6,-29,-11,36,-9,8,31,28,-13,-43,-9,57,-15,3,32,28,-20,-51,-11,68,-26,-7,28,28,-21,-57,-15,66,-39,-17,29,33,-17,-55,-21,53,-48,-23,31,42,-7,-50,-23,33,-53,-23,37,50,5,-35,-23,9,-54,-21,40,54,13,-23,-21,-11,-54,-19,37,45,11,-12,-12,-22,-48,-21,22,24,2,3,6,-22,-41,-18,4,-6,-10,18,28,-18,-20,-7,-10,-32,-16,38,44,-20,9,15,-16,-49,-17,51,47,-34,39,38,-19,-58,-11,54,26,-50,63,45,-25,-54,-1,40,2,-53,66,38,-32,-43,11,27,-12,-37,55,16,-36,-19,25,14,-15,-3,27,-8,-28,6,26,0,-8,32,3,-20,-9,23,14,-21,-3,58,-13,-17,14,31,-13,-47,-4,68,-21,-6,35,24,-39,-62,-7,59,-24,4,42,17,-46,-60,-5,40,-28,6,43,16,-36,-34,1,8,-34,0,38,21,-7,-2,3,-23,-42,-7,29,25,16,20,2,-48,-41,-15,13,16,20,30,0,-59,-36,-16,-5,-6,13,32,7,-54,-13,-6,-21,-31,2,39,21,-36,19,12,-32,-49,-2,49,40,-17,51,33,-35,-59,-4,53,42,-8,77,42,-36,-57,-6,37,28,-14,76,40,-31,-49,-12,16,4,-26 },
{ 39,26,-4,-19,4,48,73,53,37,18,-23,-39,-6,45,61,40,31,5,-40,-51,-22,12,14,-7,27,1,-36,-42,-21,-14,-33,-51,29,9,-13,-7,5,-14,-51,-61,28,18,14,33,37,7,-30,-32,13,8,20,47,53,23,3,22,-14,-22,-1,29,31,12,19,59,-39,-46,-25,-4,-11,-21,10,63,-38,-42,-22,-17,-40,-51,-10,43,-13,-1,14,1,-38,-52,-23,12,21,45,54,31,-10,-30,-21,-10,31,50,57,38,15,5,-5,-20,1,1,5,10,22,29,7,-26,-43,-58,-52,-21,20,36,10,-26,-54,-72,-56,-20,20,32,6,-20,-20,-14,-9,1,15,13,-3,-8,45,59,30,1,-9,-10,-5,7,84,74,16,-27,-33,-17,3,23,60,28,-32,-45,-21,-4,12,29,8,-36,-54,-16,14,11,9,20,-34,-55,-15,40,38,3,-13,3,-40,-20,43,69,26,-29,-38,-10,-19,19,64,49,-19,-57,-36,-5,-6,23,38,-5,-53,-41,-2,15,-13,-2,-9,-39,-35,10,40,26,-24,-23,-31,-27,12,57,56,7,-15,-16,-15,3,43,63,24,-35,7,12,7,14,31,19,-29,-70,27,27,2,-12,-11,-23,-46,-62,33,15,-22,-37,-26,-9,-5,-4,22,-1,-30,-25,10,43,59,59 },
{ -48,-42,-31,-27,-33,-21,15,44,-34,-21,-4,-8,-25,-19,23,57,-4,23,39,20,-12,-16,16,41,20,52,60,32,-11,-25,-7,10,17,40,48,18,-21,-34,-26,-20,-13,-3,5,-5,-20,-24,-22,-31,-47,-45,-26,-10,2,10,4,-21,-60,-54,-20,11,35,48,30,-9,-46,-25,9,31,46,49,31,-10,-9,15,25,15,4,9,4,-19,25,39,12,-36,-57,-33,-11,-16,42,42,-15,-72,-71,-24,11,4,46,28,-28,-53,-19,35,47,16,28,10,-16,-3,48,70,33,-2,5,-7,-2,32,59,22,-25,-31,-17,-19,6,31,6,-53,-66,-32,-32,-21,11,11,-42,-78,-45,15,-27,-6,21,7,-34,-30,30,66,-12,13,33,13,-1,35,78,64,-5,16,19,0,9,46,48,7,-4,0,-12,-26,-11,7,-19,-64,-5,-11,-27,-34,-19,-19,-57,-91,3,0,-12,-8,8,-2,-39,-54,17,19,14,25,41,33,11,9,19,14,10,25,44,42,43,53,0,-15,-19,-6,5,12,31,56,-18,-34,-40,-38,-42,-34,-4,31,-9,-13,-18,-31,-53,-59,-30,6,21,31,36,14,-22,-41,-30,-2,27,48,61,55,20,-7,-11,-1,-15,-2,30,47,37,13,0,0,-83,-81,-36,4,15,5,-5,-5 },
{ 37,44,40,14,-18,-27,2,43,29,36,28,4,-29,-38,4,61,0,-1,5,-5,-32,-39,2,57,-35,-34,-6,6,-15,-33,-7,37,-57,-43,10,38,15,-21,-19,9,-56,-31,38,71,33,-17,-29,-15,-47,-11,53,67,24,-21,-31,-24,-34,-2,39,33,-6,-25,-14,-14,-27,-4,9,-16,-33,-6,23,5,-13,-5,-17,-47,-30,30,53,11,5,5,-25,-44,-5,57,55,-13,29,23,-16,-30,14,52,13,-54,49,33,-11,-20,14,17,-33,-70,45,23,-19,-20,4,-5,-36,-38,27,-3,-28,-10,11,0,-2,27,3,-19,-18,11,19,8,31,75,-12,-17,5,23,4,-11,28,73,-14,-2,24,17,-33,-52,-7,33,-11,11,34,5,-56,-67,-32,-10,-14,12,35,8,-34,-37,-22,-32,-26,2,33,25,14,21,6,-35,-38,-16,18,31,46,59,23,-33,-44,-28,-9,4,37,53,19,-29,-25,-23,-33,-34,3,27,6,-25,17,7,-43,-60,-22,9,-1,-12,68,45,-34,-56,-14,9,1,4,96,53,-22,-23,12,13,3,20,68,26,-15,10,30,6,-7,26,11,-25,-13,34,27,-24,-30,26,-47,-57,2,46,5,-55,-41,29,-65,-37,34,46,-14,-62,-33,39,-34,8,59,46,-16,-49,-11,52 },
{ -23,-6,37,67,66,38,22,22,-34,-16,32,60,40,9,3,18,-48,-32,6,12,-21,-42,-27,6,-47,-32,-9,-24,-60,-70,-32,8,-26,-4,7,-20,-53,-44,-4,23,6,33,35,9,-7,9,35,34,26,47,43,25,24,42,46,13,17,24,13,5,17,35,15,-33,-7,-20,-34,-29,-7,5,-26,-71,-26,-44,-48,-34,-8,-1,-32,-65,-20,-23,-17,-1,20,21,2,-15,10,20,24,27,32,39,38,36,37,42,25,1,-2,16,41,50,33,23,-16,-50,-51,-27,7,27,12,-10,-40,-54,-53,-40,-23,-7,-5,-14,-7,7,5,-14,-26,-20,-14,2,49,75,58,9,-17,-15,-23,4,58,75,38,2,-4,0,-40,-20,12,3,-21,-14,11,13,-45,-40,-38,-60,-53,-7,26,15,-18,-11,-34,-56,-30,24,34,0,36,45,7,-12,18,44,15,-25,73,65,23,15,38,24,-21,-41,50,25,-8,3,19,-12,-43,-33,-5,-43,-46,-7,3,-28,-35,6,-45,-67,-30,13,6,-20,1,50,-39,-23,23,38,11,-5,29,69,1,32,54,33,-9,-12,25,51,23,41,32,-12,-45,-31,-2,8,6,6,-14,-42,-45,-31,-21,-26,-23,-28,-23,-9,6,6,-15,-39,-34,-23,19,58,69,48,3,-34 },
{ -17,1,25,18,-27,-68,-62,-17,-18,7,40,34,-22,-65,-40,9,-27,2,44,41,-3,-24,11,48,-43,-15,31,34,5,7,46,61,-60,-31,13,13,-7,9,42,26,-52,-27,4,-9,-28,-10,4,-34,-26,1,11,-17,-35,-16,-21,-77,11,36,27,-10,-16,11,-4,-73,34,47,22,-9,11,54,40,-35,25,22,-16,-33,15,75,56,-5,0,-19,-53,-53,0,43,36,3,-9,-25,-46,-43,-20,-7,-7,-2,15,15,11,2,-22,-45,-31,8,32,50,58,42,-14,-47,-11,31,9,26,54,38,-12,-20,20,37,-51,-36,12,13,-13,-2,27,15,-95,-62,-2,3,-15,5,13,-25,-68,-23,26,7,-11,7,-4,-50,-5,43,45,-4,-12,13,-3,-44,45,63,10,-36,-8,30,14,-18,47,18,-51,-51,9,41,27,5,12,-32,-64,-28,24,31,14,12,-7,-29,-20,17,21,-10,-14,12,2,11,39,42,-13,-56,-29,14,7,33,66,26,-48,-62,-15,23,-20,10,34,-3,-46,-27,21,28,-55,-26,5,-8,-12,24,45,9,-58,-30,5,6,21,49,29,-31,-29,4,16,7,20,29,-6,-65,16,33,6,-19,-8,4,-22,-64,41,27,-24,-45,-18,10,4,-18,35,6,-42,-40,9,47,51,32 },
{ 8,13,12,-2,-17,2,52,78,7,12,11,-8,-31,-13,45,79,-2,6,12,-9,-42,-38,6,32,-15,1,22,9,-32,-51,-33,-21,-29,-3,39,40,1,-30,-42,-48,-41,-12,42,59,30,5,-12,-38,-53,-24,24,41,32,31,25,-9,-50,-32,-6,-7,-2,32,46,9,-28,-15,-25,-54,-43,18,46,3,20,25,-17,-68,-50,11,23,-19,69,63,6,-38,-23,13,1,-37,73,60,13,-2,18,20,-13,-31,27,0,-9,19,37,7,-16,-1,-43,-63,-22,28,18,-20,-6,32,-76,-60,8,31,-19,-41,9,47,-46,-4,52,24,-49,-41,24,37,-5,49,70,-3,-59,-11,32,-1,12,46,26,-33,-27,27,18,-44,-5,-4,-27,-30,18,46,-5,-68,-29,-40,-35,1,48,41,-21,-57,-24,-23,-7,25,41,12,-18,-10,10,19,17,9,-7,-15,9,41,38,35,1,-35,-51,-22,31,61,31,15,-24,-48,-44,-10,33,47,10,-7,-12,-5,-5,-1,11,4,-18,-11,30,46,17,-10,-22,-36,-40,-3,57,54,6,-24,-34,-46,-47,-6,41,22,-19,-20,-10,-24,-46,-10,7,-21,-25,14,36,9,-19,0,-14,-39,-7,50,61,18,20,22,-16,-33,4,45,38,-13,47,34,-13,-32,-13,6,-15,-57 },
{ -74,-53,-12,9,7,9,15,4,-56,-24,19,23,4,5,16,-1,-18,25,47,18,-17,-6,9,-15,12,51,42,-10,-42,-16,11,-23,19,41,13,-44,-55,1,31,-22,5,13,-16,-57,-33,36,47,-21,-11,-7,-24,-33,4,58,48,-29,-18,-8,-3,1,25,50,22,-44,-17,8,26,19,9,2,-11,-43,-11,18,35,6,-40,-41,-8,-11,-15,14,26,-20,-72,-35,37,32,-25,7,26,-17,-54,8,81,43,-38,6,41,4,-26,32,74,-9,-44,7,49,10,-32,7,15,-75,-51,6,50,-2,-54,-20,-16,-92,-51,6,45,-8,-49,5,25,-47,-51,7,44,-7,-22,57,84,4,-37,14,31,-20,-19,65,82,10,-26,15,12,-47,-53,14,34,-21,-20,20,12,-50,-70,-25,-6,-40,-16,30,41,-10,-44,-20,-5,-27,-26,29,62,30,-6,7,23,1,-54,2,55,33,3,21,41,17,-76,-29,24,1,-20,10,33,11,-74,-19,9,-31,-48,-7,13,-13,-22,25,17,-37,-41,-5,1,-29,30,56,24,-18,-11,15,3,-28,33,39,9,-1,24,31,5,-18,-10,-20,-22,7,34,22,-1,-4,-45,-51,-23,8,13,-2,-5,12,-29,-14,7,4,-17,-27,-7,28,27,44,35,0,-34,-38,-2,37 },
{ 14,27,51,62,57,35,11,-3,-4,3,25,36,24,8,-5,-8,-34,-37,-25,-22,-29,-29,-19,-8,-41,-46,-40,-44,-45,-32,-6,4,-12,-5,-3,-11,-14,5,25,19,29,47,42,26,22,37,38,14,46,54,41,18,15,24,16,-17,20,13,-9,-26,-24,-13,-20,-43,-19,-38,-52,-48,-36,-21,-25,-37,-32,-42,-28,-7,12,20,15,0,-12,4,35,53,53,44,42,30,12,37,56,42,4,-4,16,20,9,18,7,-41,-85,-61,-15,-4,-14,-15,-32,-66,-72,-32,4,-9,-23,-10,3,13,26,45,36,-15,-14,18,59,75,66,61,21,-32,-19,12,44,24,-5,-5,-12,-35,-35,-22,-18,-59,-80,-43,-7,-12,-32,-17,-25,-63,-57,2,35,19,2,30,23,1,20,56,51,22,27,49,49,36,39,33,15,-9,4,12,11,4,-12,-27,-32,-32,-41,-42,-27,-29,-49,-51,-34,-17,-53,-39,-5,-8,-25,-16,9,15,-19,23,55,34,17,30,44,31,18,51,50,26,18,34,32,10,11,8,-12,-27,-18,-2,-7,-23,-22,-43,-56,-54,-33,-25,-33,-38,-20,-27,-24,-8,4,-5,-19,-19,15,28,40,52,44,25,14,11,27,35,39,34,24,16,22,23,-15,-28,-43,-49,-44,-27,-2,13 },
{ 43,37,4,-26,-27,-5,-2,-25,44,31,-11,-38,-21,12,8,-30,29,8,-25,-28,4,36,22,-23,6,-13,-25,-9,27,48,24,-22,-9,-21,-15,7,27,27,7,-21,-9,-10,3,12,2,-8,-10,-14,-4,8,20,4,-30,-35,-7,5,-1,19,28,-5,-50,-38,19,31,-5,19,33,-5,-46,-12,53,34,-24,5,30,3,-27,12,52,0,-47,-10,32,11,-20,8,24,-57,-58,-11,41,15,-28,2,6,-87,-59,3,53,4,-40,9,30,-63,-43,18,47,-17,-48,37,75,-20,-28,20,29,-43,-56,51,98,-1,-21,18,14,-54,-60,34,67,-19,-17,19,27,-32,-61,-3,18,-45,-23,24,60,8,-48,-22,1,-40,-47,14,83,31,-39,-11,25,-10,-79,-6,77,21,-39,12,56,11,-105,-19,54,-13,-50,26,64,-1,-83,-3,34,-39,-50,25,36,-29,-32,34,29,-42,-39,14,6,-47,15,52,20,-30,-15,14,-5,-40,18,26,7,-7,9,15,1,-11,-20,-18,0,13,13,10,13,20,-55,-36,10,16,-5,-11,15,36,-49,-14,30,11,-34,-34,9,32,-19,24,47,-2,-51,-35,5,17,0,34,30,-11,-32,-13,6,-5,-10,0,2,-1,6,17,6,-25,-36,-34,-9,19,36,32,0,-40 },
{ 7,-11,-33,-18,25,42,11,-22,14,-9,-37,-19,32,44,-2,-35,30,3,-33,-16,29,25,-18,-29,44,13,-26,-15,16,1,-28,-7,52,15,-22,-12,6,-14,-23,29,37,4,-20,-2,8,-19,-8,61,15,-11,-12,15,15,-21,-8,62,-9,-22,2,34,16,-33,-26,36,-31,-24,16,41,14,-42,-45,2,-31,-19,21,39,10,-33,-32,-14,-17,-5,13,15,7,8,5,-11,7,0,-18,-24,13,53,33,-13,29,2,-54,-53,17,60,21,-29,53,13,-56,-51,18,29,-23,-35,68,22,-31,-8,19,-17,-41,2,51,14,1,32,9,-39,-10,54,2,-18,18,37,-17,-36,29,69,-51,-40,28,27,-36,-28,34,31,-65,-16,42,8,-44,-10,15,-41,-39,20,45,-8,-25,18,-4,-86,-12,34,23,-22,5,50,3,-79,7,18,-20,-34,28,69,20,-33,4,-15,-50,-29,28,42,24,20,8,-15,-32,-16,-8,-10,16,45,26,17,16,-1,-46,-51,7,45,19,32,48,13,-56,-59,5,27,-21,9,56,22,-39,-27,12,-8,-70,-24,47,27,-7,14,17,-40,-97,-28,38,20,10,35,19,-60,-55,0,19,-13,-5,38,22,-53,14,33,-14,-58,-25,36,33,-25,68,48,-36,-74,-25,37,44,2 },
{ 11,6,-10,-17,-6,28,56,48,11,3,-12,-23,-14,18,38,27,13,6,-5,-18,-24,-11,-5,-20,9,13,12,-1,-19,-25,-33,-49,1,13,28,24,4,-10,-24,-36,-19,-4,25,35,20,16,17,6,-46,-27,8,16,8,23,46,35,-51,-34,-9,-22,-32,-1,37,23,-24,0,3,-36,-59,-20,11,-17,22,49,35,-15,-36,-9,0,-42,40,59,45,10,0,21,11,-40,0,6,11,7,19,38,20,-21,-60,-58,-33,-10,7,17,19,3,-69,-50,-7,-4,-23,-17,10,21,-18,31,57,8,-45,-31,8,16,42,84,61,-9,-39,-11,9,3,37,29,-6,-25,-1,19,5,-12,-32,-62,-51,-2,41,27,-16,-22,-72,-69,-15,41,47,-4,-33,-7,-22,9,43,39,-1,-35,-17,28,48,62,29,-25,-43,-23,12,47,59,28,-47,-63,-14,13,18,30,19,-37,-72,-12,51,29,-14,-12,-17,-45,-13,63,69,-4,-56,-37,-5,1,42,67,24,-46,-61,-12,17,20,17,4,-28,-38,-7,36,17,-9,-42,-46,-27,15,48,57,14,-24,-56,-34,22,55,43,26,31,0,-19,12,46,25,-21,-38,40,22,11,27,16,-35,-71,-63,21,3,0,9,-10,-40,-44,-8,-18,-28,-17,5,11,18,43,74 },
{ 35,18,-5,-11,-7,-6,-4,11,24,4,-16,-12,0,-4,-4,19,8,-13,-19,1,14,-2,-11,19,-3,-18,-8,19,26,-7,-26,15,-7,-13,3,33,31,-19,-41,15,-4,-12,3,31,22,-29,-39,23,1,-12,-10,12,15,-21,-28,31,15,-9,-26,-4,18,-3,-15,29,33,-3,-39,-12,30,14,-15,17,49,1,-43,-9,45,17,-33,-1,56,1,-46,-1,54,-2,-60,-7,50,-7,-44,11,54,-16,-60,15,39,-18,-45,17,48,-19,-32,55,30,-24,-37,15,28,-20,-3,67,31,-10,-25,11,9,-25,-1,24,34,3,-12,8,-4,-23,-14,-32,31,5,-5,7,3,2,-5,-60,12,-9,-6,5,12,41,26,-53,-9,-16,-4,-8,1,51,56,-30,-14,-3,8,-34,-45,32,63,-18,-6,27,36,-51,-89,9,63,-22,-12,46,62,-42,-84,10,51,-34,-47,32,79,-13,-58,23,42,-48,-94,5,88,3,-40,32,37,-43,-127,-1,87,-6,-49,24,38,-30,-97,17,59,-38,-59,20,39,-14,-46,36,32,-52,-51,22,37,-6,-10,38,19,-37,-21,23,22,-6,-5,12,9,-2,5,6,-3,-6,-23,-17,9,24,5,-21,-17,1,-37,-22,22,29,-8,-30,-12,21,-29,-7,30,19,-20,-27,2,36 },
{ 60,39,-7,-32,-25,-14,-18,-26,54,24,-25,-35,-5,9,-6,-21,29,-7,-36,-11,34,38,10,-7,1,-30,-31,13,52,41,5,2,-12,-30,-15,22,33,0,-22,5,-5,-8,7,19,-9,-47,-36,12,8,15,25,6,-40,-57,-17,34,9,20,26,0,-35,-24,30,48,-5,5,17,0,-11,24,56,10,-28,-16,4,2,6,34,17,-61,-38,-20,3,2,1,11,-21,-96,-21,-2,10,-6,-15,8,1,-55,9,28,21,-16,-24,28,59,22,19,31,10,-33,-34,29,70,49,-2,0,-3,-29,-42,-6,24,8,-31,-13,24,9,-36,-40,-29,-37,-52,3,78,46,-19,-31,-31,-31,-54,13,76,41,-4,9,13,4,-52,-6,12,-19,4,45,40,27,-28,-24,-58,-61,11,39,11,14,28,1,-59,-36,20,-6,-47,-5,73,44,-12,16,27,-44,-65,5,71,28,8,46,31,-42,-42,37,2,-38,-13,42,28,-23,-2,59,-57,-70,-25,23,15,-4,14,40,-28,-26,-3,5,-1,-5,-6,-1,46,45,7,-16,-7,-7,-31,-36,80,48,-25,-27,17,11,-31,-42,48,-19,-68,-5,61,35,-14,-17,-2,-59,-50,26,61,31,-3,12,7,-16,-4,21,12,-17,-8,36,51,36,11,-16,-52,-59,-10,51 },
{ 21,4,-3,25,44,14,-15,-3,12,-15,-20,14,33,0,-26,5,-1,-27,-33,-2,12,-19,-31,23,6,-21,-26,-1,7,-25,-26,40,30,4,-11,12,19,-17,-24,49,43,14,-5,21,32,-11,-26,39,37,0,-22,13,38,-14,-45,14,19,-30,-48,5,42,-15,-55,-4,14,-42,-53,14,54,-6,-47,5,26,-22,-31,27,55,4,-21,26,48,6,-21,12,34,2,0,27,62,12,-39,-26,-7,-13,4,9,60,-3,-51,-34,-18,-6,8,-22,34,-11,-20,9,10,13,18,-39,9,-6,25,47,14,14,32,-40,-20,-5,49,24,-49,0,47,-30,-48,-8,43,-42,-109,7,72,-26,-46,10,39,-61,-76,45,66,-35,-32,33,58,-15,-10,53,29,-42,-27,31,56,12,6,14,-15,-30,-43,0,26,-6,-23,-32,-27,20,-53,-26,-7,-20,-27,-37,-1,70,-29,0,9,7,6,-10,10,67,15,25,20,39,37,-8,-26,23,32,1,-17,27,38,-29,-72,-12,14,-40,-57,7,30,-35,-67,-7,12,-44,-62,17,54,-8,-33,29,42,-14,-34,43,68,11,-4,51,78,9,-32,21,39,-7,-13,37,70,-4,-55,-25,-5,-34,-31,12,39,-22,-49,-13,1,-21,-32,-7,14,-13,4,46,52,18,-11,-11 },
},
{
{ 0,1,1,2,2,3,3,4,1,2,4,5,6,7,8,8,2,4,7,9,11,12,13,13,3,7,10,13,16,18,18,18,5,9,14,18,22,24,24,24,6,12,18,23,27,29,30,29,7,14,21,27,32,34,34,33,8,16,23,30,35,38,38,37,9,17,26,33,39,41,42,40,9,18,27,35,41,44,44,42,9,18,28,36,42,45,46,44,9,18,28,37,43,47,47,45,9,18,28,37,44,47,48,46,9,18,28,37,44,48,49,47,9,18,28,37,44,48,49,48,9,18,28,37,44,48,50,48,9,18,27,36,44,48,50,49,9,17,27,36,43,48,50,49,8,17,26,35,43,48,50,49,8,17,26,35,43,48,50,49,8,16,25,34,42,47,49,49,8,16,25,34,41,47,49,49,7,15,24,33,41,46,49,49,7,15,23,32,40,46,48,48,7,14,23,31,39,45,48,48,7,14,22,31,38,44,47,47,6,13,21,30,37,43,46,47,6,13,20,29,36,42,45,46,5,12,19,27,35,41,44,45,5,11,18,26,33,39,43,44,5,10,17,25,32,37,41,43,4,10,16,23,30,35,39,41 },
{ 5,8,11,13,13,12,10,8,8,15,21,25,25,23,20,15,12,23,32,37,39,36,30,23,16,30,42,50,51,48,40,31,19,36,50,59,62,57,48,36,21,39,55,66,68,63,52,40,21,40,56,67,70,64,53,41,21,39,54,65,67,62,51,39,19,35,50,60,62,57,47,36,17,31,44,53,54,50,42,32,14,26,37,44,46,42,35,27,11,21,30,36,37,34,29,22,9,16,23,28,29,27,23,17,7,12,17,20,21,20,16,13,5,9,12,14,14,13,10,8,3,5,7,7,7,6,4,3,1,2,2,1,0,-1,-1,-2,0,-1,-3,-4,-6,-7,-7,-7,-2,-4,-7,-9,-11,-12,-12,-11,-3,-6,-10,-14,-16,-17,-17,-15,-4,-9,-13,-18,-21,-22,-22,-19,-5,-11,-16,-22,-26,-27,-26,-23,-6,-12,-19,-25,-30,-31,-30,-27,-7,-14,-21,-28,-33,-35,-34,-31,-8,-15,-23,-31,-37,-39,-38,-34,-8,-16,-25,-33,-39,-42,-41,-37,-8,-17,-26,-35,-41,-44,-43,-39,-8,-17,-27,-36,-43,-46,-45,-41,-8,-17,-27,-37,-44,-48,-47,-43,-8,-17,-27,-37,-44,-48,-47,-44,-8,-17,-27,-36,-44,-48,-47,-44,-9,-17,-26,-35,-42,-46,-46,-43 },
{ 1,2,5,7,8,8,8,8,0,2,5,10,13,15,16,16,-2,-1,3,10,17,22,25,25,-5,-5,-1,7,18,27,32,33,-8,-12,-8,2,17,29,37,39,-13,-19,-16,-5,13,29,39,44,-17,-26,-25,-13,7,26,40,46,-21,-34,-34,-22,0,22,39,48,-25,-40,-43,-30,-7,18,38,48,-28,-45,-49,-38,-14,13,35,48,-29,-48,-54,-43,-19,9,33,47,-31,-51,-57,-47,-23,6,31,47,-31,-52,-60,-50,-26,3,29,46,-32,-53,-61,-52,-28,1,28,45,-31,-53,-61,-53,-30,0,27,45,-31,-52,-60,-53,-31,-2,26,44,-30,-51,-60,-53,-31,-2,25,44,-29,-50,-58,-52,-31,-3,24,44,-28,-48,-57,-51,-31,-3,24,44,-27,-46,-54,-49,-30,-3,24,44,-26,-44,-52,-47,-29,-2,24,44,-24,-42,-50,-45,-27,-2,24,44,-23,-39,-47,-42,-25,0,25,44,-21,-37,-44,-40,-23,1,25,44,-20,-34,-41,-37,-21,2,26,45,-18,-31,-38,-34,-19,4,27,45,-16,-28,-34,-30,-16,5,28,45,-14,-26,-31,-27,-13,7,29,45,-12,-22,-27,-23,-10,10,30,46,-10,-19,-23,-19,-6,12,31,46,-8,-15,-18,-14,-2,14,32,46,-6,-11,-13,-9,1,16,32,45 },
{ -12,-19,-25,-27,-26,-22,-15,-8,-18,-32,-42,-47,-45,-38,-27,-16,-24,-42,-56,-63,-61,-50,-36,-22,-28,-49,-65,-73,-69,-57,-40,-24,-28,-50,-68,-74,-70,-56,-39,-22,-25,-46,-61,-67,-61,-47,-30,-16,-20,-36,-48,-51,-45,-32,-18,-6,-14,-25,-31,-32,-25,-14,-2,6,-8,-13,-15,-12,-4,5,13,17,-2,-3,-1,5,13,21,25,27,2,5,10,18,27,33,35,34,5,11,18,27,36,41,42,40,7,14,22,32,41,46,47,44,7,14,23,33,42,48,48,45,7,14,22,32,41,47,48,45,6,12,20,30,39,45,46,44,5,10,17,26,35,41,44,43,3,7,13,21,30,37,40,40,1,4,8,15,23,30,35,36,0,0,3,9,16,24,29,31,-2,-3,-2,2,9,16,22,26,-4,-7,-8,-5,1,8,15,20,-6,-11,-14,-13,-8,-1,7,13,-8,-15,-19,-20,-16,-9,-1,7,-10,-18,-24,-27,-24,-17,-9,0,-11,-21,-29,-33,-31,-25,-16,-7,-12,-23,-33,-38,-38,-32,-23,-13,-13,-25,-36,-43,-44,-39,-29,-19,-14,-27,-39,-47,-49,-45,-35,-24,-15,-28,-41,-50,-53,-49,-40,-29,-15,-28,-42,-51,-55,-52,-43,-32,-15,-29,-41,-51,-55,-53,-45,-35 },
{ 5,5,1,-6,-14,-19,-21,-20,9,11,4,-9,-24,-35,-39,-37,15,19,12,-7,-30,-47,-55,-52,22,30,23,1,-29,-54,-65,-64,29,42,37,13,-22,-53,-69,-69,35,54,51,28,-10,-46,-66,-70,39,61,63,41,4,-34,-58,-65,40,66,70,52,17,-22,-48,-58,39,63,72,57,26,-10,-38,-49,33,56,65,56,29,-3,-28,-41,26,45,54,47,28,2,-21,-33,18,33,40,37,23,3,-15,-26,11,20,26,26,17,3,-11,-20,4,9,13,15,10,2,-8,-15,-2,-1,2,4,3,0,-5,-10,-7,-10,-9,-6,-3,-2,-3,-5,-12,-18,-19,-15,-9,-3,0,0,-15,-25,-27,-22,-13,-4,2,4,-18,-30,-33,-28,-17,-5,4,8,-21,-34,-39,-33,-20,-5,6,13,-23,-37,-43,-37,-22,-5,9,17,-24,-40,-45,-39,-23,-4,12,22,-25,-41,-46,-39,-22,-1,16,26,-25,-41,-46,-39,-21,1,20,31,-24,-40,-46,-38,-19,4,24,36,-23,-39,-43,-35,-16,8,29,41,-21,-36,-40,-31,-12,13,34,46,-19,-32,-35,-27,-7,17,38,50,-17,-28,-31,-21,-2,22,43,55,-14,-24,-25,-15,4,27,47,59,-11,-18,-18,-9,10,31,50,61,-7,-12,-11,-2,15,35,52,62 },
{ 19,29,36,37,32,22,12,4,28,46,57,59,51,36,19,6,33,55,70,71,61,40,19,3,33,56,70,71,57,35,12,-5,27,46,58,56,42,19,-3,-17,17,29,35,31,16,-3,-21,-31,5,8,8,2,-11,-26,-39,-44,-6,-10,-15,-23,-34,-45,-52,-53,-13,-22,-31,-38,-47,-53,-58,-57,-15,-27,-35,-42,-47,-52,-55,-55,-15,-26,-32,-36,-39,-42,-46,-48,-13,-21,-25,-25,-25,-28,-34,-38,-10,-15,-16,-12,-10,-13,-20,-27,-7,-9,-6,1,5,3,-5,-15,-4,-3,3,13,19,18,8,-4,-1,2,11,23,31,30,20,7,1,6,17,30,40,41,31,17,2,8,20,35,46,48,39,24,2,8,20,36,49,51,44,29,2,7,19,35,48,53,46,33,1,5,16,32,46,52,47,35,-1,2,11,26,40,48,45,35,-3,-3,5,18,33,41,41,32,-6,-8,-3,9,23,33,34,28,-9,-13,-11,-1,13,23,27,23,-12,-19,-19,-11,1,12,18,17,-14,-24,-28,-22,-11,0,8,9,-17,-29,-35,-33,-24,-12,-3,1,-19,-34,-43,-43,-36,-24,-14,-8,-21,-37,-48,-51,-45,-35,-24,-16,-22,-39,-52,-57,-53,-44,-33,-24,-23,-40,-53,-59,-58,-50,-39,-30 },
{ 8,10,7,-3,-16,-26,-30,-28,12,18,12,-3,-24,-42,-50,-50,17,24,20,2,-25,-50,-64,-65,19,31,29,12,-18,-49,-68,-73,18,32,38,25,-4,-36,-62,-71,13,28,39,36,14,-17,-45,-61,4,17,33,41,31,6,-24,-45,-7,1,20,39,42,25,-4,-29,-20,-18,2,29,45,38,13,-14,-31,-37,-17,15,40,43,24,-2,-41,-53,-36,-1,32,43,30,6,-48,-65,-51,-16,22,40,32,10,-52,-72,-62,-26,14,36,33,13,-52,-74,-64,-31,9,33,32,14,-50,-70,-63,-32,6,29,30,13,-45,-65,-58,-30,4,26,27,11,-41,-58,-52,-26,5,24,24,9,-35,-49,-42,-20,7,23,21,6,-28,-39,-32,-12,10,22,18,3,-21,-28,-21,-3,14,22,15,-1,-14,-17,-9,5,18,22,12,-5,-8,-7,2,14,22,21,8,-10,-1,3,12,22,26,20,4,-16,5,12,21,29,28,18,-1,-23,10,20,29,34,30,15,-7,-30,13,25,34,37,29,11,-14,-37,16,29,37,38,27,6,-21,-45,17,31,38,37,23,0,-29,-53,18,31,38,34,18,-8,-37,-60,17,29,34,29,11,-15,-44,-67,15,25,28,22,4,-22,-50,-71,11,20,22,15,-3,-27,-53,-73 },
{ -8,-16,-26,-32,-33,-27,-16,-5,-8,-20,-35,-48,-51,-43,-25,-7,-1,-11,-29,-47,-55,-46,-25,-3,10,7,-9,-31,-43,-38,-17,7,25,31,18,-5,-22,-21,-2,21,38,53,43,20,-1,-3,13,34,46,64,57,33,12,8,23,44,47,66,57,32,10,8,25,48,43,57,45,18,-4,-3,20,47,34,42,25,-5,-25,-20,9,42,24,25,3,-28,-47,-37,-3,35,16,12,-14,-47,-63,-52,-13,29,12,4,-24,-57,-74,-59,-20,25,10,1,-26,-59,-74,-61,-21,24,11,4,-22,-53,-69,-57,-19,25,13,9,-15,-44,-60,-50,-14,28,17,15,-5,-32,-49,-41,-8,32,20,22,5,-20,-36,-31,-1,36,24,29,16,-7,-23,-19,8,41,27,36,26,6,-10,-8,16,46,30,42,35,17,1,2,22,50,31,45,41,24,9,9,27,52,32,46,43,28,14,13,30,53,31,45,43,29,16,15,30,52,28,41,40,27,14,13,28,49,24,35,32,20,8,7,22,43,18,26,22,10,-2,-2,13,35,12,16,9,-3,-14,-13,3,25,5,4,-5,-18,-29,-27,-10,14,-2,-8,-19,-34,-44,-41,-23,2,-9,-19,-33,-48,-58,-54,-36,-10,-16,-29,-44,-59,-68,-65,-46,-21 },
{ 28,40,42,34,23,10,1,-1,41,60,61,49,28,9,-1,-3,48,69,69,48,22,0,-8,-6,48,69,62,36,4,-17,-20,-11,44,57,46,12,-21,-37,-32,-14,34,41,21,-15,-45,-54,-38,-13,24,23,-1,-37,-63,-61,-37,-6,16,11,-15,-48,-66,-59,-27,7,14,7,-18,-46,-60,-45,-11,24,15,10,-11,-36,-44,-27,9,42,17,16,-1,-21,-26,-7,27,59,20,22,9,-8,-12,7,41,71,23,27,16,0,-3,16,50,79,24,30,19,4,0,18,51,82,24,29,19,3,-3,14,48,79,24,28,17,-1,-8,7,41,75,23,26,13,-6,-15,-1,33,68,21,24,9,-12,-23,-11,22,59,19,21,5,-18,-32,-22,11,48,18,18,2,-23,-39,-32,0,38,17,17,-1,-27,-46,-41,-11,27,16,17,-1,-28,-49,-47,-20,18,17,18,1,-27,-50,-51,-27,9,18,20,4,-23,-48,-52,-31,3,19,23,9,-18,-44,-51,-34,-3,21,27,15,-10,-37,-47,-33,-5,23,32,23,-1,-27,-39,-30,-5,25,37,31,10,-16,-30,-24,-4,27,42,40,21,-3,-19,-17,-1,28,45,46,32,9,-7,-8,3,29,47,51,40,21,5,1,9,28,46,52,45,29,14,9,14 },
{ -2,-6,-13,-24,-36,-42,-42,-36,0,-2,-12,-29,-48,-63,-65,-58,5,7,2,-15,-39,-60,-71,-66,9,19,23,14,-9,-37,-55,-59,8,23,40,43,29,1,-27,-40,0,15,39,58,56,34,4,-17,-15,-7,19,48,63,52,26,3,-31,-35,-13,22,48,52,35,15,-44,-58,-46,-12,22,37,32,18,-48,-70,-64,-38,-4,17,21,15,-44,-66,-67,-48,-22,-1,8,8,-33,-52,-54,-44,-27,-11,-2,2,-20,-30,-34,-30,-23,-14,-7,-2,-4,-6,-8,-10,-12,-11,-8,-4,11,17,17,11,2,-5,-7,-5,23,37,39,31,15,1,-5,-5,33,52,57,45,25,6,-4,-5,37,59,63,51,28,7,-4,-6,37,58,63,49,26,4,-7,-7,34,53,56,42,19,-2,-11,-9,29,44,45,30,9,-10,-16,-12,20,31,29,15,-4,-19,-22,-15,11,16,11,-2,-19,-28,-27,-16,2,2,-6,-19,-31,-37,-30,-16,-5,-11,-21,-32,-42,-42,-31,-14,-11,-20,-30,-40,-45,-42,-27,-7,-14,-24,-34,-41,-43,-35,-17,3,-14,-24,-33,-37,-35,-23,-4,16,-12,-21,-27,-28,-21,-6,14,33,-8,-13,-15,-13,-2,14,34,51,-2,-2,0,7,20,37,56,69,6,9,16,25,39,56,72,83 },
{ -23,-36,-46,-44,-33,-14,5,17,-28,-47,-60,-61,-43,-15,14,32,-21,-38,-54,-55,-39,-7,26,46,-4,-14,-27,-33,-21,7,38,58,17,19,8,-4,-1,18,45,61,34,48,38,19,9,17,37,54,44,61,52,26,4,2,18,36,43,62,49,16,-14,-22,-7,14,36,48,33,-2,-36,-45,-32,-7,22,29,12,-21,-51,-60,-45,-22,9,10,-5,-31,-55,-60,-48,-26,-1,-4,-14,-31,-45,-50,-40,-24,-8,-11,-16,-22,-30,-31,-26,-16,-12,-14,-12,-10,-9,-9,-8,-4,-13,-13,-5,5,12,14,12,10,-14,-13,1,18,31,34,30,23,-15,-13,4,27,44,49,44,33,-17,-15,4,30,50,57,50,38,-20,-18,0,26,48,56,50,37,-23,-24,-8,18,40,49,44,32,-26,-30,-16,7,28,38,35,24,-28,-36,-25,-5,14,23,20,12,-30,-39,-33,-17,-1,6,4,-3,-29,-40,-37,-26,-15,-10,-14,-19,-27,-38,-38,-31,-25,-24,-29,-34,-22,-31,-31,-29,-27,-31,-38,-45,-14,-18,-19,-18,-22,-30,-42,-51,-4,-3,-1,-2,-10,-24,-41,-53,7,14,20,18,7,-13,-35,-50,17,32,41,41,28,4,-22,-42,27,48,62,63,50,24,-6,-29,36,59,75,79,67,42,10,-15 },
{ 27,31,18,-2,-18,-20,-11,2,42,50,29,-4,-29,-33,-14,7,55,65,38,-8,-40,-40,-14,17,60,73,39,-13,-48,-45,-8,30,59,68,33,-22,-56,-44,1,45,49,56,19,-32,-58,-39,13,61,37,38,5,-39,-57,-29,27,74,25,23,-6,-41,-50,-18,38,83,16,12,-12,-38,-42,-9,44,84,10,7,-11,-31,-31,-3,42,79,7,5,-6,-20,-21,0,36,67,3,4,0,-9,-12,0,26,52,1,4,4,1,-4,-1,14,33,-2,2,8,7,1,-3,2,15,-5,0,8,11,4,-6,-10,-4,-8,-4,8,14,7,-8,-20,-21,-12,-8,7,16,11,-8,-28,-36,-15,-12,5,19,15,-7,-33,-48,-18,-15,3,21,20,-3,-34,-55,-21,-20,1,23,26,3,-33,-60,-25,-24,-1,25,32,9,-31,-62,-28,-28,-4,26,37,16,-25,-62,-31,-32,-7,27,42,24,-18,-58,-34,-37,-11,26,46,32,-11,-53,-37,-41,-15,24,48,37,-3,-47,-39,-45,-20,20,48,42,3,-42,-41,-49,-26,15,46,43,8,-36,-42,-53,-31,9,41,43,11,-31,-42,-54,-36,2,36,40,13,-26,-40,-54,-39,-4,29,36,13,-22,-37,-51,-39,-9,21,30,11,-19,-31,-45,-36,-11,15,24,9,-17 },
{ 2,6,17,32,48,57,56,43,-1,2,14,35,58,76,76,64,-7,-9,-5,10,35,56,66,60,-9,-20,-29,-28,-13,10,28,35,-3,-16,-38,-55,-57,-40,-17,1,12,5,-19,-50,-68,-65,-46,-25,29,33,18,-13,-43,-54,-48,-33,37,55,53,32,2,-21,-29,-26,31,52,65,59,39,14,-4,-11,11,26,44,55,49,34,15,3,-15,-13,3,24,37,35,24,12,-37,-50,-38,-13,12,24,23,15,-50,-70,-67,-40,-9,11,18,15,-48,-73,-71,-50,-20,2,11,12,-39,-58,-58,-42,-20,-2,6,8,-25,-37,-36,-26,-12,-2,3,4,-9,-12,-11,-5,-1,1,1,0,6,11,14,15,11,5,-1,-3,19,31,35,31,21,8,-2,-6,28,46,51,44,28,10,-4,-10,34,52,59,49,30,8,-8,-14,32,51,55,46,25,3,-13,-19,26,40,43,33,14,-7,-20,-23,17,26,26,17,0,-17,-27,-27,6,9,8,-1,-15,-27,-32,-28,-4,-7,-10,-17,-26,-33,-32,-26,-12,-19,-24,-28,-32,-32,-27,-18,-17,-27,-32,-34,-32,-26,-16,-6,-19,-30,-34,-32,-24,-12,0,10,-17,-26,-27,-21,-8,7,21,30,-11,-15,-12,-2,14,31,45,51,-2,-2,5,18,36,53,65,68 },
{ -34,-52,-64,-60,-45,-19,6,22,-36,-59,-72,-72,-51,-17,17,38,-20,-33,-45,-47,-32,-1,33,52,7,9,4,-3,1,19,42,58,31,48,49,35,24,24,37,48,38,62,63,45,19,7,12,24,27,45,45,24,-7,-26,-23,-7,5,13,11,-8,-36,-55,-51,-33,-18,-19,-19,-28,-48,-62,-61,-44,-31,-37,-29,-25,-31,-43,-45,-37,-36,-39,-23,-4,2,-6,-15,-18,-34,-35,-10,20,36,31,15,3,-32,-28,1,37,59,55,38,19,-29,-25,4,42,64,64,46,27,-27,-24,1,34,56,56,43,26,-25,-25,-5,21,39,41,31,19,-23,-24,-12,6,19,20,15,8,-18,-22,-16,-7,-1,-1,-4,-5,-12,-15,-15,-15,-17,-21,-22,-18,-4,-6,-11,-19,-29,-37,-38,-30,5,5,-2,-17,-35,-47,-48,-38,14,18,9,-9,-31,-48,-50,-39,22,30,24,4,-21,-40,-44,-34,29,41,36,17,-9,-28,-33,-24,32,46,45,27,4,-15,-19,-11,30,45,44,32,12,-2,-4,4,24,35,36,27,15,7,10,19,13,20,20,16,12,12,21,33,1,0,-1,-2,3,13,29,44,-13,-21,-26,-23,-12,8,31,50,-25,-41,-49,-45,-29,-2,28,51,-34,-55,-65,-61,-42,-13,21,47 },
{ 42,46,24,-9,-31,-27,-3,21,58,70,38,-12,-44,-38,1,38,64,76,43,-16,-55,-41,10,57,53,67,33,-24,-60,-43,18,73,33,39,13,-33,-62,-38,25,81,6,9,-6,-35,-51,-30,27,80,-17,-17,-14,-21,-30,-17,23,66,-34,-32,-10,2,-2,-3,16,46,-44,-36,0,28,25,7,4,21,-45,-35,13,48,41,9,-10,-4,-46,-32,18,55,47,5,-27,-27,-44,-32,17,53,43,-2,-40,-46,-44,-33,12,46,36,-9,-50,-58,-41,-33,7,39,30,-13,-52,-62,-39,-32,4,32,25,-12,-49,-58,-35,-30,1,27,22,-10,-41,-50,-31,-26,0,22,20,-6,-31,-37,-26,-22,0,19,18,-1,-20,-23,-20,-17,2,17,17,3,-8,-7,-15,-11,3,14,14,7,4,9,-9,-6,3,9,10,8,13,24,-4,-1,3,4,2,5,17,35,2,4,3,-3,-7,-1,18,42,7,9,3,-9,-17,-10,16,47,12,15,5,-14,-28,-19,13,50,18,22,8,-18,-36,-29,7,51,24,29,13,-18,-43,-37,2,49,29,37,19,-16,-45,-43,-4,46,35,45,27,-12,-46,-46,-8,43,38,51,34,-6,-41,-46,-10,40,39,52,38,1,-35,-40,-9,37,35,49,37,6,-26,-33,-7,34 },
{ 22,27,20,1,-21,-39,-47,-41,26,35,26,5,-24,-49,-61,-59,22,28,25,12,-7,-29,-47,-51,7,10,12,17,17,8,-9,-23,-11,-17,-12,8,33,41,31,11,-21,-38,-36,-12,25,51,48,32,-20,-39,-47,-32,3,33,42,31,-4,-20,-37,-39,-19,6,18,17,22,15,-7,-26,-27,-16,-6,-4,43,50,26,-2,-20,-25,-22,-20,54,65,48,19,-6,-20,-26,-27,49,63,50,27,4,-11,-21,-28,34,41,33,19,8,-2,-13,-22,12,10,4,2,5,5,-2,-14,-10,-23,-28,-20,-2,10,9,-3,-29,-50,-54,-38,-8,15,18,6,-39,-64,-70,-47,-10,19,26,14,-38,-62,-65,-43,-6,24,30,19,-27,-45,-46,-27,4,28,32,19,-11,-20,-20,-6,16,32,31,16,7,8,8,15,27,33,25,9,24,32,32,31,31,27,13,-4,36,49,48,38,28,14,-4,-19,42,58,53,37,17,-3,-23,-36,41,55,49,28,3,-21,-41,-51,32,42,32,11,-14,-36,-51,-58,18,20,9,-10,-29,-43,-52,-53,2,-3,-15,-27,-37,-42,-43,-40,-12,-23,-34,-37,-35,-27,-22,-16,-21,-34,-40,-35,-18,0,14,19,-22,-33,-32,-16,12,40,57,60,-15,-22,-14,9,44,77,95,95 },
{ 42,58,62,51,35,16,-1,-10,43,58,58,48,30,11,-7,-17,23,25,18,9,1,-7,-15,-21,-2,-17,-32,-37,-31,-22,-18,-18,-16,-40,-61,-60,-41,-18,-5,-4,-8,-28,-45,-43,-18,8,19,17,16,8,-2,0,19,37,41,30,37,41,33,31,40,49,44,29,42,48,38,28,28,31,25,11,31,30,12,-3,-6,-5,-7,-14,12,1,-21,-36,-39,-35,-34,-35,-3,-20,-40,-51,-50,-44,-43,-45,-9,-25,-40,-42,-36,-30,-33,-41,-6,-16,-22,-17,-6,-1,-10,-25,1,-3,0,12,28,31,17,-6,8,9,17,34,53,57,39,11,10,13,24,43,65,68,51,21,7,9,17,36,56,63,47,20,1,-2,1,15,33,41,32,10,-5,-15,-19,-12,3,13,9,-6,-9,-23,-36,-36,-26,-16,-15,-22,-8,-24,-41,-49,-44,-36,-33,-35,-1,-15,-34,-46,-48,-44,-41,-42,10,1,-16,-32,-40,-41,-40,-40,23,22,7,-10,-22,-27,-30,-32,34,41,31,15,2,-6,-11,-17,41,52,47,35,25,17,10,2,39,52,51,44,38,34,29,20,28,36,37,35,37,39,40,33,6,5,2,5,14,28,36,35,-22,-36,-44,-41,-25,-1,18,25,-46,-71,-84,-82,-63,-34,-6,9 },
{ -37,-27,2,25,24,1,-20,-26,-50,-35,12,48,42,5,-29,-39,-63,-44,14,58,51,4,-36,-42,-69,-54,9,55,45,-2,-37,-37,-68,-53,3,43,31,-11,-34,-20,-55,-41,6,32,12,-22,-25,2,-35,-18,17,24,-5,-31,-16,28,-17,5,31,22,-18,-40,-7,51,-7,18,41,21,-28,-47,-3,68,-8,19,42,20,-32,-54,-4,75,-18,8,36,20,-33,-57,-10,73,-31,-7,29,22,-27,-57,-15,67,-44,-20,24,28,-17,-52,-20,59,-52,-30,22,36,-5,-45,-22,49,-58,-35,22,43,7,-36,-24,41,-61,-40,21,48,17,-30,-25,32,-64,-42,20,52,25,-24,-28,24,-63,-44,19,54,29,-21,-29,16,-63,-43,17,52,29,-20,-32,10,-60,-43,14,48,27,-21,-34,5,-57,-41,12,44,24,-23,-36,2,-51,-37,12,41,20,-24,-35,1,-44,-30,13,37,17,-24,-34,3,-36,-23,14,33,13,-25,-30,7,-28,-15,16,30,9,-24,-26,14,-20,-8,18,27,5,-25,-21,20,-13,0,20,23,1,-24,-15,28,-6,6,21,19,-4,-25,-10,35,-1,9,19,13,-11,-27,-7,41,0,9,15,5,-17,-30,-5,44,0,6,8,-3,-24,-31,-5,44,-1,3,3,-9,-26,-31,-4,42 },
{ -22,-26,-12,13,30,23,-3,-26,-30,-41,-25,11,37,30,-9,-44,-24,-37,-30,4,36,30,-13,-57,-1,-17,-23,-2,29,29,-13,-60,31,17,-10,-10,17,26,-5,-51,59,47,-1,-24,-1,24,7,-33,77,61,-3,-43,-23,18,23,-10,78,62,-13,-63,-41,15,35,11,73,50,-26,-74,-49,16,46,24,58,37,-30,-72,-41,22,49,29,42,22,-28,-52,-23,29,48,23,28,12,-22,-32,-2,37,40,10,16,4,-17,-14,14,39,29,-10,7,-3,-13,-3,23,36,13,-30,-1,-10,-13,3,27,30,-3,-51,-7,-15,-14,5,27,24,-17,-68,-12,-19,-15,7,28,20,-26,-80,-12,-20,-15,8,29,20,-28,-85,-11,-18,-13,8,30,22,-23,-80,-8,-15,-12,8,30,26,-15,-69,-4,-10,-10,6,29,29,-5,-55,1,-5,-10,2,24,32,6,-38,8,0,-10,-5,16,30,16,-18,13,6,-10,-12,5,26,24,0,20,12,-11,-22,-7,18,30,17,26,19,-10,-30,-22,7,30,29,34,28,-6,-36,-37,-7,26,36,42,39,1,-39,-49,-21,19,40,51,50,11,-37,-57,-32,13,42,56,61,22,-31,-56,-37,8,42,58,66,33,-19,-49,-35,6,39,53,65,37,-8,-37,-29,6,36 },
{ 5,6,-2,-21,-48,-68,-76,-63,10,15,10,-9,-40,-72,-85,-79,9,18,26,23,6,-20,-44,-50,-2,4,21,42,52,44,22,1,-19,-22,-10,20,56,72,65,42,-23,-40,-44,-27,10,45,56,49,-7,-24,-48,-57,-43,-12,15,25,23,19,-11,-45,-60,-50,-25,-5,47,58,40,-1,-37,-47,-40,-24,45,67,62,38,4,-20,-28,-25,19,35,46,44,31,11,-5,-14,-16,-15,2,22,33,28,13,-2,-44,-56,-43,-10,20,30,21,6,-52,-74,-63,-31,6,24,20,8,-44,-62,-58,-32,-3,14,15,6,-22,-34,-34,-21,-4,7,8,1,4,3,-1,-2,1,3,2,-4,27,36,28,17,5,-1,-4,-8,43,57,48,26,6,-5,-9,-11,49,65,53,27,2,-11,-14,-13,45,57,46,17,-8,-18,-18,-14,29,37,23,-1,-19,-24,-18,-11,10,9,-4,-20,-29,-24,-12,-3,-8,-17,-28,-35,-33,-20,-2,8,-21,-34,-42,-40,-29,-8,12,20,-25,-38,-41,-32,-14,9,26,30,-22,-30,-27,-13,7,26,37,34,-13,-15,-7,9,27,40,40,31,-3,0,11,25,38,41,33,17,4,10,19,29,32,26,8,-10,6,11,16,17,10,-7,-30,-46,2,4,3,-4,-20,-43,-66,-78 },
{ -50,-71,-78,-59,-31,-3,13,14,-42,-64,-67,-52,-19,10,22,20,-5,-6,-6,2,17,27,26,15,35,54,55,50,41,29,12,-2,46,65,66,48,26,4,-17,-27,19,26,15,-2,-18,-30,-39,-43,-17,-30,-46,-52,-48,-39,-35,-34,-32,-53,-62,-56,-31,-9,-1,-6,-20,-28,-30,-14,15,37,41,26,7,13,17,29,48,62,58,41,26,39,41,40,45,48,44,31,27,38,30,17,8,7,8,6,17,18,4,-17,-33,-34,-28,-20,4,-1,-17,-38,-52,-56,-46,-35,-4,-11,-23,-37,-48,-50,-44,-35,-7,-11,-16,-21,-26,-29,-27,-24,-6,-6,-2,2,3,1,-2,-6,-4,1,11,23,29,30,22,12,-3,4,17,33,45,47,39,25,-4,0,13,31,45,51,45,31,-10,-9,0,16,33,40,38,27,-14,-19,-16,-5,9,18,19,13,-15,-24,-28,-26,-18,-10,-6,-7,-11,-22,-32,-38,-38,-34,-29,-25,0,-8,-23,-35,-43,-44,-42,-37,15,13,0,-16,-30,-38,-39,-37,30,36,28,12,-4,-15,-22,-25,37,50,48,38,24,12,1,-6,32,45,50,47,41,33,23,12,12,18,22,28,33,36,31,23,-20,-29,-30,-20,-2,14,23,22,-50,-72,-80,-71,-45,-18,2,11 },
{ 35,20,-12,-21,0,18,8,-16,50,27,-26,-40,-3,28,12,-26,66,33,-38,-54,-3,40,19,-36,73,39,-45,-64,3,57,27,-45,78,39,-51,-65,10,69,34,-53,71,37,-49,-64,14,76,32,-61,60,28,-45,-55,16,70,26,-66,46,21,-38,-47,14,61,18,-69,32,13,-30,-35,14,48,11,-64,20,9,-19,-23,11,37,7,-55,9,5,-9,-11,8,25,5,-39,-1,2,0,-3,4,14,4,-23,-10,-2,7,3,-1,2,4,-6,-17,-5,12,9,-5,-8,2,7,-22,-8,16,14,-8,-17,-1,18,-26,-10,19,18,-10,-25,-4,28,-31,-12,22,22,-11,-31,-8,35,-33,-15,23,26,-11,-36,-10,41,-36,-16,25,30,-9,-39,-14,43,-39,-19,26,35,-6,-42,-18,44,-43,-23,26,38,-4,-43,-22,43,-46,-27,25,41,0,-43,-24,42,-49,-29,24,43,4,-42,-27,40,-49,-31,24,45,8,-40,-28,38,-50,-31,24,47,11,-37,-28,37,-48,-31,22,47,14,-36,-28,35,-44,-29,21,45,14,-33,-28,32,-40,-27,18,42,13,-32,-28,29,-36,-25,15,36,11,-30,-27,27,-31,-23,11,30,7,-29,-24,25,-25,-19,8,23,3,-27,-21,24,-18,-13,8,19,2,-23,-16,23 },
{ 49,43,4,-44,-63,-36,9,38,59,60,11,-52,-74,-41,20,59,50,53,20,-30,-54,-22,33,66,14,22,17,-1,-12,1,33,55,-32,-27,-1,19,21,15,17,20,-61,-65,-18,29,37,13,-14,-26,-63,-65,-19,31,41,3,-43,-62,-34,-37,-4,32,34,-4,-52,-76,3,6,16,27,26,-2,-40,-63,31,35,21,10,9,4,-12,-31,45,40,8,-18,-15,6,17,7,45,36,-11,-46,-36,5,37,39,43,28,-22,-60,-50,2,49,58,35,23,-22,-58,-48,0,48,65,28,20,-13,-42,-37,0,39,54,20,17,-3,-21,-20,1,25,36,11,12,6,-1,-3,3,10,13,0,4,10,13,11,4,-5,-10,-13,-8,8,22,22,5,-18,-32,-24,-21,3,26,30,7,-27,-49,-34,-32,-4,27,36,10,-33,-61,-38,-39,-9,27,38,14,-31,-64,-38,-40,-12,23,38,18,-25,-57,-33,-36,-14,18,34,21,-15,-45,-24,-27,-12,12,29,21,-4,-28,-11,-14,-8,5,18,18,4,-11,5,3,-2,-3,3,9,11,8,21,21,5,-12,-15,-4,14,24,36,37,11,-21,-34,-17,16,39,44,48,17,-27,-47,-29,14,49,47,51,20,-28,-55,-36,12,52,42,48,18,-27,-52,-37,10,51 },
{ 16,20,23,28,42,54,59,46,14,14,9,9,22,45,56,52,6,-1,-18,-32,-32,-11,13,22,2,-4,-22,-46,-61,-57,-35,-17,4,8,6,-9,-31,-44,-45,-34,-1,12,33,45,35,11,-11,-21,-16,-6,24,56,69,52,25,3,-29,-36,-18,13,38,43,29,14,-23,-40,-47,-38,-19,-2,7,8,4,-7,-30,-48,-49,-35,-16,-2,37,39,18,-15,-39,-37,-22,-6,49,67,55,25,-6,-18,-13,-2,37,54,57,40,18,3,1,5,4,12,22,26,20,12,9,10,-31,-37,-24,-4,8,11,11,12,-55,-73,-59,-30,-5,7,11,12,-61,-80,-69,-36,-9,4,8,9,-42,-57,-44,-20,-1,5,4,5,-11,-11,-1,11,14,8,1,0,22,35,42,41,27,10,-4,-6,45,63,69,55,31,6,-10,-13,46,65,62,45,17,-6,-19,-19,31,39,32,14,-7,-22,-26,-20,6,4,-7,-21,-32,-35,-28,-16,-15,-28,-40,-47,-47,-36,-21,-6,-25,-42,-50,-51,-39,-21,-2,11,-23,-36,-39,-31,-14,7,24,31,-11,-17,-13,1,19,37,46,45,3,6,15,28,44,53,55,45,14,21,28,36,41,42,34,21,14,19,20,15,7,-6,-18,-26,3,2,-7,-22,-42,-61,-74,-75 },
{ -53,-66,-63,-41,-17,4,16,17,-42,-52,-42,-26,-5,12,22,23,-2,10,20,21,17,14,15,14,32,60,65,48,17,-4,-8,-5,27,48,51,25,-11,-30,-32,-24,-10,-6,-10,-24,-36,-37,-29,-21,-39,-49,-51,-45,-28,-6,4,3,-33,-43,-37,-19,14,41,43,28,-2,2,6,18,42,58,53,31,27,40,33,24,26,31,24,8,37,45,27,0,-16,-17,-20,-24,26,29,4,-29,-47,-49,-47,-47,10,6,-14,-38,-49,-45,-46,-47,-5,-9,-17,-25,-21,-13,-16,-27,-14,-14,-10,1,18,30,22,1,-17,-14,-1,20,46,63,52,25,-18,-13,2,26,55,71,63,36,-15,-13,-2,15,35,51,47,27,-12,-12,-9,-6,1,12,14,5,-6,-7,-13,-25,-33,-29,-23,-21,3,4,-8,-32,-54,-57,-50,-39,15,21,8,-21,-49,-61,-54,-42,23,35,28,3,-26,-39,-37,-28,23,40,42,27,4,-8,-7,-4,13,29,42,38,27,22,23,23,-7,4,20,29,31,36,40,41,-30,-29,-13,4,18,31,43,45,-47,-57,-45,-26,-6,13,30,37,-48,-60,-56,-42,-28,-11,8,18,-24,-31,-29,-29,-29,-26,-16,-5,16,25,28,16,-5,-24,-31,-26,53,77,83,66,30,-7,-30,-34 },
{ 38,10,-36,-39,2,33,20,-15,58,24,-46,-58,1,47,21,-32,74,39,-42,-57,8,56,20,-52,69,43,-35,-51,16,66,16,-67,49,26,-34,-43,20,62,15,-70,17,5,-29,-35,12,50,11,-60,-11,-10,-13,-16,4,27,9,-38,-29,-12,13,9,-3,5,7,-12,-43,-9,40,31,-11,-19,2,13,-50,-11,51,42,-21,-42,-4,32,-59,-18,51,42,-29,-56,-9,45,-61,-26,43,40,-31,-63,-12,53,-61,-28,37,37,-27,-58,-12,59,-51,-26,32,37,-17,-50,-9,59,-41,-19,31,37,-7,-38,-8,52,-29,-12,27,35,0,-28,-6,44,-18,-7,21,27,3,-19,-7,31,-11,-6,10,17,3,-13,-8,18,-3,-5,-1,4,1,-8,-9,5,5,-2,-10,-8,-2,-2,-8,-7,15,3,-15,-16,-2,6,-5,-17,25,11,-17,-22,0,16,1,-24,36,19,-17,-25,3,27,11,-27,44,28,-17,-30,4,36,19,-28,51,32,-19,-35,3,42,27,-31,51,32,-22,-42,-1,45,30,-33,49,28,-28,-48,-6,44,31,-36,45,25,-32,-54,-11,43,30,-39,42,22,-32,-53,-13,40,28,-41,38,23,-25,-47,-9,39,24,-43,36,24,-15,-33,-1,38,22,-42,31,24,-6,-19,7,38,20,-38 },
{ 45,39,1,-43,-57,-21,27,51,51,51,7,-48,-62,-23,39,73,33,36,15,-22,-38,-11,35,60,-11,-4,11,13,4,0,10,21,-54,-48,-3,38,41,7,-24,-31,-59,-63,-13,43,48,6,-45,-66,-29,-33,-10,23,33,2,-41,-62,21,15,2,0,5,2,-14,-30,60,51,8,-25,-22,5,20,15,64,55,-2,-46,-37,6,41,48,45,30,-16,-49,-40,4,45,56,15,3,-21,-36,-26,3,34,46,-9,-15,-16,-11,-5,3,15,22,-23,-23,-3,16,17,3,-6,-7,-30,-23,9,36,34,3,-25,-34,-31,-22,15,47,42,2,-38,-54,-32,-23,16,47,42,1,-45,-63,-29,-23,10,39,34,0,-38,-58,-24,-21,0,20,20,0,-25,-37,-14,-17,-9,0,3,-2,-7,-10,-1,-6,-12,-16,-14,-4,11,18,15,10,-8,-26,-26,-7,24,44,31,26,0,-28,-35,-11,32,61,41,40,10,-26,-38,-15,34,70,45,46,18,-21,-40,-19,29,67,37,42,19,-15,-36,-24,16,53,20,25,15,-8,-27,-25,-1,26,-2,1,6,2,-11,-22,-17,-2,-27,-26,-5,13,11,-9,-27,-29,-46,-49,-14,26,36,11,-26,-46,-56,-58,-18,36,61,33,-18,-51,-51,-56,-15,40,68,47,-6,-46 },
{ -9,-8,-14,-34,-62,-76,-69,-43,-5,5,10,-3,-30,-54,-53,-35,-6,12,36,46,39,22,11,9,-15,-6,17,41,57,64,57,45,-19,-26,-29,-22,-1,24,39,34,0,-11,-38,-65,-62,-40,-16,-5,32,35,9,-27,-51,-49,-42,-34,35,57,55,40,20,1,-18,-34,2,16,35,52,64,51,19,-15,-37,-47,-35,-3,34,50,30,-3,-46,-68,-77,-58,-20,13,17,-2,-15,-28,-46,-56,-42,-14,2,-3,30,40,25,-8,-27,-18,-4,-2,52,81,72,35,-3,-13,-3,2,40,67,71,42,6,-6,0,5,2,19,30,21,0,-6,1,6,-39,-37,-20,-9,-11,-8,2,7,-61,-71,-48,-26,-15,-7,3,7,-61,-68,-46,-20,-7,0,5,7,-39,-39,-17,2,10,10,8,6,-7,3,21,29,25,15,8,3,20,37,45,42,27,12,2,-3,34,48,48,33,12,-2,-8,-10,30,39,28,8,-12,-20,-19,-16,17,16,0,-23,-36,-33,-23,-16,0,-8,-26,-43,-44,-30,-14,-7,-10,-20,-36,-42,-31,-9,9,10,-9,-18,-26,-23,-3,23,35,27,0,-3,-5,4,26,49,53,32,10,12,13,21,37,51,42,16,13,15,13,12,16,14,-1,-26,6,5,-5,-17,-27,-38,-55,-72 },
{ -57,-58,-46,-28,-10,11,22,15,-43,-26,-4,-6,-4,14,26,15,-13,33,60,28,-5,3,13,-1,-7,55,80,28,-27,-22,-6,-21,-38,16,46,-11,-57,-28,-4,-27,-68,-28,3,-39,-53,3,29,-15,-69,-26,5,-29,-26,46,66,-1,-39,16,43,-4,-10,62,73,-6,-14,50,71,-1,-30,33,48,-32,-16,47,58,-25,-67,-7,14,-59,-38,15,31,-44,-83,-20,3,-67,-56,-8,20,-34,-58,5,24,-53,-60,-10,30,-6,-20,42,57,-30,-53,-1,42,13,1,62,74,-11,-45,7,47,13,-6,51,71,-6,-36,11,42,-1,-31,21,48,-14,-31,13,35,-19,-60,-13,21,-27,-26,14,31,-27,-73,-35,3,-34,-23,16,34,-19,-68,-35,0,-33,-22,18,40,-3,-47,-19,12,-23,-24,13,44,13,-22,5,30,-8,-30,5,37,20,-4,23,45,6,-37,-9,24,15,1,30,51,11,-41,-21,8,1,-7,24,44,7,-41,-25,-4,-12,-21,9,30,-4,-29,-16,-2,-18,-31,-7,12,-18,-10,4,12,-11,-33,-16,-3,-31,10,28,31,3,-25,-16,-9,-36,20,40,44,16,-11,-5,-3,-30,12,28,33,16,-1,9,12,-15,-12,-8,-3,-7,-4,19,29,5,-36,-43,-40,-36,-17,18,37,21 },
{ 35,54,51,27,11,4,-12,-29,23,46,37,8,-3,3,-8,-36,-20,-10,-17,-39,-28,10,10,-28,-52,-44,-39,-57,-31,31,39,-12,-48,-12,10,-18,-14,44,57,-3,-23,43,81,27,-13,28,40,-14,-27,49,98,25,-45,-14,9,-33,-63,4,54,-14,-79,-41,-4,-41,-92,-34,20,-30,-75,-19,21,-23,-81,-28,30,-3,-30,29,60,4,-49,9,59,22,0,55,79,13,-19,36,64,14,-15,39,62,0,-8,35,43,-22,-56,0,29,-26,-11,23,19,-49,-80,-25,6,-46,-18,10,11,-48,-74,-21,4,-52,-23,6,16,-26,-43,4,19,-46,-26,6,27,2,-7,35,40,-34,-28,4,33,19,15,55,53,-22,-32,-2,28,17,15,54,55,-16,-35,-10,15,1,-3,37,45,-17,-34,-13,5,-16,-27,10,27,-23,-27,-7,5,-25,-46,-13,9,-29,-14,8,17,-21,-52,-26,-2,-30,-3,24,34,-5,-43,-26,-2,-24,2,31,48,12,-27,-14,7,-11,-4,24,46,22,-12,0,21,6,-22,3,30,19,-5,9,32,20,-40,-24,6,6,-8,8,34,27,-51,-41,-14,-8,-17,-2,25,24,-43,-37,-11,-8,-20,-14,8,9,-19,-6,16,12,-11,-19,-11,-10,10,30,48,38,7,-16,-20,-23 },
{ 22,-9,-51,-43,4,27,4,-29,43,6,-55,-53,14,49,6,-48,64,32,-34,-36,31,63,11,-56,60,43,-13,-24,29,60,11,-54,26,18,-14,-26,3,28,5,-38,-24,-19,-13,-20,-20,-6,-3,-13,-56,-32,15,15,-18,-24,-2,18,-57,-20,54,61,-1,-33,0,43,-52,-10,68,70,-2,-46,-8,55,-38,-16,38,43,-20,-60,-16,54,-23,-22,1,5,-32,-55,-19,43,1,-13,-17,-11,-21,-35,-12,33,29,6,-18,-9,5,1,1,20,46,21,-16,-5,28,31,10,4,55,24,-23,-11,36,45,12,-13,54,19,-37,-26,31,47,6,-32,51,11,-51,-41,20,41,-2,-49,44,6,-54,-51,10,35,-7,-59,40,7,-48,-46,8,32,-6,-57,37,14,-32,-33,12,34,-2,-50,32,19,-14,-16,18,35,7,-35,22,18,-1,-3,19,32,12,-18,8,8,3,3,13,20,13,-1,-8,-4,2,3,2,4,8,13,-26,-18,0,4,-10,-17,-3,23,-37,-27,3,10,-16,-36,-15,30,-41,-26,14,23,-15,-47,-25,34,-40,-20,32,45,-4,-52,-31,38,-41,-14,47,65,10,-49,-33,43,-42,-18,46,72,18,-44,-28,47,-48,-31,25,52,11,-42,-25,47,-50,-45,-2,23,-5,-44,-26,40 },
{ -53,-45,2,52,61,20,-26,-43,-52,-50,-2,50,55,14,-35,-55,-19,-18,-4,11,12,-7,-29,-33,30,30,3,-27,-36,-21,0,12,59,55,10,-41,-54,-13,38,57,37,37,6,-28,-29,4,47,67,-13,-15,-10,2,8,10,20,31,-47,-55,-17,29,38,4,-25,-26,-45,-46,-7,43,49,-5,-60,-67,-8,-14,3,35,36,-7,-54,-68,29,21,4,5,11,-1,-20,-28,47,37,-4,-26,-16,6,20,21,49,34,-16,-47,-36,6,47,57,34,22,-21,-51,-39,1,47,68,13,7,-15,-30,-27,-3,31,52,-7,-5,-2,-2,-5,-5,8,25,-23,-14,10,27,18,-5,-16,-9,-31,-21,16,46,34,-6,-35,-37,-37,-25,16,51,41,-6,-45,-51,-37,-31,9,44,39,-5,-45,-53,-34,-31,-1,30,31,-3,-37,-41,-21,-25,-9,12,16,0,-16,-17,-2,-9,-12,-7,-1,1,7,15,20,12,-8,-21,-18,1,27,45,41,33,-1,-30,-34,-5,39,66,50,46,6,-35,-42,-13,34,66,48,45,10,-30,-44,-21,19,46,33,33,10,-19,-33,-23,0,18,9,9,4,-4,-11,-14,-15,-14,-20,-23,-7,13,20,6,-20,-40,-45,-48,-19,26,53,33,-14,-53,-54,-60,-23,33,68,53,-4,-53 },
{ -3,-9,-4,23,57,68,57,33,1,-14,-21,-6,24,41,34,21,11,-1,-24,-35,-36,-33,-28,-18,22,24,7,-12,-35,-57,-57,-38,11,21,33,38,23,-6,-21,-12,-18,-20,4,39,52,43,32,31,-27,-44,-41,-13,12,24,36,44,1,-16,-34,-42,-41,-31,-6,23,37,38,22,-6,-37,-49,-37,-6,36,49,49,43,14,-18,-27,-15,-1,-2,12,36,44,22,-1,-6,-36,-57,-48,-10,29,36,16,1,-36,-60,-67,-39,3,23,15,1,-2,-15,-29,-29,-8,8,5,-4,39,45,27,1,-7,-3,-4,-8,58,78,60,22,-5,-10,-10,-11,45,62,53,19,-8,-15,-13,-11,2,9,10,-5,-17,-16,-8,-6,-44,-48,-36,-27,-20,-8,3,4,-65,-77,-54,-29,-9,8,17,15,-57,-61,-35,-6,13,24,29,23,-25,-18,8,26,30,30,25,18,10,27,46,45,31,16,7,1,30,51,59,42,10,-13,-21,-20,29,43,43,15,-22,-41,-43,-34,9,15,7,-17,-43,-52,-42,-30,-15,-19,-25,-37,-44,-33,-15,-5,-27,-36,-36,-33,-19,7,28,30,-23,-28,-23,-8,19,51,69,55,-4,-2,6,18,40,64,65,46,14,19,21,18,18,16,6,-13,17,21,11,-9,-34,-57,-75,-83 },
{ -39,-60,-70,-48,-16,5,9,3,-8,-22,-31,-19,8,21,13,2,38,50,43,36,33,21,3,-9,41,59,47,28,9,-7,-18,-21,-6,-11,-25,-32,-33,-29,-23,-14,-40,-57,-58,-45,-23,-7,5,12,-19,-17,-3,17,29,28,29,29,20,40,53,57,42,22,15,20,23,29,29,17,-6,-25,-27,-6,-2,-17,-34,-40,-47,-55,-44,-20,-13,-32,-47,-37,-24,-21,-18,-6,1,-7,-7,15,39,39,25,18,20,19,21,43,66,62,43,26,21,18,9,17,32,31,19,11,12,0,-23,-29,-24,-21,-22,-15,3,-11,-36,-50,-53,-53,-47,-33,4,-3,-19,-32,-41,-45,-43,-30,10,15,13,8,1,-7,-12,-9,10,23,35,42,42,33,24,19,-3,9,29,47,54,51,44,36,-22,-18,1,20,33,37,38,35,-34,-40,-29,-18,-7,1,10,16,-29,-38,-38,-39,-43,-37,-24,-9,-7,-10,-17,-32,-48,-54,-43,-27,21,30,24,1,-25,-39,-39,-28,36,55,54,37,13,-6,-12,-13,28,44,51,48,40,29,20,11,-3,0,6,18,33,42,39,28,-38,-50,-54,-36,-5,23,35,26,-40,-62,-72,-67,-38,-7,10,5,3,-3,-16,-27,-27,-18,-16,-20,61,80,75,53,25,1,-19,-32 },
{ 7,-13,-7,20,9,-32,-27,19,19,-19,-20,30,23,-38,-30,36,40,-19,-41,31,46,-30,-33,50,66,-14,-62,24,60,-28,-41,53,93,-7,-86,7,65,-28,-58,43,92,-3,-87,2,70,-22,-61,29,76,-7,-76,14,80,-8,-58,22,48,-12,-56,17,69,-4,-47,20,22,-13,-37,11,38,-14,-41,21,2,-9,-12,9,11,-23,-27,24,-11,0,13,14,-5,-21,-12,29,-22,3,27,14,-14,-18,1,28,-33,1,30,7,-23,-11,10,19,-35,-1,27,0,-25,-4,15,7,-36,-1,25,-5,-27,4,19,-7,-34,4,28,-8,-27,11,23,-19,-32,9,32,-10,-29,17,28,-30,-29,12,32,-14,-32,21,33,-36,-28,14,32,-17,-36,25,37,-41,-28,15,33,-20,-38,28,43,-42,-30,13,33,-22,-41,29,48,-41,-31,13,34,-22,-43,28,49,-40,-34,11,35,-20,-46,23,48,-39,-36,10,38,-14,-48,17,45,-37,-40,8,43,-7,-47,13,44,-33,-42,5,43,-1,-43,8,40,-29,-44,-1,42,4,-41,3,37,-22,-45,-4,41,8,-37,-2,34,-16,-44,-6,40,12,-34,-6,29,-8,-41,-7,35,14,-29,-11,22,-2,-35,-8,28,12,-25,-13,17,2,-23,-3,22,9,-21,-13,13,3 },
{ 64,23,-37,-25,30,37,-7,-47,75,23,-60,-48,33,52,-10,-65,67,12,-68,-49,35,53,-3,-54,36,3,-43,-25,30,41,6,-21,-2,-9,-1,18,16,-6,-3,17,-32,-24,28,51,-6,-59,-24,45,-44,-30,35,55,-18,-80,-36,61,-28,-29,20,50,-5,-67,-27,69,3,-14,-3,26,13,-28,-11,62,34,3,-27,-6,18,2,-3,36,57,14,-44,-30,20,22,-5,-2,58,21,-44,-41,18,33,-9,-34,54,22,-37,-37,19,40,-6,-53,31,15,-23,-26,19,44,-1,-58,6,4,-9,-10,18,39,7,-48,-17,-7,1,-2,7,28,13,-33,-36,-14,11,3,-7,10,16,-14,-42,-14,24,10,-20,-9,14,4,-43,-6,39,17,-30,-27,9,17,-40,1,51,25,-37,-43,3,27,-43,1,57,31,-40,-50,-1,33,-48,-7,50,32,-34,-49,0,37,-50,-15,40,29,-25,-37,5,37,-46,-20,29,26,-16,-23,10,32,-39,-19,19,18,-8,-8,14,19,-22,-13,6,7,-4,4,14,2,1,0,-1,-7,-4,13,11,-21,24,18,-6,-21,-7,21,9,-40,45,34,-11,-35,-9,30,11,-55,51,38,-17,-46,-8,43,19,-56,46,28,-27,-51,-6,52,34,-43,29,12,-34,-49,-3,55,43,-25 },
{ 42,31,-4,-39,-44,-7,31,41,38,32,-2,-37,-38,-4,34,46,6,3,2,0,-2,3,13,16,-33,-39,-3,39,41,7,-24,-29,-39,-47,-11,41,51,1,-49,-58,3,-7,-6,8,11,-7,-30,-37,49,39,4,-25,-28,-4,19,22,50,47,3,-38,-39,3,52,66,12,7,-8,-22,-26,-2,39,59,-31,-35,-9,12,5,-11,-5,12,-47,-43,0,44,38,-11,-44,-37,-29,-27,10,52,48,-5,-53,-60,-2,-2,10,31,33,1,-37,-47,24,17,-3,-8,1,5,-4,-15,39,23,-19,-44,-29,8,27,24,40,26,-23,-60,-43,9,48,51,36,25,-16,-51,-43,7,54,59,18,19,-1,-26,-26,4,36,43,-4,5,13,7,-2,1,7,7,-27,-12,22,35,21,-3,-24,-33,-47,-29,21,50,36,-6,-48,-65,-52,-41,11,49,38,-4,-48,-71,-47,-40,0,33,30,2,-29,-48,-27,-27,-6,12,12,6,-1,-11,0,-1,-4,-10,-12,3,25,30,29,30,7,-25,-34,-5,39,58,48,49,15,-33,-53,-16,40,64,44,49,16,-33,-58,-28,27,51,23,26,10,-21,-43,-25,9,21,-12,-9,0,1,-5,-6,-7,-16,-47,-42,-9,28,43,24,-17,-53,-60,-57,-11,47,73,48,-17,-73 },
{ -7,-5,8,30,52,60,60,45,-7,-12,-9,0,9,23,34,35,3,-4,-16,-33,-55,-57,-38,-12,14,19,18,4,-30,-62,-60,-36,5,12,31,53,53,23,-2,-7,-16,-31,-22,17,55,66,51,31,-7,-31,-58,-55,-25,6,27,28,29,27,-6,-41,-60,-56,-30,-10,38,58,64,37,-5,-35,-40,-28,-11,2,35,57,48,24,3,-9,-60,-73,-47,-3,34,42,32,14,-41,-65,-64,-46,-12,15,24,17,19,16,-1,-23,-32,-17,0,4,58,79,60,17,-20,-28,-18,-11,45,65,60,28,-6,-20,-18,-14,-5,3,12,8,-2,-6,-7,-8,-52,-57,-39,-15,-1,9,10,3,-59,-73,-49,-19,6,21,20,11,-33,-37,-19,0,15,24,21,10,10,19,25,23,17,16,11,3,42,55,51,28,6,-4,-6,-10,42,52,37,7,-17,-24,-21,-20,18,16,0,-24,-37,-32,-22,-18,-11,-22,-32,-41,-36,-21,-6,-6,-26,-38,-39,-32,-14,9,21,14,-21,-26,-17,-1,20,38,39,25,-3,2,16,31,45,48,37,17,12,22,33,39,35,26,8,-8,11,17,21,13,-4,-24,-38,-39,-2,-3,-9,-23,-43,-60,-58,-46,-12,-16,-18,-23,-32,-31,-18,-2,-3,-2,7,18,29,43,59,63 },
{ -43,-64,-69,-50,-24,3,20,21,-9,-15,-12,-7,2,10,18,21,40,59,67,54,29,3,-6,0,31,44,40,27,3,-27,-36,-26,-25,-47,-63,-49,-28,-25,-27,-18,-29,-58,-66,-38,8,29,24,18,28,31,30,40,52,46,38,33,44,62,56,36,6,-13,-10,3,-2,-4,-12,-32,-57,-62,-51,-25,-37,-50,-45,-36,-26,-24,-21,-12,-25,-23,-7,20,46,47,34,20,8,21,31,45,59,61,43,26,23,31,20,7,6,10,7,3,16,15,-12,-43,-52,-43,-32,-23,6,-1,-27,-52,-62,-51,-39,-29,-3,-3,-11,-17,-18,-14,-13,-14,-6,3,16,32,41,36,23,10,-10,-1,22,50,61,55,39,24,-18,-15,1,24,36,32,24,17,-18,-26,-26,-17,-13,-12,-10,-3,-4,-15,-30,-38,-46,-46,-35,-17,20,16,-3,-22,-38,-46,-35,-16,36,41,29,12,-6,-16,-11,0,29,39,37,34,28,19,18,21,4,6,14,27,39,36,32,32,-28,-37,-28,-6,17,24,20,22,-41,-57,-56,-36,-15,-9,-10,-3,-18,-33,-38,-32,-24,-30,-34,-26,27,28,19,12,4,-18,-35,-31,51,67,59,50,36,13,-8,-14,26,28,20,20,25,23,17,13,-30,-52,-67,-60,-31,-1,17,27 },
{ 23,-6,-42,-20,40,47,-7,-58,37,9,-47,-41,32,60,-7,-78,39,29,-22,-42,10,45,5,-54,2,26,19,-18,-21,16,22,-4,-57,-12,47,17,-44,-27,24,40,-75,-42,44,49,-33,-57,7,55,-39,-31,30,54,-4,-48,-13,37,30,2,-7,21,16,-17,-18,6,88,24,-61,-38,23,22,-10,-17,84,24,-72,-60,27,50,2,-30,46,9,-49,-33,34,52,6,-32,0,-7,-14,2,30,32,-4,-29,-35,-13,18,25,14,-5,-18,-20,-47,-16,32,34,-9,-35,-21,1,-45,-13,38,29,-26,-46,-13,27,-37,-7,38,23,-32,-47,-1,50,-30,-4,33,18,-31,-37,11,63,-19,-2,22,11,-23,-25,16,58,-7,-1,8,1,-12,-8,12,34,7,2,-6,-10,-2,8,6,1,21,8,-17,-18,8,24,1,-33,30,13,-22,-25,13,38,-2,-60,35,15,-25,-28,15,45,2,-70,33,16,-24,-30,14,51,11,-66,26,12,-23,-32,7,49,23,-50,16,10,-15,-30,-5,37,27,-29,3,8,-1,-20,-18,14,25,-3,-13,4,17,-1,-23,-10,15,19,-33,-5,36,23,-24,-35,-2,31,-52,-20,42,46,-15,-53,-17,37,-64,-33,39,55,-2,-51,-25,35,-60,-38,27,52,9,-38,-21,31 },
{ -20,18,26,-24,-42,5,37,12,-40,22,49,-17,-48,12,39,-5,-71,11,62,-11,-49,22,36,-36,-81,1,62,-13,-50,32,35,-61,-62,12,59,-22,-48,41,44,-63,-17,24,35,-37,-44,41,47,-45,14,20,10,-31,-32,29,37,-22,28,4,-13,-6,-2,9,12,-3,35,-23,-40,22,35,-14,-22,10,40,-36,-51,39,53,-34,-48,20,56,-25,-54,39,60,-39,-58,31,65,-9,-51,29,52,-38,-49,47,63,-2,-51,11,39,-33,-39,56,43,-7,-45,4,31,-26,-28,55,27,-8,-34,6,31,-15,-24,44,12,-8,-17,12,29,-9,-23,25,-3,-9,-7,13,23,-5,-24,7,-11,-6,3,8,12,-2,-21,-10,-15,2,13,4,1,3,-11,-17,-18,7,20,-5,-15,7,5,-14,-25,8,24,-16,-32,10,22,-9,-30,9,29,-20,-42,13,35,-6,-34,11,38,-17,-48,15,43,-8,-39,13,47,-9,-47,16,46,-15,-46,9,52,-4,-48,13,45,-26,-52,0,47,-1,-47,9,40,-36,-58,-6,44,1,-44,8,36,-45,-53,-5,43,3,-40,10,35,-46,-46,1,43,3,-36,14,38,-39,-32,8,39,-1,-33,16,42,-25,-16,12,28,-12,-40,8,41,-11,-6,11,14,-21,-42,0,34,-3 },
{ -72,-42,26,60,41,-3,-33,-37,-66,-36,26,47,16,-15,-27,-35,-14,10,20,-12,-38,-14,11,4,40,59,20,-51,-66,1,56,43,37,43,8,-44,-48,20,65,36,-20,-21,-15,-4,12,31,13,-24,-54,-49,-16,39,61,20,-44,-80,-16,-17,1,35,37,-6,-56,-79,41,35,8,-10,-18,-19,-11,-10,44,40,-1,-41,-43,-6,48,73,4,0,-10,-23,-28,3,61,98,-27,-31,-4,16,7,-8,14,54,-31,-33,5,46,34,-24,-47,-15,-12,-21,5,49,39,-28,-71,-56,16,-2,-6,24,32,-12,-55,-52,35,10,-21,-9,15,6,-16,-23,45,16,-32,-37,-2,23,24,16,41,19,-32,-48,-11,30,44,41,30,16,-21,-39,-16,23,43,41,10,11,-2,-18,-14,7,21,21,-11,3,16,8,-9,-11,-6,-8,-31,-9,26,29,1,-20,-27,-32,-48,-19,30,40,11,-19,-34,-38,-53,-28,24,39,15,-10,-22,-28,-51,-26,18,28,11,-2,-3,-5,-29,-12,14,10,-6,0,18,22,3,12,11,-15,-32,-6,32,39,31,36,11,-32,-51,-15,32,40,43,42,8,-37,-52,-13,26,22,24,23,1,-26,-23,4,12,-11,-11,-12,-9,1,21,30,1,-49,-38,-41,-19,20,54,52,-6,-72 },
{ 7,10,22,32,44,44,33,18,0,-7,-8,-3,5,11,10,7,-2,-15,-28,-37,-45,-41,-30,-15,9,9,9,4,-14,-28,-23,-11,4,12,34,52,48,32,21,17,-12,-23,-13,8,22,27,22,23,-8,-25,-43,-52,-46,-31,-15,-4,25,31,14,-11,-27,-31,-25,-16,24,39,52,51,44,24,5,-5,-24,-30,-12,15,33,35,18,4,-41,-56,-59,-46,-25,-3,4,1,3,2,-8,-29,-36,-22,-9,-2,45,65,65,29,-4,-10,-4,-1,24,49,55,37,13,4,4,3,-33,-29,-13,-1,3,5,8,5,-67,-84,-62,-33,-11,1,5,1,-47,-59,-46,-22,-5,3,3,-3,19,25,23,20,13,7,1,-5,70,83,70,43,18,4,-2,-8,60,69,46,18,-3,-9,-7,-7,7,-3,-22,-34,-32,-21,-9,-3,-42,-63,-68,-59,-35,-13,1,6,-46,-58,-49,-26,1,16,19,15,-12,-7,12,31,45,43,28,13,21,37,54,60,56,33,10,-3,22,35,40,36,18,-7,-24,-24,3,0,-9,-23,-41,-52,-48,-32,-15,-26,-40,-55,-62,-56,-35,-11,-11,-17,-24,-27,-22,-3,18,31,8,13,21,31,45,60,63,60,11,19,32,41,48,43,33,21,-15,-15,-17,-23,-35,-51,-61,-61 },
{ 60,70,56,29,12,-13,-43,-45,12,7,-10,-12,1,2,-18,-31,-42,-68,-74,-52,-6,31,31,12,-24,-21,-3,-3,5,34,43,32,17,56,97,57,-9,-24,-7,7,-4,13,38,18,-41,-69,-48,-18,-29,-60,-62,-34,-8,-6,-8,-7,13,-22,-47,-14,52,79,53,21,60,52,18,8,35,45,31,3,26,40,18,-18,-40,-47,-43,-38,-42,-25,0,-12,-46,-60,-50,-34,-66,-48,8,35,20,10,12,11,-44,-22,27,49,49,46,50,45,5,16,22,14,3,13,30,38,36,30,0,-36,-53,-40,-15,3,33,22,-15,-50,-62,-54,-38,-24,22,10,-11,-25,-22,-16,-22,-25,3,-1,-1,15,35,40,16,-9,-16,-17,1,33,66,69,40,3,-24,-28,-11,19,46,51,28,-1,-18,-23,-20,-10,-1,2,-3,-15,3,0,-10,-25,-37,-40,-30,-22,24,28,16,-14,-42,-48,-31,-12,26,42,36,11,-20,-27,-9,13,7,21,34,25,7,2,17,36,-28,-22,2,16,15,16,27,44,-50,-53,-31,-7,8,10,15,26,-33,-41,-29,-10,-1,-6,-12,-10,11,7,7,9,5,-12,-35,-41,44,49,34,23,13,-1,-26,-40,38,32,12,0,4,16,10,-6,-7,-26,-48,-51,-22,23,39,28 },
{ -22,19,65,34,-33,-49,-5,39,-45,-11,48,39,-31,-53,3,51,-40,-42,-8,9,-12,-19,8,32,26,-10,-37,-13,24,28,4,-10,89,50,-30,-25,38,48,-10,-54,50,40,-22,-41,4,29,-15,-63,-49,-26,-5,-16,-17,5,5,-17,-94,-45,49,45,-13,-11,28,41,-57,-4,82,60,-27,-45,13,58,8,19,29,11,-41,-58,-15,37,49,8,-44,-39,-14,-8,-12,2,58,2,-66,-39,41,56,6,-21,53,6,-54,-20,69,77,11,-40,26,7,-25,-11,43,51,-4,-52,-2,1,-2,-7,0,-1,-22,-43,-25,-4,21,3,-28,-35,-25,-17,-45,-8,41,22,-34,-45,-10,24,-47,-11,46,37,-21,-38,11,59,-39,-11,37,35,-9,-23,23,73,-24,-8,21,21,-9,-20,16,61,-10,-8,1,0,-13,-20,-3,26,8,0,-12,-14,-11,-13,-18,-14,27,11,-15,-15,3,7,-18,-43,37,21,-15,-12,22,34,-4,-53,40,17,-21,-16,32,56,16,-48,29,7,-30,-31,17,55,25,-36,15,-3,-34,-40,-7,31,22,-19,3,-2,-15,-28,-18,5,13,-4,-6,4,18,8,-14,-21,-3,12,-16,3,39,43,-3,-35,-14,24,-37,-15,34,48,5,-37,-18,32,-54,-40,7,29,1,-34,-15,35 },
{ 67,58,-8,-68,-61,3,40,26,28,35,-2,-46,-28,26,40,17,-39,-31,1,22,34,26,-2,-32,-61,-64,7,60,42,-6,-44,-62,-5,-13,16,24,-9,-28,-28,-22,56,49,11,-30,-48,-17,36,55,39,22,-14,-34,-34,9,60,76,-21,-34,-19,15,30,14,-2,6,-36,-38,-5,43,58,-6,-70,-67,3,4,2,8,14,-9,-49,-60,34,37,6,-33,-24,8,18,8,19,30,5,-42,-35,20,60,56,-18,-3,7,-22,-33,8,53,54,-40,-20,12,9,-12,-7,8,16,-35,-14,24,37,14,-17,-37,-33,-21,-6,24,41,22,-15,-51,-57,-7,-6,5,20,19,-3,-35,-48,10,-2,-16,-10,5,13,3,-8,27,7,-27,-35,-8,25,38,31,37,19,-24,-43,-20,23,48,47,39,25,-11,-34,-24,8,35,37,18,18,3,-13,-15,-8,0,7,-10,-2,14,17,4,-18,-32,-29,-37,-26,11,39,27,-14,-45,-47,-52,-39,7,44,45,3,-35,-39,-34,-31,2,31,34,12,-9,-8,3,-3,-5,-2,-2,3,17,31,39,31,-3,-33,-44,-18,27,57,58,45,3,-42,-60,-28,25,57,32,28,2,-21,-30,-18,9,28,-16,-20,-5,19,28,12,-13,-31,-52,-58,-18,44,70,41,-26,-76 },
{ 52,-1,-40,8,35,-20,-35,25,59,-13,-63,19,59,-26,-45,42,62,-22,-76,24,74,-31,-55,50,48,-18,-56,31,59,-44,-56,52,16,-2,-14,21,27,-38,-41,44,-33,3,22,1,-10,-10,-2,24,-70,13,55,-27,-43,27,34,-12,-70,24,72,-38,-63,51,48,-53,-60,27,68,-38,-63,54,51,-76,-33,20,32,-39,-41,51,37,-72,-6,7,2,-20,-12,31,24,-40,20,4,-15,-1,13,9,8,-4,39,-5,-30,15,28,-15,-14,19,39,-18,-42,23,36,-37,-36,35,42,-22,-50,24,45,-42,-49,44,41,-16,-41,28,51,-34,-49,47,42,-10,-38,23,53,-24,-48,45,33,-8,-35,9,40,-17,-41,38,22,-5,-29,0,29,-8,-32,31,12,-1,-16,-3,18,-2,-22,22,2,2,-5,-6,6,1,-15,11,-3,6,6,-6,-3,4,-7,-3,-15,6,17,-5,-12,7,1,-10,-27,3,24,-3,-19,10,14,-13,-37,0,31,-1,-26,11,25,-16,-38,1,33,-3,-34,10,32,-17,-37,3,36,-3,-40,8,35,-22,-35,5,37,-5,-43,5,34,-28,-34,9,39,-4,-42,6,38,-24,-28,9,35,-4,-36,9,36,-21,-24,2,22,-6,-27,11,31,-21,-16,-4,9,-5,-15,13,23,-22 },
{ 6,-4,-23,-54,-83,-81,-70,-44,9,11,14,14,14,1,-12,-15,-2,3,24,59,96,94,64,32,-9,-24,-36,-41,-19,10,25,17,12,4,-23,-68,-100,-86,-54,-32,16,38,59,61,27,-8,-23,-23,-22,-17,16,67,93,73,41,19,-20,-54,-77,-70,-35,5,24,21,37,27,-12,-59,-81,-57,-24,-8,37,68,81,69,25,-6,-13,-13,-33,-23,15,54,58,36,12,0,-53,-84,-76,-39,-5,9,4,2,10,-12,-40,-44,-33,-18,-9,0,60,69,43,15,-4,-10,-5,2,40,56,49,33,15,4,4,5,-19,-16,-7,1,4,1,2,5,-54,-61,-46,-23,-8,-3,-3,2,-29,-36,-22,-7,-1,2,-2,-1,16,20,22,18,11,7,0,-2,39,48,39,22,7,0,-3,-2,27,27,17,0,-8,-7,-6,-3,-7,-15,-19,-24,-20,-8,-1,0,-24,-34,-34,-26,-14,0,8,7,-16,-19,-15,-7,8,16,13,6,4,9,14,18,24,20,9,-1,15,24,24,24,20,7,-5,-11,9,12,8,1,-5,-15,-20,-17,-2,-7,-15,-23,-24,-25,-20,-8,-9,-11,-15,-17,-13,-7,3,12,-2,0,1,6,15,21,28,28,4,6,9,15,23,16,16,14,-3,-1,-3,-3,-7,-22,-28,-27 },
}
},
...
2,0,1,6,15,21,28,28,4,6,9,15,23,16,16,14,-3,-1,-3,-3,-7,-22,-28,-27 },
}
},
쪋쪋
const int8_t g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ] = {
{ /0
{
{ 2,3,4,5,6,7,8,8,9,9,10,10,10,10,10,10,10,9,9,9,8,8,8,7,7,6,6,5,5,4,4,4,4,6,8,10,12,13,15,16,17,18,19,19,20,20,20,20,20,19,19,18,18,17,16,15,14,14,13,12,11,10,9,9,5,8,11,14,17,19,22,24,25,27,28,29,30,30,31,31,31,30,30,29,28,27,26,25,24,23,21,20,19,17,16,15,6,9,13,17,20,23,26,29,31,34,35,37,38,39,40,40,41,41,40,40,39,38,37,36,34,33,31,29,27,26,24,22,6,10,14,18,21,25,28,31,34,37,39,41,43,44,46,47,47,48,48,48,48,47,46,45,44,42,41,39,37,35,32,30,6,9,13,17,21,24,27,30,33,36,39,41,43,45,47,48,49,50,51,52,52,52,52,51,50,49,47,46,44,42,40,37,5,8,12,15,19,22,25,28,31,33,36,38,40,42,44,46,47,49,50,51,51,52,52,52,52,51,50,49,48,46,44,42,4,7,10,13,16,19,22,25,27,30,32,34,36,38,40,42,43,44,46,47,48,49,49,50,50,50,49,48,48,46,45,43 },
{ -5,-7,-8,-9,-9,-9,-8,-7,-6,-4,-2,0,2,4,6,8,10,12,13,14,15,16,16,16,16,16,15,14,13,12,11,10,-8,-12,-15,-18,-19,-20,-19,-18,-16,-13,-9,-6,-1,3,7,12,16,19,23,26,28,30,31,32,32,32,31,30,28,26,24,22,-12,-18,-23,-27,-31,-32,-33,-32,-30,-27,-23,-18,-12,-6,1,8,14,20,26,31,36,39,42,44,46,46,46,45,43,41,37,34,-14,-22,-28,-34,-39,-42,-44,-44,-43,-41,-37,-33,-26,-20,-12,-4,4,12,20,27,34,40,45,49,53,55,55,55,54,52,49,45,-14,-22,-30,-37,-42,-46,-49,-51,-52,-51,-48,-45,-40,-34,-27,-19,-11,-3,6,14,23,30,38,44,49,53,56,58,58,57,54,51,-13,-20,-28,-34,-40,-44,-48,-50,-52,-52,-51,-49,-46,-42,-37,-32,-25,-18,-10,-2,6,14,22,29,36,42,46,50,52,53,52,50,-10,-16,-23,-28,-34,-38,-42,-44,-46,-48,-48,-47,-46,-44,-40,-37,-32,-27,-21,-14,-7,0,7,13,20,26,31,36,39,42,43,42,-7,-12,-17,-22,-26,-30,-33,-36,-38,-40,-41,-41,-40,-39,-38,-35,-33,-29,-25,-21,-15,-10,-4,1,7,12,17,21,25,28,30,32 },
{ 6,8,11,14,17,20,22,25,26,28,29,29,29,29,28,27,26,24,23,21,19,17,16,14,12,10,9,8,6,5,3,2,8,12,17,23,29,34,39,43,47,50,52,53,53,53,52,51,48,46,43,40,37,33,30,27,23,20,18,15,12,10,7,4,7,12,18,24,31,37,43,49,54,58,61,64,65,65,65,63,61,58,55,51,47,43,39,34,30,26,22,18,15,11,8,4,4,7,12,17,22,27,33,38,43,47,51,53,55,56,56,56,54,52,49,46,42,38,34,30,25,21,17,13,9,6,2,-1,0,1,2,4,7,10,13,16,19,22,24,26,28,29,29,29,29,27,25,23,20,17,13,10,6,3,-1,-4,-7,-9,-12,-14,-3,-5,-6,-6,-6,-6,-6,-5,-4,-4,-3,-3,-2,-2,-2,-3,-4,-5,-6,-8,-10,-12,-15,-17,-20,-22,-25,-27,-29,-30,-31,-31,-5,-7,-10,-12,-14,-16,-17,-18,-19,-20,-21,-22,-23,-24,-26,-27,-28,-30,-31,-33,-35,-37,-39,-41,-43,-45,-46,-47,-48,-48,-48,-47,-5,-8,-11,-13,-16,-18,-21,-23,-25,-27,-29,-30,-32,-34,-36,-38,-40,-42,-44,-46,-48,-50,-52,-54,-55,-57,-58,-59,-59,-59,-58,-57 },
{ -9,-13,-15,-16,-15,-13,-9,-5,-1,3,6,9,10,11,11,10,8,6,3,0,-3,-7,-10,-13,-15,-17,-19,-19,-19,-19,-18,-17,-17,-24,-29,-32,-32,-29,-24,-16,-8,0,7,14,19,22,23,22,20,17,12,6,0,-7,-14,-21,-26,-31,-34,-37,-38,-38,-36,-34,-23,-34,-43,-47,-49,-46,-40,-31,-20,-9,3,14,23,29,34,36,35,32,26,19,10,1,-10,-20,-30,-38,-45,-50,-53,-54,-53,-51,-25,-39,-49,-56,-59,-58,-53,-44,-32,-19,-6,8,20,30,38,44,47,46,42,36,27,16,4,-10,-23,-35,-45,-53,-59,-63,-63,-62,-24,-37,-47,-55,-59,-59,-56,-49,-39,-27,-14,-1,12,24,35,43,49,52,52,48,42,33,22,9,-6,-19,-32,-44,-53,-59,-63,-63,-19,-30,-39,-46,-51,-52,-50,-46,-38,-30,-19,-8,3,14,25,34,42,47,50,50,48,43,35,26,14,1,-12,-24,-35,-43,-49,-52,-13,-22,-29,-35,-39,-41,-40,-38,-33,-27,-20,-12,-3,6,14,22,29,36,40,43,44,43,39,33,26,17,7,-4,-13,-22,-29,-35,-8,-14,-20,-24,-28,-29,-30,-28,-26,-22,-17,-12,-6,0,6,12,18,23,28,31,33,34,34,31,27,22,16,9,2,-5,-12,-18 },
{ 12,18,22,26,28,29,29,27,24,20,15,10,4,-2,-8,-13,-18,-21,-24,-26,-28,-28,-28,-26,-25,-23,-21,-18,-16,-13,-10,-7,19,28,36,44,49,53,54,52,49,43,35,26,16,6,-5,-14,-24,-31,-37,-42,-45,-47,-47,-46,-44,-41,-37,-33,-29,-24,-19,-14,18,28,37,46,53,59,62,63,61,56,50,41,30,18,6,-6,-17,-27,-35,-42,-47,-50,-51,-51,-49,-46,-42,-38,-33,-27,-21,-15,10,16,22,28,34,40,43,46,47,46,42,37,30,22,13,4,-5,-13,-20,-26,-31,-34,-36,-36,-34,-32,-29,-25,-21,-16,-10,-5,-2,-2,-1,0,2,4,7,9,11,12,12,12,10,8,6,3,0,-3,-5,-7,-8,-8,-8,-6,-4,-2,1,4,8,11,14,16,-11,-16,-20,-23,-26,-27,-27,-27,-26,-25,-23,-21,-19,-17,-15,-12,-9,-6,-3,0,4,9,13,18,23,28,32,36,39,41,42,42,-14,-21,-28,-34,-39,-43,-46,-47,-48,-48,-47,-45,-42,-39,-35,-30,-25,-19,-13,-6,2,9,17,25,33,40,46,51,56,59,60,59,-13,-20,-27,-33,-39,-44,-48,-51,-53,-54,-54,-53,-51,-49,-45,-41,-36,-30,-24,-17,-9,0,9,17,26,35,42,49,55,59,61,62 },
{ -2,-3,-7,-12,-19,-26,-33,-40,-46,-50,-52,-53,-52,-49,-46,-42,-37,-32,-28,-23,-20,-17,-15,-13,-11,-10,-9,-9,-8,-7,-6,-6,4,5,1,-5,-14,-24,-36,-48,-58,-67,-72,-74,-74,-72,-67,-60,-53,-45,-38,-31,-26,-21,-18,-16,-14,-13,-13,-13,-12,-12,-11,-11,13,18,20,17,12,3,-7,-19,-31,-40,-47,-51,-53,-51,-47,-41,-34,-26,-18,-12,-6,-3,-1,0,-1,-3,-5,-7,-9,-10,-11,-12,18,27,33,37,37,35,30,23,16,9,4,0,-1,0,3,8,14,20,26,30,34,35,34,32,27,22,16,10,4,-1,-5,-9,14,23,30,36,40,42,42,40,38,36,35,34,34,36,40,44,49,54,58,62,64,64,61,56,50,42,33,23,14,6,-2,-7,5,9,13,16,18,19,20,20,20,20,20,21,23,26,29,34,38,43,47,50,52,52,51,47,41,34,25,16,7,-2,-9,-15,-5,-6,-7,-8,-10,-12,-13,-15,-16,-17,-17,-17,-16,-14,-12,-9,-5,-2,2,5,7,8,8,6,3,-1,-7,-13,-20,-25,-30,-33,-10,-15,-19,-24,-28,-32,-36,-39,-43,-45,-47,-48,-49,-49,-48,-47,-46,-44,-42,-40,-38,-37,-36,-37,-38,-40,-43,-46,-49,-52,-54,-54 },
{ -14,-19,-21,-21,-18,-15,-10,-5,-3,-1,-3,-5,-9,-13,-18,-22,-25,-26,-27,-25,-22,-17,-11,-5,1,7,11,15,18,19,20,20,-23,-33,-37,-38,-34,-26,-17,-6,2,7,9,6,0,-8,-17,-26,-34,-40,-42,-43,-39,-33,-23,-12,0,11,20,28,34,38,39,38,-29,-42,-49,-50,-45,-34,-19,-3,13,24,30,31,26,17,4,-10,-24,-36,-44,-49,-49,-43,-34,-20,-5,10,24,37,47,53,56,55,-31,-46,-54,-55,-49,-37,-20,0,21,39,51,57,56,50,37,21,3,-14,-28,-39,-45,-46,-40,-29,-13,3,20,36,49,59,64,65,-29,-43,-52,-54,-50,-39,-22,-3,19,38,54,64,69,67,60,47,31,13,-4,-20,-32,-39,-39,-34,-24,-10,6,22,38,50,58,62,-24,-37,-45,-48,-46,-39,-27,-12,6,23,38,50,58,61,58,51,40,27,11,-4,-18,-29,-35,-37,-33,-26,-14,-1,13,26,37,44,-17,-28,-36,-40,-40,-36,-29,-20,-8,4,16,26,34,39,40,37,31,23,12,0,-12,-22,-31,-36,-38,-35,-30,-21,-11,0,11,19,-11,-19,-26,-30,-32,-31,-27,-22,-16,-8,0,7,13,17,19,19,16,12,5,-2,-11,-19,-26,-32,-35,-37,-35,-31,-25,-17,-9,-1 },
{ 21,28,34,37,38,35,29,21,13,4,-4,-11,-15,-17,-15,-12,-7,-2,5,11,18,23,27,30,32,32,31,29,26,22,18,13,28,41,51,58,60,58,51,40,25,10,-5,-19,-29,-34,-35,-32,-25,-16,-5,6,18,28,37,44,48,50,49,47,43,37,30,23,23,35,45,53,58,57,52,42,28,12,-6,-22,-36,-45,-49,-48,-44,-35,-24,-11,3,16,27,36,43,46,47,45,42,36,29,22,7,12,17,22,25,27,26,22,15,5,-7,-19,-31,-39,-44,-46,-44,-40,-32,-24,-13,-4,5,12,17,20,20,19,17,13,8,3,-10,-14,-17,-17,-16,-14,-11,-9,-8,-9,-10,-12,-15,-17,-18,-19,-18,-16,-14,-11,-8,-6,-5,-5,-7,-10,-14,-18,-22,-25,-28,-30,-20,-29,-37,-41,-43,-43,-39,-33,-27,-20,-13,-6,0,6,11,16,19,22,23,23,22,18,12,4,-6,-17,-27,-38,-46,-53,-56,-57,-21,-31,-40,-46,-50,-50,-48,-42,-35,-26,-16,-5,7,17,28,37,44,50,53,54,53,48,40,30,17,2,-13,-28,-42,-53,-60,-63,-16,-25,-32,-38,-42,-44,-42,-39,-33,-26,-16,-6,5,17,28,38,48,55,61,64,65,63,58,49,38,26,11,-4,-19,-32,-42,-49 },
{ 6,5,1,-7,-18,-27,-34,-37,-36,-30,-20,-8,4,15,24,29,31,30,27,22,17,12,9,8,9,12,16,20,24,27,29,29,18,21,16,4,-13,-31,-47,-58,-60,-55,-42,-24,-3,16,31,42,46,44,38,29,19,10,4,2,4,9,17,26,35,42,47,48,35,45,44,34,16,-6,-29,-46,-57,-57,-47,-30,-8,13,32,44,49,45,35,21,4,-10,-21,-25,-24,-17,-4,11,27,40,51,56,45,61,66,61,47,28,6,-14,-28,-34,-30,-18,-2,16,32,43,46,41,27,8,-15,-36,-52,-62,-63,-57,-41,-22,1,21,39,50,38,53,61,59,51,37,21,5,-7,-13,-12,-6,6,19,32,40,43,38,26,7,-17,-40,-61,-75,-82,-78,-66,-47,-24,1,23,39,19,28,32,30,24,15,4,-6,-14,-18,-16,-11,-2,9,20,30,35,36,30,18,2,-17,-34,-48,-57,-59,-52,-38,-20,0,20,36,1,2,1,-2,-8,-15,-23,-29,-34,-35,-33,-28,-20,-11,0,11,19,25,27,24,18,10,0,-8,-15,-17,-14,-6,6,19,33,44,-8,-11,-15,-20,-26,-32,-38,-43,-46,-46,-44,-40,-34,-26,-16,-7,2,10,16,19,20,20,18,16,14,14,17,22,30,38,46,52 },
{ 24,32,37,39,38,36,32,29,26,23,20,16,11,5,-2,-10,-19,-28,-35,-41,-45,-45,-42,-38,-31,-24,-16,-8,-1,4,9,11,30,42,48,51,49,44,38,32,28,26,24,23,21,16,9,-1,-14,-28,-41,-52,-60,-63,-61,-56,-47,-36,-23,-10,2,12,19,23,24,32,36,34,27,18,8,-1,-6,-5,-1,6,14,19,21,19,11,0,-14,-28,-40,-47,-49,-46,-39,-27,-13,2,16,28,36,40,12,16,14,7,-6,-21,-37,-49,-57,-57,-49,-35,-17,1,17,29,35,34,27,16,5,-5,-12,-14,-11,-4,8,21,35,47,54,57,9,12,9,0,-14,-31,-50,-65,-77,-80,-76,-63,-44,-22,1,21,38,47,49,46,38,29,20,13,10,11,17,26,37,47,54,57,16,23,24,19,10,-3,-19,-34,-46,-54,-54,-49,-38,-24,-6,11,27,37,43,43,39,31,21,11,2,-3,-3,0,6,15,23,29,22,33,39,41,38,32,22,12,2,-6,-11,-12,-10,-4,3,12,20,25,28,27,22,14,3,-9,-20,-29,-35,-38,-37,-31,-24,-16,22,33,42,47,50,48,44,39,33,27,22,18,16,16,17,19,20,20,19,16,10,1,-9,-21,-33,-44,-52,-58,-61,-60,-56,-49 },
{ -25,-33,-38,-37,-32,-22,-10,3,15,23,25,23,16,8,-2,-12,-19,-23,-23,-19,-13,-4,6,16,26,33,37,39,38,35,29,23,-33,-46,-55,-57,-52,-39,-21,-1,20,35,43,43,35,21,4,-13,-29,-39,-42,-40,-31,-19,-3,13,29,42,51,56,56,53,46,36,-24,-35,-44,-48,-47,-39,-24,-5,16,34,46,50,47,34,15,-5,-26,-40,-49,-51,-47,-36,-22,-5,12,26,37,44,47,45,39,30,0,-3,-7,-11,-14,-14,-9,-1,10,21,30,36,36,31,20,6,-9,-22,-31,-36,-37,-34,-27,-18,-9,-1,6,10,11,10,6,1,22,29,32,31,26,19,12,7,3,2,3,4,5,6,5,4,2,1,0,0,0,0,-1,-2,-4,-8,-14,-19,-26,-31,-36,-39,31,44,51,52,48,38,26,12,-2,-14,-23,-29,-31,-30,-25,-17,-8,3,14,25,33,39,39,36,28,15,0,-17,-34,-48,-58,-63,28,41,49,51,48,40,27,11,-6,-22,-36,-46,-53,-55,-51,-43,-30,-15,2,20,37,50,58,59,55,44,28,7,-14,-33,-50,-59,19,28,35,38,37,31,21,8,-6,-21,-35,-46,-55,-60,-59,-55,-45,-33,-17,0,18,33,45,53,55,51,41,26,8,-10,-27,-39 },
{ 8,7,1,-5,-10,-11,-5,7,24,41,56,64,67,64,55,44,33,23,14,9,6,5,5,4,2,-1,-6,-12,-18,-24,-28,-30,18,16,7,-9,-24,-35,-35,-25,-3,22,46,64,73,72,61,46,28,12,1,-5,-6,-4,1,4,5,2,-5,-15,-26,-36,-44,-48,35,39,28,7,-19,-42,-56,-57,-47,-26,-1,19,31,32,22,7,-12,-27,-38,-40,-35,-24,-10,3,13,15,10,-1,-15,-30,-44,-52,51,63,58,40,13,-14,-37,-50,-51,-42,-26,-12,-3,-3,-12,-27,-45,-60,-68,-68,-57,-40,-16,8,28,39,39,31,15,-4,-24,-38,49,64,66,55,38,17,-1,-13,-17,-13,-4,6,12,12,4,-9,-26,-41,-51,-53,-47,-31,-8,18,42,57,63,58,45,25,2,-17,26,35,36,32,22,11,3,-2,0,8,19,30,39,43,41,33,21,8,-4,-11,-13,-8,4,20,37,49,54,52,42,25,5,-13,-2,-3,-6,-12,-19,-25,-28,-27,-21,-10,4,18,31,39,44,44,39,31,22,13,6,2,3,6,11,15,15,12,4,-8,-21,-33,-19,-26,-34,-42,-49,-55,-57,-56,-50,-41,-29,-17,-4,7,14,18,19,16,11,4,-2,-8,-13,-17,-20,-22,-26,-31,-38,-46,-54,-61 },
{ 34,41,39,30,15,-1,-15,-24,-30,-31,-31,-31,-33,-36,-39,-41,-40,-36,-28,-18,-5,8,20,28,33,32,27,18,7,-3,-12,-18,48,62,61,50,28,5,-15,-28,-33,-31,-25,-21,-20,-25,-32,-40,-46,-47,-40,-29,-11,8,26,41,50,50,42,27,10,-7,-22,-33,43,57,58,45,24,0,-19,-27,-24,-11,7,22,32,31,22,7,-10,-23,-28,-25,-14,3,23,40,52,53,44,26,4,-18,-38,-51,24,32,29,15,-6,-28,-43,-46,-34,-11,18,47,68,78,73,59,36,14,-5,-15,-16,-8,7,23,35,39,30,14,-9,-33,-55,-69,11,14,8,-7,-28,-49,-63,-67,-58,-36,-7,23,50,65,69,60,43,20,-2,-19,-29,-28,-19,-5,9,16,14,4,-14,-36,-57,-70,14,18,14,3,-14,-32,-47,-55,-54,-44,-26,-7,11,23,28,24,12,-4,-22,-37,-46,-47,-39,-26,-9,4,11,11,2,-12,-29,-43,22,31,33,29,20,8,-4,-12,-17,-16,-11,-4,2,6,7,3,-6,-18,-30,-40,-47,-47,-39,-26,-9,8,22,30,31,25,14,2,25,36,43,44,42,37,31,25,21,19,18,18,19,18,15,10,3,-6,-15,-22,-26,-26,-19,-9,5,20,34,45,51,51,46,37 },
{ 30,38,46,54,62,66,67,64,58,49,39,29,22,18,18,21,27,33,39,43,46,47,46,44,41,38,34,30,26,23,20,17,18,22,28,36,44,51,53,52,45,34,21,8,-3,-9,-10,-5,3,13,23,32,39,42,42,40,37,34,31,28,25,23,20,18,-7,-14,-18,-20,-18,-14,-10,-8,-11,-17,-26,-36,-45,-50,-51,-47,-39,-29,-19,-11,-4,-2,-2,-4,-6,-8,-8,-8,-6,-3,0,2,-16,-28,-38,-47,-51,-51,-47,-42,-37,-35,-35,-36,-37,-38,-37,-34,-30,-26,-22,-20,-21,-25,-30,-37,-43,-47,-47,-44,-39,-32,-24,-16,-3,-9,-16,-21,-25,-25,-21,-15,-7,1,8,15,21,24,28,30,32,32,31,26,19,10,-2,-13,-24,-31,-35,-35,-32,-25,-18,-11,13,15,15,15,14,15,17,21,26,32,38,43,48,52,55,57,58,58,56,53,47,41,33,26,19,14,12,12,14,17,20,21,15,20,23,24,24,23,23,21,20,19,17,16,14,13,11,9,7,6,5,4,3,3,4,5,9,13,19,26,33,39,43,42,8,11,12,12,11,8,5,0,-7,-13,-20,-27,-35,-42,-48,-55,-61,-65,-68,-69,-69,-67,-63,-56,-47,-36,-24,-11,3,14,23,27 },
{ -26,-32,-34,-30,-19,-5,10,20,25,22,11,-4,-19,-30,-35,-33,-23,-9,6,19,28,29,24,14,1,-12,-24,-33,-39,-39,-36,-29,-32,-42,-46,-43,-31,-11,12,33,45,45,32,9,-17,-39,-52,-53,-42,-21,4,27,44,51,47,34,15,-6,-25,-41,-51,-53,-49,-41,-18,-25,-32,-34,-28,-14,7,29,47,52,46,27,1,-26,-46,-55,-50,-32,-6,21,44,56,57,47,30,10,-10,-26,-36,-39,-36,-28,12,13,7,-2,-9,-10,-4,6,19,30,33,28,15,-3,-20,-31,-34,-27,-12,6,23,34,36,32,22,11,1,-5,-8,-5,1,8,39,48,45,33,15,-2,-16,-21,-21,-13,-4,4,9,10,7,3,0,-1,-1,1,2,0,-5,-12,-18,-19,-14,-5,8,23,38,49,47,62,62,51,30,5,-19,-37,-47,-47,-39,-26,-11,4,16,25,30,30,26,17,5,-11,-27,-43,-53,-54,-44,-26,-1,26,51,68,41,55,58,50,33,10,-14,-36,-51,-57,-54,-43,-27,-9,10,27,41,47,47,40,26,8,-15,-36,-52,-59,-54,-38,-15,14,43,63,27,39,42,39,27,11,-7,-25,-40,-47,-48,-42,-31,-16,1,19,34,45,50,48,41,28,11,-8,-25,-35,-36,-29,-14,7,30,49 },
{ -34,-37,-27,-10,7,16,16,6,-8,-19,-24,-20,-8,6,19,25,24,18,8,0,-4,-2,5,14,22,25,21,11,-4,-20,-36,-45,-52,-57,-41,-12,18,39,40,26,0,-24,-38,-37,-21,1,23,35,36,26,8,-9,-19,-17,-5,13,29,39,36,23,0,-27,-53,-70,-60,-67,-49,-13,27,55,62,46,14,-20,-44,-49,-36,-9,19,37,40,26,1,-26,-44,-47,-32,-7,22,42,47,37,12,-22,-56,-80,-55,-64,-47,-13,26,55,63,50,19,-16,-42,-51,-40,-14,17,39,46,33,5,-30,-59,-70,-60,-32,4,36,52,51,31,-3,-42,-72,-41,-47,-36,-10,19,41,47,36,11,-18,-41,-48,-39,-14,17,42,55,49,25,-9,-43,-63,-64,-44,-12,22,48,57,48,20,-17,-49,-21,-25,-17,-2,16,28,30,19,-1,-23,-40,-46,-38,-17,10,35,53,56,43,19,-10,-33,-43,-37,-17,9,33,47,46,30,2,-26,-4,-5,1,10,19,24,22,12,-4,-21,-35,-41,-37,-23,-3,18,35,42,40,27,10,-9,-22,-25,-19,-5,11,22,26,18,1,-17,5,7,11,17,22,24,21,12,0,-13,-24,-30,-30,-24,-12,2,14,21,23,18,9,-3,-13,-19,-19,-15,-8,-2,1,-2,-11,-21 },
{ -27,-33,-32,-25,-13,3,20,35,48,52,49,38,21,1,-20,-39,-55,-63,-64,-57,-45,-29,-10,7,20,28,32,31,26,21,15,10,-30,-39,-41,-37,-25,-9,9,27,43,53,55,50,36,17,-7,-30,-51,-65,-69,-65,-52,-34,-12,10,27,38,41,39,32,24,15,8,-9,-13,-16,-15,-13,-10,-8,-5,-2,2,7,10,12,11,8,1,-7,-14,-18,-18,-14,-5,7,19,28,31,29,22,13,3,-6,-11,17,23,27,29,27,19,5,-13,-32,-46,-52,-50,-39,-24,-5,12,27,37,41,41,40,38,34,30,23,14,3,-9,-21,-32,-37,-38,19,27,37,45,50,47,35,14,-11,-34,-51,-59,-57,-45,-25,-3,20,36,47,50,48,40,30,18,6,-7,-19,-30,-40,-46,-48,-45,-8,-8,-2,9,21,30,33,30,21,9,-4,-14,-19,-19,-14,-5,4,11,14,12,6,-3,-12,-19,-25,-27,-26,-23,-20,-16,-13,-9,-37,-48,-50,-44,-32,-18,-2,10,20,24,26,25,23,20,18,15,11,6,-2,-12,-24,-35,-44,-47,-44,-35,-19,-1,18,34,45,49,-45,-61,-70,-70,-63,-51,-36,-19,-3,10,21,28,34,36,34,30,24,17,6,-6,-19,-31,-39,-41,-37,-26,-7,16,41,63,79,86 },
{ -31,-35,-30,-15,5,23,35,36,26,6,-16,-33,-40,-34,-19,-2,12,18,15,4,-11,-25,-35,-37,-30,-16,2,19,34,43,45,39,-41,-50,-46,-31,-4,25,47,56,47,22,-10,-38,-52,-48,-27,1,26,40,38,23,0,-25,-45,-53,-48,-32,-8,17,38,52,57,51,-25,-34,-37,-31,-15,7,30,44,44,27,0,-28,-45,-44,-26,2,32,51,55,43,22,-5,-29,-44,-47,-37,-18,3,22,33,37,33,14,13,5,-5,-11,-10,-3,6,13,12,2,-12,-24,-27,-19,-3,17,32,38,35,24,10,-4,-13,-16,-14,-8,-1,2,1,-4,-10,50,58,50,30,5,-15,-27,-28,-21,-10,0,5,6,4,0,-2,-4,-6,-8,-10,-11,-8,-1,10,21,26,25,17,2,-18,-39,-53,57,70,64,43,13,-16,-37,-45,-39,-23,-1,18,32,37,32,20,2,-17,-34,-47,-50,-42,-22,4,31,49,53,44,21,-12,-46,-70,42,52,48,30,4,-22,-42,-51,-48,-31,-7,19,40,52,54,44,26,3,-23,-44,-57,-55,-39,-13,17,41,54,51,34,4,-32,-61,21,27,22,9,-9,-29,-44,-51,-50,-37,-17,6,28,43,50,48,38,21,0,-20,-35,-40,-34,-18,3,22,35,38,29,9,-18,-42 },
{ 41,52,62,67,70,66,59,48,35,21,8,-2,-9,-15,-19,-22,-26,-32,-37,-42,-46,-47,-48,-47,-46,-44,-43,-42,-41,-39,-34,-29,20,27,34,39,42,42,37,30,20,10,1,-5,-7,-6,-4,-3,-4,-8,-14,-19,-24,-27,-28,-28,-27,-28,-29,-31,-33,-34,-33,-30,-19,-26,-31,-32,-33,-32,-31,-31,-32,-31,-30,-24,-15,-4,9,20,27,29,29,26,25,24,25,27,30,30,27,22,16,9,3,-1,-25,-36,-44,-50,-51,-51,-48,-45,-40,-37,-32,-25,-16,-5,6,16,22,25,24,23,22,24,30,38,46,52,55,54,49,42,34,26,2,1,1,2,5,9,14,17,20,20,19,17,16,14,12,9,3,-5,-13,-21,-28,-30,-28,-21,-12,-3,5,10,14,14,13,11,18,24,30,36,43,49,54,57,57,55,49,43,35,28,20,11,1,-9,-19,-29,-38,-45,-49,-51,-51,-49,-46,-44,-42,-39,-35,-30,5,8,10,13,16,18,19,19,18,14,9,4,0,-4,-6,-6,-5,-4,-3,-1,1,2,2,1,-1,-5,-11,-17,-24,-29,-32,-31,-14,-18,-22,-26,-29,-33,-36,-40,-44,-48,-52,-55,-56,-55,-50,-42,-31,-19,-5,10,26,40,51,60,65,66,62,54,44,33,23,14 },
{ -34,-30,-12,9,21,18,1,-20,-35,-34,-18,4,24,31,25,10,-8,-21,-26,-21,-12,-3,-1,-5,-15,-24,-27,-23,-8,13,36,51,-52,-48,-17,21,47,49,25,-11,-41,-48,-29,4,37,53,48,26,-3,-24,-30,-21,-3,14,21,14,-3,-23,-35,-34,-17,13,48,73,-68,-65,-30,19,58,66,43,2,-38,-55,-42,-8,30,52,49,24,-11,-37,-42,-26,4,33,49,45,22,-8,-33,-43,-32,0,41,74,-68,-70,-39,6,45,59,41,5,-35,-55,-47,-19,16,39,37,12,-26,-56,-64,-46,-9,32,60,65,44,8,-28,-51,-51,-25,17,55,-48,-50,-29,3,32,42,29,1,-30,-45,-38,-13,18,40,42,21,-15,-47,-64,-56,-26,13,47,61,52,20,-19,-49,-59,-42,-7,29,-18,-18,-4,15,29,31,18,-4,-26,-35,-27,-5,23,46,54,45,20,-9,-31,-37,-26,-3,23,40,39,22,-6,-30,-42,-34,-8,20,3,6,15,23,26,22,8,-11,-28,-36,-30,-14,9,30,43,43,32,14,-5,-17,-20,-12,1,12,17,12,0,-11,-16,-9,8,27,9,14,18,21,19,12,-1,-16,-31,-38,-37,-28,-13,2,13,18,15,6,-5,-15,-21,-21,-15,-9,-5,-3,-5,-5,-3,6,19,33 },
{ -43,-46,-38,-20,1,19,29,31,24,9,-11,-32,-50,-60,-61,-52,-33,-10,15,37,53,57,50,35,14,-7,-23,-33,-37,-34,-27,-18,-43,-48,-39,-20,4,25,38,42,38,27,10,-9,-29,-45,-53,-52,-39,-19,9,35,56,65,60,44,19,-5,-25,-36,-39,-35,-25,-14,-17,-18,-12,-2,8,14,14,10,6,7,12,17,20,16,8,-1,-9,-9,-3,7,18,23,22,14,0,-13,-22,-25,-20,-9,5,15,14,20,26,28,23,9,-14,-37,-53,-52,-33,-4,28,50,58,52,35,16,-2,-16,-25,-30,-32,-32,-32,-31,-24,-13,4,24,42,51,17,25,34,39,37,21,-6,-36,-63,-72,-62,-37,-5,25,45,50,41,23,2,-17,-31,-38,-39,-36,-31,-25,-16,-3,15,34,51,59,-13,-12,-1,12,24,28,20,7,-10,-22,-25,-20,-11,0,8,10,5,-3,-11,-15,-14,-8,2,12,18,18,14,10,8,10,15,20,-47,-55,-50,-34,-13,7,23,32,35,33,29,23,16,8,-2,-13,-25,-32,-34,-28,-14,5,27,45,56,54,39,17,-8,-27,-38,-40,-56,-72,-73,-63,-44,-22,1,20,35,43,45,41,33,21,5,-12,-28,-39,-44,-40,-27,-8,14,34,47,48,35,11,-19,-48,-69,-77 },
{ -38,-48,-55,-53,-44,-27,-3,22,46,60,67,67,64,56,49,43,36,28,20,10,-2,-15,-28,-38,-46,-50,-51,-50,-47,-42,-35,-27,-17,-26,-34,-39,-37,-29,-15,1,17,26,28,24,17,11,8,8,10,12,13,11,4,-4,-13,-22,-28,-31,-32,-31,-29,-26,-21,-16,25,30,30,26,21,14,8,1,-7,-17,-29,-41,-53,-59,-59,-53,-43,-30,-17,-7,0,5,8,11,15,19,23,26,27,26,25,21,30,42,49,52,50,44,33,21,7,-6,-17,-26,-33,-37,-37,-34,-27,-20,-13,-8,-3,2,8,16,25,34,41,47,49,49,45,39,-10,-9,-6,-3,-1,-2,-3,-4,-3,0,7,17,27,35,41,43,43,39,32,21,11,2,-4,-7,-8,-6,-4,-3,-1,-1,0,0,-35,-44,-48,-50,-49,-49,-47,-44,-36,-26,-11,5,22,36,45,49,49,44,34,22,9,-1,-10,-16,-22,-28,-36,-44,-51,-56,-56,-50,-12,-15,-16,-16,-15,-16,-16,-17,-17,-15,-12,-7,-3,-1,-1,-4,-9,-14,-20,-24,-25,-22,-14,-5,3,7,5,-2,-13,-24,-33,-35,24,33,40,47,52,55,54,51,46,39,31,22,12,1,-12,-24,-38,-48,-54,-56,-51,-38,-19,4,29,48,60,65,62,53,41,30 },
{ -37,-39,-29,-9,13,27,28,13,-9,-28,-36,-27,-4,21,37,38,24,2,-19,-31,-30,-15,7,27,40,38,24,2,-21,-39,-50,-50,-42,-48,-36,-13,18,42,47,32,-1,-33,-52,-47,-19,18,46,54,38,8,-26,-48,-51,-35,-4,28,50,55,41,15,-15,-40,-56,-58,-20,-24,-22,-10,11,32,43,37,13,-18,-43,-49,-31,2,33,48,41,15,-18,-44,-55,-44,-19,11,36,45,39,21,0,-19,-30,-32,21,19,8,-3,-7,-2,9,16,14,2,-13,-23,-21,-7,10,22,25,16,0,-14,-23,-22,-13,-2,7,11,8,4,1,2,7,13,52,54,35,4,-24,-38,-34,-19,0,14,18,15,8,-1,-8,-12,-11,-6,2,12,22,25,22,10,-6,-22,-33,-33,-20,4,32,52,59,64,44,8,-29,-53,-56,-41,-13,16,36,43,35,16,-9,-32,-44,-41,-23,4,33,52,53,38,8,-25,-49,-58,-44,-11,31,65,48,53,38,8,-25,-48,-54,-42,-16,15,41,55,52,33,3,-28,-52,-59,-48,-21,12,39,53,47,25,-7,-36,-51,-47,-20,20,55,30,35,25,5,-18,-35,-40,-32,-13,11,34,49,52,40,17,-10,-36,-49,-48,-33,-9,15,31,35,25,6,-14,-29,-30,-14,13,40 },
{ 39,30,7,-15,-22,-8,14,31,30,11,-14,-28,-23,-3,20,33,30,15,-2,-12,-10,3,16,21,13,-4,-23,-33,-25,-1,32,57,54,42,3,-36,-51,-34,6,38,43,18,-21,-48,-48,-21,14,37,36,14,-14,-31,-27,-5,22,36,28,3,-29,-50,-45,-12,36,76,65,52,5,-44,-68,-50,-4,40,57,34,-11,-46,-53,-27,13,41,40,12,-26,-51,-49,-20,20,48,49,22,-21,-54,-61,-29,26,76,63,55,14,-34,-59,-47,-4,39,59,43,3,-33,-42,-19,20,51,52,23,-21,-56,-63,-36,11,52,66,45,-1,-45,-63,-42,9,61,46,41,13,-21,-40,-31,0,32,46,31,-3,-34,-43,-23,14,46,57,37,-3,-41,-59,-43,-3,40,66,55,18,-26,-53,-44,-4,41,20,17,0,-18,-25,-16,6,26,31,16,-13,-41,-51,-39,-9,22,41,37,13,-18,-40,-39,-16,16,40,41,19,-13,-36,-35,-8,27,-1,-5,-13,-19,-16,-5,12,26,28,16,-7,-30,-43,-38,-19,6,24,29,19,-1,-19,-26,-20,-3,12,16,8,-8,-20,-19,-3,21,-10,-13,-17,-17,-11,1,15,27,30,23,8,-8,-19,-19,-9,6,19,25,22,12,-1,-9,-10,-6,0,3,0,-6,-9,-6,5,21 },
{ 25,29,39,51,64,72,76,74,71,65,62,57,52,45,36,27,21,21,25,31,38,41,42,41,39,38,37,34,31,26,20,14,-7,-14,-13,-6,3,8,7,1,-7,-12,-12,-9,-6,-6,-11,-18,-24,-24,-18,-9,0,5,6,5,4,5,6,8,9,8,6,3,-22,-36,-42,-40,-37,-36,-44,-55,-68,-72,-69,-57,-44,-34,-31,-34,-38,-39,-36,-29,-25,-23,-27,-32,-37,-39,-36,-32,-27,-22,-18,-16,-1,-5,-3,5,15,21,18,10,-1,-5,-2,9,23,34,36,32,25,20,18,20,20,18,9,-1,-12,-19,-21,-20,-16,-12,-9,-8,5,7,14,26,41,51,54,50,44,40,42,48,56,59,56,47,37,29,26,29,34,37,37,33,28,24,22,22,25,27,26,22,-11,-14,-14,-10,-5,-3,-4,-10,-16,-20,-21,-19,-17,-17,-23,-32,-42,-49,-51,-46,-37,-26,-17,-10,-4,1,5,11,16,22,23,21,-9,-13,-16,-18,-21,-24,-30,-37,-43,-47,-47,-44,-41,-38,-39,-42,-47,-51,-52,-49,-44,-37,-31,-26,-24,-23,-23,-24,-22,-19,-16,-12,12,15,18,19,20,19,16,13,11,11,15,21,29,36,42,46,48,50,52,53,55,55,53,47,38,27,14,0,-12,-19,-23,-22 },
{ -4,1,14,29,39,36,21,-3,-30,-48,-54,-46,-27,0,32,61,85,93,86,64,35,4,-22,-37,-41,-34,-22,-8,1,3,2,0,-22,-21,-8,12,29,37,30,13,-10,-29,-40,-43,-37,-24,-5,18,40,53,52,38,14,-13,-35,-47,-45,-33,-15,1,11,12,7,1,-27,-33,-30,-21,-10,-1,5,8,13,18,22,21,12,-3,-20,-31,-37,-35,-32,-31,-33,-36,-37,-31,-17,0,16,28,31,23,10,-2,2,-1,-6,-12,-20,-28,-32,-28,-12,14,43,63,65,49,19,-12,-39,-51,-50,-42,-29,-16,-3,11,27,39,45,44,33,15,-5,-19,33,39,40,34,19,-2,-25,-40,-45,-32,-8,17,34,36,27,12,-1,-7,-2,9,21,31,38,40,41,37,30,17,0,-20,-38,-45,15,23,33,42,42,34,17,-4,-23,-35,-37,-33,-27,-23,-19,-15,-8,2,15,28,36,36,28,15,-1,-14,-23,-31,-37,-41,-42,-39,-39,-43,-33,-13,8,23,31,30,22,10,-3,-14,-24,-29,-30,-27,-20,-9,3,13,16,10,-4,-22,-40,-49,-49,-38,-22,-3,14,23,-71,-87,-85,-68,-43,-16,8,25,36,39,35,28,19,11,5,2,3,7,12,15,13,5,-7,-21,-33,-35,-24,-3,27,57,82,95 },
{ -63,-68,-61,-40,-12,16,40,52,53,39,14,-13,-33,-36,-28,-14,-3,-3,-14,-33,-50,-58,-53,-37,-13,11,30,43,52,54,51,45,-37,-41,-35,-22,-6,11,26,36,39,31,9,-17,-34,-35,-18,8,31,40,30,7,-19,-39,-43,-33,-14,5,20,29,34,35,34,30,20,29,34,31,21,5,-9,-16,-16,-14,-15,-22,-28,-25,-10,14,39,53,55,43,26,10,2,3,6,8,3,-6,-17,-24,-27,-24,34,50,58,53,32,1,-28,-45,-46,-32,-13,1,6,4,0,-3,-3,-2,-1,1,4,9,17,26,30,25,9,-14,-38,-55,-61,-57,-10,-2,8,13,5,-11,-30,-39,-33,-11,18,43,56,50,31,5,-24,-44,-56,-57,-49,-33,-13,7,22,27,21,9,-5,-16,-21,-20,-49,-52,-42,-28,-17,-14,-15,-16,-9,4,22,39,48,47,35,18,-3,-19,-27,-28,-23,-17,-10,-6,-2,1,4,9,18,31,42,47,-42,-46,-35,-16,3,16,21,20,16,9,2,-4,-10,-14,-18,-17,-12,-2,14,29,42,45,37,19,-4,-24,-35,-32,-16,13,43,62,-13,-12,0,18,38,52,56,51,38,19,-4,-27,-48,-62,-68,-64,-49,-26,4,33,56,67,61,39,7,-25,-51,-63,-58,-36,-5,22 },
{ -23,-32,-35,-21,9,36,43,23,-12,-36,-36,-11,22,38,28,-2,-35,-48,-36,-7,20,30,18,-9,-34,-42,-29,-3,21,33,31,19,-7,-23,-37,-32,0,39,56,37,-11,-52,-57,-24,27,61,54,14,-36,-60,-47,-6,37,56,40,1,-39,-55,-42,-10,21,35,30,14,36,20,-11,-28,-15,20,47,39,-3,-47,-64,-36,17,58,63,26,-28,-59,-49,-7,43,68,56,16,-28,-47,-36,-6,20,26,10,-13,69,58,15,-25,-35,-12,21,33,13,-22,-44,-35,1,37,48,24,-20,-50,-47,-15,25,48,41,11,-21,-32,-15,13,31,22,-11,-46,70,60,16,-32,-56,-43,-7,22,29,13,-8,-17,-7,12,23,15,-5,-22,-25,-10,9,15,4,-19,-36,-29,1,36,52,31,-19,-66,49,41,5,-37,-59,-51,-19,16,35,33,16,-2,-11,-10,-4,1,3,6,11,18,20,11,-12,-38,-50,-35,3,44,62,42,-11,-64,32,27,3,-25,-41,-35,-11,17,38,39,25,4,-16,-28,-30,-23,-9,7,24,37,39,25,-2,-30,-45,-34,-2,34,53,39,-3,-49,22,21,8,-8,-17,-14,2,21,35,37,25,6,-15,-32,-39,-37,-26,-10,10,26,32,25,6,-15,-29,-26,-8,16,30,23,-5,-37 },
{ -58,-42,0,40,53,33,-2,-24,-23,-1,23,32,22,1,-16,-20,-12,-2,4,4,3,4,8,9,1,-16,-35,-43,-31,2,43,72,-82,-65,-7,49,68,41,-10,-47,-47,-15,23,41,29,1,-21,-25,-12,3,9,5,1,5,16,26,22,-1,-32,-54,-48,-11,44,86,-74,-58,-8,43,59,29,-21,-56,-57,-22,17,34,21,-8,-28,-25,-4,13,14,-1,-18,-19,1,29,44,30,-5,-41,-54,-29,23,69,-32,-21,9,37,39,13,-21,-40,-29,3,31,34,11,-20,-34,-20,14,37,33,3,-35,-53,-37,3,42,52,29,-10,-41,-40,-8,31,9,15,23,23,9,-13,-28,-23,3,34,50,38,2,-34,-48,-26,19,54,61,29,-21,-58,-62,-30,17,47,47,20,-14,-32,-24,-2,27,29,21,3,-22,-41,-43,-25,10,41,51,34,-6,-46,-64,-48,-5,39,62,51,12,-30,-51,-41,-9,24,39,31,9,-12,-19,-13,32,32,19,-4,-31,-47,-46,-25,9,37,48,34,0,-37,-60,-56,-28,10,39,45,29,0,-24,-31,-21,-1,16,20,14,1,-8,-9,28,31,21,3,-17,-30,-28,-12,14,37,47,40,17,-10,-32,-37,-24,-2,20,31,28,13,-5,-16,-18,-11,-1,5,5,1,-3,-4 },
{ 32,43,57,70,81,81,71,53,30,10,-6,-16,-24,-29,-34,-36,-38,-36,-35,-37,-42,-48,-52,-51,-48,-42,-39,-39,-44,-48,-49,-45,-12,-16,-15,-9,-2,2,1,-6,-14,-19,-17,-12,-6,-2,0,2,6,11,15,15,10,3,-2,-2,3,10,14,12,2,-9,-19,-23,-21,-35,-48,-57,-61,-59,-56,-52,-45,-33,-17,0,13,20,23,24,27,32,38,41,40,35,32,32,38,45,52,54,50,41,30,20,27,27,22,16,12,11,12,13,15,19,23,26,23,17,6,-5,-14,-17,-16,-14,-14,-16,-19,-21,-19,-14,-6,1,7,12,15,14,30,36,40,41,44,46,48,47,43,37,29,20,10,-1,-12,-23,-32,-36,-35,-32,-29,-28,-30,-34,-40,-46,-50,-51,-49,-40,-29,-19,-18,-22,-26,-27,-26,-24,-21,-20,-22,-26,-30,-32,-30,-25,-17,-10,-2,5,12,20,29,37,42,45,42,33,20,8,-2,-6,-5,-4,-23,-29,-34,-36,-35,-34,-34,-33,-35,-37,-39,-37,-30,-18,-4,9,20,25,26,25,24,26,32,39,46,47,45,40,35,32,30,27,13,18,24,29,35,38,39,38,35,31,27,25,26,28,31,32,28,19,4,-15,-35,-51,-60,-62,-59,-53,-46,-37,-27,-17,-7,0 },
{ -58,-52,-25,11,37,35,12,-15,-32,-25,-6,7,3,-17,-39,-43,-25,5,33,43,33,11,-7,-7,13,41,61,59,35,-5,-44,-63,-49,-47,-19,17,43,42,14,-19,-35,-23,11,39,40,14,-21,-40,-30,1,34,44,27,-8,-39,-47,-26,10,42,53,35,-4,-48,-72,-2,-2,6,17,25,20,1,-23,-37,-24,7,39,52,35,4,-21,-23,-3,22,32,19,-13,-45,-61,-55,-29,-1,18,19,2,-23,-38,42,40,21,1,-10,-11,-9,-11,-16,-17,-11,0,8,7,-3,-13,-16,-9,3,12,13,7,0,-6,-9,-10,-8,-4,4,14,20,23,50,40,6,-30,-47,-34,-3,24,35,22,-1,-22,-29,-22,-9,2,6,0,-12,-20,-18,0,28,50,56,37,5,-22,-27,-5,33,60,37,24,-13,-50,-63,-43,1,44,65,52,17,-18,-34,-24,4,34,47,35,2,-33,-52,-42,-4,37,58,43,-1,-48,-69,-51,-2,44,35,27,-2,-33,-46,-31,4,38,54,40,4,-32,-50,-38,-4,37,65,61,28,-17,-54,-60,-36,3,34,33,3,-38,-64,-54,-14,30,37,37,20,-1,-12,-7,10,27,31,16,-15,-47,-64,-58,-29,8,39,48,32,1,-29,-42,-30,-3,27,38,29,8,-7,-3,21,48 },
{ 39,32,9,-17,-34,-30,-10,18,42,48,34,6,-31,-59,-71,-58,-23,18,55,71,65,38,0,-31,-50,-50,-36,-16,2,14,19,18,39,35,12,-16,-36,-38,-22,2,27,41,38,23,-4,-33,-51,-52,-30,4,39,59,57,34,0,-30,-45,-42,-26,-6,12,21,22,16,13,12,5,-3,-7,-6,-5,-8,-13,-14,-7,6,20,25,20,10,0,-2,-1,0,-2,-10,-18,-22,-17,-3,12,23,26,19,6,-4,-24,-27,-20,-3,21,40,41,21,-16,-49,-60,-45,-7,33,57,59,39,10,-18,-39,-48,-47,-33,-13,11,32,42,40,24,0,-24,-38,-28,-36,-37,-21,9,39,58,51,22,-17,-48,-54,-36,-4,25,38,30,9,-15,-30,-34,-25,-10,9,26,36,36,25,5,-20,-43,-52,15,5,-13,-26,-24,-9,13,29,32,22,5,-7,-11,-9,-6,-6,-12,-18,-17,-7,8,24,32,32,23,9,-5,-14,-20,-21,-17,-12,67,64,35,-3,-35,-48,-42,-25,-2,16,28,31,28,17,2,-16,-31,-35,-25,-4,23,41,46,32,5,-25,-46,-49,-34,-3,32,54,82,88,65,25,-18,-47,-57,-51,-32,-9,14,29,35,30,16,-3,-21,-29,-24,-8,13,29,32,19,-8,-37,-56,-55,-31,10,56,89 },
{ -33,-28,-13,6,22,33,41,41,25,-9,-52,-86,-97,-77,-43,-12,5,6,6,15,38,64,82,77,55,26,1,-11,-15,-14,-12,-12,-28,-25,-14,-5,-3,0,11,30,41,33,4,-24,-34,-17,15,37,35,12,-16,-27,-14,14,37,39,18,-8,-26,-29,-22,-14,-9,-8,5,13,21,13,-14,-42,-53,-37,-4,20,27,22,23,38,61,72,58,20,-25,-54,-60,-42,-24,-19,-32,-46,-47,-31,-8,9,15,11,13,33,53,55,27,-15,-47,-53,-35,-13,-3,-7,-14,-12,0,12,15,3,-17,-28,-26,-12,1,1,-11,-20,-14,6,31,44,41,27,-39,-24,8,35,38,21,3,-3,8,21,23,8,-18,-40,-51,-49,-38,-25,-10,6,27,44,51,43,25,12,13,25,36,33,15,-6,-78,-79,-53,-24,-5,-2,-4,2,19,39,49,46,29,6,-11,-20,-19,-11,2,15,27,33,27,12,-7,-17,-15,-7,-6,-21,-47,-69,-35,-34,-19,-4,1,-6,-18,-24,-22,-10,4,14,18,16,14,12,14,16,16,15,8,-4,-20,-36,-47,-42,-25,-4,4,-7,-35,-60,36,50,64,70,63,43,15,-12,-33,-42,-41,-36,-28,-20,-10,0,9,15,16,13,3,-10,-25,-34,-33,-17,12,45,67,68,48,22 },
{ 34,9,-27,-37,-9,33,50,27,-16,-41,-32,0,21,14,-14,-37,-37,-13,16,29,23,8,5,18,37,40,19,-14,-36,-25,13,50,59,23,-37,-66,-36,24,58,36,-20,-55,-41,6,43,38,0,-37,-40,-12,23,32,11,-21,-32,-11,26,42,21,-25,-58,-48,4,58,83,47,-23,-65,-45,16,56,39,-16,-52,-37,15,58,53,12,-27,-30,5,43,47,9,-43,-70,-47,6,41,32,-14,-57,-54,-3,57,72,47,-11,-48,-33,15,48,34,-14,-46,-33,11,44,36,-7,-46,-43,1,51,64,28,-32,-69,-54,4,53,58,18,-29,-39,-2,52,29,12,-21,-37,-20,15,35,21,-17,-38,-25,11,36,22,-22,-62,-66,-27,28,56,40,-8,-47,-43,3,49,62,31,-14,-32,-10,32,-6,-16,-28,-27,-6,20,28,11,-19,-32,-15,20,47,42,8,-30,-46,-28,10,38,36,6,-25,-31,-7,22,31,10,-25,-44,-29,5,-13,-17,-16,-5,16,31,29,6,-22,-35,-23,6,35,44,29,3,-15,-12,5,21,23,7,-12,-18,-9,5,11,-1,-20,-29,-17,6,-5,-6,0,12,27,34,26,4,-23,-39,-37,-20,1,13,10,-1,-12,-13,-6,2,4,-2,-10,-13,-8,2,9,8,4,5,16,31 },
{ -67,-78,-79,-68,-46,-19,9,32,48,50,44,34,26,20,16,16,15,14,13,11,9,6,3,-2,-11,-23,-42,-62,-78,-83,-79,-64,-2,-2,0,3,9,14,18,18,12,4,-7,-16,-22,-23,-20,-15,-11,-9,-7,-5,-2,2,7,14,20,20,13,0,-13,-20,-20,-15,43,57,63,61,52,36,16,-4,-24,-35,-40,-39,-33,-25,-17,-11,-7,-7,-10,-13,-15,-15,-11,-2,12,27,39,47,53,57,60,58,-3,0,0,-4,-11,-19,-25,-28,-26,-18,-5,10,26,36,38,37,32,27,21,15,6,-7,-19,-27,-30,-28,-21,-11,3,19,35,44,-32,-39,-46,-49,-50,-44,-34,-20,-3,12,26,35,39,34,22,9,-2,-5,1,10,18,19,14,4,-9,-22,-35,-46,-53,-51,-42,-27,6,7,8,10,13,19,26,32,35,33,26,14,-1,-19,-37,-52,-61,-61,-49,-33,-12,5,19,30,38,43,40,28,8,-12,-25,-30,19,25,29,33,36,37,37,34,26,15,1,-11,-22,-27,-28,-23,-17,-10,-5,-3,-5,-9,-13,-11,-1,16,35,47,49,38,23,9,-12,-15,-17,-19,-20,-21,-24,-28,-33,-39,-42,-40,-31,-15,8,34,60,78,84,75,52,20,-15,-44,-62,-63,-48,-30,-12,-3,0,-1 },
{ 26,16,-3,-19,-20,-7,14,31,34,18,-10,-39,-55,-43,-6,42,81,84,51,-6,-58,-79,-65,-24,21,44,43,25,4,-7,-7,-2,26,18,-3,-21,-26,-17,-1,15,24,22,7,-16,-39,-47,-30,6,47,63,43,-1,-47,-69,-54,-15,28,47,38,12,-13,-21,-14,-3,10,7,0,-4,-2,0,-5,-14,-17,-6,14,31,32,12,-13,-27,-25,-13,-5,-5,-9,-8,4,23,37,33,10,-18,-36,-31,-10,11,-15,-17,-11,6,28,38,22,-13,-47,-52,-21,27,64,66,33,-12,-49,-57,-39,-11,18,37,44,41,27,4,-22,-41,-41,-21,13,39,-18,-26,-28,-12,20,45,47,20,-25,-53,-51,-21,18,38,33,6,-23,-32,-21,3,25,33,25,7,-15,-30,-38,-34,-19,7,36,52,22,7,-18,-32,-22,4,29,38,24,0,-20,-25,-19,-10,-5,-4,-3,4,15,26,26,12,-12,-34,-42,-34,-13,7,20,24,21,15,72,59,17,-28,-53,-46,-18,15,37,39,26,8,-8,-18,-22,-17,-4,12,27,31,21,-2,-28,-42,-34,-5,31,55,52,20,-24,-55,84,80,41,-10,-51,-63,-48,-19,12,30,33,23,7,-8,-18,-18,-10,3,14,16,6,-12,-29,-34,-20,11,45,64,51,7,-52,-96 },
{ 61,63,45,12,-26,-49,-51,-26,17,50,63,48,17,-16,-40,-47,-45,-41,-38,-31,-13,13,43,67,77,67,44,15,-15,-35,-45,-43,15,19,15,3,-15,-31,-37,-28,-4,19,27,18,-1,-16,-17,-6,9,14,6,-7,-15,-11,2,17,24,21,9,-6,-19,-26,-27,-23,-47,-51,-37,-12,15,30,30,18,1,-11,-22,-30,-35,-26,-5,24,53,64,56,34,7,-14,-28,-37,-44,-45,-41,-30,-11,9,26,32,-32,-42,-37,-13,21,50,56,42,15,-7,-18,-19,-15,-10,-5,-1,5,8,7,5,3,2,-3,-11,-22,-30,-27,-14,9,35,55,60,37,30,15,2,0,2,-2,-11,-23,-24,-9,15,37,43,31,2,-33,-55,-62,-51,-27,-1,22,34,36,30,23,16,10,8,7,7,63,61,37,8,-16,-29,-36,-42,-44,-39,-20,5,31,46,44,27,0,-20,-26,-20,-6,7,16,20,22,24,22,14,-7,-34,-58,-69,21,16,0,-16,-22,-16,-4,6,11,9,2,-5,-9,-10,-10,-7,0,12,27,39,43,30,5,-20,-37,-32,-15,4,10,-2,-28,-49,-27,-37,-45,-45,-30,-3,29,55,69,66,45,14,-19,-45,-58,-57,-40,-15,15,38,45,31,-2,-37,-62,-61,-33,7,43,61,56,38 },
{ 54,38,0,-37,-45,-17,24,45,31,-6,-33,-27,4,31,32,6,-25,-32,-14,12,26,15,-13,-33,-30,-1,37,56,45,5,-41,-66,49,38,0,-40,-53,-27,21,50,35,-11,-48,-44,-5,35,42,12,-28,-40,-19,17,41,32,-5,-39,-46,-21,21,51,48,14,-33,-62,5,6,1,-12,-22,-12,14,34,27,-7,-37,-37,-7,28,38,15,-22,-36,-21,12,40,39,13,-17,-35,-29,-8,13,22,13,-6,-20,-49,-33,1,25,24,10,-2,-2,2,0,-6,-6,2,15,19,8,-9,-19,-17,-7,6,12,12,10,6,-3,-13,-21,-18,-4,16,30,-72,-48,8,50,51,15,-28,-44,-29,0,22,23,8,-9,-17,-11,5,17,15,-4,-27,-37,-23,10,42,43,14,-25,-47,-30,15,55,-57,-34,19,58,52,9,-40,-59,-36,9,44,46,14,-28,-51,-40,1,43,57,33,-15,-53,-54,-17,35,59,38,-9,-48,-47,-3,45,-35,-17,20,44,35,-3,-42,-53,-27,21,60,61,25,-26,-63,-61,-20,33,67,59,16,-32,-55,-36,8,41,40,7,-30,-38,-12,27,-20,-10,11,23,13,-13,-39,-44,-21,18,52,56,30,-14,-50,-59,-35,6,41,47,24,-12,-37,-35,-10,17,25,12,-10,-18,-5,19 },
{ 38,5,-35,-35,7,46,44,3,-29,-18,21,43,26,-11,-29,-12,22,32,13,-15,-23,-2,23,22,-4,-27,-24,8,40,36,-4,-51,62,16,-48,-63,-12,45,44,-11,-62,-50,7,46,26,-28,-55,-30,22,40,12,-32,-44,-11,32,37,-2,-43,-47,-5,44,50,1,-61,80,34,-38,-59,-12,47,53,-3,-60,-49,13,57,36,-25,-58,-29,33,55,20,-37,-58,-17,43,61,19,-40,-59,-21,37,56,13,-52,61,25,-34,-50,-7,47,54,8,-40,-31,24,63,41,-18,-52,-24,41,68,31,-34,-65,-29,40,74,41,-23,-58,-34,23,52,22,-36,26,1,-37,-44,-10,28,30,-6,-43,-33,11,40,22,-27,-58,-34,24,53,30,-27,-65,-43,16,55,40,-13,-52,-39,6,36,19,-26,12,-1,-18,-17,6,27,21,-10,-37,-29,7,32,23,-14,-42,-33,7,35,29,-6,-37,-33,2,31,26,-8,-34,-27,5,27,15,-19,6,1,-3,4,20,29,19,-5,-23,-15,12,35,33,9,-15,-20,-1,19,25,12,-5,-7,6,18,14,-4,-17,-8,13,25,13,-16,-4,-7,-8,-2,7,10,1,-16,-27,-21,-1,17,20,7,-11,-20,-15,-4,3,1,-3,-3,2,5,0,-9,-13,-5,9,15,3,-19 },
{ -47,-55,-49,-31,-8,20,51,76,90,83,62,36,12,-3,-15,-24,-30,-31,-28,-22,-15,-8,0,7,14,24,36,47,59,66,69,62,0,1,5,5,-4,-13,-16,-17,-18,-24,-32,-37,-32,-22,-12,-4,0,3,5,7,8,7,3,-3,-10,-15,-17,-17,-14,-8,-1,3,27,42,54,52,32,3,-23,-41,-52,-55,-54,-42,-22,1,19,29,30,29,27,25,23,20,15,8,-2,-12,-24,-37,-50,-57,-59,-52,-24,-19,-7,2,3,0,4,16,31,40,42,42,42,41,33,21,3,-12,-19,-21,-18,-15,-9,0,11,22,30,31,24,13,0,-10,-41,-46,-44,-41,-39,-34,-20,4,29,39,36,24,9,-4,-16,-26,-34,-37,-36,-29,-23,-22,-23,-23,-18,-5,14,33,48,53,49,36,19,26,31,29,19,7,-2,-5,-7,-14,-29,-44,-52,-52,-43,-29,-10,8,25,39,48,48,36,17,-8,-28,-38,-39,-32,-23,-14,-7,23,33,44,48,45,34,22,12,3,-5,-14,-19,-17,-7,6,19,30,34,33,31,31,33,35,32,23,9,-7,-21,-31,-35,-35,-30,-40,-46,-43,-38,-33,-29,-24,-19,-11,-4,6,16,28,39,46,44,28,4,-27,-56,-76,-81,-69,-45,-16,9,27,38,41,37,30,22 },
{ -29,-15,11,27,22,-2,-27,-33,-15,17,44,43,12,-36,-72,-68,-20,40,82,79,38,-18,-56,-59,-31,5,30,34,21,0,-17,-23,-30,-18,7,26,25,6,-17,-30,-24,-3,24,41,33,0,-38,-54,-30,14,50,53,20,-24,-51,-48,-17,16,32,29,13,-4,-15,-17,-8,-5,-2,1,2,4,10,12,0,-19,-29,-16,11,31,32,16,-2,-10,-12,-15,-22,-24,-14,5,25,31,18,-2,-17,-16,-6,7,24,22,3,-21,-35,-24,13,49,51,12,-40,-66,-46,3,45,57,34,-2,-33,-47,-37,-10,24,49,52,31,-7,-38,-46,-26,10,36,28,31,19,-10,-43,-48,-19,27,59,48,5,-37,-50,-26,8,28,24,2,-19,-25,-13,10,31,37,24,-2,-31,-47,-41,-10,27,48,-17,-1,20,22,1,-26,-37,-24,3,23,25,15,3,-2,-3,-7,-13,-14,-6,8,21,24,12,-9,-28,-34,-25,-8,11,22,23,16,-73,-51,0,45,55,30,-10,-39,-45,-27,0,23,34,29,10,-13,-31,-29,-7,21,38,30,0,-34,-52,-37,3,43,61,38,-11,-51,-89,-74,-19,39,70,62,26,-15,-41,-43,-23,5,26,29,15,-8,-27,-29,-11,14,31,27,2,-27,-40,-22,18,55,62,27,-39,-95 },
{ 33,37,48,58,58,49,39,36,39,40,36,32,36,46,55,57,53,52,54,57,57,49,38,26,16,8,1,-5,-9,-8,-3,3,-26,-38,-36,-30,-31,-41,-50,-50,-40,-34,-38,-47,-48,-41,-34,-36,-44,-49,-46,-37,-29,-27,-28,-27,-22,-17,-13,-12,-12,-9,-2,5,-22,-30,-22,-11,-8,-14,-19,-13,3,12,9,-1,-6,-4,0,-5,-19,-29,-31,-27,-22,-22,-24,-21,-12,-1,8,10,8,6,9,14,13,19,36,52,56,48,40,41,50,55,50,40,35,41,52,57,52,49,50,55,56,50,38,28,24,26,28,24,14,5,2,5,-7,-7,-1,2,-6,-21,-35,-39,-37,-36,-43,-52,-57,-52,-41,-34,-32,-31,-25,-15,-5,-3,-7,-13,-17,-14,-11,-12,-17,-23,-24,-19,-13,-17,-17,-20,-25,-33,-35,-28,-17,-8,-6,-9,-10,-7,-4,-6,-15,-27,-35,-37,-34,-33,-31,-30,-25,-19,-12,-8,-5,-4,-2,0,5,7,12,15,17,19,27,38,51,59,61,58,58,62,68,68,63,53,43,37,34,33,32,30,29,28,27,26,26,27,30,29,-2,-1,1,3,1,-1,-2,-4,-9,-16,-30,-43,-53,-55,-50,-42,-36,-32,-27,-21,-13,-7,-2,0,-3,-8,-15,-21,-24,-23,-16,-10 },
{ 68,60,23,-26,-63,-64,-35,9,45,48,23,-14,-47,-57,-49,-27,-3,15,31,41,47,41,21,-13,-51,-70,-67,-41,-3,30,50,50,22,21,9,-9,-22,-22,-8,12,28,28,15,1,-8,-6,3,11,11,3,-7,-9,-2,10,17,10,-7,-21,-23,-11,7,21,25,18,-48,-48,-30,0,32,46,38,12,-20,-38,-37,-18,9,32,47,47,30,2,-28,-49,-56,-40,-13,13,33,39,40,34,21,0,-26,-43,-31,-38,-27,-1,31,49,37,4,-33,-50,-40,-18,1,7,3,0,1,3,3,-3,-14,-19,-15,-4,9,21,27,26,13,-13,-44,-65,43,36,18,3,-5,-8,-13,-18,-15,4,31,49,42,7,-35,-57,-51,-19,20,46,55,44,24,1,-20,-30,-31,-20,-4,6,5,-4,55,50,23,-7,-31,-43,-42,-34,-13,14,42,58,50,21,-15,-36,-35,-19,3,17,21,19,13,6,-8,-24,-36,-35,-14,20,51,62,3,-2,-12,-18,-18,-10,0,5,4,0,-6,-11,-17,-18,-11,4,25,32,20,-8,-40,-53,-40,-10,21,31,19,-3,-16,-8,14,33,-37,-42,-35,-17,11,39,59,62,45,15,-20,-49,-64,-57,-29,12,53,70,55,16,-32,-60,-51,-15,32,61,58,28,-10,-38,-46,-37 },
{ 48,26,-17,-44,-32,9,38,24,-19,-43,-27,15,40,23,-18,-41,-23,16,39,23,-15,-36,-21,19,50,40,-1,-44,-58,-29,22,58,48,31,-13,-46,-35,11,49,42,-9,-46,-33,17,52,37,-13,-48,-32,15,49,34,-15,-51,-41,4,48,49,11,-36,-56,-32,18,55,7,6,-6,-21,-20,2,30,32,1,-30,-30,4,35,29,-7,-37,-31,6,40,35,0,-34,-39,-14,18,29,15,-8,-20,-12,7,22,-44,-22,12,23,9,-9,-11,0,4,-3,-11,-9,1,6,-1,-11,-13,-4,8,12,8,2,-1,-6,-10,-11,-4,10,22,17,-3,-24,-70,-31,34,62,35,-16,-46,-29,11,32,23,-3,-21,-16,5,24,23,3,-23,-31,-14,21,42,27,-14,-44,-37,4,45,42,-5,-55,-64,-25,39,67,34,-27,-62,-43,13,50,41,0,-38,-40,-6,37,52,25,-25,-58,-45,6,53,54,6,-45,-54,-13,41,53,8,-52,-49,-20,29,47,18,-32,-60,-38,16,54,46,1,-48,-58,-27,22,56,42,-5,-49,-55,-14,36,52,22,-26,-49,-24,22,42,17,-31,-29,-13,17,29,9,-24,-39,-22,20,51,47,11,-32,-50,-32,6,39,40,12,-22,-36,-17,18,36,23,-9,-30,-23,6,24,12,-16 },
{ -36,3,41,30,-16,-42,-20,14,15,-18,-38,-6,48,63,27,-18,-30,-4,21,15,-10,-17,4,25,15,-20,-39,-11,39,57,22,-34,-60,-9,49,44,-16,-48,-11,48,52,-5,-54,-36,24,47,5,-46,-49,-3,37,23,-21,-37,-3,38,33,-18,-57,-35,26,55,14,-55,-69,-18,44,39,-25,-61,-20,51,69,10,-50,-42,12,34,-7,-55,-46,16,63,37,-30,-59,-18,45,58,4,-53,-47,12,47,11,-61,-46,-2,50,42,-19,-60,-32,25,39,-4,-45,-26,33,55,13,-38,-33,28,74,47,-30,-72,-35,38,68,23,-40,-44,11,54,29,-37,-27,4,41,35,-5,-28,-10,22,20,-20,-48,-22,35,57,19,-36,-49,-4,44,35,-22,-59,-37,22,52,16,-41,-51,-5,41,35,-15,-22,-10,5,-1,-17,-16,13,39,29,-11,-39,-22,22,43,14,-34,-54,-27,15,26,1,-23,-13,22,39,12,-31,-43,-12,21,17,-19,1,1,-4,-18,-30,-20,10,35,29,-4,-30,-22,10,31,20,-9,-26,-13,15,27,17,-1,-2,13,22,9,-10,-12,9,25,11,-26,28,29,18,-1,-16,-15,3,19,15,-8,-27,-25,-4,14,14,3,-7,-1,12,15,4,-12,-19,-16,-11,-13,-13,-3,17,26,9,-23 },
{ 44,39,24,8,-10,-34,-65,-82,-69,-29,17,46,57,54,50,42,24,4,-11,-15,-14,-16,-24,-29,-19,2,27,44,53,58,66,69,1,-10,-18,-8,17,33,27,11,7,17,23,11,-13,-31,-32,-25,-19,-21,-20,-7,11,17,6,-9,-14,-8,-2,-7,-20,-28,-20,-2,-14,-36,-51,-39,-3,33,50,46,40,37,24,-7,-45,-60,-49,-25,-6,-4,-5,6,27,37,31,18,12,14,11,-9,-41,-65,-67,-48,39,28,6,-7,-9,-10,-23,-40,-44,-31,-13,-6,-5,6,32,58,62,40,9,-6,-7,-4,-9,-18,-13,9,31,37,27,14,11,18,37,39,36,32,26,12,-13,-36,-43,-28,-6,9,13,18,30,38,27,0,-26,-34,-26,-18,-23,-38,-47,-35,-12,9,21,30,45,56,-37,-44,-37,-20,0,13,17,19,27,40,45,36,10,-15,-31,-39,-46,-53,-48,-25,13,44,53,42,21,4,-8,-21,-35,-41,-30,-9,-34,-41,-41,-32,-21,-11,-5,1,13,23,26,16,-5,-22,-29,-23,-13,-6,0,9,24,36,40,37,34,32,30,18,-4,-26,-36,-30,44,51,51,46,33,15,-4,-19,-28,-29,-27,-27,-26,-17,2,28,53,62,53,31,-2,-36,-64,-79,-74,-49,-13,17,33,34,29,24 },
{ -9,9,27,19,-14,-42,-43,-12,30,44,26,-13,-47,-47,-12,45,89,81,23,-49,-90,-74,-19,35,59,43,12,-11,-15,-8,-1,3,-30,-11,20,30,12,-13,-22,-9,14,27,22,5,-19,-36,-33,-7,27,39,13,-28,-50,-34,7,39,40,14,-16,-26,-16,-2,4,4,-30,-23,-7,7,13,16,18,9,-15,-32,-24,10,44,40,5,-33,-51,-37,-14,5,23,39,45,30,-6,-38,-48,-30,2,20,17,3,18,12,-5,-23,-23,1,32,38,-1,-51,-65,-27,38,71,52,3,-40,-43,-15,16,39,44,27,-3,-37,-51,-34,3,37,41,13,-17,47,43,16,-23,-48,-35,9,46,44,6,-32,-36,-15,8,12,2,-5,3,16,18,5,-15,-32,-36,-29,-11,16,41,50,27,-17,-49,-1,11,16,2,-26,-39,-25,7,34,39,26,9,-8,-24,-35,-30,-6,23,36,23,-10,-37,-40,-18,15,37,38,26,5,-16,-34,-41,-66,-42,5,37,34,5,-25,-35,-24,-1,21,32,25,2,-21,-27,-10,14,28,17,-9,-26,-16,16,47,46,14,-26,-51,-39,0,34,-79,-57,3,57,75,52,7,-33,-51,-42,-15,12,25,19,3,-7,-4,5,9,0,-17,-24,-10,16,34,22,-16,-56,-66,-28,42,101 },
{ 36,48,61,64,57,46,34,24,16,14,15,16,11,2,-9,-18,-30,-38,-47,-56,-64,-66,-63,-56,-49,-43,-38,-28,-17,-7,0,3,-35,-43,-43,-45,-48,-49,-45,-38,-31,-25,-17,-9,-2,1,5,13,23,35,42,45,45,46,48,49,45,38,29,23,20,17,14,11,-12,-16,-15,-14,-15,-10,0,10,14,8,3,-1,-5,-7,-9,-8,-3,7,14,17,18,20,25,27,25,21,15,9,3,-3,-8,-9,31,42,51,55,51,50,51,50,41,29,18,13,11,10,4,-5,-17,-27,-37,-48,-58,-63,-64,-62,-58,-54,-46,-36,-28,-26,-24,-21,-15,-16,-17,-23,-33,-41,-45,-45,-46,-46,-43,-33,-17,-1,10,17,21,22,25,28,30,31,30,26,20,17,20,25,29,29,26,18,-18,-21,-20,-21,-22,-22,-17,-11,-2,2,5,5,4,2,-2,-7,-8,-7,0,11,23,33,38,38,34,28,23,20,17,15,14,10,10,17,28,36,41,44,49,53,59,59,57,47,34,20,6,-7,-19,-26,-33,-39,-45,-48,-50,-50,-49,-48,-47,-48,-49,-47,-43,-35,-8,-7,-4,-4,-11,-19,-27,-34,-39,-41,-42,-41,-38,-30,-17,-2,15,28,35,34,27,19,14,12,17,22,29,32,31,28,23,18 },
},
{
{ 0,-1,-1,-1,-1,-1,-1,0,0,0,0,0,1,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,9,10,11,13,-1,-1,-1,-1,-1,-1,-1,0,0,1,1,2,3,3,4,5,6,7,9,10,11,12,13,14,15,17,18,19,21,22,24,25,-1,-1,-1,-1,-1,0,0,1,2,3,4,5,6,8,10,11,13,15,17,19,20,22,24,26,28,29,31,33,34,35,36,36,-1,-1,-1,0,0,1,2,3,5,6,8,10,12,15,17,19,22,25,27,30,32,34,36,38,40,42,44,45,45,45,45,44,-1,-1,0,1,2,4,5,7,9,12,14,17,20,23,26,29,32,35,38,41,43,46,48,49,51,52,53,53,53,52,51,50,0,0,1,3,5,7,9,12,15,18,22,25,29,32,35,39,42,45,48,50,52,54,56,57,57,58,58,58,57,56,54,52,1,2,4,6,9,12,15,18,22,25,29,33,36,40,43,46,49,52,54,56,57,59,59,60,60,60,59,59,58,56,54,53,3,5,7,10,13,17,20,24,28,31,35,39,42,45,48,51,53,55,57,58,59,60,60,60,60,59,58,58,56,55,53,52 },
{ -1,-2,-3,-4,-5,-6,-7,-8,-9,-11,-12,-13,-14,-16,-17,-18,-18,-19,-19,-19,-19,-18,-17,-15,-14,-12,-9,-6,-4,0,3,7,-2,-4,-6,-8,-10,-12,-14,-17,-20,-22,-25,-27,-29,-31,-33,-34,-35,-35,-35,-34,-33,-31,-28,-24,-20,-16,-11,-6,-1,4,10,14,-4,-6,-9,-12,-16,-19,-23,-27,-31,-34,-38,-41,-44,-46,-47,-48,-49,-48,-46,-44,-41,-36,-31,-25,-19,-12,-5,2,8,14,20,24,-5,-9,-13,-18,-22,-27,-32,-36,-41,-45,-49,-52,-55,-56,-57,-57,-56,-53,-49,-45,-39,-33,-25,-18,-9,-1,7,14,21,27,31,35,-7,-12,-17,-23,-28,-33,-39,-43,-48,-52,-55,-58,-59,-60,-59,-56,-53,-48,-43,-36,-28,-20,-12,-3,6,14,22,28,34,38,42,44,-8,-14,-20,-25,-31,-36,-41,-46,-50,-53,-54,-55,-55,-54,-50,-46,-41,-35,-28,-20,-12,-3,5,14,21,28,34,39,44,47,49,50,-8,-14,-20,-25,-30,-35,-39,-42,-44,-46,-46,-45,-43,-40,-35,-30,-23,-17,-9,-2,6,13,21,27,33,38,42,46,49,50,51,52,-8,-12,-17,-21,-25,-29,-31,-33,-34,-34,-32,-30,-27,-23,-18,-12,-6,0,7,13,19,25,31,35,40,43,46,48,50,51,51,51 },
{ -4,-7,-9,-12,-15,-17,-19,-21,-23,-24,-25,-26,-25,-24,-23,-21,-18,-15,-11,-7,-2,2,5,9,12,13,14,14,13,11,7,2,-8,-14,-19,-24,-28,-33,-36,-39,-42,-43,-44,-43,-41,-38,-34,-29,-22,-15,-7,0,8,14,20,24,27,28,27,25,20,14,6,-1,-13,-21,-28,-34,-41,-46,-50,-53,-55,-56,-55,-52,-47,-41,-33,-23,-13,-3,8,17,26,33,38,41,41,39,34,26,18,8,-3,-12,-16,-26,-34,-42,-48,-53,-57,-59,-60,-58,-54,-48,-40,-30,-19,-7,6,17,28,37,44,49,50,48,44,37,27,16,4,-8,-19,-28,-18,-27,-36,-43,-49,-53,-55,-55,-52,-48,-41,-32,-22,-10,3,15,27,36,44,49,52,51,47,41,32,21,9,-4,-16,-28,-38,-45,-16,-25,-32,-37,-41,-43,-43,-40,-36,-30,-21,-12,-1,10,21,30,38,44,46,47,44,38,30,21,9,-2,-14,-26,-37,-46,-53,-58,-11,-17,-23,-26,-28,-28,-26,-23,-17,-11,-3,5,14,22,28,33,36,36,34,30,24,16,6,-4,-14,-25,-35,-43,-51,-57,-62,-64,-5,-9,-12,-14,-15,-14,-11,-8,-3,2,7,13,17,21,23,23,22,19,14,8,1,-7,-16,-24,-33,-40,-47,-54,-58,-62,-64,-65 },
{ 1,2,3,4,5,6,7,7,8,9,10,10,11,11,12,12,13,13,14,15,16,17,19,20,22,24,25,27,28,30,31,31,2,4,6,8,10,11,13,14,16,17,18,19,20,21,22,22,24,25,27,29,32,35,38,41,45,48,50,53,54,54,53,50,4,7,10,12,14,16,18,20,21,22,23,23,24,25,26,27,29,31,34,38,42,46,51,55,60,63,65,66,66,64,60,55,6,10,13,15,17,18,19,19,19,19,18,18,17,17,18,19,22,25,29,33,38,44,49,53,57,60,61,61,59,55,50,44,8,11,13,13,13,13,11,9,7,4,1,-1,-3,-3,-3,-2,1,5,9,15,20,26,31,35,38,40,40,39,37,34,30,25,7,8,7,5,2,-2,-7,-12,-17,-22,-26,-29,-32,-33,-32,-30,-26,-22,-17,-11,-5,1,6,10,13,14,15,15,14,12,10,8,2,-1,-5,-10,-16,-23,-30,-37,-44,-50,-54,-57,-59,-59,-57,-53,-49,-44,-38,-32,-26,-21,-16,-12,-9,-7,-6,-5,-5,-5,-5,-6,-7,-12,-19,-27,-35,-43,-51,-58,-64,-69,-72,-74,-74,-72,-69,-66,-61,-55,-50,-44,-39,-34,-30,-26,-23,-21,-19,-17,-16,-16,-15,-14 },
{ 4,6,8,10,11,12,12,11,10,8,5,1,-4,-9,-15,-20,-26,-30,-34,-36,-36,-35,-31,-26,-19,-11,-3,6,13,19,24,27,7,11,15,18,20,21,20,18,15,10,3,-5,-14,-24,-34,-43,-51,-57,-61,-61,-57,-51,-41,-29,-15,0,14,26,36,42,44,42,10,16,21,25,28,29,27,24,18,10,0,-12,-25,-37,-50,-60,-68,-71,-71,-65,-56,-43,-27,-9,9,26,40,49,55,55,51,43,13,20,27,32,34,35,33,28,21,11,-1,-14,-28,-41,-51,-59,-63,-62,-56,-45,-31,-15,2,19,35,47,53,56,53,47,37,26,14,23,31,37,40,41,39,34,27,17,5,-7,-18,-28,-35,-39,-39,-34,-25,-13,0,13,25,35,42,45,43,37,29,18,7,-3,16,25,34,40,44,46,45,41,35,27,17,8,-1,-7,-11,-12,-10,-5,1,9,16,22,25,26,25,20,13,4,-7,-17,-26,-32,16,26,34,41,46,48,48,45,40,34,27,20,14,9,6,5,6,7,9,9,10,8,5,0,-6,-14,-22,-31,-39,-45,-50,-53,15,23,31,37,41,44,43,41,38,33,28,22,17,13,9,7,4,2,-1,-5,-10,-15,-21,-28,-35,-42,-48,-54,-59,-62,-63,-63 },
{ -8,-13,-17,-21,-24,-27,-28,-30,-30,-30,-29,-27,-25,-22,-19,-16,-14,-11,-9,-7,-7,-6,-5,-5,-4,-2,0,3,7,13,19,26,-16,-25,-33,-39,-44,-47,-49,-49,-48,-46,-42,-38,-32,-27,-21,-16,-11,-8,-6,-5,-5,-5,-4,-4,-2,1,6,12,19,28,36,43,-23,-34,-44,-50,-55,-56,-56,-53,-49,-43,-36,-28,-19,-12,-5,0,4,5,5,3,0,-2,-3,-3,-1,4,11,19,29,39,48,55,-25,-37,-44,-49,-50,-48,-43,-36,-28,-18,-7,2,11,18,22,23,21,17,11,4,-3,-8,-10,-10,-6,0,9,20,31,42,51,58,-21,-29,-32,-32,-28,-21,-12,-2,10,21,30,38,42,43,39,32,23,12,0,-11,-20,-25,-27,-24,-19,-10,2,15,27,39,49,55,-11,-12,-10,-4,4,13,24,34,44,52,55,55,51,43,31,17,1,-14,-27,-38,-45,-48,-45,-39,-29,-18,-4,10,23,35,44,50,2,6,12,20,29,38,46,52,56,56,52,44,32,17,1,-16,-32,-45,-56,-62,-64,-61,-55,-45,-33,-20,-6,8,21,31,39,45,11,17,24,30,37,42,44,45,42,36,26,13,-1,-17,-32,-46,-57,-66,-70,-71,-68,-62,-53,-42,-29,-16,-4,8,19,28,34,39 },
{ -3,-4,-5,-5,-4,-3,0,4,8,14,19,25,30,34,36,35,32,26,17,7,-4,-15,-25,-32,-36,-36,-32,-24,-14,-1,12,24,-5,-7,-9,-9,-8,-5,0,7,16,25,34,44,51,55,54,49,40,27,9,-9,-28,-44,-55,-61,-60,-54,-39,-21,0,19,36,48,-8,-12,-15,-16,-15,-11,-4,5,16,27,39,49,56,57,53,44,29,10,-12,-33,-52,-64,-70,-68,-58,-41,-18,6,29,48,60,64,-12,-19,-25,-28,-28,-24,-17,-7,4,17,29,38,44,45,39,28,11,-7,-25,-41,-52,-57,-53,-43,-26,-6,15,35,51,60,62,59,-18,-29,-37,-42,-44,-42,-35,-26,-14,-1,12,22,29,30,26,17,6,-6,-17,-24,-27,-25,-17,-7,7,20,31,39,43,42,38,31,-23,-37,-47,-54,-57,-56,-49,-38,-25,-11,3,14,22,26,25,22,16,10,6,3,2,3,6,10,14,16,16,14,10,5,-1,-6,-25,-38,-49,-56,-58,-56,-48,-37,-23,-8,5,17,26,30,32,31,28,24,19,15,11,7,3,-1,-6,-11,-17,-22,-28,-33,-36,-37,-21,-32,-41,-45,-46,-42,-34,-23,-11,1,13,22,28,32,32,30,26,20,14,7,-1,-9,-17,-25,-33,-40,-46,-51,-55,-57,-57,-55 },
{ 15,22,29,34,37,38,38,35,32,27,21,15,9,3,-1,-3,-4,-4,-3,-1,1,2,4,5,6,6,7,8,10,14,19,25,27,40,49,56,59,59,54,47,38,28,17,6,-3,-10,-13,-14,-13,-9,-4,1,5,9,11,12,12,12,12,14,19,25,33,41,34,48,58,62,62,56,46,34,19,5,-9,-20,-27,-30,-28,-23,-15,-6,3,10,15,17,16,12,9,6,6,9,15,25,36,47,32,44,48,47,40,29,15,-1,-17,-31,-40,-45,-44,-39,-27,-14,-1,11,19,23,21,16,7,-3,-11,-16,-16,-10,2,16,33,47,20,25,23,16,4,-10,-24,-37,-48,-53,-52,-46,-34,-18,-1,14,26,32,32,24,13,-3,-19,-33,-42,-44,-39,-26,-9,12,33,50,4,1,-5,-15,-26,-36,-43,-47,-47,-41,-29,-14,4,22,35,44,45,39,26,8,-13,-33,-49,-60,-63,-59,-46,-27,-5,18,40,56,-9,-14,-20,-26,-31,-33,-31,-25,-16,-2,14,30,45,54,57,53,42,25,5,-17,-38,-54,-64,-67,-63,-51,-34,-13,10,31,50,63,-11,-14,-16,-16,-14,-10,-2,9,21,34,46,55,60,60,52,40,23,4,-15,-33,-47,-55,-57,-53,-43,-29,-12,7,26,42,56,65 },
{ -1,-1,-1,-1,-2,-3,-4,-6,-9,-12,-16,-20,-24,-27,-29,-31,-32,-32,-32,-32,-33,-34,-36,-39,-42,-44,-46,-46,-44,-40,-33,-24,-1,-1,0,0,0,-2,-4,-7,-12,-18,-24,-30,-35,-39,-41,-42,-42,-41,-40,-40,-42,-45,-50,-55,-61,-65,-66,-65,-59,-50,-37,-23,0,3,5,7,8,8,5,1,-4,-10,-17,-22,-26,-27,-26,-23,-20,-16,-14,-14,-17,-22,-30,-38,-46,-50,-51,-47,-39,-28,-14,-1,5,11,17,21,24,25,22,18,13,9,4,2,3,7,13,21,29,35,37,36,31,23,13,2,-7,-13,-14,-11,-4,6,16,25,12,21,29,35,38,37,34,30,25,22,21,23,28,37,48,59,68,74,75,70,62,51,39,26,17,11,10,13,18,25,32,37,17,26,31,33,32,28,22,15,10,7,8,13,22,34,45,56,64,67,64,59,49,38,27,17,10,7,8,12,18,24,29,33,12,14,12,7,0,-10,-19,-28,-34,-36,-33,-26,-16,-5,6,14,19,20,18,13,6,-1,-7,-11,-13,-12,-8,-2,5,12,18,22,-6,-11,-20,-31,-43,-55,-66,-74,-79,-79,-75,-68,-59,-49,-41,-34,-31,-29,-30,-32,-34,-36,-36,-35,-32,-27,-21,-14,-7,0,6,10 },
{ -12,-17,-20,-20,-18,-14,-8,0,8,15,20,22,20,15,5,-8,-22,-36,-46,-52,-52,-46,-36,-21,-5,9,20,26,26,20,10,-1,-18,-26,-29,-29,-24,-14,-2,12,25,36,41,41,34,20,0,-23,-46,-64,-74,-75,-66,-50,-26,0,24,41,48,45,33,16,-3,-18,-22,-31,-34,-31,-22,-9,8,26,42,53,57,52,39,19,-7,-33,-56,-68,-70,-60,-41,-14,14,39,57,61,53,34,11,-14,-33,-44,-24,-33,-35,-31,-20,-5,13,32,48,57,58,52,37,16,-6,-27,-40,-43,-35,-18,4,27,44,54,53,41,19,-6,-30,-48,-56,-56,-24,-34,-37,-33,-24,-10,7,23,38,46,47,42,31,17,3,-7,-12,-9,1,13,26,33,34,27,14,-4,-24,-40,-51,-52,-47,-37,-25,-36,-42,-41,-35,-25,-11,4,17,25,29,28,23,16,10,6,5,6,9,11,11,7,-1,-11,-22,-31,-36,-36,-30,-20,-7,6,-26,-39,-47,-49,-47,-39,-28,-15,-3,6,12,15,14,12,8,5,2,-1,-4,-8,-13,-18,-22,-24,-24,-19,-11,1,15,29,41,50,-25,-37,-46,-49,-48,-42,-33,-22,-12,-3,3,6,6,5,2,-2,-6,-10,-13,-16,-18,-17,-13,-7,2,14,28,42,55,66,73,76 },
{ 23,31,39,43,46,45,43,38,33,27,20,14,8,3,-2,-5,-8,-9,-11,-11,-10,-8,-5,-2,0,1,-1,-6,-14,-24,-36,-46,35,48,57,62,62,58,50,41,30,20,10,2,-5,-9,-12,-14,-16,-16,-16,-14,-12,-8,-4,-1,2,1,-5,-15,-28,-42,-56,-66,36,47,52,51,46,36,23,11,-1,-10,-15,-17,-17,-15,-13,-10,-9,-8,-8,-7,-5,-2,2,6,9,8,2,-8,-22,-37,-52,-62,22,26,23,14,3,-10,-21,-30,-34,-33,-26,-16,-5,5,11,14,13,10,5,2,1,4,10,18,25,28,25,18,5,-12,-29,-44,0,-6,-17,-29,-40,-48,-50,-46,-37,-20,-1,18,33,41,41,33,22,9,-1,-7,-7,1,15,30,43,51,52,44,30,10,-13,-32,-19,-30,-41,-49,-53,-50,-40,-23,-2,21,41,54,58,52,36,16,-6,-23,-33,-33,-24,-6,16,37,54,63,61,51,33,11,-13,-33,-23,-32,-38,-38,-33,-22,-5,15,34,48,55,52,40,18,-8,-33,-54,-65,-64,-53,-34,-9,16,37,51,55,50,36,18,-4,-26,-43,-14,-19,-19,-14,-6,5,18,29,37,37,29,14,-8,-32,-55,-73,-83,-83,-72,-54,-31,-9,11,26,34,34,26,12,-4,-22,-38,-50 },
{ 7,10,11,10,6,0,-8,-17,-26,-34,-40,-44,-45,-43,-40,-35,-30,-25,-23,-21,-20,-18,-15,-9,-1,9,22,34,44,49,50,45,13,19,21,18,11,0,-13,-27,-40,-50,-56,-58,-55,-48,-39,-30,-22,-17,-16,-17,-18,-18,-13,-4,10,26,43,58,67,68,60,47,21,30,32,29,21,8,-6,-21,-33,-40,-41,-35,-25,-12,0,9,14,11,4,-6,-15,-20,-18,-9,5,21,36,46,49,43,30,13,29,41,45,42,34,23,10,0,-7,-7,0,12,27,40,48,49,41,26,6,-15,-32,-42,-43,-35,-23,-9,2,8,5,-4,-17,-30,33,44,48,44,37,27,18,13,13,19,31,45,58,64,63,51,32,7,-19,-42,-58,-64,-61,-51,-38,-26,-19,-18,-23,-33,-44,-52,24,30,28,22,13,4,-2,-3,1,10,23,36,44,45,38,24,4,-17,-35,-47,-51,-48,-38,-26,-14,-7,-5,-10,-20,-31,-42,-50,3,-1,-9,-20,-30,-37,-40,-37,-30,-18,-4,8,16,18,14,7,-2,-9,-12,-10,-4,5,15,24,29,28,21,10,-3,-16,-28,-35,-21,-32,-43,-53,-61,-65,-62,-56,-44,-30,-15,-3,8,14,18,21,23,27,33,40,49,56,60,61,58,50,39,25,11,-2,-12,-20 },
{ 20,27,31,30,27,20,12,4,-1,-3,0,7,17,28,38,44,45,37,24,4,-17,-36,-50,-55,-52,-40,-24,-7,9,18,22,20,29,38,40,37,28,15,1,-11,-18,-17,-9,6,25,44,58,63,56,39,11,-20,-50,-71,-78,-72,-53,-28,-1,22,35,37,29,17,28,35,34,24,10,-8,-26,-39,-44,-39,-23,-2,23,44,56,56,44,20,-10,-38,-59,-64,-55,-34,-6,20,39,44,39,22,3,-14,19,23,17,5,-13,-32,-48,-59,-60,-52,-33,-10,13,32,40,38,26,9,-8,-20,-21,-12,5,24,40,46,39,22,-2,-26,-43,-50,11,14,9,-1,-16,-31,-43,-50,-51,-43,-29,-12,4,16,21,21,17,14,13,16,24,32,40,40,33,17,-5,-28,-49,-60,-61,-53,14,21,23,19,12,2,-8,-16,-21,-21,-18,-13,-8,-2,2,6,10,15,21,26,30,29,22,10,-7,-24,-38,-48,-49,-43,-30,-14,26,39,48,50,47,38,27,13,1,-10,-18,-24,-25,-23,-19,-12,-4,3,8,11,10,4,-4,-13,-22,-25,-24,-17,-4,12,28,40,35,50,59,62,58,49,33,16,-2,-17,-28,-36,-38,-36,-30,-23,-14,-7,-3,0,0,-1,-2,-1,2,9,20,34,49,63,73,78 },
{ -14,-19,-25,-30,-36,-41,-44,-46,-45,-40,-32,-21,-8,4,15,22,26,25,22,15,9,4,3,4,8,11,10,4,-9,-27,-47,-64,-18,-24,-29,-35,-41,-47,-50,-50,-47,-39,-26,-9,9,24,35,40,38,31,19,6,-3,-7,-4,4,14,19,16,3,-19,-45,-71,-89,-7,-6,-7,-9,-12,-16,-20,-22,-20,-15,-4,9,23,32,35,31,21,6,-10,-22,-27,-22,-8,10,26,35,31,16,-8,-36,-61,-77,18,29,36,38,34,27,17,7,-1,-4,-3,2,7,10,8,0,-13,-27,-38,-42,-36,-21,2,26,46,57,53,39,18,-6,-29,-44,42,60,69,67,58,41,21,1,-16,-25,-27,-23,-17,-11,-9,-13,-21,-30,-35,-35,-26,-10,12,34,52,60,58,49,34,17,-1,-15,46,60,62,53,34,11,-13,-33,-44,-46,-36,-20,-3,11,17,14,5,-7,-18,-25,-25,-17,-4,11,25,34,38,36,31,21,10,-1,26,30,24,10,-9,-27,-41,-46,-41,-25,-1,24,46,56,56,44,24,0,-22,-38,-46,-46,-37,-24,-9,4,13,18,20,17,11,4,1,-2,-9,-19,-29,-34,-32,-22,-3,21,45,65,76,75,60,37,9,-19,-43,-60,-68,-67,-58,-44,-28,-13,-1,7,12,12,9,4 },
{ -32,-42,-46,-43,-34,-20,-5,11,24,31,34,31,25,17,10,5,2,0,-2,-6,-12,-20,-27,-32,-33,-26,-16,-1,12,21,24,20,-46,-60,-61,-52,-34,-10,15,36,50,55,49,38,22,9,-1,-5,-5,-3,-3,-7,-15,-25,-34,-39,-35,-22,-3,17,32,37,31,16,-48,-60,-57,-40,-17,11,35,51,56,46,28,7,-13,-24,-24,-15,-2,10,17,14,4,-10,-22,-27,-22,-7,11,27,35,29,11,-12,-39,-46,-38,-20,3,24,36,36,24,3,-22,-44,-53,-48,-27,1,30,49,53,43,22,0,-17,-24,-19,-6,10,19,18,3,-22,-47,-24,-25,-15,0,13,20,17,3,-20,-43,-62,-68,-57,-29,7,42,68,73,61,35,4,-22,-36,-36,-24,-6,9,14,7,-13,-41,-66,-5,-1,7,15,18,15,2,-17,-37,-52,-54,-44,-20,11,39,58,59,44,16,-14,-39,-52,-47,-30,-5,17,30,30,15,-10,-41,-67,12,19,26,28,27,19,6,-9,-22,-26,-21,-8,9,23,31,26,11,-12,-35,-50,-54,-42,-20,9,37,54,58,48,26,-4,-36,-61,23,30,35,36,33,26,16,6,-1,-3,-1,3,7,6,0,-12,-26,-38,-43,-39,-24,-2,25,50,67,74,67,49,24,-5,-32,-53 },
{ -24,-28,-30,-28,-25,-21,-18,-17,-20,-25,-33,-40,-45,-46,-41,-29,-15,0,12,17,15,3,-15,-36,-56,-69,-74,-68,-55,-33,-11,7,-28,-30,-28,-22,-14,-7,-2,-2,-8,-18,-30,-40,-46,-44,-31,-12,10,29,40,40,27,3,-26,-53,-73,-81,-73,-54,-27,0,21,33,-16,-13,-5,7,19,28,33,30,22,8,-6,-18,-23,-18,-4,16,37,51,56,48,31,9,-12,-26,-31,-24,-8,11,28,37,39,34,3,10,21,33,44,51,52,47,36,22,8,-4,-9,-7,2,15,27,34,36,33,28,24,23,26,33,39,41,39,29,16,3,-6,8,11,15,20,25,28,28,25,18,8,-2,-12,-19,-23,-24,-21,-17,-12,-4,6,18,30,40,46,45,34,17,-4,-25,-40,-46,-42,-14,-22,-28,-30,-28,-23,-15,-8,-2,-2,-6,-15,-26,-37,-46,-51,-51,-44,-31,-15,3,16,21,19,7,-11,-31,-48,-58,-58,-47,-30,-38,-53,-62,-61,-52,-35,-14,6,22,29,27,16,0,-18,-34,-44,-46,-41,-29,-15,-3,5,5,-2,-12,-23,-32,-34,-28,-15,4,22,-38,-49,-48,-38,-19,6,33,56,72,77,70,55,36,15,-2,-12,-16,-13,-5,4,11,15,15,13,10,9,12,19,31,46,60,70 },
{ 2,1,3,7,12,18,23,25,23,16,6,-3,-8,-7,3,20,41,62,78,84,81,69,52,36,25,22,24,30,34,32,24,11,0,-2,0,5,13,22,27,28,20,7,-10,-25,-32,-28,-10,16,46,70,81,78,60,37,12,-4,-7,1,17,32,38,32,14,-6,-9,-15,-14,-8,2,12,18,17,6,-12,-33,-51,-60,-55,-39,-15,8,19,16,0,-24,-46,-59,-56,-40,-14,11,26,25,9,-15,-37,-22,-31,-30,-22,-8,6,15,16,7,-10,-31,-50,-61,-61,-51,-38,-28,-28,-38,-53,-67,-73,-64,-44,-15,10,24,24,9,-15,-40,-56,-30,-38,-34,-20,0,20,35,41,37,25,7,-9,-19,-21,-17,-11,-7,-8,-14,-20,-21,-15,-2,14,28,34,29,14,-6,-25,-41,-46,-27,-31,-24,-7,15,36,52,61,60,53,41,31,26,27,32,38,42,42,39,36,33,32,32,31,27,21,11,1,-8,-14,-16,-13,-23,-29,-26,-16,-1,13,24,29,29,24,19,16,18,23,30,36,39,37,32,24,16,7,1,-4,-7,-7,-5,0,6,14,21,25,-30,-43,-49,-50,-47,-43,-40,-40,-41,-42,-42,-39,-34,-27,-22,-18,-17,-20,-25,-32,-37,-40,-39,-35,-27,-16,-2,13,27,38,45,48 },
{ 1,4,10,19,29,36,38,35,25,8,-11,-30,-45,-52,-53,-47,-39,-32,-29,-29,-31,-33,-32,-25,-14,0,10,13,4,-16,-41,-63,-1,2,11,23,36,45,47,41,25,2,-23,-44,-56,-57,-46,-29,-12,-2,-2,-9,-20,-27,-24,-13,5,22,31,26,4,-28,-63,-87,-13,-14,-8,4,19,30,36,32,20,3,-14,-23,-23,-9,12,34,50,51,38,16,-6,-18,-16,-1,21,40,47,38,14,-19,-51,-69,-33,-42,-39,-27,-9,8,20,25,23,17,11,11,20,36,55,69,69,56,30,0,-25,-35,-27,-5,22,44,53,48,31,8,-15,-29,-50,-63,-61,-46,-25,-2,14,22,23,16,8,4,7,15,24,28,22,7,-16,-37,-51,-50,-36,-12,14,33,44,45,37,26,13,3,-48,-59,-52,-35,-12,6,16,14,1,-17,-36,-47,-48,-40,-27,-16,-10,-13,-21,-31,-38,-37,-30,-18,-4,8,16,21,22,21,18,15,-23,-22,-11,5,20,27,22,6,-19,-43,-60,-64,-56,-35,-10,12,26,30,23,9,-6,-20,-28,-32,-30,-25,-16,-7,3,10,15,17,12,21,33,44,50,47,34,14,-7,-22,-26,-18,3,29,54,71,78,72,54,30,4,-19,-36,-45,-47,-42,-32,-19,-5,6,13,16 },
{ -53,-64,-65,-57,-44,-28,-15,-6,-2,-4,-9,-14,-17,-16,-13,-9,-7,-8,-12,-18,-23,-21,-12,4,24,42,55,59,56,47,38,29,-63,-74,-67,-48,-23,1,18,25,22,12,0,-11,-14,-11,-2,6,10,6,-5,-18,-25,-23,-9,13,35,52,56,49,33,17,7,5,-44,-43,-26,1,29,49,57,50,33,11,-7,-16,-13,1,18,31,33,21,1,-20,-33,-33,-22,-6,7,9,0,-17,-34,-40,-32,-13,-11,-2,18,40,56,61,49,26,-3,-27,-37,-32,-13,13,36,47,40,19,-8,-32,-44,-43,-32,-22,-18,-25,-40,-54,-58,-46,-17,16,5,13,24,30,29,16,-7,-32,-53,-60,-51,-27,3,30,45,42,26,3,-17,-26,-23,-9,6,13,9,-5,-21,-30,-25,-3,31,62,-3,-2,-3,-6,-14,-26,-39,-48,-48,-38,-18,6,24,33,28,14,-2,-11,-8,8,31,52,63,60,42,19,-1,-10,-3,19,50,76,-9,-10,-11,-10,-10,-10,-8,-3,5,14,21,22,15,1,-17,-29,-33,-21,2,30,56,68,65,46,18,-10,-28,-33,-22,2,32,56,4,7,12,19,26,32,37,39,36,29,15,-3,-26,-47,-60,-63,-53,-34,-10,12,24,23,7,-16,-42,-61,-69,-65,-48,-22,7,29 },
{ -13,-17,-16,-10,0,14,29,43,54,58,56,48,36,20,5,-7,-14,-13,-7,4,17,28,32,29,17,-4,-27,-46,-58,-57,-47,-28,-22,-29,-26,-17,-2,16,34,49,57,56,46,30,10,-9,-24,-32,-32,-24,-7,11,28,38,38,28,8,-16,-38,-52,-52,-41,-19,3,-31,-39,-37,-29,-16,-3,8,14,14,7,-5,-17,-28,-34,-35,-31,-24,-13,-1,10,19,22,22,18,11,4,-1,-1,6,16,30,40,-30,-37,-35,-30,-25,-21,-21,-25,-29,-33,-32,-26,-16,-4,5,9,6,-1,-10,-16,-17,-10,4,20,34,42,42,37,31,27,28,32,-9,-7,-3,-1,-3,-10,-20,-28,-31,-24,-8,15,38,52,53,36,8,-23,-47,-57,-50,-28,1,27,42,39,24,3,-15,-21,-15,0,29,42,48,45,33,16,-3,-16,-17,-5,18,44,62,65,48,16,-22,-53,-68,-63,-42,-14,10,22,16,-5,-32,-55,-65,-57,-31,0,51,65,67,54,32,5,-19,-33,-34,-20,3,25,38,35,19,-4,-27,-37,-33,-18,3,20,24,14,-7,-33,-55,-64,-56,-29,8,42,37,44,35,15,-11,-37,-57,-65,-59,-42,-19,2,17,21,19,14,12,17,27,39,48,48,38,20,-1,-18,-25,-19,1,31,62,87 },
{ 14,17,16,9,0,-9,-15,-17,-15,-11,-10,-14,-25,-41,-60,-73,-77,-66,-42,-10,22,44,53,48,35,20,12,14,26,40,51,52,20,24,20,10,-3,-13,-18,-15,-5,7,12,9,-6,-28,-52,-67,-66,-46,-11,27,56,65,52,26,-4,-22,-22,-6,18,40,48,41,21,24,19,8,-5,-12,-10,3,23,43,56,55,42,19,-5,-21,-21,-7,15,32,34,16,-14,-46,-67,-67,-48,-20,6,16,11,-6,17,18,12,0,-12,-17,-10,7,31,55,70,72,60,39,15,-2,-9,-7,-4,-5,-17,-35,-51,-59,-53,-35,-12,5,7,-7,-30,-51,8,8,-1,-14,-28,-36,-35,-23,-5,13,26,30,23,11,-3,-12,-15,-14,-11,-8,-7,-5,2,13,27,37,38,27,4,-25,-51,-64,6,7,0,-14,-31,-46,-55,-56,-49,-38,-26,-17,-11,-7,-4,0,6,13,19,26,34,42,50,55,56,50,35,16,-6,-25,-36,-38,26,35,34,23,6,-14,-31,-41,-43,-36,-25,-12,1,11,17,18,17,14,12,10,10,10,11,12,11,9,6,3,2,4,8,12,55,72,77,70,55,36,18,5,0,1,7,14,18,17,8,-5,-20,-35,-47,-55,-58,-57,-52,-42,-29,-16,-1,14,29,40,48,50 },
{ -31,-38,-45,-50,-55,-56,-53,-43,-28,-11,6,17,22,19,10,0,-8,-9,-5,5,17,26,31,31,29,24,15,2,-16,-40,-68,-89,-23,-26,-29,-34,-37,-39,-33,-22,-5,14,30,37,33,20,1,-16,-25,-23,-12,4,17,24,23,18,13,11,9,5,-6,-28,-56,-79,14,25,28,23,15,7,3,4,11,21,28,26,15,-4,-23,-35,-37,-27,-12,-1,3,-3,-14,-20,-15,2,24,44,50,33,1,-32,52,69,69,55,34,12,-5,-13,-13,-7,-1,0,-6,-16,-23,-23,-14,-1,7,4,-11,-30,-44,-44,-24,11,50,79,85,66,25,-15,52,58,47,21,-8,-32,-45,-44,-32,-15,0,8,10,7,9,15,26,33,30,13,-12,-36,-52,-49,-29,2,33,51,50,28,-6,-36,13,7,-10,-30,-45,-49,-39,-19,6,26,33,31,21,12,11,19,32,41,38,24,0,-26,-44,-50,-44,-30,-14,-4,-5,-16,-31,-43,-15,-22,-28,-28,-20,-3,18,37,48,42,21,-7,-31,-41,-35,-13,15,37,46,40,21,-3,-25,-38,-42,-36,-26,-15,-8,-6,-9,-12,-10,-8,-1,10,25,38,45,42,24,-5,-42,-74,-90,-86,-60,-24,16,45,58,57,43,24,6,-6,-9,-4,7,19,29,34,33,28 },
{ 23,23,16,5,-3,-6,1,17,37,54,63,58,43,21,0,-13,-17,-10,-2,0,-9,-27,-48,-63,-62,-41,-6,29,54,54,35,6,23,20,6,-12,-26,-30,-19,5,32,53,58,46,19,-10,-31,-36,-23,1,20,25,10,-18,-47,-62,-52,-20,23,57,65,42,-2,-43,17,11,-7,-31,-51,-56,-46,-22,4,22,22,6,-19,-41,-46,-30,5,42,66,66,43,7,-25,-37,-28,-1,27,38,24,-14,-58,-84,21,19,1,-24,-45,-55,-48,-30,-7,7,6,-7,-25,-36,-30,-6,30,62,75,66,37,3,-22,-31,-21,-4,9,9,-7,-32,-53,-60,45,51,38,14,-9,-22,-21,-9,9,20,20,7,-10,-24,-26,-15,3,17,22,15,-1,-16,-24,-20,-9,4,14,17,15,10,7,7,64,75,62,38,12,-5,-6,5,22,34,33,18,-6,-29,-46,-50,-43,-31,-18,-9,-3,1,3,6,11,17,23,29,36,42,45,46,45,45,29,3,-19,-29,-23,-4,20,36,38,24,1,-24,-41,-44,-35,-17,3,18,26,24,15,4,-6,-10,-8,0,11,23,32,35,-3,-12,-30,-48,-57,-53,-34,-7,22,41,46,38,23,8,0,1,9,22,31,32,24,6,-16,-37,-53,-61,-57,-46,-30,-14,0,7 },
{ -63,-70,-60,-35,-6,20,38,42,36,21,4,-12,-24,-27,-25,-17,-6,5,17,24,25,18,5,-12,-27,-32,-29,-15,2,15,18,12,-72,-76,-54,-17,22,52,63,58,36,9,-15,-30,-34,-29,-17,-5,7,16,23,25,22,12,-3,-20,-31,-31,-19,1,19,26,17,1,-54,-50,-24,10,40,53,47,25,-4,-26,-35,-29,-13,4,14,14,7,-1,-4,0,6,10,7,0,-7,-8,-1,10,18,13,-4,-25,-25,-18,0,17,23,15,-6,-29,-45,-42,-19,12,39,47,31,1,-31,-48,-41,-16,15,35,37,24,4,-9,-12,-5,3,0,-15,-36,0,6,12,10,-3,-23,-43,-52,-42,-12,29,61,71,47,3,-43,-73,-68,-35,10,46,55,37,4,-27,-38,-29,-5,17,20,2,-28,20,27,24,12,-7,-28,-39,-34,-10,23,51,61,44,7,-34,-59,-56,-28,13,44,50,30,-9,-43,-56,-42,-5,34,58,51,14,-31,34,40,35,20,0,-17,-24,-18,-2,16,27,21,3,-17,-29,-23,0,25,43,39,16,-19,-49,-59,-44,-6,38,69,73,43,-10,-61,32,36,29,15,-3,-18,-25,-22,-15,-7,-3,-5,-8,-7,2,16,31,38,29,9,-19,-41,-49,-38,-10,24,49,57,38,-2,-53,-94 },
{ -27,-29,-22,-7,7,18,22,21,18,18,27,41,57,63,54,27,-11,-49,-74,-77,-60,-29,2,22,26,16,4,-2,5,22,40,50,-32,-33,-20,0,17,25,20,8,-5,-8,3,24,48,59,48,17,-26,-61,-73,-57,-19,20,45,46,23,-6,-28,-29,-10,17,37,42,-28,-27,-14,4,16,14,-4,-30,-54,-61,-48,-17,16,38,40,22,-2,-16,-12,11,37,51,43,12,-27,-54,-60,-42,-14,8,13,1,-18,-15,-2,12,18,10,-14,-44,-70,-78,-61,-29,8,34,42,36,25,18,19,24,24,13,-8,-32,-46,-42,-21,3,16,9,-17,-44,-6,0,14,28,37,34,18,-5,-26,-35,-29,-13,3,13,15,8,1,-5,-7,-9,-12,-16,-16,-8,9,30,47,49,32,-4,-44,-71,-7,-4,9,28,45,55,54,43,26,8,-6,-17,-24,-27,-28,-26,-22,-17,-11,-7,-2,4,14,29,44,53,51,37,11,-19,-45,-56,-36,-44,-36,-16,10,32,45,44,33,13,-8,-25,-33,-29,-18,-4,8,16,16,10,2,-4,-6,-3,2,6,7,6,3,0,-2,-1,-70,-85,-81,-62,-34,-7,12,20,18,8,-1,-5,0,12,27,37,39,31,12,-11,-34,-51,-58,-55,-45,-30,-10,10,28,41,49,50 },
{ 32,36,40,43,49,52,52,47,37,22,5,-10,-18,-18,-13,-8,-6,-8,-12,-17,-16,-6,16,42,69,82,80,58,23,-19,-56,-76,16,13,11,13,17,22,24,21,11,-3,-17,-25,-23,-14,-2,8,9,1,-13,-25,-30,-22,-2,22,42,49,40,20,-7,-33,-51,-57,-26,-41,-48,-45,-36,-23,-13,-7,-8,-12,-14,-10,0,14,26,31,25,9,-12,-31,-43,-45,-41,-34,-28,-22,-14,-2,12,21,22,15,-47,-59,-58,-48,-29,-11,2,9,10,8,7,10,17,24,27,26,20,12,3,-7,-16,-25,-36,-46,-46,-34,-7,28,59,72,63,40,-13,-9,2,15,26,30,27,19,9,1,-5,-8,-9,-9,-9,-5,6,22,38,47,46,30,5,-17,-29,-22,-3,22,37,33,12,-14,36,48,51,47,33,14,-5,-20,-28,-28,-24,-24,-27,-33,-36,-29,-8,21,48,64,62,42,11,-18,-35,-39,-32,-23,-21,-30,-46,-60,38,38,25,4,-21,-38,-44,-35,-15,8,22,20,4,-20,-40,-45,-35,-12,12,27,27,15,-4,-20,-29,-28,-22,-16,-16,-22,-31,-37,3,-5,-21,-36,-43,-36,-12,21,59,84,87,69,32,-9,-42,-58,-56,-41,-19,-1,11,16,16,17,22,30,38,43,42,35,24,15 },
{ -4,-12,-24,-34,-36,-24,0,30,56,65,55,28,-4,-29,-37,-28,-13,-2,0,-8,-17,-17,-2,20,40,43,26,-2,-26,-25,1,37,1,-6,-22,-37,-41,-28,1,35,61,65,42,3,-35,-54,-44,-16,14,28,18,-6,-28,-29,-8,23,46,41,9,-32,-53,-37,13,67,25,22,2,-22,-39,-37,-17,9,28,28,6,-24,-44,-38,-8,31,57,52,20,-23,-53,-50,-21,17,38,26,-11,-50,-62,-31,29,81,56,58,32,-6,-38,-51,-41,-19,2,8,0,-14,-17,-2,26,51,56,34,-7,-47,-62,-46,-6,32,46,29,-9,-42,-50,-24,24,63,75,75,45,0,-37,-50,-38,-11,15,26,19,2,-10,-9,2,16,19,7,-14,-30,-29,-8,24,46,48,27,-5,-31,-40,-26,-1,20,61,58,29,-6,-30,-30,-8,22,42,39,13,-20,-45,-48,-31,-5,18,25,18,5,-3,-1,10,20,23,15,0,-14,-23,-24,-20,-14,23,16,-3,-20,-23,-8,17,38,43,24,-10,-41,-57,-43,-11,23,46,45,23,-7,-32,-40,-30,-10,12,25,27,19,5,-10,-23,-29,-11,-18,-26,-28,-18,0,20,31,26,9,-13,-26,-22,-2,23,42,42,23,-10,-42,-60,-59,-36,-3,30,51,54,43,23,0,-19,-30 },
{ 74,75,58,29,1,-17,-20,-9,9,28,39,40,31,14,-5,-19,-27,-23,-8,17,42,58,58,40,10,-20,-39,-39,-25,-4,13,18,66,58,27,-12,-43,-55,-45,-21,8,29,35,28,11,-9,-24,-34,-36,-28,-11,11,30,39,32,10,-17,-36,-38,-23,2,21,24,14,28,11,-19,-46,-59,-51,-28,-2,17,20,10,-4,-15,-16,-11,-7,-8,-14,-20,-22,-19,-11,-5,-1,0,2,9,17,22,17,0,-21,2,-9,-20,-22,-10,9,27,33,21,-2,-24,-30,-13,18,45,52,32,-2,-36,-52,-43,-18,13,33,38,29,15,3,-5,-14,-27,-41,0,0,7,23,42,54,51,26,-12,-44,-57,-36,8,56,82,70,29,-18,-47,-44,-16,20,41,36,12,-17,-33,-27,-10,4,2,-16,-10,-10,0,15,30,33,18,-11,-45,-65,-58,-27,15,45,47,22,-14,-36,-30,-4,25,38,22,-12,-47,-59,-38,3,46,62,42,2,-38,-44,-37,-19,1,12,10,-2,-18,-26,-23,-11,0,0,-11,-25,-30,-16,10,33,41,24,-11,-44,-59,-39,4,51,78,64,17,-39,-47,-51,-37,-12,17,39,48,46,35,22,9,-3,-14,-24,-28,-23,-6,15,34,41,30,5,-22,-37,-33,-9,21,40,34,-1,-54,-102 },
{ 42,39,18,-10,-34,-45,-42,-30,-22,-21,-27,-31,-23,1,35,64,75,55,14,-29,-56,-56,-34,-5,17,21,14,6,8,19,32,38,49,44,18,-16,-39,-41,-23,0,14,8,-12,-32,-33,-10,29,60,63,34,-14,-54,-63,-39,1,32,37,16,-13,-30,-22,0,22,29,45,39,16,-9,-19,-4,27,55,62,39,-5,-45,-62,-45,-9,22,29,9,-18,-28,-12,21,48,45,14,-29,-59,-58,-32,-1,13,4,25,17,-1,-15,-11,12,43,66,61,29,-20,-60,-72,-52,-14,16,24,14,3,6,23,40,37,13,-24,-46,-41,-13,20,30,8,-30,-1,-11,-27,-36,-32,-13,12,29,30,13,-11,-24,-19,0,19,22,10,-7,-16,-10,3,11,6,-6,-13,-3,24,52,60,32,-21,-73,-2,-9,-22,-35,-40,-35,-19,-2,13,21,26,31,34,30,14,-10,-35,-47,-40,-22,-2,7,5,0,1,13,33,46,37,4,-45,-83,35,39,27,5,-17,-30,-30,-18,-1,17,29,32,24,5,-17,-33,-36,-22,0,19,26,15,-7,-26,-34,-25,-5,16,22,10,-14,-36,69,77,62,33,-1,-26,-37,-34,-22,-10,-1,0,-4,-9,-8,1,19,39,50,48,26,-6,-39,-60,-62,-44,-11,23,47,52,41,26 },
{ -5,-2,-4,-10,-18,-23,-23,-21,-17,-13,-15,-21,-31,-42,-53,-61,-69,-74,-77,-77,-74,-66,-56,-47,-39,-35,-34,-36,-42,-49,-55,-55,12,18,16,7,-3,-8,-5,2,13,20,21,15,8,3,1,3,5,5,4,2,2,5,9,12,12,11,8,4,-1,-8,-16,-21,26,31,26,15,5,2,8,19,31,37,39,37,37,43,55,66,75,73,67,56,47,41,38,35,32,31,33,36,39,36,28,16,14,11,0,-12,-20,-20,-13,-7,-3,-7,-14,-19,-18,-9,3,12,12,3,-8,-18,-21,-20,-17,-15,-15,-13,-7,5,17,22,19,8,-9,-16,-25,-29,-28,-21,-17,-18,-28,-42,-57,-64,-63,-55,-49,-48,-55,-62,-63,-54,-40,-26,-22,-28,-38,-45,-42,-28,-12,-3,-5,-14,-7,-6,0,10,23,33,35,30,18,6,0,2,11,18,17,10,1,-1,9,27,43,47,34,11,-13,-26,-23,-11,1,4,-5,-19,3,9,19,30,41,44,43,37,32,34,44,57,68,66,56,40,29,28,38,52,59,53,36,15,0,-2,7,19,25,18,0,-19,-16,-20,-25,-28,-34,-40,-46,-49,-45,-36,-21,-10,-8,-17,-33,-48,-55,-52,-41,-27,-16,-13,-14,-14,-8,2,15,25,24,12,-7,-26 },
{ -17,-24,-33,-43,-50,-47,-33,-9,19,43,58,59,48,30,13,5,6,12,15,11,-2,-18,-27,-23,-3,29,60,75,66,26,-27,-68,0,-2,-10,-22,-32,-34,-23,-4,17,33,36,25,4,-16,-26,-22,-6,11,20,15,-2,-23,-35,-33,-14,16,42,52,36,0,-43,-69,39,45,38,21,2,-12,-18,-17,-15,-15,-21,-30,-40,-41,-34,-17,4,18,23,18,5,-11,-27,-37,-41,-34,-19,-3,8,9,3,-5,52,59,49,31,11,-6,-16,-20,-22,-21,-18,-12,-2,6,12,13,10,8,9,16,23,22,8,-16,-41,-51,-39,-10,25,50,56,45,11,6,0,-2,0,5,9,11,12,14,21,31,41,39,23,-3,-29,-36,-21,11,46,62,54,23,-12,-32,-28,-6,21,35,32,14,-52,-62,-51,-25,7,30,36,27,8,-6,-7,3,15,14,-4,-33,-57,-60,-36,5,44,63,54,26,-7,-29,-34,-26,-16,-16,-25,-36,-67,-65,-38,2,37,47,30,-7,-47,-65,-56,-24,12,30,23,-3,-34,-49,-42,-20,4,18,17,5,-10,-18,-19,-15,-13,-18,-28,-36,-27,-16,11,40,53,42,7,-34,-63,-62,-27,24,71,90,76,40,-4,-35,-46,-40,-24,-8,5,13,20,26,31,35,32,23,10,-1 },
{ -28,-20,-7,3,-2,-23,-52,-75,-80,-59,-25,8,25,18,-7,-33,-46,-41,-24,-8,2,6,13,26,43,55,57,48,37,32,40,49,-14,1,25,42,37,12,-23,-48,-46,-17,25,56,59,35,-4,-32,-35,-15,10,19,8,-10,-20,-15,1,13,8,-9,-25,-25,-1,27,-7,10,38,60,63,43,13,-6,-4,18,44,53,38,7,-20,-22,2,33,48,27,-16,-56,-70,-55,-27,-10,-19,-45,-66,-56,-20,22,-38,-31,-6,20,31,22,1,-17,-21,-13,-5,-8,-23,-37,-32,-6,35,60,53,17,-27,-48,-31,10,47,55,30,-9,-33,-23,12,45,-73,-71,-47,-16,2,1,-13,-26,-31,-26,-20,-20,-26,-27,-16,5,28,35,24,4,-7,5,37,68,80,62,27,-2,-13,1,25,37,-47,-38,-10,17,30,26,13,5,9,20,29,28,12,-7,-21,-26,-23,-18,-14,-13,-10,-4,1,-1,-10,-23,-29,-25,-11,2,4,-3,8,20,35,39,31,13,0,1,16,35,47,40,15,-15,-37,-44,-35,-18,-6,-5,-16,-33,-50,-58,-56,-38,-14,8,18,7,-19,-44,15,15,6,-12,-36,-56,-61,-49,-24,3,20,22,12,0,-3,7,28,46,52,43,22,0,-13,-10,8,33,53,59,43,10,-31,-61 },
{ -12,-8,4,15,18,11,-2,-11,-8,11,39,63,76,72,60,46,34,25,12,-4,-21,-29,-25,-10,4,2,-20,-57,-90,-96,-75,-35,-21,-15,1,16,16,2,-22,-39,-39,-22,5,23,25,11,-7,-15,-10,-1,3,-4,-16,-21,-8,18,42,44,22,-10,-32,-26,8,45,-24,-17,2,19,20,2,-26,-48,-54,-43,-29,-25,-38,-55,-62,-47,-14,19,34,25,3,-11,-4,22,52,65,57,39,28,34,55,71,-22,-13,11,35,43,32,11,-4,-5,4,12,8,-10,-27,-28,-7,28,52,48,17,-26,-54,-53,-30,-2,12,5,-10,-23,-22,-8,6,-32,-23,2,28,42,39,29,24,33,47,57,49,28,4,-7,-1,15,22,10,-16,-45,-57,-52,-35,-21,-21,-33,-48,-58,-53,-42,-28,-47,-44,-26,-10,-6,-14,-25,-27,-13,8,23,21,2,-22,-36,-32,-13,6,20,25,27,28,28,29,25,17,11,6,4,4,2,-2,-23,-16,-7,-6,-20,-41,-58,-60,-45,-19,1,7,-4,-21,-30,-24,-2,23,43,52,53,43,33,25,23,28,39,47,48,38,20,0,40,54,60,52,30,6,-10,-11,3,23,37,37,24,4,-13,-19,-18,-14,-16,-24,-38,-52,-58,-54,-39,-18,3,16,15,1,-20,-37 },
{ -63,-66,-55,-35,-13,4,11,7,-4,-15,-20,-13,8,31,45,36,7,-28,-49,-40,-5,41,75,75,49,10,-19,-25,-15,-6,-13,-31,-42,-35,-15,6,23,31,26,12,-6,-22,-29,-20,4,31,43,31,-5,-43,-59,-43,-2,39,53,34,-8,-40,-40,-11,26,37,11,-30,10,24,34,36,30,19,9,0,-11,-21,-29,-27,-14,6,22,22,4,-18,-33,-31,-18,-7,-11,-27,-44,-37,-4,40,68,54,5,-46,34,39,25,1,-23,-32,-20,0,16,15,-2,-23,-31,-17,12,36,43,30,6,-14,-23,-20,-12,-7,-4,3,16,29,29,8,-27,-56,25,15,-15,-47,-65,-49,-8,40,71,60,18,-29,-53,-36,5,43,56,40,11,-9,-6,14,33,33,12,-16,-35,-34,-20,-5,0,-6,26,16,-12,-39,-46,-25,19,60,73,46,-7,-54,-67,-44,-4,23,19,-4,-24,-23,3,34,44,24,-18,-53,-59,-33,13,49,58,43,51,48,22,-9,-27,-22,-1,19,23,4,-23,-36,-28,-4,13,8,-18,-43,-51,-30,6,34,37,13,-20,-37,-25,8,44,56,40,6,56,54,26,-9,-35,-42,-31,-14,2,10,18,29,43,49,39,13,-20,-40,-37,-14,16,35,33,16,-5,-15,-11,-1,1,-14,-45,-75 },
{ -83,-74,-41,-1,26,31,23,12,9,9,5,-11,-37,-57,-57,-29,16,51,62,42,10,-13,-13,5,21,18,-3,-28,-35,-14,22,49,-65,-47,-3,36,49,36,10,-7,-4,12,23,13,-15,-41,-43,-16,26,51,40,3,-36,-47,-21,20,44,33,-6,-39,-40,-11,29,50,-22,-1,29,41,24,-13,-45,-48,-20,24,56,55,25,-12,-31,-22,0,9,-8,-37,-53,-37,4,41,51,24,-16,-37,-29,-4,12,5,3,16,23,12,-21,-59,-75,-58,-10,43,70,60,20,-20,-38,-27,-2,11,5,-9,-13,-1,17,27,14,-8,-20,-12,8,14,-10,-48,7,13,16,7,-13,-31,-37,-22,4,24,26,6,-18,-28,-16,11,37,42,29,9,-2,-5,-6,-12,-21,-19,1,32,51,32,-21,-74,-5,2,17,30,35,31,18,3,-13,-26,-33,-32,-18,3,23,32,24,5,-13,-20,-13,-4,-2,-11,-20,-14,12,45,59,38,-13,-62,-37,-32,-8,23,47,47,28,-3,-31,-41,-31,-6,20,30,20,-7,-38,-50,-38,-5,29,44,30,-5,-36,-42,-20,17,42,38,8,-27,-68,-69,-44,-10,17,25,14,-3,-13,-8,11,31,38,23,-7,-36,-50,-36,3,47,73,65,23,-30,-69,-75,-47,-6,29,39,24,1 },
{ 11,1,-27,-60,-81,-77,-51,-15,16,27,19,-1,-21,-31,-30,-21,-8,1,8,13,24,40,56,64,56,29,-9,-43,-60,-47,-16,16,42,37,7,-29,-48,-39,-7,27,47,43,19,-8,-24,-24,-11,3,8,2,-11,-21,-20,-8,9,21,20,7,-12,-25,-23,-3,23,41,70,70,46,17,3,9,26,36,30,10,-11,-18,-8,13,31,32,14,-14,-40,-54,-55,-43,-28,-14,1,15,25,29,26,18,11,6,37,32,13,-3,-6,-2,0,-8,-26,-40,-35,-11,21,43,43,26,3,-10,-6,4,8,2,-11,-17,-6,15,31,28,3,-29,-49,-45,-32,-42,-43,-31,-13,0,-1,-16,-33,-35,-18,10,28,20,-2,-20,-14,19,60,79,64,17,-30,-49,-35,-3,19,12,-16,-41,-41,-17,-51,-49,-24,13,44,54,40,15,-7,-10,3,12,1,-30,-58,-64,-32,17,55,58,21,-30,-60,-53,-13,29,45,32,8,-1,20,53,-23,-10,18,45,58,44,15,-11,-21,-6,17,26,11,-22,-51,-56,-35,-5,14,8,-13,-29,-24,3,35,49,36,7,-14,-5,31,69,-12,-9,-3,-3,-16,-37,-56,-56,-30,11,51,70,60,31,0,-15,-13,-3,5,6,3,4,11,19,15,-4,-38,-67,-74,-50,-5,37 },
{ -11,-21,-30,-27,-7,24,57,73,71,49,29,20,24,30,27,8,-22,-46,-56,-48,-34,-21,-14,-11,-8,-5,-4,-4,6,35,76,105,-3,-15,-30,-36,-24,0,23,28,10,-18,-35,-30,-4,21,31,19,-3,-16,-10,7,21,22,13,3,1,0,-9,-27,-39,-27,7,41,30,20,-4,-27,-38,-33,-24,-26,-44,-60,-62,-39,-2,26,35,26,16,18,33,44,38,15,-6,-12,3,17,9,-27,-68,-79,-57,-17,65,59,29,-3,-17,-11,5,12,7,-2,-6,1,10,8,-5,-20,-25,-13,4,7,-10,-34,-40,-16,31,67,66,30,-15,-34,-19,11,52,40,14,-4,-1,23,51,62,55,35,14,0,-12,-25,-40,-47,-39,-17,4,7,-11,-32,-36,-12,30,62,66,46,22,13,22,36,-13,-29,-42,-42,-23,2,18,16,-1,-15,-16,-4,11,16,10,5,12,30,44,41,16,-19,-47,-54,-40,-21,-7,-4,-5,-3,4,10,-33,-36,-33,-23,-12,-9,-19,-37,-49,-37,-4,35,60,52,25,-1,-9,6,28,39,26,-5,-38,-56,-56,-41,-25,-15,-12,-14,-16,-15,23,36,47,52,43,24,-4,-26,-32,-16,12,32,24,-10,-53,-81,-74,-40,7,43,57,49,32,19,16,21,26,24,14,1,-9,-14 },
{ -5,-14,-25,-26,-10,16,34,26,-8,-52,-81,-73,-37,5,29,26,14,12,26,41,39,14,-17,-29,-9,27,46,26,-19,-56,-57,-25,10,1,-16,-23,-5,27,51,46,9,-36,-56,-37,8,43,39,5,-33,-38,-8,24,28,-3,-40,-48,-11,39,57,30,-20,-44,-14,40,36,24,-7,-29,-21,11,45,53,32,3,-8,11,39,41,6,-47,-82,-65,-11,36,40,0,-46,-52,-14,34,49,21,-18,-18,31,87,51,32,-15,-54,-59,-28,13,32,22,0,-11,1,20,23,-2,-34,-41,-10,41,69,50,-2,-47,-51,-14,21,23,-9,-44,-41,5,56,59,37,-14,-56,-63,-34,3,16,-1,-29,-40,-21,14,37,35,16,3,10,27,32,14,-15,-32,-21,8,23,10,-25,-57,-57,-27,8,62,47,10,-18,-16,10,33,29,-4,-37,-44,-20,20,42,30,-5,-39,-48,-32,-8,8,11,11,18,28,33,25,7,-10,-17,-14,-6,34,22,2,-6,9,34,47,33,-2,-30,-34,-12,15,20,-2,-34,-54,-43,-11,22,36,24,4,-8,-6,11,30,41,38,21,-1,-18,-20,-33,-41,-34,-12,13,24,16,-5,-19,-14,5,23,26,16,2,1,15,31,33,11,-26,-58,-70,-55,-21,16,38,37,15,-15,-36 },
{ 54,53,45,35,29,29,30,27,16,-1,-23,-39,-42,-26,1,26,33,10,-33,-71,-82,-50,8,66,99,86,50,8,-21,-26,-19,-13,13,0,-14,-22,-19,-8,5,12,11,2,-12,-24,-24,-9,18,42,46,24,-14,-46,-50,-27,8,30,24,-2,-27,-33,-17,6,18,14,-33,-49,-55,-49,-34,-15,0,12,21,24,21,11,0,-5,0,14,30,37,33,20,4,-12,-31,-50,-63,-56,-29,10,42,47,27,-3,-14,-13,-4,8,14,11,3,-2,3,15,22,15,-8,-37,-53,-43,-9,28,52,51,27,-2,-25,-28,-11,14,36,42,25,-5,-35,-52,29,41,50,48,30,-2,-34,-48,-38,-8,21,28,6,-32,-59,-57,-29,4,26,28,19,13,18,30,37,30,7,-21,-43,-44,-31,-15,7,9,13,13,1,-22,-41,-45,-24,14,49,63,48,17,-12,-25,-25,-21,-19,-19,-15,-5,8,13,2,-17,-34,-35,-11,24,54,63,-52,-53,-32,0,23,26,14,-2,-7,2,18,31,36,30,20,9,-4,-17,-28,-30,-24,-12,-2,0,-6,-11,-7,10,36,53,54,35,-59,-49,-10,34,63,61,28,-16,-55,-73,-65,-41,-10,16,32,34,27,16,5,1,3,10,14,13,7,1,-4,-7,-14,-29,-51,-71 },
{ 80,67,36,8,-6,-4,0,-3,-8,-2,20,46,52,23,-30,-72,-78,-39,12,40,33,4,-13,-2,28,44,30,-9,-41,-36,-2,36,41,15,-21,-40,-31,-8,5,-2,-21,-26,-3,31,48,26,-22,-55,-44,3,46,48,6,-42,-55,-25,26,47,22,-21,-45,-28,17,49,-10,-34,-51,-39,-1,36,44,15,-32,-56,-38,7,45,45,18,-4,4,29,39,13,-34,-63,-53,-9,33,36,9,-19,-24,-2,18,15,-6,-16,-15,7,43,70,60,16,-41,-69,-49,-3,35,37,11,-12,-13,1,12,8,-4,-7,6,20,19,2,-13,-9,8,15,-7,-45,23,15,2,-1,9,20,21,5,-19,-29,-19,0,7,-7,-29,-38,-27,-4,19,30,32,26,14,-6,-28,-35,-19,16,43,31,-19,-72,32,13,-25,-56,-59,-34,5,35,44,35,15,-2,-14,-17,-11,-4,2,1,-2,-5,-3,1,-3,-15,-28,-26,-1,35,55,41,-4,-49,50,30,-15,-51,-57,-24,24,55,55,25,-10,-24,-12,19,43,40,10,-28,-50,-42,-12,22,36,23,-6,-25,-20,4,29,33,15,-8,72,61,25,-10,-24,-13,4,8,-12,-40,-54,-38,3,42,55,36,-9,-43,-47,-17,29,61,59,25,-25,-59,-61,-38,-4,20,24,16 },
{ -67,-41,16,63,75,43,-7,-43,-44,-12,23,38,32,11,-9,-20,-24,-24,-21,-15,-8,-1,7,19,33,40,32,6,-23,-31,-15,15,-73,-42,22,68,64,17,-39,-63,-41,4,37,39,15,-9,-15,-7,5,10,8,3,-3,-9,-13,-10,1,12,12,-3,-22,-22,3,33,-62,-37,8,32,17,-22,-50,-40,-1,32,32,1,-32,-33,-4,29,43,31,10,-3,-9,-14,-25,-32,-25,-5,15,17,5,-5,2,20,-28,-11,8,10,-7,-22,-14,16,45,41,-2,-49,-62,-27,24,45,21,-17,-33,-13,20,33,13,-16,-23,-1,28,32,7,-24,-31,-12,19,26,19,-1,-18,-14,13,43,49,15,-35,-57,-33,20,49,23,-38,-71,-47,21,75,70,16,-36,-45,-9,30,31,-3,-38,-37,0,37,31,4,-29,-43,-30,4,31,25,-6,-31,-20,24,61,51,-3,-61,-68,-17,46,64,22,-42,-73,-43,16,54,43,-2,-29,-7,45,26,14,-13,-37,-40,-18,13,27,13,-14,-26,-7,31,47,27,-13,-41,-28,10,33,17,-27,-58,-43,10,55,61,19,-32,-43,3,68,21,16,3,-4,2,17,29,23,-5,-33,-42,-27,-1,15,10,-2,-4,8,23,22,3,-19,-21,2,31,39,10,-39,-75,-64,-4,62 },
{ 27,28,20,5,-14,-33,-53,-67,-73,-61,-39,-11,19,40,54,60,55,37,10,-18,-36,-32,-15,-1,-4,-26,-54,-64,-39,15,72,97,18,17,14,12,12,11,7,1,-3,-3,0,2,1,-4,-7,-5,0,2,-4,-11,-11,4,26,41,37,15,-13,-30,-26,-7,12,15,-14,-16,-10,8,32,52,61,57,45,26,4,-19,-41,-56,-59,-45,-19,7,22,21,13,8,13,24,36,37,26,6,-19,-44,-63,-65,-36,-41,-36,-23,-6,7,12,8,2,-2,-1,1,2,-1,-3,2,13,22,19,0,-28,-51,-55,-38,-6,23,38,36,20,-2,-19,-23,-1,-3,-14,-27,-39,-44,-44,-38,-24,0,30,54,62,48,23,-1,-14,-12,-5,-3,-11,-25,-35,-35,-21,0,21,38,46,44,40,33,62,62,39,12,-7,-12,-9,-7,-7,-4,1,6,3,-9,-26,-36,-28,-2,34,61,66,48,15,-18,-39,-43,-32,-18,-5,4,12,15,41,32,15,6,13,29,37,24,-8,-40,-55,-47,-26,-7,1,-2,-4,1,17,31,37,29,11,-9,-25,-33,-35,-36,-36,-31,-20,-8,-46,-61,-60,-40,-3,32,47,33,1,-22,-18,10,45,63,50,12,-36,-67,-72,-56,-27,4,29,45,51,46,32,15,0,-6,-3,5 },
{ 16,27,28,9,-29,-60,-59,-20,34,61,43,-4,-41,-37,-4,26,29,7,-10,-5,8,6,-19,-39,-28,13,46,36,-5,-33,-13,38,1,16,29,20,-13,-45,-45,-7,46,64,28,-30,-60,-36,16,44,23,-17,-33,-7,30,33,-5,-38,-28,17,47,24,-34,-60,-16,57,-37,-16,24,43,27,-8,-27,-11,20,27,-2,-37,-40,1,45,44,-8,-53,-49,8,62,57,1,-46,-40,9,42,19,-37,-56,-10,58,-75,-44,19,59,48,2,-37,-37,-9,9,3,-11,-3,27,43,21,-32,-61,-34,25,60,34,-26,-61,-33,27,62,39,-19,-46,-18,32,-84,-46,20,58,41,-11,-48,-36,5,31,24,-2,-15,-1,16,11,-14,-27,-12,15,25,1,-33,-38,-5,36,52,25,-19,-37,-20,10,-53,-23,25,43,16,-26,-39,-9,35,46,10,-37,-54,-25,21,42,25,-4,-18,-9,7,10,-1,-11,-12,-5,2,0,-4,-3,1,4,-14,4,23,17,-11,-33,-24,12,44,33,-13,-52,-49,-2,47,53,16,-29,-44,-18,22,42,26,-9,-39,-40,-18,12,33,30,9,-17,3,9,10,-3,-21,-28,-11,18,35,20,-10,-28,-14,18,36,19,-23,-51,-41,-1,41,54,29,-12,-39,-33,-2,30,41,21,-19,-53 },
{ 48,51,52,49,43,32,21,10,-3,-16,-28,-32,-24,-5,9,2,-25,-46,-37,10,71,103,86,26,-42,-73,-66,-33,-3,9,10,7,-10,-19,-19,-15,-10,-8,-5,0,3,0,-6,-10,-1,20,35,24,-13,-48,-54,-23,20,40,22,-13,-33,-19,15,38,30,4,-14,-12,-59,-64,-52,-33,-18,-10,-2,10,24,28,19,4,0,14,35,39,16,-19,-47,-53,-43,-29,-15,5,34,57,59,29,-17,-43,-31,4,-15,-1,20,33,26,7,-7,-5,9,14,0,-27,-44,-30,6,41,54,39,8,-15,-24,-17,-4,8,14,7,-14,-37,-44,-23,21,59,35,49,58,44,9,-31,-51,-39,-7,14,7,-24,-52,-49,-20,19,48,49,36,20,8,-1,-14,-27,-33,-31,-19,-3,13,26,36,37,-7,-7,-3,-6,-21,-36,-32,-5,37,62,55,24,-14,-37,-40,-32,-22,-13,-1,12,19,15,2,-6,0,17,34,35,13,-18,-44,-51,-59,-52,-22,10,28,24,13,8,15,25,32,31,20,2,-18,-35,-45,-36,-13,12,27,24,12,4,7,16,21,7,-21,-47,-57,-45,-38,-17,22,54,54,21,-31,-72,-85,-65,-22,23,52,57,40,14,-7,-12,-4,3,1,-11,-26,-33,-26,-10,6,16,21,27,40,54 },
{ 43,37,28,20,12,4,-6,-7,9,35,49,28,-26,-77,-85,-32,47,87,71,17,-23,-21,6,19,-1,-31,-39,-10,30,42,18,-22,1,-12,-19,-15,-7,-7,-18,-26,-15,17,44,38,-6,-53,-58,-15,40,49,4,-50,-59,-16,39,53,12,-34,-42,-8,31,31,-8,-47,-32,-39,-30,-8,16,20,-2,-33,-43,-15,29,53,43,10,-12,-11,-3,-16,-44,-51,-19,32,63,44,-5,-34,-25,5,22,7,-16,-23,-6,-2,10,30,50,48,16,-29,-56,-44,-1,38,46,25,-1,-12,-6,2,8,14,18,13,-5,-24,-26,-6,20,24,4,-12,4,37,22,15,1,-4,8,21,20,-2,-30,-40,-29,-9,3,0,-6,-2,17,32,33,15,-17,-45,-53,-29,16,47,42,-1,-46,-43,9,68,20,-4,-45,-67,-46,4,50,60,32,-8,-31,-28,-11,-1,-4,-10,-10,-2,5,4,-4,-11,-6,12,32,32,4,-39,-64,-47,5,52,51,24,-28,-58,-43,11,60,67,34,-9,-25,-5,24,28,4,-27,-41,-24,10,38,42,22,-3,-17,-13,0,7,2,-7,-10,-4,2,87,66,13,-31,-41,-21,-3,-6,-26,-38,-19,21,51,44,7,-28,-39,-17,17,35,20,-17,-48,-52,-22,21,55,62,39,3,-34,-55 },
{ 47,37,10,-19,-41,-53,-59,-57,-44,-16,22,50,60,47,25,5,-18,-37,-46,-37,-10,16,20,-2,-25,-15,28,71,76,24,-51,-97,28,17,3,-1,5,14,14,4,-8,-7,1,6,-1,-10,-8,4,13,8,-3,-3,12,27,20,-14,-48,-49,-14,23,33,11,-16,-23,-16,-21,-12,16,51,70,62,29,-8,-29,-38,-42,-46,-35,-7,29,51,40,9,-13,-9,11,21,7,-23,-40,-39,-25,-5,22,53,72,-38,-43,-33,-11,11,20,9,-8,-16,-6,8,12,2,-7,-4,8,11,-5,-33,-46,-27,12,45,55,38,11,-15,-32,-32,-13,19,43,6,1,-14,-28,-36,-37,-31,-12,19,50,67,53,16,-22,-39,-30,-10,1,-2,-13,-16,-6,9,23,31,28,11,-15,-43,-54,-44,-22,66,59,27,-3,-19,-20,-11,-3,2,5,3,-4,-15,-21,-12,12,39,52,39,6,-31,-56,-57,-36,0,34,48,36,9,-14,-21,-11,37,22,4,-1,10,22,17,-10,-45,-58,-43,-9,22,31,21,6,1,6,15,15,0,-19,-34,-32,-11,18,41,44,35,22,15,13,-48,-58,-46,-13,30,54,45,13,-20,-24,4,37,47,19,-33,-73,-75,-38,20,65,76,53,9,-29,-49,-45,-29,-15,-6,-2,-1,1 },
{ 3,21,52,70,62,29,-7,-28,-32,-25,-14,0,17,28,23,7,2,24,62,77,47,-14,-62,-62,-19,31,61,61,47,29,11,-7,-50,-40,-8,15,11,-11,-26,-21,-3,6,0,-5,-3,1,-11,-37,-54,-38,3,28,14,-21,-40,-25,4,12,-13,-41,-40,-20,-4,-6,-63,-54,-26,-8,-9,-14,-1,26,48,37,2,-25,-21,3,12,-10,-44,-50,-26,8,27,30,30,31,16,-23,-63,-63,-21,26,36,7,7,22,31,21,-2,-13,2,30,40,13,-30,-42,-4,55,83,62,11,-21,-17,3,14,15,16,21,21,11,7,22,48,52,13,-41,50,50,32,-3,-38,-49,-31,-2,10,-12,-41,-43,-8,32,44,22,-10,-19,-15,-17,-34,-48,-37,-4,26,30,14,0,-3,-9,-35,-61,-2,-9,-16,-22,-24,-16,4,25,30,15,-9,-26,-33,-38,-42,-36,-5,31,45,24,-17,-41,-28,2,12,-10,-44,-53,-23,16,30,17,-44,-32,-2,29,45,38,22,12,14,23,31,27,6,-20,-33,-17,28,62,64,32,-3,-10,10,30,21,-11,-36,-22,26,67,69,32,-31,-11,21,39,23,-19,-63,-79,-53,-4,42,60,44,6,-28,-38,-26,-15,-18,-29,-27,-5,26,42,27,-3,-24,-20,-2,3,-25,-68 },
{ -71,-28,29,50,21,-30,-58,-41,2,27,21,-5,-25,-27,-24,-26,-38,-43,-38,-28,-18,-9,-2,0,-11,-33,-53,-48,-21,1,-6,-37,-55,-4,59,75,30,-30,-49,-16,36,55,31,-3,-10,12,38,43,28,17,18,21,20,16,19,28,30,18,3,8,32,45,20,-24,-47,-7,37,39,-2,-40,-37,5,39,26,-18,-43,-23,24,51,38,7,-5,3,10,-2,-21,-21,4,30,27,4,-8,5,22,14,-19,-43,-21,3,-1,-23,-31,-8,22,22,-19,-64,-67,-24,15,5,-41,-73,-53,-2,20,-9,-51,-57,-23,12,3,-38,-61,-38,5,21,-2,-9,4,11,2,-7,4,32,47,28,-10,-29,-1,45,52,5,-48,-47,17,84,84,24,-33,-32,16,53,33,-19,-41,-11,34,39,-2,27,28,13,-10,-20,-6,18,27,9,-12,-4,34,66,50,-3,-40,-16,39,68,37,-26,-50,-11,49,72,36,-18,-30,6,38,17,-43,21,9,-17,-39,-42,-23,-3,-4,-28,-46,-37,-8,10,-5,-39,-53,-35,-10,-10,-39,-64,-48,0,34,23,-23,-57,-39,13,37,2,-63,13,7,-2,-5,9,31,42,29,-1,-21,-17,2,20,21,12,10,19,26,20,6,-2,9,24,21,-10,-41,-40,0,51,64,22,-41 },
},
{
{ 0,0,1,1,2,2,3,4,4,5,6,7,8,9,10,11,11,12,13,13,13,13,13,13,12,12,11,10,9,8,7,7,0,1,2,3,4,5,6,7,8,10,12,13,15,17,19,20,22,23,24,25,26,26,25,25,24,23,22,20,19,17,16,14,1,2,3,4,5,7,8,10,12,14,17,19,21,24,26,29,31,33,35,36,37,37,37,36,35,34,32,30,28,26,24,22,1,2,4,5,7,9,11,13,15,18,20,23,26,29,33,36,38,41,43,44,45,46,46,45,44,42,41,39,37,34,32,29,1,3,4,6,8,10,13,15,18,20,24,27,30,33,37,40,44,46,48,50,51,52,52,51,50,49,47,45,43,41,38,35,2,3,5,7,9,12,14,17,20,23,26,29,32,36,39,43,46,49,51,53,54,55,55,55,54,53,51,50,48,45,43,40,2,4,6,8,10,13,16,18,21,24,27,30,33,37,40,44,47,50,52,54,55,56,56,56,55,54,53,52,50,48,46,43,3,4,7,9,11,14,17,19,22,25,28,31,34,37,40,43,46,49,51,53,54,55,55,55,55,54,53,52,51,49,47,44 },
{ -3,-5,-7,-9,-10,-12,-14,-16,-17,-18,-19,-20,-20,-20,-19,-17,-15,-13,-10,-6,-3,0,3,5,7,9,10,10,10,10,9,8,-5,-8,-12,-15,-19,-22,-25,-28,-31,-33,-35,-36,-37,-36,-34,-31,-27,-22,-16,-10,-4,2,8,12,16,18,20,21,21,20,18,16,-6,-11,-16,-20,-25,-29,-33,-37,-41,-44,-47,-49,-49,-48,-46,-42,-36,-29,-20,-12,-2,6,13,19,24,28,30,31,31,30,28,24,-7,-13,-18,-24,-29,-34,-38,-43,-47,-51,-54,-56,-56,-55,-52,-47,-40,-32,-22,-11,0,9,18,25,31,35,38,39,39,38,35,31,-8,-14,-19,-25,-30,-35,-40,-45,-49,-53,-56,-58,-58,-57,-53,-48,-40,-31,-20,-9,2,12,21,29,35,40,43,44,44,43,40,36,-8,-13,-19,-24,-29,-34,-39,-44,-48,-51,-53,-55,-55,-54,-50,-44,-36,-27,-17,-6,5,14,23,31,37,42,45,46,47,46,43,39,-7,-12,-17,-22,-27,-32,-36,-40,-43,-46,-48,-49,-49,-47,-43,-37,-30,-21,-12,-3,7,16,24,31,37,41,44,46,46,45,43,40,-6,-10,-15,-19,-24,-27,-31,-34,-37,-39,-40,-41,-40,-38,-34,-29,-22,-15,-7,1,9,16,23,29,34,39,41,43,44,43,42,40 },
{ 4,6,8,10,12,14,14,15,14,13,11,7,3,-3,-8,-14,-19,-23,-25,-26,-25,-23,-19,-14,-9,-5,0,4,7,9,10,12,7,11,15,19,22,24,26,26,26,24,19,13,5,-5,-15,-26,-36,-43,-47,-49,-47,-42,-34,-24,-15,-5,3,10,16,19,21,22,9,15,20,25,30,33,35,36,36,33,27,19,8,-5,-20,-34,-48,-57,-63,-64,-61,-53,-42,-29,-15,-3,9,18,26,30,33,33,10,17,24,29,35,39,41,42,42,39,33,24,11,-3,-20,-36,-51,-62,-68,-69,-65,-56,-43,-27,-12,3,16,27,35,40,42,42,11,18,25,31,37,41,44,45,45,42,36,27,15,1,-15,-32,-47,-58,-64,-64,-59,-50,-36,-21,-4,10,24,34,42,47,49,49,10,18,24,31,36,40,43,45,44,42,37,29,19,6,-8,-23,-36,-46,-51,-51,-47,-38,-25,-11,4,17,29,39,47,51,53,52,9,16,22,28,33,37,40,41,41,40,35,29,21,10,-1,-13,-24,-31,-35,-35,-31,-24,-13,-1,11,23,33,41,47,51,53,52,8,14,19,24,29,32,35,36,36,35,32,28,21,14,5,-4,-11,-17,-20,-19,-16,-10,-2,7,16,26,33,40,45,49,50,50 },
{ 5,8,10,13,16,18,19,21,22,22,22,22,21,21,22,22,23,25,27,29,31,33,34,34,33,31,28,25,21,17,12,7,8,13,18,22,26,29,32,33,34,35,34,33,32,31,31,32,34,38,41,46,50,53,55,56,55,52,48,42,36,29,21,14,10,16,22,27,32,35,37,38,38,38,36,33,31,29,28,28,31,34,39,45,52,56,61,63,63,60,56,49,42,34,25,17,11,18,23,27,31,33,34,34,33,31,27,23,19,15,12,11,13,16,22,29,36,43,49,53,54,53,50,44,38,30,22,14,11,16,20,23,25,26,26,24,21,17,12,6,-1,-7,-11,-13,-14,-11,-6,1,10,18,25,31,34,34,33,29,24,19,12,5,8,12,15,16,16,15,13,10,6,0,-6,-14,-22,-29,-34,-39,-40,-39,-34,-28,-20,-12,-4,3,7,10,10,8,6,2,-2,-6,5,6,7,7,5,3,0,-5,-10,-16,-24,-31,-39,-47,-53,-58,-61,-60,-57,-52,-45,-38,-30,-24,-19,-15,-14,-13,-14,-15,-17,-19,0,0,-1,-2,-5,-8,-12,-17,-23,-29,-36,-44,-51,-58,-64,-69,-72,-73,-71,-67,-62,-56,-50,-44,-39,-35,-33,-31,-30,-30,-30,-30 },
{ -6,-9,-11,-13,-14,-13,-11,-8,-3,3,10,18,25,30,32,32,29,22,14,5,-3,-9,-13,-14,-12,-8,-4,1,6,9,12,15,-10,-15,-20,-24,-25,-25,-21,-15,-7,4,17,31,44,53,58,57,50,38,22,5,-10,-20,-26,-26,-22,-14,-4,5,14,21,26,29,-13,-21,-28,-33,-35,-34,-30,-23,-12,2,19,37,54,67,72,70,60,43,22,-1,-20,-33,-39,-37,-30,-18,-3,11,23,33,39,42,-15,-25,-33,-39,-42,-42,-37,-30,-18,-4,14,34,52,66,71,68,56,37,13,-11,-32,-45,-48,-44,-34,-19,-2,15,30,42,48,51,-16,-27,-35,-42,-45,-46,-42,-35,-24,-11,6,24,41,53,58,54,42,23,0,-22,-41,-51,-53,-47,-34,-18,1,18,34,46,53,56,-16,-26,-34,-41,-45,-46,-43,-37,-29,-18,-4,10,24,33,37,33,22,6,-13,-31,-45,-52,-52,-44,-31,-15,3,20,34,46,52,55,-14,-23,-31,-38,-42,-43,-41,-37,-31,-23,-13,-2,7,14,16,12,3,-9,-23,-35,-44,-48,-45,-38,-26,-11,4,19,32,41,48,51,-11,-19,-26,-32,-36,-38,-37,-35,-30,-25,-18,-11,-6,-2,-1,-4,-10,-18,-27,-34,-39,-40,-37,-30,-20,-8,4,16,27,35,41,44 },
{ -9,-14,-19,-23,-26,-28,-29,-30,-29,-28,-27,-26,-25,-24,-24,-23,-22,-19,-15,-8,-1,8,17,25,31,35,36,34,31,26,19,12,-15,-22,-30,-37,-41,-44,-45,-45,-43,-40,-37,-35,-33,-32,-32,-32,-32,-29,-22,-13,0,14,29,42,53,59,60,57,52,43,32,20,-17,-27,-36,-42,-47,-48,-48,-45,-41,-36,-30,-26,-23,-23,-25,-27,-30,-29,-24,-15,-2,14,31,46,59,65,67,64,57,47,34,21,-17,-26,-33,-38,-40,-40,-37,-31,-24,-17,-9,-4,0,-1,-5,-11,-18,-22,-22,-17,-7,6,21,35,46,53,54,51,45,36,24,12,-14,-21,-25,-27,-27,-24,-18,-10,0,9,18,24,28,26,20,10,-2,-12,-18,-19,-15,-8,2,12,21,26,27,24,19,12,3,-5,-9,-13,-14,-13,-10,-5,3,12,23,33,41,48,50,48,39,27,12,-3,-14,-21,-24,-22,-18,-13,-9,-6,-5,-7,-11,-15,-20,-24,-3,-4,-3,0,5,11,20,29,39,48,56,61,62,59,50,36,19,3,-12,-23,-30,-34,-35,-34,-33,-32,-32,-33,-36,-38,-40,-40,2,3,6,10,15,22,29,38,46,53,59,62,62,58,49,36,20,4,-11,-23,-33,-39,-43,-46,-47,-48,-49,-50,-51,-52,-52,-51 },
{ 6,9,10,10,9,6,0,-7,-15,-23,-29,-32,-32,-26,-16,-3,9,20,27,28,25,18,9,1,-4,-5,-3,2,7,13,18,23,10,15,18,19,17,11,1,-11,-25,-38,-49,-56,-55,-46,-27,-5,19,38,47,48,40,26,9,-5,-13,-14,-8,2,15,26,35,42,14,22,26,28,25,18,6,-9,-27,-44,-58,-67,-67,-55,-32,-2,28,50,60,57,43,21,-1,-19,-29,-27,-16,1,19,36,49,57,17,27,33,35,33,26,14,-2,-21,-39,-53,-62,-62,-51,-27,2,32,54,60,52,33,7,-18,-36,-45,-41,-25,-4,20,41,57,67,19,29,37,40,39,34,23,8,-8,-25,-38,-46,-47,-37,-17,8,33,48,50,38,16,-10,-35,-51,-57,-50,-33,-9,17,40,58,68,18,29,37,42,42,39,30,19,5,-8,-19,-26,-26,-19,-5,13,30,38,35,21,-1,-24,-45,-58,-61,-53,-35,-13,12,34,52,63,16,26,34,39,41,39,34,25,15,6,-2,-7,-8,-4,5,16,24,26,20,7,-12,-30,-46,-55,-57,-49,-34,-14,7,26,42,53,13,22,29,34,36,36,33,27,21,14,9,5,4,6,10,15,18,16,10,-2,-16,-30,-40,-46,-46,-40,-28,-13,4,19,33,42 },
{ 13,18,23,27,29,30,29,27,24,21,17,12,6,0,-8,-16,-24,-32,-38,-41,-41,-35,-26,-13,0,13,23,31,35,34,30,23,19,28,36,41,44,44,42,38,33,28,21,15,8,0,-10,-21,-34,-46,-55,-61,-61,-53,-38,-19,2,22,38,51,56,56,49,38,21,31,39,44,46,44,40,34,28,21,15,10,5,0,-6,-14,-24,-35,-46,-54,-57,-51,-38,-19,4,25,43,55,63,61,54,41,18,27,32,34,33,30,24,16,9,3,-1,-2,0,3,5,5,2,-5,-14,-25,-32,-33,-26,-14,2,19,33,43,48,48,41,30,12,17,18,17,13,7,-1,-9,-16,-20,-20,-16,-7,4,17,27,33,32,26,14,2,-6,-10,-8,-3,5,12,17,20,19,15,8,5,5,3,-2,-8,-16,-24,-32,-37,-40,-36,-28,-14,4,23,41,54,59,55,44,29,14,2,-6,-11,-12,-12,-12,-12,-13,-15,-18,-3,-6,-11,-17,-25,-33,-41,-47,-51,-51,-46,-35,-20,0,22,43,59,66,64,54,40,23,6,-8,-20,-27,-33,-36,-39,-40,-40,-40,-8,-13,-20,-26,-34,-41,-48,-53,-55,-54,-48,-38,-23,-5,15,34,49,56,55,47,35,20,3,-12,-26,-37,-44,-50,-54,-56,-55,-54 },
{ -9,-12,-13,-11,-6,2,12,21,29,31,27,17,3,-13,-27,-34,-34,-25,-10,7,19,25,23,15,6,-3,-8,-9,-5,2,12,22,-15,-21,-23,-19,-10,3,19,35,48,53,47,31,6,-21,-45,-58,-56,-39,-12,16,36,44,37,21,2,-12,-18,-17,-7,6,23,37,-21,-29,-32,-29,-18,-2,19,40,58,64,58,39,9,-25,-53,-68,-65,-41,-7,27,50,54,41,17,-8,-26,-32,-26,-11,10,33,51,-25,-37,-41,-38,-28,-12,10,33,53,62,58,40,10,-22,-49,-63,-56,-32,3,36,55,55,34,5,-23,-41,-44,-34,-13,13,40,61,-27,-41,-48,-47,-39,-23,-3,19,38,49,48,34,11,-15,-37,-45,-38,-15,14,39,51,44,21,-9,-37,-52,-53,-39,-14,14,44,65,-27,-42,-50,-51,-45,-33,-16,3,20,31,33,25,10,-8,-22,-26,-18,0,21,37,40,30,7,-20,-44,-56,-53,-38,-13,15,43,64,-25,-38,-47,-49,-46,-37,-24,-9,5,14,18,14,7,-2,-9,-10,-3,9,21,29,28,16,-3,-24,-42,-49,-45,-31,-10,15,39,58,-20,-31,-39,-42,-41,-36,-26,-15,-5,3,6,7,4,0,-2,-1,5,12,18,20,16,7,-7,-22,-33,-38,-33,-22,-5,14,34,49 },
{ -21,-28,-34,-37,-38,-35,-30,-23,-14,-6,3,10,17,21,24,24,20,11,-1,-16,-31,-41,-48,-47,-41,-28,-12,5,19,27,31,30,-29,-42,-50,-54,-53,-49,-39,-28,-15,-3,9,19,26,32,34,35,30,20,3,-17,-38,-56,-64,-65,-55,-36,-12,13,34,47,51,47,-31,-43,-51,-53,-50,-42,-31,-18,-6,6,14,20,23,24,26,27,27,23,12,-4,-24,-41,-53,-55,-48,-30,-6,20,42,54,58,52,-25,-34,-37,-36,-29,-21,-9,1,11,16,16,12,6,1,-1,3,10,17,20,17,6,-7,-19,-26,-25,-15,1,19,35,45,46,42,-15,-17,-16,-10,-1,8,17,24,27,24,15,0,-16,-29,-34,-28,-13,7,25,36,37,30,19,8,0,-2,2,8,15,19,20,17,-2,0,6,15,24,33,39,41,38,28,10,-12,-34,-52,-57,-51,-31,-5,23,44,54,53,42,28,14,3,-5,-9,-11,-12,-12,-12,8,14,23,31,40,46,49,47,40,26,5,-19,-43,-60,-66,-59,-40,-13,15,38,53,54,45,30,14,-3,-16,-27,-35,-38,-39,-37,13,21,29,37,44,48,47,43,34,19,0,-21,-41,-56,-61,-56,-40,-19,5,24,36,39,32,19,3,-13,-27,-40,-49,-54,-55,-52 },
{ -4,-5,-6,-7,-9,-11,-14,-18,-24,-31,-38,-45,-53,-58,-61,-60,-59,-55,-51,-47,-45,-43,-43,-42,-42,-40,-37,-33,-28,-22,-15,-9,-5,-6,-6,-6,-6,-8,-11,-16,-23,-31,-40,-49,-57,-63,-64,-63,-58,-53,-47,-43,-41,-42,-43,-45,-46,-46,-44,-41,-36,-30,-22,-15,-4,-3,-1,1,3,4,4,2,-2,-8,-14,-20,-25,-26,-25,-20,-15,-9,-4,-3,-4,-7,-11,-16,-20,-22,-24,-24,-24,-21,-17,-12,-3,0,4,9,13,17,20,21,21,21,19,19,20,23,27,33,39,43,43,42,38,33,27,22,18,13,9,5,1,-2,-3,-4,-1,2,7,11,16,21,25,29,32,35,38,41,46,51,57,61,65,64,61,56,52,47,44,42,41,38,34,29,24,17,11,5,-1,0,3,6,9,12,16,19,22,25,28,32,36,40,43,44,42,39,33,29,25,25,27,31,34,36,36,35,30,23,15,8,-3,-5,-6,-6,-6,-6,-6,-6,-5,-5,-4,-3,-2,-2,-3,-7,-12,-18,-23,-27,-27,-23,-16,-6,3,11,16,18,18,14,8,2,-7,-11,-16,-19,-23,-26,-29,-32,-35,-37,-40,-43,-46,-50,-55,-62,-69,-75,-79,-80,-77,-71,-60,-48,-35,-24,-15,-8,-5,-5,-7,-10 },
{ -2,-2,0,6,14,22,30,33,31,21,4,-14,-27,-30,-20,0,23,40,46,38,20,-2,-20,-28,-27,-17,-5,5,9,6,-3,-16,-6,-8,-4,4,17,31,43,51,48,33,6,-24,-48,-56,-39,-6,33,63,69,55,22,-12,-37,-47,-38,-20,1,16,19,12,-6,-26,-13,-18,-16,-7,7,25,41,52,53,37,7,-30,-61,-70,-53,-14,32,64,71,49,11,-27,-51,-53,-36,-9,17,32,32,16,-10,-38,-21,-30,-32,-25,-11,8,26,41,46,35,9,-26,-57,-70,-55,-21,21,50,52,29,-8,-41,-54,-46,-20,11,36,47,40,18,-17,-49,-28,-41,-47,-42,-30,-12,8,26,36,32,14,-13,-38,-50,-43,-19,10,28,27,6,-23,-44,-47,-30,0,30,51,54,41,12,-26,-60,-31,-47,-54,-52,-42,-26,-6,13,27,30,21,6,-12,-22,-21,-9,5,13,7,-9,-27,-38,-32,-12,16,41,53,51,32,2,-36,-68,-29,-44,-51,-51,-44,-29,-11,8,23,30,29,22,13,5,2,4,7,7,0,-12,-22,-25,-16,1,23,38,44,37,18,-10,-43,-71,-23,-35,-41,-41,-35,-24,-9,7,21,29,32,31,26,22,18,15,12,8,1,-7,-12,-12,-4,8,20,29,29,21,3,-20,-46,-68 },
{ -31,-42,-47,-47,-42,-34,-23,-12,-3,2,3,0,-6,-13,-18,-22,-25,-25,-23,-17,-8,6,24,40,52,55,48,33,14,-5,-21,-33,-42,-57,-63,-61,-52,-37,-19,-3,11,17,16,9,-1,-11,-18,-21,-23,-24,-24,-23,-15,1,24,49,67,73,62,41,12,-15,-38,-53,-42,-55,-58,-51,-38,-19,1,18,31,33,28,16,4,-5,-8,-5,-2,-3,-10,-19,-23,-16,2,26,48,56,49,29,1,-27,-51,-64,-31,-39,-37,-27,-11,8,25,38,43,39,27,11,-2,-6,1,14,26,27,13,-8,-28,-37,-30,-13,7,20,20,9,-11,-33,-51,-62,-17,-18,-12,0,15,30,41,45,41,28,10,-9,-21,-18,0,25,47,51,36,6,-27,-49,-56,-47,-31,-14,-4,-3,-11,-22,-34,-42,-3,-1,8,19,30,38,40,36,23,5,-17,-36,-44,-37,-12,21,49,61,48,19,-17,-45,-57,-56,-42,-25,-8,2,5,2,-4,-11,5,10,17,25,31,33,28,17,0,-21,-42,-58,-63,-52,-26,8,39,53,47,26,-2,-26,-39,-38,-28,-11,7,22,31,33,29,21,8,13,18,22,23,20,12,-1,-19,-38,-54,-66,-68,-57,-34,-4,23,38,39,28,11,-4,-11,-11,-2,12,28,43,53,57,53,46 },
{ -1,-1,0,4,10,17,26,36,47,55,60,61,59,50,38,22,5,-10,-22,-30,-35,-35,-33,-30,-31,-33,-39,-44,-47,-46,-40,-30,-4,-7,-6,-3,3,12,24,36,48,58,63,64,59,50,34,17,-1,-16,-28,-35,-36,-33,-26,-21,-21,-27,-37,-48,-57,-59,-53,-42,-9,-14,-16,-16,-13,-6,2,10,18,23,24,22,17,11,3,-3,-9,-13,-16,-16,-13,-5,5,13,16,10,-3,-18,-33,-40,-39,-32,-12,-19,-23,-26,-26,-24,-22,-20,-20,-22,-27,-32,-35,-35,-29,-20,-8,0,6,10,16,24,33,43,48,46,36,22,8,-3,-8,-8,-10,-16,-20,-22,-24,-25,-28,-32,-38,-46,-55,-60,-62,-54,-39,-18,3,18,25,25,26,27,34,42,50,53,52,45,38,29,22,16,-3,-4,-4,-5,-5,-6,-10,-16,-24,-33,-42,-48,-47,-38,-19,2,21,30,28,19,8,1,0,6,15,24,32,36,38,36,32,27,8,12,17,21,24,25,23,18,12,5,-3,-7,-6,2,15,27,35,32,18,-2,-24,-40,-47,-46,-38,-25,-11,3,13,19,21,21,16,25,33,41,47,51,52,50,47,42,38,34,34,38,41,43,39,26,3,-23,-50,-71,-82,-85,-79,-67,-51,-34,-19,-8,0,5 },
{ 10,11,8,2,-5,-11,-12,-5,8,25,39,44,34,8,-25,-50,-57,-40,-9,22,38,34,16,-6,-18,-16,-3,14,24,23,11,-8,15,17,11,0,-14,-25,-27,-19,1,27,51,63,51,15,-34,-72,-78,-52,-2,43,62,49,13,-22,-39,-32,-8,19,35,33,12,-17,19,21,14,-1,-20,-36,-42,-36,-16,13,44,62,56,21,-29,-66,-73,-39,15,58,71,44,-2,-42,-59,-43,-10,23,41,34,4,-33,23,29,22,6,-16,-37,-48,-48,-32,-6,25,47,48,24,-13,-43,-45,-16,28,59,58,26,-20,-55,-63,-42,-4,30,43,29,-9,-52,29,37,33,18,-4,-26,-42,-47,-41,-21,4,26,33,22,0,-17,-17,3,30,43,33,1,-34,-54,-51,-23,13,39,44,21,-22,-68,32,44,43,32,14,-7,-25,-36,-36,-26,-8,9,18,16,6,-3,-3,8,19,21,7,-16,-35,-40,-25,3,32,49,44,16,-30,-75,33,46,49,42,29,11,-6,-18,-24,-20,-11,0,6,7,3,-1,-1,2,4,1,-9,-20,-25,-18,1,25,45,52,41,11,-32,-72,29,42,47,44,35,22,8,-3,-10,-11,-8,-3,0,1,-1,-4,-5,-5,-6,-9,-13,-16,-12,-1,17,35,46,46,32,6,-30,-64 },
{ -23,-28,-25,-14,3,23,40,51,55,47,32,12,-8,-23,-34,-38,-39,-33,-24,-11,1,9,10,6,-1,-5,-4,5,20,36,51,59,-35,-44,-39,-24,1,28,51,65,67,56,33,8,-13,-27,-32,-34,-32,-27,-18,-5,10,20,20,11,-4,-15,-15,-3,19,46,69,82,-41,-52,-48,-32,-8,18,38,47,44,28,7,-11,-20,-16,-6,1,3,1,-1,3,14,23,24,12,-7,-25,-33,-25,-3,27,57,76,-38,-49,-46,-33,-14,3,13,13,3,-14,-29,-34,-24,0,26,41,40,25,5,-4,2,14,21,16,-3,-27,-43,-46,-33,-8,23,48,-27,-34,-31,-21,-9,-1,-2,-12,-30,-46,-56,-49,-24,13,48,63,54,24,-9,-27,-23,-4,16,23,13,-10,-35,-50,-52,-37,-12,13,-9,-10,-4,4,10,11,2,-15,-35,-52,-56,-45,-17,19,48,58,38,2,-35,-54,-45,-17,15,36,37,20,-8,-33,-46,-45,-30,-10,9,16,24,31,35,32,21,3,-17,-31,-35,-25,-4,20,37,35,11,-23,-54,-65,-52,-20,18,47,59,48,24,-2,-22,-30,-26,-14,21,33,43,50,53,51,40,25,9,-3,-7,-3,9,20,24,15,-8,-35,-54,-58,-42,-12,23,52,67,64,47,25,5,-7,-10,-6 },
{ 32,41,46,45,43,38,32,26,22,19,16,13,9,4,-2,-10,-22,-34,-48,-58,-62,-51,-30,-1,29,50,62,62,54,37,18,0,38,49,52,50,43,35,26,18,13,11,9,8,6,4,1,-2,-10,-23,-40,-57,-64,-58,-35,-2,32,59,70,70,56,36,12,-8,30,35,34,26,16,5,-4,-10,-12,-10,-7,-4,-2,1,6,13,19,17,7,-10,-25,-30,-23,-6,15,31,39,36,24,5,-13,-26,12,11,3,-8,-21,-31,-35,-35,-30,-23,-16,-11,-8,-4,4,19,37,51,52,43,25,7,-6,-11,-11,-9,-9,-13,-21,-31,-38,-41,-4,-11,-21,-32,-43,-47,-45,-37,-26,-15,-7,-4,-7,-10,-8,4,26,48,63,62,51,28,5,-15,-29,-37,-41,-43,-45,-45,-42,-36,-11,-19,-27,-35,-38,-36,-27,-13,2,14,18,14,2,-14,-26,-27,-13,8,28,40,38,26,6,-14,-28,-36,-37,-35,-30,-24,-15,-8,-9,-13,-16,-17,-14,-6,7,23,39,47,46,35,13,-14,-39,-53,-54,-40,-20,-2,8,8,2,-5,-11,-11,-6,2,12,21,29,32,-1,-1,1,6,14,24,38,53,64,69,63,47,22,-9,-40,-62,-71,-67,-51,-33,-17,-6,1,6,13,20,31,43,54,64,68,67 },
{ 49,60,62,57,49,37,27,18,13,8,3,-4,-13,-22,-29,-32,-31,-22,-4,19,44,62,70,62,42,11,-21,-44,-54,-45,-26,-4,53,64,61,52,37,22,11,4,2,1,0,-4,-11,-18,-25,-30,-30,-27,-15,5,29,52,64,62,40,6,-31,-57,-63,-50,-22,6,35,36,27,11,-5,-17,-22,-20,-14,-5,1,4,4,4,2,1,-4,-12,-20,-23,-17,-2,14,23,18,-1,-25,-40,-39,-20,6,30,7,-1,-15,-31,-44,-49,-44,-31,-16,-2,7,12,16,21,28,34,32,17,-10,-38,-54,-53,-34,-14,-1,0,-4,-6,2,19,38,51,-12,-25,-38,-48,-54,-49,-36,-17,2,13,15,12,9,13,26,41,51,40,11,-26,-55,-61,-48,-24,-3,11,17,21,29,38,47,50,-16,-26,-32,-35,-30,-19,-2,15,28,29,17,-1,-17,-21,-8,15,36,43,29,3,-21,-30,-23,-7,10,21,23,23,22,22,22,21,-8,-10,-9,-3,7,20,34,45,48,36,12,-19,-47,-59,-52,-27,3,25,32,26,17,11,12,17,21,19,11,0,-11,-19,-24,-24,4,8,14,23,35,46,55,58,51,33,2,-33,-64,-81,-78,-58,-27,1,20,30,33,33,30,26,18,6,-12,-30,-48,-60,-65,-63 },
{ -20,-20,-9,9,27,37,33,15,-9,-29,-37,-27,-4,19,28,15,-10,-32,-35,-17,8,26,27,13,-2,-9,-5,3,7,1,-16,-36,-31,-31,-14,14,42,58,52,26,-12,-44,-55,-38,1,40,52,31,-13,-49,-51,-22,19,43,36,11,-14,-22,-11,7,17,9,-19,-51,-41,-44,-25,8,42,62,57,28,-15,-50,-62,-39,8,53,68,40,-14,-53,-53,-15,30,49,33,-4,-35,-37,-14,16,34,24,-12,-55,-50,-58,-40,-7,29,52,50,25,-15,-49,-59,-37,10,54,65,37,-15,-50,-43,-4,37,49,22,-22,-51,-47,-13,27,51,42,-1,-52,-55,-65,-52,-21,13,37,40,22,-10,-38,-48,-31,4,37,46,21,-19,-41,-30,7,40,41,10,-32,-58,-46,-8,35,61,50,7,-47,-51,-63,-52,-27,3,26,32,22,0,-21,-31,-24,-3,17,20,3,-22,-32,-16,14,36,33,3,-33,-50,-38,-2,37,56,45,4,-46,-39,-48,-40,-21,3,22,31,26,13,-2,-12,-12,-5,3,2,-9,-21,-20,-5,17,31,25,2,-24,-36,-25,2,28,41,28,-7,-48,-23,-28,-23,-9,9,24,31,30,22,12,3,-1,-2,-2,-5,-11,-14,-10,2,16,24,20,4,-13,-20,-14,1,17,21,9,-18,-48 },
{ 17,19,14,2,-13,-28,-41,-47,-44,-28,-3,27,54,65,58,32,-3,-31,-44,-37,-17,4,16,13,0,-13,-18,-10,11,35,56,65,24,29,22,9,-10,-30,-46,-55,-51,-36,-8,26,55,69,58,29,-11,-43,-52,-39,-8,21,32,24,0,-23,-32,-23,4,39,69,83,27,32,28,18,5,-10,-22,-29,-30,-23,-9,7,21,27,23,8,-15,-31,-33,-17,11,34,41,28,1,-26,-41,-36,-15,17,47,63,20,25,24,21,17,14,13,11,9,3,-5,-16,-25,-26,-20,-11,-4,-1,1,6,17,29,31,23,3,-19,-34,-38,-30,-13,7,20,4,4,6,9,15,25,36,42,42,28,3,-27,-53,-57,-42,-11,18,31,28,13,1,-1,3,8,8,2,-9,-20,-28,-30,-28,-22,-17,-24,-24,-18,-5,14,33,49,52,40,11,-23,-49,-55,-32,4,38,50,32,0,-29,-40,-29,-7,16,28,25,13,-6,-25,-40,-46,-36,-49,-53,-47,-33,-12,12,31,41,34,14,-11,-30,-29,-8,23,48,47,21,-19,-54,-64,-48,-14,22,46,53,42,21,-6,-31,-46,-43,-60,-67,-64,-52,-34,-12,7,20,21,12,-1,-9,-5,11,31,43,36,7,-29,-58,-66,-48,-14,24,52,62,57,38,12,-14,-33 },
{ 41,51,57,54,48,33,13,-8,-27,-37,-40,-37,-33,-28,-23,-15,2,22,39,40,21,-16,-55,-78,-82,-60,-28,5,29,38,39,32,38,49,52,50,42,29,9,-11,-28,-35,-31,-22,-14,-12,-16,-17,-6,18,41,51,33,-4,-44,-69,-67,-45,-11,19,36,42,38,31,11,12,12,11,9,5,-1,-9,-13,-9,3,18,29,24,6,-14,-22,-10,14,32,33,18,-1,-11,-6,8,22,27,23,13,6,4,-22,-31,-34,-31,-24,-17,-9,-3,4,15,28,43,52,46,21,-10,-34,-39,-22,-2,14,22,28,35,44,48,37,16,-10,-31,-36,-29,-40,-53,-56,-48,-34,-18,-5,5,12,16,22,29,35,31,16,-7,-30,-40,-39,-27,-13,4,22,38,49,43,23,-8,-40,-57,-56,-38,-34,-44,-41,-30,-13,2,12,14,8,-1,-9,-13,-11,-5,1,2,-1,-9,-18,-25,-27,-21,-9,5,13,10,-4,-25,-42,-47,-33,-12,-12,-11,-3,10,24,33,33,22,3,-19,-40,-51,-51,-34,-8,19,37,38,24,2,-18,-30,-32,-28,-22,-18,-17,-17,-13,0,21,40,12,20,31,44,53,56,47,29,2,-26,-49,-62,-59,-39,-4,34,62,72,58,33,5,-18,-29,-32,-28,-19,-6,11,30,52,73,88 },
{ 40,40,32,21,15,15,22,32,40,40,34,27,27,39,60,78,88,82,71,58,51,46,40,33,28,29,37,46,50,41,22,0,36,32,16,0,-11,-11,0,15,26,25,11,-5,-12,-2,21,41,46,37,20,11,12,15,13,5,-2,1,14,32,42,36,13,-13,20,9,-10,-30,-42,-40,-27,-9,3,0,-19,-42,-57,-52,-37,-24,-29,-45,-60,-57,-41,-23,-19,-28,-41,-41,-27,-5,11,10,-9,-32,6,-4,-21,-37,-45,-42,-26,-8,5,3,-15,-37,-51,-48,-35,-30,-41,-63,-73,-63,-34,-8,-3,-18,-39,-50,-42,-24,-8,-6,-21,-41,4,-1,-10,-18,-20,-13,1,16,28,26,14,0,-4,5,22,27,14,-8,-20,-8,21,43,46,25,-3,-21,-22,-10,1,2,-11,-30,10,11,9,7,9,15,24,33,37,35,26,22,27,44,64,74,63,44,29,34,52,69,66,49,23,8,6,15,23,24,10,-9,11,15,16,16,17,18,19,17,13,6,-1,-3,5,22,41,50,43,26,11,8,17,26,27,18,7,3,9,20,31,31,21,2,6,8,7,5,1,-3,-11,-20,-32,-43,-52,-56,-51,-40,-29,-24,-31,-44,-57,-62,-59,-52,-46,-43,-39,-31,-17,-1,12,17,10,-3 },
{ 20,21,11,-2,-13,-14,-5,8,15,5,-23,-54,-72,-58,-21,14,22,-5,-44,-65,-57,-29,-5,-2,-18,-34,-37,-22,0,14,13,-2,28,29,14,-8,-24,-26,-8,18,37,30,-5,-50,-73,-55,0,50,56,16,-40,-66,-44,0,31,27,-7,-37,-42,-22,9,27,19,-6,33,33,14,-14,-35,-36,-14,23,56,59,29,-17,-45,-27,27,75,79,30,-26,-42,-8,45,74,55,9,-29,-35,-10,23,36,18,-18,36,36,14,-17,-43,-48,-25,15,53,67,45,6,-23,-16,24,60,56,13,-31,-34,9,61,78,52,2,-32,-29,1,33,40,10,-36,39,39,18,-15,-44,-53,-38,-5,31,46,34,4,-23,-24,-3,17,10,-20,-48,-40,-1,36,44,15,-26,-43,-29,7,38,36,-2,-54,41,44,26,-3,-31,-46,-40,-19,5,18,12,-9,-29,-34,-22,-11,-14,-32,-44,-37,-13,6,2,-23,-47,-49,-23,14,39,32,-10,-62,43,49,37,14,-9,-25,-27,-18,-5,2,0,-11,-22,-22,-12,-1,2,-4,-10,-8,-2,0,-11,-29,-42,-34,-7,25,43,30,-11,-57,39,48,43,29,12,-2,-7,-5,1,4,5,1,0,5,18,30,38,39,35,32,27,19,5,-9,-14,-6,15,37,45,31,-4,-42 },
{ -29,-28,-13,12,36,49,47,29,3,-24,-42,-42,-28,-1,27,47,53,39,14,-11,-24,-15,9,32,39,23,-4,-23,-21,6,44,73,-43,-44,-23,9,41,59,54,33,1,-28,-44,-43,-25,-1,23,40,43,31,4,-24,-37,-26,8,40,47,24,-14,-43,-40,-4,50,92,-49,-51,-32,-3,25,39,34,16,-7,-22,-23,-14,-3,2,0,-3,-1,-1,-6,-21,-33,-27,-1,27,38,17,-21,-51,-55,-22,31,74,-41,-44,-31,-12,4,9,2,-10,-17,-11,8,27,30,10,-23,-45,-41,-19,5,8,-6,-18,-13,6,19,13,-11,-37,-46,-32,2,36,-20,-20,-13,-6,-4,-11,-24,-32,-27,-3,32,58,58,20,-31,-61,-51,-6,38,47,25,-9,-26,-17,4,18,14,-1,-18,-24,-18,-5,8,14,17,14,3,-14,-32,-42,-33,-4,34,62,58,22,-27,-53,-33,17,61,69,34,-12,-39,-35,-5,26,40,37,17,-7,-25,-33,32,43,45,36,19,-5,-27,-39,-35,-13,17,38,36,10,-24,-37,-16,25,57,54,18,-27,-53,-45,-12,26,51,54,37,6,-26,-45,42,55,57,47,28,5,-17,-32,-33,-22,-5,8,6,-9,-27,-31,-13,14,30,22,-9,-44,-60,-51,-20,16,40,47,33,6,-25,-47 },
{ 54,63,61,47,26,1,-23,-39,-47,-40,-27,-13,-4,-1,1,7,13,9,-12,-44,-71,-66,-32,21,66,79,65,31,-4,-28,-40,-38,49,57,52,37,16,-7,-26,-39,-38,-27,-9,5,8,1,-3,3,18,27,12,-22,-54,-62,-31,16,55,66,47,14,-17,-37,-41,-36,14,12,7,1,-5,-10,-13,-11,-2,12,27,31,21,0,-17,-14,9,35,43,27,2,-15,-15,-2,7,4,-7,-18,-24,-19,-11,-5,-27,-37,-37,-29,-16,-3,8,18,27,36,40,36,17,-11,-32,-37,-17,15,41,50,41,24,3,-15,-32,-45,-45,-33,-9,16,32,34,-48,-59,-53,-33,-10,11,24,27,25,20,17,12,3,-12,-30,-39,-37,-19,5,25,35,29,13,-10,-35,-46,-41,-17,16,44,57,49,-40,-46,-34,-12,12,27,27,15,-5,-21,-25,-20,-6,4,4,-8,-24,-34,-31,-20,-3,10,14,8,-3,-11,-8,6,25,39,37,24,-15,-12,1,20,35,37,22,-5,-36,-56,-57,-36,-2,32,50,42,16,-17,-40,-44,-33,-11,11,24,29,25,19,14,9,0,-16,-30,8,16,28,41,46,38,15,-17,-48,-66,-60,-32,11,54,79,77,49,11,-22,-38,-35,-18,6,27,37,34,20,0,-22,-45,-65,-78 },
{ -38,-38,-33,-26,-25,-29,-38,-47,-53,-54,-54,-55,-61,-64,-61,-47,-24,1,22,37,49,54,57,54,53,53,58,63,64,53,33,11,-28,-23,-10,1,5,0,-10,-19,-22,-17,-10,-8,-13,-22,-24,-18,-4,8,14,16,17,18,17,13,8,8,17,30,38,34,17,-4,-6,6,23,35,40,33,25,19,23,34,48,54,51,39,29,23,19,8,-8,-25,-37,-37,-37,-41,-51,-53,-46,-31,-17,-11,-17,-26,6,17,29,36,34,26,17,14,20,33,45,51,46,36,27,23,17,3,-18,-37,-42,-35,-25,-26,-37,-50,-52,-46,-34,-26,-25,-30,1,5,8,6,-3,-14,-23,-25,-21,-12,-6,-7,-15,-22,-21,-9,2,3,-5,-11,-3,17,36,39,29,11,-2,-6,-2,2,0,-7,-8,-10,-14,-21,-30,-40,-45,-46,-41,-37,-37,-45,-56,-61,-49,-26,-1,12,13,14,24,45,63,71,64,51,37,32,32,34,29,18,-6,-8,-11,-14,-19,-20,-19,-13,-6,-3,-7,-17,-30,-34,-25,-5,14,20,14,4,2,7,17,23,22,17,15,17,23,27,26,16,5,8,12,15,20,27,36,46,56,60,56,47,34,27,26,30,30,20,-2,-28,-48,-60,-62,-61,-59,-56,-48,-37,-24,-13,-8,-8 },
{ -19,-17,-8,1,2,-6,-15,-16,3,34,63,61,23,-32,-64,-42,16,59,58,14,-30,-40,-20,5,6,-13,-31,-29,-8,17,27,18,-20,-16,0,13,14,-1,-22,-34,-18,22,63,72,26,-45,-83,-57,21,77,63,2,-49,-48,-4,33,28,-7,-37,-37,-7,25,33,17,-18,-11,9,27,31,11,-22,-48,-49,-14,33,53,23,-35,-72,-46,22,61,38,-23,-60,-33,26,63,49,1,-36,-33,0,28,26,-4,-20,-12,12,36,44,27,-10,-47,-61,-41,2,33,26,-8,-33,-20,20,36,4,-44,-55,-14,43,68,40,-9,-37,-25,11,31,11,-33,-31,-24,1,30,48,39,8,-28,-50,-41,-10,21,30,16,1,4,19,14,-15,-41,-37,3,41,42,7,-32,-43,-14,26,36,0,-58,-45,-45,-20,13,38,42,25,-2,-23,-24,-7,13,23,18,9,8,10,4,-11,-21,-9,15,25,8,-28,-51,-38,2,42,44,-4,-68,-56,-60,-41,-9,20,34,31,16,1,-5,-2,4,5,0,-6,-7,-3,0,1,4,14,21,13,-12,-41,-47,-23,21,56,49,0,-62,-53,-62,-49,-23,3,21,25,20,10,3,-2,-6,-12,-19,-24,-22,-13,-2,8,17,24,23,9,-13,-31,-29,-4,32,56,48,5,-48 },
{ -46,-40,-12,24,50,50,26,-10,-39,-44,-26,5,31,41,39,28,15,-1,-15,-17,-6,8,11,-5,-28,-35,-19,7,21,2,-42,-84,-59,-51,-13,34,64,64,30,-14,-47,-51,-24,10,30,30,18,10,5,-6,-18,-21,-4,20,27,7,-27,-41,-19,21,45,25,-36,-97,-60,-51,-16,26,52,46,15,-21,-41,-31,-2,19,15,-11,-30,-24,-4,3,-9,-19,-6,23,40,23,-15,-35,-18,27,64,52,-6,-70,-46,-41,-16,11,23,14,-9,-27,-24,1,30,35,4,-41,-60,-36,12,32,10,-20,-22,8,37,33,-3,-33,-28,9,50,59,22,-30,-22,-18,-6,2,0,-14,-29,-29,-8,28,57,50,6,-44,-59,-19,42,60,25,-28,-46,-17,25,36,8,-30,-46,-25,13,36,30,1,7,12,14,8,-7,-25,-36,-29,-2,36,59,50,7,-35,-40,2,57,68,22,-38,-61,-34,16,41,22,-18,-49,-50,-24,6,20,15,30,36,34,20,-1,-22,-33,-28,-6,21,38,28,-2,-30,-29,7,47,47,7,-42,-60,-29,20,50,42,5,-32,-45,-35,-10,12,20,36,45,41,27,6,-15,-27,-27,-16,0,8,1,-18,-33,-28,-4,21,20,-7,-36,-41,-14,27,55,53,28,-3,-22,-21,-7,11,22 },
{ 0,1,-6,-21,-41,-57,-68,-69,-64,-52,-40,-29,-17,2,25,44,58,58,52,44,41,36,27,9,-16,-42,-67,-80,-84,-69,-47,-23,13,19,16,4,-13,-27,-33,-31,-20,-9,-3,-3,-6,-3,7,17,20,14,3,-1,2,10,15,13,4,-11,-26,-37,-38,-30,-13,2,20,29,34,31,26,22,24,31,44,49,44,27,6,-11,-20,-25,-33,-42,-51,-49,-41,-25,-8,8,23,34,40,41,40,36,37,34,6,13,18,22,25,28,32,40,47,49,38,20,0,-15,-21,-23,-25,-28,-28,-26,-22,-20,-15,-6,11,31,47,56,53,45,35,28,-19,-21,-19,-14,-10,-7,-5,-4,-3,-5,-10,-15,-16,-9,2,14,23,27,34,36,32,15,-7,-22,-25,-14,-2,3,-1,-10,-16,-14,-30,-36,-36,-33,-30,-31,-34,-40,-44,-48,-43,-34,-16,4,22,33,37,40,46,54,50,32,3,-24,-39,-43,-40,-41,-47,-54,-53,-43,-13,-13,-10,-5,-3,-5,-12,-21,-30,-31,-26,-12,5,19,22,11,-5,-15,-12,2,15,16,7,-4,-13,-14,-15,-18,-25,-28,-27,-19,17,26,36,44,49,49,42,33,25,20,22,27,32,29,10,-21,-57,-79,-78,-60,-33,-10,9,23,35,44,49,49,46,41,38,37 },
{ -63,-69,-62,-45,-25,-5,11,19,18,6,-11,-22,-23,-13,3,21,44,62,62,28,-28,-77,-94,-64,-11,33,48,29,-4,-31,-42,-36,-44,-45,-34,-20,-3,12,23,28,22,8,-10,-20,-18,-10,-4,-2,8,29,45,35,-6,-52,-66,-42,10,50,54,28,-9,-35,-37,-26,5,14,20,21,19,16,16,15,9,-1,-9,-8,4,11,-1,-29,-52,-41,-7,24,31,16,2,5,23,33,25,4,-16,-18,-5,12,43,56,49,31,9,-7,-13,-13,-11,-12,-10,2,23,37,23,-18,-60,-72,-39,8,44,52,36,18,3,-10,-20,-26,-18,3,31,48,48,52,36,6,-23,-38,-38,-27,-16,-10,-8,0,19,39,45,23,-14,-35,-31,-4,22,31,20,-2,-24,-38,-44,-35,-13,17,45,54,24,21,2,-23,-43,-47,-31,-8,10,12,-2,-15,-14,6,32,46,38,19,-1,-10,-11,-10,-11,-16,-21,-24,-21,-13,1,15,23,21,0,-7,-20,-32,-35,-21,7,36,52,41,8,-31,-55,-45,-11,27,51,43,17,-12,-31,-33,-22,-5,12,22,24,19,10,-4,-21,-33,-11,-17,-20,-19,-8,14,44,70,77,58,13,-37,-73,-78,-50,-8,25,32,14,-12,-29,-31,-12,16,43,58,54,37,8,-26,-56,-74 },
{ 15,17,21,28,38,48,56,60,61,46,14,-29,-74,-88,-72,-32,2,11,8,10,26,43,49,38,20,4,-9,-25,-50,-69,-79,-68,0,-4,-5,-2,3,9,15,21,27,29,16,-10,-38,-48,-26,10,29,19,-8,-21,-8,11,16,6,-5,-5,3,5,-8,-29,-43,-41,-16,-24,-30,-32,-35,-38,-42,-40,-29,-9,12,23,25,27,38,49,42,10,-27,-42,-34,-21,-21,-30,-33,-14,18,43,50,40,28,21,-10,-13,-13,-13,-18,-29,-42,-52,-47,-26,6,31,42,41,33,25,8,-12,-23,-19,-3,5,-5,-22,-30,-17,11,36,46,47,46,48,8,15,27,36,37,26,6,-14,-23,-15,2,14,11,-5,-24,-34,-34,-21,0,24,45,44,30,8,-7,-10,-8,-11,-17,-15,-2,20,7,17,34,52,61,58,41,22,7,3,2,-2,-17,-38,-51,-50,-30,-5,18,34,37,32,22,16,12,5,-12,-39,-63,-69,-46,-12,-24,-23,-11,7,23,28,24,16,9,5,3,-2,-12,-20,-20,-7,13,24,19,1,-21,-31,-25,-5,20,28,16,-12,-41,-48,-31,0,-56,-69,-67,-55,-40,-28,-21,-16,-11,-5,2,8,13,20,31,45,53,43,10,-32,-68,-81,-62,-23,22,52,57,44,26,18,26,42 },
{ -15,-17,-22,-31,-43,-48,-40,-15,20,42,36,1,-32,-24,25,74,77,18,-52,-76,-48,0,21,4,-20,-17,10,38,47,31,7,-10,1,5,5,-3,-19,-33,-32,-11,26,53,42,-5,-54,-58,-2,64,71,14,-54,-69,-16,41,46,8,-33,-36,-1,32,37,17,-10,-23,16,28,38,37,23,1,-15,-12,12,35,36,-1,-52,-68,-34,18,34,0,-37,-24,32,69,53,0,-43,-39,-9,13,7,-15,-31,-26,3,17,34,45,39,16,-13,-30,-22,5,27,22,-7,-31,-28,-7,2,-9,-16,3,37,47,19,-20,-35,-17,9,12,-9,-30,-27,-3,-34,-26,-2,22,30,14,-19,-47,-52,-24,18,45,44,20,0,-8,-8,-5,-1,5,7,-8,-30,-34,-12,23,40,23,-9,-24,-4,37,-66,-66,-37,0,23,19,-9,-41,-54,-36,6,42,52,37,10,-7,-5,5,11,5,-16,-41,-49,-30,14,49,51,21,-16,-23,13,65,-72,-71,-40,3,36,42,22,-9,-31,-28,-7,14,21,8,-11,-18,-6,13,25,17,-8,-29,-32,-9,27,45,31,-7,-42,-39,6,62,-50,-47,-17,23,56,67,52,25,-1,-14,-14,-13,-17,-29,-38,-33,-11,15,31,30,14,-2,-5,6,22,23,-1,-38,-64,-58,-14,39 },
{ 50,36,-2,-41,-56,-35,5,36,36,4,-31,-38,-14,14,21,7,0,7,15,5,-14,-14,7,22,9,-20,-32,-8,32,39,-2,-61,61,44,-6,-54,-68,-39,15,54,46,2,-43,-48,-9,26,21,-8,-20,0,20,7,-23,-26,8,36,17,-30,-50,-18,39,57,3,-76,62,45,-2,-43,-53,-20,30,59,44,-6,-45,-35,14,43,19,-29,-43,-3,33,16,-28,-35,7,47,32,-24,-59,-29,37,63,15,-68,49,37,2,-26,-28,-1,35,48,22,-23,-44,-17,39,59,14,-45,-50,4,51,30,-29,-47,-1,52,47,-10,-56,-40,23,61,26,-47,29,19,-3,-17,-13,8,28,25,-5,-39,-45,-5,49,55,4,-51,-47,17,66,35,-33,-56,-13,47,56,4,-50,-46,4,44,31,-24,6,-1,-12,-16,-7,9,18,8,-20,-43,-38,0,41,40,-9,-53,-37,24,62,32,-33,-61,-22,35,50,12,-37,-46,-11,26,26,-8,-9,-14,-17,-12,-1,12,17,7,-14,-28,-22,6,29,21,-17,-45,-27,21,49,22,-29,-51,-23,23,41,16,-22,-35,-15,12,18,-1,-12,-15,-12,-4,8,19,23,16,3,-6,-2,12,21,12,-14,-30,-15,16,33,16,-18,-33,-14,17,31,18,-8,-19,-10,6,11,1 },
{ 77,77,56,21,-14,-37,-43,-30,-8,13,23,15,-3,-20,-28,-24,-13,9,38,59,54,7,-57,-89,-75,-19,37,57,42,5,-26,-37,53,51,29,1,-23,-37,-35,-21,1,20,24,14,-3,-12,-10,-8,-12,-13,4,32,43,18,-31,-62,-44,4,45,53,26,-10,-31,-34,-5,-15,-20,-18,-11,-3,3,8,14,15,9,-1,-8,3,23,29,5,-31,-48,-28,8,27,22,10,13,22,24,8,-14,-24,-16,0,-51,-60,-43,-13,19,37,36,24,9,-3,-13,-21,-20,0,31,49,29,-18,-55,-55,-18,22,42,43,30,9,-16,-37,-41,-22,15,44,-55,-54,-28,11,42,50,35,9,-12,-20,-21,-22,-25,-17,5,28,37,16,-15,-29,-21,2,20,21,8,-15,-38,-46,-34,1,42,63,-25,-18,4,28,37,27,0,-25,-32,-19,3,11,-2,-24,-32,-17,14,35,33,16,-4,-15,-16,-13,-12,-14,-16,-13,0,19,33,36,8,16,26,26,13,-13,-41,-52,-37,3,44,60,38,-11,-52,-54,-20,24,47,37,8,-20,-34,-27,-8,12,27,30,24,9,-11,-28,23,30,28,15,-10,-39,-57,-55,-24,25,69,85,60,6,-46,-64,-39,1,29,30,8,-18,-29,-19,7,33,47,43,19,-19,-59,-86 },
{ 20,23,31,43,58,64,58,32,-6,-45,-75,-83,-70,-33,10,42,56,47,30,13,1,-12,-32,-49,-58,-46,-22,7,35,55,69,65,-1,-8,-9,-3,10,23,26,18,1,-17,-27,-29,-19,-4,11,19,12,-1,-10,-9,3,11,6,-5,-12,-12,-5,2,7,15,26,31,-17,-32,-45,-49,-47,-35,-21,-7,9,27,45,53,50,28,2,-20,-38,-43,-40,-22,4,26,38,39,39,32,17,-5,-31,-44,-42,-30,2,-7,-19,-30,-37,-38,-31,-19,1,28,50,59,44,13,-16,-28,-22,-14,-8,-5,-1,5,9,14,21,26,20,1,-25,-46,-50,-43,34,38,35,28,19,8,-5,-15,-18,-11,-3,-2,-14,-28,-28,-6,28,46,42,19,-5,-23,-36,-38,-32,-13,6,17,18,11,4,-1,30,39,45,50,49,42,22,-2,-24,-37,-40,-42,-43,-38,-18,12,41,52,35,14,-5,-18,-28,-38,-40,-30,-6,20,40,50,47,37,-19,-19,-10,6,22,29,23,9,-9,-19,-21,-16,-9,1,10,12,6,-9,-23,-20,-3,18,28,18,-1,-14,-15,-4,11,22,25,20,-68,-81,-74,-54,-29,-7,6,12,14,17,25,36,46,48,33,6,-33,-64,-70,-48,-2,45,69,65,37,4,-22,-37,-40,-37,-32,-29 },
{ 40,31,16,7,10,12,0,-24,-42,-26,19,51,35,-23,-60,-26,55,90,49,-27,-60,-28,21,34,10,-14,-11,11,26,19,3,-6,27,13,-9,-15,-1,18,14,-16,-46,-39,12,60,45,-27,-81,-54,37,80,27,-52,-67,-14,42,43,-5,-36,-23,9,25,13,-7,-14,9,-12,-37,-38,-10,28,42,15,-29,-41,-5,43,49,-5,-59,-50,9,33,-6,-51,-37,22,58,29,-28,-47,-21,13,18,-3,-21,-14,12,-12,-40,-46,-14,35,62,44,-6,-41,-30,12,39,26,-7,-15,5,8,-16,-27,4,45,44,2,-40,-35,6,30,14,-16,-23,1,40,19,-20,-41,-24,20,56,51,9,-36,-50,-23,14,31,27,15,10,1,-10,-2,22,29,4,-32,-39,-2,41,43,6,-28,-18,28,69,53,4,-38,-43,-13,25,38,15,-21,-44,-37,-10,13,17,9,-1,-7,-5,7,14,0,-30,-47,-22,26,54,36,-16,-45,-13,51,81,66,15,-36,-58,-40,-3,24,26,7,-12,-18,-11,-3,-3,-10,-15,-11,0,11,10,-9,-33,-32,-1,35,44,9,-42,-56,-11,60,66,56,14,-32,-55,-45,-13,19,36,35,23,13,7,2,-6,-13,-12,-4,10,20,17,3,-11,-8,13,32,24,-12,-51,-54,-8,57 },
{ -51,-21,28,55,39,-11,-53,-54,-20,17,23,-9,-46,-58,-49,-33,-21,-11,-6,-18,-41,-47,-28,-5,-8,-35,-54,-31,18,43,20,-29,-60,-24,39,77,55,-4,-51,-48,2,50,53,19,-14,-13,10,20,15,19,28,23,-3,-15,9,41,34,-10,-43,-26,27,55,18,-46,-68,-35,25,59,42,-10,-47,-34,15,51,43,8,-6,23,55,46,8,-2,24,39,19,-2,15,52,58,16,-27,-22,22,44,8,-55,-63,-41,4,28,13,-24,-43,-25,14,25,-7,-47,-44,4,40,12,-51,-66,-19,19,2,-36,-34,5,30,10,-26,-31,2,26,5,-44,-39,-23,3,13,-1,-23,-25,-1,26,15,-34,-74,-64,-5,32,-3,-70,-73,-14,32,9,-48,-68,-33,8,7,-21,-32,-11,15,14,-12,-3,9,20,17,1,-12,-2,28,49,35,-10,-44,-27,27,57,29,-22,-20,36,75,45,-17,-43,-17,24,30,2,-21,-14,10,25,19,20,26,25,11,-8,-17,-4,24,46,38,8,-12,3,40,58,33,-4,-2,39,63,43,-1,-18,7,42,45,17,-14,-21,-3,20,28,17,18,8,-12,-33,-43,-34,-12,6,5,-11,-23,-15,3,5,-17,-46,-48,-24,-7,-15,-32,-30,-5,24,27,3,-24,-35,-23,-1,13 },
{ 1,10,32,45,36,11,-9,-5,20,40,41,26,21,36,59,69,69,67,70,63,46,30,36,54,62,46,22,13,23,32,22,-1,-29,-20,9,29,18,-14,-39,-36,-6,17,8,-21,-39,-30,-12,-13,-30,-35,-21,-14,-27,-45,-34,-6,9,-4,-27,-28,-4,17,9,-16,-51,-42,-10,14,8,-21,-45,-38,-8,11,-4,-37,-56,-43,-28,-40,-73,-78,-51,-26,-35,-55,-55,-31,-15,-27,-49,-45,-17,7,1,-27,-45,-33,1,27,24,2,-16,-8,21,38,24,-1,-4,27,53,43,6,0,31,60,48,18,6,20,31,17,-8,-12,8,25,11,-19,-23,-9,19,37,33,12,-2,6,28,38,25,5,12,48,81,72,39,28,53,74,63,32,20,36,52,42,20,11,22,31,19,-8,-8,2,17,22,10,-10,-23,-16,0,4,-14,-37,-40,-18,2,-7,-37,-49,-31,-15,-23,-42,-42,-20,4,7,-7,-13,-5,7,4,-9,-2,1,5,1,-13,-29,-34,-23,-7,-3,-18,-41,-54,-46,-37,-42,-60,-63,-51,-40,-47,-57,-56,-37,-18,-17,-27,-33,-26,-12,-5,-6,2,4,5,1,-8,-14,-8,9,30,41,36,25,17,22,32,36,35,40,50,54,46,34,28,29,30,21,5,-6,-4,4,12,15 },
{ -74,-68,-37,6,41,49,32,0,-27,-26,-3,25,39,27,7,-10,-19,-16,-1,29,63,69,34,-26,-70,-57,-5,48,64,26,-32,-70,-50,-44,-17,16,38,41,19,-11,-31,-29,-6,16,19,5,-9,-12,-7,-12,-20,-16,9,31,20,-19,-50,-43,0,44,52,20,-30,-61,6,13,16,13,6,-3,-12,-18,-17,-8,3,3,-11,-26,-23,2,28,20,-17,-50,-52,-22,8,15,8,1,2,5,4,-3,-9,-9,50,51,27,-6,-32,-40,-26,-5,15,25,20,5,-16,-29,-17,13,46,50,16,-26,-44,-27,12,43,49,29,-7,-35,-41,-20,20,51,54,44,11,-27,-50,-40,-11,20,38,33,18,4,-3,-4,-5,-1,10,21,27,19,2,-5,5,24,36,20,-16,-47,-53,-17,38,76,24,12,-13,-33,-33,-12,18,35,27,3,-17,-14,8,24,10,-25,-51,-39,3,36,31,2,-24,-26,-10,2,-2,-17,-22,-8,21,45,-8,-15,-22,-18,0,26,43,33,-3,-43,-59,-34,17,51,38,-16,-67,-61,-11,36,41,1,-44,-56,-33,6,32,33,17,-3,-18,-22,-19,-23,-16,0,25,47,48,23,-24,-65,-71,-36,25,69,64,19,-28,-32,4,41,42,9,-31,-43,-18,25,56,60,34,-9,-52,-75 },
{ -21,-31,-45,-54,-54,-34,-1,35,68,78,66,32,-11,-43,-54,-37,-9,17,38,49,55,44,20,-12,-44,-56,-50,-24,13,47,72,75,10,7,-3,-14,-20,-17,-5,7,15,18,13,3,-10,-18,-14,-2,5,1,-7,-11,-8,0,4,1,-5,-10,-11,-9,-2,10,23,29,37,44,42,35,28,16,-2,-25,-51,-58,-49,-25,4,26,38,36,20,-9,-38,-53,-53,-32,-7,17,39,45,38,14,-18,-40,-49,-40,16,21,23,27,30,26,11,-14,-41,-52,-37,-9,20,34,28,19,8,0,-4,-6,-6,-5,-2,4,17,32,35,21,-7,-36,-51,-50,-28,-33,-33,-23,-7,10,20,20,16,14,19,24,19,-3,-29,-35,-22,7,36,50,49,29,0,-27,-40,-30,-9,10,20,17,11,4,-35,-46,-50,-46,-32,-12,11,30,41,46,40,26,-1,-33,-51,-50,-25,2,21,29,27,19,-1,-28,-49,-53,-34,-4,26,47,52,46,10,8,-1,-11,-17,-15,-7,3,11,11,6,-4,-14,-17,-8,7,14,4,-20,-37,-35,-12,12,20,10,-7,-17,-15,-3,13,23,23,62,71,62,41,16,-4,-19,-28,-34,-38,-35,-28,-9,19,50,70,61,21,-33,-68,-63,-23,31,68,72,49,12,-20,-38,-43,-39,-32 },
{ 19,20,21,21,15,-6,-34,-43,-17,28,51,17,-42,-49,12,76,65,-22,-88,-57,24,61,30,-21,-34,-7,14,3,-19,-23,-7,12,1,-2,0,11,17,7,-23,-43,-23,26,56,25,-46,-73,-10,68,61,-19,-75,-39,41,63,8,-43,-31,13,34,15,-15,-20,0,19,-18,-27,-27,-8,19,29,10,-20,-28,3,39,33,-18,-52,-30,20,30,-6,-24,7,42,21,-32,-48,-9,35,40,9,-16,-10,10,18,-5,-21,-33,-21,13,42,37,1,-32,-30,6,35,27,-3,-21,-17,-9,-1,16,32,18,-23,-48,-28,20,39,13,-20,-24,-1,14,3,35,14,-20,-31,-6,30,45,17,-30,-50,-29,17,49,37,1,-28,-31,-3,27,24,-9,-35,-26,16,44,19,-29,-47,-21,19,20,-18,72,48,-7,-43,-35,3,36,31,-9,-44,-43,-10,29,37,10,-19,-22,-1,17,6,-20,-25,10,48,43,-7,-52,-46,8,49,24,-39,83,57,-5,-54,-59,-19,29,46,27,-10,-32,-26,-3,10,6,-4,-2,8,10,-6,-23,-12,22,43,22,-26,-52,-22,40,66,22,-58,63,42,-11,-55,-61,-26,24,54,51,22,-8,-22,-19,-9,-1,5,12,15,7,-10,-20,-10,11,19,-2,-33,-38,-4,45,58,6,-69 },
{ -30,-22,-15,-16,-26,-36,-40,-35,-33,-39,-51,-63,-68,-60,-48,-31,-10,3,13,21,35,45,48,45,52,65,76,68,48,28,22,25,-6,9,21,23,13,5,7,18,28,30,24,21,22,26,24,20,15,7,-7,-17,-17,-16,-24,-38,-39,-24,-8,-7,-20,-27,-14,6,7,20,31,30,21,15,20,31,41,41,41,45,55,53,39,22,11,1,-14,-26,-29,-25,-33,-49,-63,-57,-46,-42,-49,-46,-27,-2,-7,-4,-4,-10,-19,-23,-19,-15,-19,-30,-36,-30,-18,-19,-30,-35,-20,-1,7,7,17,36,45,39,25,21,24,24,14,6,10,20,-14,-16,-21,-27,-31,-28,-21,-20,-32,-49,-59,-51,-38,-36,-45,-42,-15,13,22,14,15,32,53,56,51,47,51,52,45,31,22,19,5,6,4,3,6,17,29,35,28,15,11,21,35,35,21,12,20,27,10,-22,-42,-43,-30,-28,-33,-33,-22,-11,-7,-11,-16,-16,18,20,18,16,19,27,39,44,42,35,35,45,57,53,36,20,16,12,-2,-25,-42,-42,-40,-45,-58,-59,-52,-38,-30,-27,-30,-27,4,0,-9,-19,-26,-28,-27,-27,-33,-39,-39,-33,-27,-29,-38,-42,-31,-14,4,20,36,53,60,54,39,28,26,28,29,25,17,11 },
{ -37,-1,44,47,3,-43,-41,9,56,44,-8,-36,-12,26,30,10,9,17,4,-26,-27,11,31,-2,-48,-41,6,29,-2,-42,-37,15,-54,-10,51,61,5,-57,-56,3,58,41,-26,-54,-13,31,14,-26,-17,20,17,-26,-32,20,53,16,-42,-33,32,61,15,-42,-29,38,-72,-25,42,56,7,-52,-54,1,47,22,-40,-49,8,44,-2,-61,-40,30,42,-17,-45,9,55,23,-37,-28,37,64,15,-41,-23,55,-72,-32,30,48,10,-35,-33,12,42,11,-40,-32,37,67,5,-63,-33,49,60,-14,-58,-14,38,17,-41,-41,13,39,-3,-52,-28,50,-54,-21,25,36,8,-23,-15,23,39,3,-43,-27,40,64,9,-50,-23,49,55,-17,-62,-17,37,22,-34,-43,-1,25,-5,-45,-31,33,-24,-3,22,21,-6,-25,-10,24,33,-2,-43,-36,14,37,-1,-45,-23,29,30,-22,-44,0,48,35,-17,-30,7,37,20,-18,-21,15,1,12,18,4,-22,-31,-12,20,31,4,-33,-34,-3,16,-2,-27,-16,13,10,-19,-25,12,44,27,-17,-26,8,40,35,2,-14,-1,13,17,12,-5,-25,-30,-9,20,32,16,-9,-13,5,20,14,0,4,14,7,-11,-14,6,18,-1,-34,-39,-11,18,20,-1,-18,-16 },
{ -88,-72,-28,20,47,38,13,-4,1,23,38,26,-6,-30,-30,-4,27,42,45,27,-11,-55,-78,-47,18,64,57,3,-51,-55,-13,36,-51,-35,2,33,38,17,-15,-34,-23,3,21,17,-6,-22,-16,-3,0,-5,0,15,21,1,-25,-24,12,46,40,-1,-39,-39,4,48,15,27,32,23,2,-21,-37,-37,-24,-9,-2,-3,-4,4,19,17,-15,-50,-55,-14,40,57,36,-1,-21,-16,-5,-2,-3,3,18,30,48,48,22,-10,-32,-34,-13,9,19,10,-7,-16,-7,14,34,38,12,-24,-43,-29,10,41,35,-2,-41,-52,-27,7,29,27,2,-19,35,20,-14,-42,-44,-12,32,59,54,19,-13,-22,-14,-2,2,11,31,36,17,-16,-34,-18,3,5,-14,-24,-10,21,40,20,-26,-62,6,-10,-34,-46,-27,12,47,55,27,-11,-27,-14,4,-7,-40,-49,-2,52,56,8,-44,-48,-8,30,34,18,6,14,22,9,-26,-55,1,-7,-18,-15,2,23,29,6,-35,-54,-33,19,56,31,-37,-76,-43,23,54,22,-28,-37,-1,38,44,14,-16,-23,-8,7,9,3,14,15,14,18,26,26,5,-32,-68,-69,-19,51,97,77,4,-54,-49,-3,31,21,-9,-18,1,21,13,-19,-49,-54,-27,12,46,59 },
{ 3,-15,-41,-53,-41,-3,44,73,78,49,3,-41,-68,-52,-8,37,58,39,4,-25,-38,-33,-24,-14,-2,14,33,45,37,-4,-63,-100,27,15,-10,-28,-27,-9,11,20,15,4,-6,-14,-17,-12,2,15,12,0,-9,-8,3,11,12,5,-6,-12,-6,11,26,18,-16,-50,40,38,27,16,8,-2,-21,-44,-61,-44,-5,34,52,37,8,-21,-42,-37,-13,17,36,34,26,16,-2,-27,-47,-39,-4,31,46,35,6,10,17,26,30,20,-7,-38,-52,-35,8,42,47,26,-5,-23,-27,-15,6,18,9,-10,-14,4,20,6,-27,-46,-29,13,49,59,-43,-41,-24,2,23,29,22,10,5,12,18,7,-18,-33,-23,6,28,29,24,6,-25,-52,-53,-11,41,53,27,-13,-33,-23,-1,12,-45,-49,-36,-19,-2,10,19,28,36,36,14,-25,-59,-57,-13,31,41,23,3,-1,-6,-23,-32,-15,23,50,45,19,-12,-32,-37,-35,7,7,3,-5,-16,-21,-17,-1,18,23,6,-22,-37,-16,24,38,7,-36,-45,-5,42,47,16,-18,-29,-13,10,22,19,2,-17,-30,63,69,53,24,-10,-36,-44,-34,-14,0,5,4,13,37,54,35,-27,-78,-71,-9,62,82,39,-24,-68,-68,-32,9,36,40,25,6 },
{ 21,23,32,42,48,47,46,45,48,50,47,38,25,6,-17,-36,-51,-57,-57,-46,-29,-13,-2,7,23,44,65,70,65,51,41,33,-15,-23,-20,-16,-16,-22,-27,-29,-26,-23,-20,-15,-9,-1,7,16,25,32,29,25,21,16,2,-15,-26,-26,-19,-19,-25,-27,-19,-6,-26,-33,-31,-28,-31,-37,-43,-42,-40,-38,-38,-32,-19,-2,14,28,44,50,45,31,22,16,7,-10,-29,-40,-45,-50,-57,-54,-41,-20,7,12,21,28,27,25,23,29,33,31,20,12,8,5,-8,-23,-33,-34,-35,-39,-32,-14,7,21,25,27,29,30,24,18,16,17,20,27,36,39,37,34,36,43,50,45,34,23,18,9,-11,-33,-46,-40,-34,-34,-31,-16,5,19,28,34,46,54,57,49,39,29,-10,-12,-14,-19,-27,-34,-32,-26,-21,-21,-24,-22,-8,6,10,13,24,43,49,42,23,9,-3,-15,-29,-38,-33,-25,-18,-17,-17,-14,-21,-26,-30,-35,-43,-46,-45,-40,-39,-40,-42,-34,-17,3,15,21,33,42,45,37,24,10,-3,-17,-34,-44,-50,-48,-47,-45,-41,-29,14,20,26,31,34,37,42,44,41,33,23,17,14,9,-4,-22,-40,-49,-52,-47,-34,-14,8,27,40,46,46,42,34,26,20,19 },
{ -19,-24,-23,-7,25,57,67,34,-20,-44,-21,19,23,-26,-63,-23,55,58,-17,-78,-47,43,91,53,-7,-29,-22,-17,-26,-25,0,30,3,-4,-17,-24,-12,14,27,10,-29,-46,-13,42,53,0,-51,-28,49,64,-7,-68,-40,26,40,-5,-41,-24,17,27,3,-15,-1,27,33,30,9,-21,-41,-35,-13,0,-8,-18,-6,27,48,20,-23,-29,6,24,7,-7,6,11,-20,-55,-48,7,55,52,15,-14,-12,8,27,37,30,5,-24,-32,-9,24,36,14,-18,-26,-5,14,9,-14,-30,-25,2,34,43,18,-23,-35,-5,31,36,11,-19,-27,-16,-7,-25,-5,21,25,6,-10,0,32,54,29,-27,-62,-47,8,45,24,-25,-40,-13,23,27,0,-12,11,39,26,-17,-48,-41,-6,12,-3,-76,-51,2,30,17,-14,-25,-4,27,28,-8,-43,-35,12,49,41,0,-19,-6,1,-17,-35,-16,27,43,6,-46,-56,-6,48,48,2,-78,-45,14,46,27,-22,-57,-47,-7,26,27,8,-5,1,9,5,-2,6,20,10,-24,-39,-17,21,30,-6,-42,-26,33,69,39,-34,-33,0,49,70,43,-12,-55,-55,-15,28,48,37,8,-20,-39,-43,-24,9,35,31,4,-12,-2,19,18,-8,-27,-10,29,38,-15,-90 },
{ 37,39,47,54,56,45,30,26,33,32,10,-29,-59,-55,-44,-43,-46,-18,31,59,52,30,24,29,20,-8,-37,-49,-51,-50,-50,-41,-16,-28,-27,-20,-16,-25,-36,-35,-14,9,15,3,3,29,51,38,-1,-16,-3,-2,-28,-48,-34,-5,11,7,6,17,29,28,16,8,-33,-47,-48,-37,-27,-29,-40,-42,-28,-3,12,11,18,43,66,51,12,-10,-12,-19,-40,-45,-28,-7,0,0,13,37,55,49,38,30,17,14,17,29,42,44,30,15,7,9,5,-15,-36,-41,-31,-27,-24,-8,16,30,31,37,39,27,-2,-26,-27,-18,-17,-27,-26,-10,44,40,33,34,44,48,42,26,12,8,6,-7,-32,-49,-53,-40,-20,3,20,22,25,33,37,22,-5,-20,-21,-25,-43,-57,-51,-22,10,-9,-33,-45,-40,-28,-21,-24,-24,-14,8,29,36,34,30,29,27,16,-8,-37,-48,-41,-25,-17,-8,12,35,42,26,8,9,26,-4,-24,-49,-61,-55,-37,-25,-24,-28,-22,-3,21,40,43,41,34,25,8,-14,-31,-38,-29,-22,-18,-11,12,39,49,42,29,32,43,32,31,24,25,37,53,58,46,21,-2,-17,-25,-32,-39,-44,-42,-30,-13,10,32,51,59,44,14,-15,-28,-30,-32,-39,-42,-29,-10 },
}
},
...
-42,-30,-13,10,32,51,59,44,14,-15,-28,-30,-32,-39,-42,-29,-10 },
}
},
const int16_t g_nspt32x8[ 35 ][ 3 ][ 48 ][ 256 ] = {
{ /0
{
{ 2,3,4,5,6,7,8,8,9,9,10,10,10,10,10,10,10,10,10,9,9,8,8,8,7,7,6,5,5,5,4,4,4,6,8,10,12,13,15,16,17,18,19,19,20,20,20,20,20,20,19,19,18,17,16,16,15,14,13,12,11,10,9,9,5,8,11,14,17,19,21,23,25,27,28,29,30,30,31,31,31,30,30,29,28,27,26,25,24,23,21,20,19,17,16,15,6,10,13,17,20,23,26,29,31,33,35,37,38,39,40,40,40,40,40,40,39,38,37,36,34,33,31,29,28,26,24,23,6,10,14,18,21,25,28,31,34,37,39,41,43,44,46,46,47,48,48,48,48,47,46,45,44,42,41,39,37,35,33,31,6,9,13,17,21,24,27,30,33,36,39,41,43,45,47,48,49,50,51,52,52,52,51,51,50,49,47,46,44,42,40,37,5,8,12,15,19,22,25,28,31,33,36,38,40,42,44,46,47,49,50,51,52,52,52,52,52,51,50,49,47,46,44,42,4,7,10,13,16,19,22,25,27,30,32,34,36,38,40,42,43,45,46,47,48,49,50,50,50,50,49,48,47,46,45,43 },
{ -5,-7,-8,-9,-10,-10,-9,-8,-6,-5,-3,0,2,4,7,9,11,12,14,15,16,17,17,17,17,17,16,15,14,13,11,10,-9,-13,-16,-18,-20,-20,-20,-18,-16,-13,-10,-6,-2,3,7,12,16,20,23,26,29,31,32,33,33,33,32,30,29,27,24,22,-12,-18,-23,-27,-30,-32,-32,-32,-30,-27,-23,-18,-12,-6,1,7,14,20,26,31,35,39,42,44,46,46,46,45,43,41,38,35,-14,-22,-29,-34,-38,-42,-43,-44,-43,-41,-37,-32,-27,-20,-12,-5,4,11,19,26,33,39,44,49,52,54,55,55,54,52,49,45,-14,-23,-30,-37,-42,-46,-49,-51,-51,-50,-48,-44,-40,-34,-27,-19,-11,-3,6,14,22,30,37,43,49,53,55,57,58,57,55,51,-13,-21,-28,-34,-40,-44,-48,-50,-52,-52,-51,-49,-46,-42,-37,-31,-24,-17,-9,-2,7,14,22,29,36,42,46,49,52,53,52,50,-10,-17,-23,-29,-34,-38,-41,-44,-46,-48,-48,-47,-46,-44,-40,-36,-32,-26,-20,-14,-7,0,7,13,20,26,31,36,39,42,43,43,-7,-12,-17,-22,-26,-30,-34,-36,-38,-40,-41,-41,-41,-40,-38,-36,-33,-29,-25,-20,-15,-10,-4,1,7,12,17,21,25,29,31,32 },
{ 6,9,12,15,18,21,24,26,28,29,30,31,31,30,29,28,27,25,24,22,20,18,16,14,13,11,9,8,6,5,3,2,8,13,18,23,29,34,39,44,47,50,52,54,54,54,53,51,49,46,44,41,37,34,30,27,24,21,18,15,13,10,7,5,8,12,18,24,31,37,43,48,53,57,61,63,64,64,64,63,60,58,54,51,47,43,38,34,30,26,22,18,15,11,8,4,4,8,12,17,22,27,33,38,42,46,50,52,54,55,55,55,53,51,48,45,41,38,33,29,25,21,17,13,9,6,2,-1,0,1,2,5,7,10,13,16,19,22,25,27,28,29,29,29,28,27,25,23,20,17,13,10,6,3,-1,-4,-7,-9,-12,-14,-3,-5,-6,-6,-6,-6,-5,-5,-4,-3,-2,-2,-1,-1,-1,-2,-3,-4,-5,-7,-9,-12,-14,-17,-19,-22,-24,-26,-28,-29,-31,-31,-5,-8,-11,-13,-14,-16,-17,-18,-19,-20,-21,-22,-23,-24,-25,-26,-28,-29,-31,-32,-34,-36,-39,-41,-43,-44,-46,-47,-48,-48,-48,-47,-6,-9,-12,-15,-17,-19,-21,-23,-26,-27,-29,-31,-33,-35,-37,-38,-40,-42,-44,-46,-48,-50,-52,-54,-56,-57,-59,-59,-60,-60,-59,-58 },
{ -10,-14,-16,-17,-16,-14,-10,-6,-2,3,6,9,11,12,12,11,9,6,3,0,-3,-7,-10,-14,-16,-18,-20,-20,-20,-20,-19,-18,-18,-25,-31,-33,-32,-30,-24,-17,-9,-1,7,14,19,22,24,23,21,17,12,6,0,-7,-14,-21,-27,-32,-35,-37,-39,-39,-37,-35,-23,-35,-43,-47,-48,-45,-39,-31,-20,-9,3,13,23,29,34,35,35,32,26,19,10,1,-10,-20,-30,-38,-45,-49,-53,-54,-54,-51,-26,-39,-49,-55,-58,-57,-51,-43,-31,-19,-5,8,20,30,38,43,46,46,42,35,26,16,4,-9,-22,-34,-44,-52,-58,-62,-63,-62,-24,-38,-48,-55,-59,-59,-55,-48,-38,-27,-14,-1,12,24,35,43,49,52,51,48,42,33,22,9,-5,-18,-31,-42,-51,-58,-62,-62,-19,-31,-40,-47,-51,-52,-50,-46,-39,-30,-19,-8,3,14,25,34,42,47,50,50,48,43,35,25,13,1,-11,-23,-34,-43,-49,-52,-13,-22,-30,-35,-39,-41,-41,-38,-34,-28,-20,-12,-3,5,14,22,30,36,40,43,44,42,39,33,26,17,7,-4,-14,-23,-30,-36,-8,-15,-20,-25,-28,-30,-30,-29,-27,-23,-18,-12,-6,0,6,12,19,24,28,32,34,35,34,32,28,23,17,9,2,-6,-13,-19 },
{ 14,20,24,28,30,31,31,29,26,22,17,11,4,-2,-8,-13,-19,-22,-25,-28,-29,-29,-29,-28,-26,-24,-22,-19,-16,-14,-11,-7,20,29,37,44,50,53,54,53,49,44,36,27,16,6,-5,-15,-24,-32,-38,-43,-46,-47,-47,-46,-44,-41,-37,-33,-29,-24,-19,-14,18,28,37,45,52,57,61,61,60,55,48,39,29,18,6,-6,-17,-26,-35,-41,-46,-49,-50,-50,-48,-45,-41,-37,-32,-27,-21,-15,10,16,22,28,34,39,42,45,46,44,41,36,29,21,13,4,-5,-13,-20,-25,-30,-33,-34,-34,-33,-31,-28,-24,-20,-15,-10,-5,-2,-2,-1,0,2,5,7,9,12,13,13,12,11,9,6,3,0,-3,-5,-7,-8,-9,-8,-6,-4,-2,1,4,8,11,14,17,-11,-16,-20,-23,-25,-26,-26,-26,-24,-23,-21,-19,-17,-16,-13,-11,-9,-6,-3,0,4,8,12,17,22,26,30,34,38,40,42,42,-14,-22,-29,-35,-39,-43,-45,-46,-47,-47,-46,-44,-41,-38,-34,-30,-25,-19,-13,-6,1,9,17,25,32,39,45,51,56,59,60,59,-14,-22,-29,-35,-41,-45,-49,-51,-53,-55,-54,-54,-52,-50,-46,-42,-37,-31,-24,-17,-9,0,9,18,27,35,43,50,56,61,63,64 },
{ -2,-3,-7,-12,-19,-26,-34,-41,-48,-53,-55,-56,-55,-53,-49,-44,-39,-34,-29,-25,-21,-18,-15,-13,-12,-11,-10,-9,-9,-8,-7,-7,4,4,1,-5,-13,-24,-35,-47,-58,-66,-71,-74,-74,-72,-67,-60,-53,-45,-38,-31,-25,-21,-17,-15,-13,-13,-13,-13,-12,-12,-12,-11,13,18,19,17,11,3,-7,-18,-29,-38,-45,-49,-50,-49,-45,-38,-31,-24,-17,-10,-5,-1,0,1,0,-1,-4,-6,-8,-10,-11,-12,18,28,34,37,36,33,28,22,15,9,4,1,-1,1,4,9,14,20,26,30,33,35,34,31,27,22,16,10,4,-1,-5,-9,15,25,32,37,40,41,40,39,37,35,33,32,33,35,38,42,48,52,57,60,62,62,59,55,49,41,32,23,14,6,-1,-7,5,10,14,17,19,21,21,21,21,21,21,22,24,26,30,34,38,43,47,50,52,52,50,47,41,34,25,17,7,-1,-9,-14,-5,-6,-7,-8,-10,-11,-12,-13,-14,-15,-15,-15,-14,-13,-10,-7,-4,0,3,6,9,10,9,7,4,-1,-6,-12,-19,-25,-30,-33,-11,-16,-21,-26,-31,-34,-38,-41,-44,-46,-48,-49,-50,-50,-49,-48,-46,-44,-42,-40,-38,-37,-37,-37,-38,-41,-44,-47,-50,-53,-54,-55 },
{ -15,-20,-22,-22,-19,-15,-10,-6,-2,-1,-2,-5,-9,-14,-19,-23,-27,-28,-28,-26,-23,-18,-12,-5,1,7,12,16,18,20,21,20,-24,-33,-38,-38,-34,-26,-17,-6,3,8,10,7,1,-7,-17,-26,-34,-40,-43,-43,-39,-33,-23,-12,0,11,21,29,35,38,40,39,-29,-42,-49,-49,-44,-33,-19,-3,13,24,31,31,27,18,5,-9,-24,-35,-44,-48,-48,-42,-33,-20,-5,10,24,36,46,53,56,55,-31,-46,-54,-55,-49,-37,-20,0,21,38,50,56,55,49,36,21,3,-14,-28,-39,-44,-45,-38,-28,-13,2,19,34,48,58,63,65,-29,-43,-52,-54,-49,-38,-22,-3,19,38,54,64,69,66,59,46,29,12,-5,-20,-32,-38,-39,-34,-24,-11,5,21,37,49,58,62,-24,-37,-45,-48,-46,-38,-26,-11,6,23,38,51,58,61,58,51,40,26,10,-5,-19,-29,-35,-37,-33,-26,-14,-1,14,27,38,45,-17,-28,-36,-40,-40,-36,-29,-19,-8,5,17,27,35,40,41,38,33,24,13,1,-12,-22,-31,-36,-38,-36,-30,-21,-11,1,12,21,-11,-20,-26,-30,-32,-31,-28,-23,-16,-8,0,7,13,18,20,20,17,13,6,-2,-11,-19,-27,-32,-37,-38,-37,-32,-26,-18,-9,0 },
{ 23,30,36,39,39,36,31,23,13,4,-5,-12,-16,-18,-17,-14,-9,-3,4,11,18,24,29,32,34,34,33,31,28,24,19,15,29,42,52,58,61,59,51,40,25,10,-6,-20,-30,-36,-36,-34,-27,-18,-6,5,17,28,37,44,48,50,49,47,43,38,32,25,23,34,44,51,56,55,51,41,27,11,-6,-22,-36,-45,-49,-48,-43,-35,-24,-11,2,15,26,35,41,44,45,43,40,35,29,22,6,11,16,21,25,27,25,21,14,4,-8,-20,-31,-39,-43,-44,-42,-38,-31,-22,-13,-4,5,11,16,18,19,17,15,12,7,2,-10,-14,-16,-16,-15,-12,-10,-9,-8,-8,-10,-13,-15,-17,-19,-19,-18,-16,-14,-11,-8,-6,-5,-5,-7,-10,-13,-17,-21,-25,-28,-30,-19,-29,-36,-40,-42,-41,-37,-32,-26,-19,-13,-6,0,5,10,14,18,20,22,21,20,16,10,3,-7,-17,-27,-36,-45,-52,-56,-57,-20,-32,-41,-47,-50,-50,-47,-42,-34,-25,-15,-4,7,17,27,36,43,49,52,53,51,47,39,29,16,2,-13,-28,-42,-52,-60,-64,-16,-26,-34,-40,-44,-45,-43,-40,-34,-26,-16,-6,6,17,28,39,49,57,63,66,67,65,59,51,40,27,11,-4,-19,-33,-44,-51 },
{ 7,6,1,-7,-18,-28,-36,-40,-39,-32,-22,-9,4,15,24,30,32,31,27,22,17,12,9,8,10,13,17,21,26,28,30,30,19,22,17,5,-12,-31,-47,-58,-61,-56,-42,-24,-3,16,32,43,47,45,38,29,18,9,3,0,2,8,16,26,35,43,48,49,35,45,45,35,17,-6,-28,-45,-56,-55,-45,-28,-7,14,32,44,49,45,34,20,3,-11,-22,-27,-26,-19,-6,9,26,40,51,56,44,61,65,60,46,26,5,-14,-28,-33,-29,-17,-1,17,32,43,45,40,26,7,-15,-35,-52,-61,-63,-56,-42,-23,-1,20,38,50,38,53,61,59,50,35,19,3,-9,-14,-13,-6,5,19,31,39,42,38,25,7,-16,-39,-59,-73,-80,-77,-65,-46,-24,0,22,39,20,29,33,31,25,15,4,-5,-13,-17,-16,-10,-1,10,20,29,35,35,29,17,1,-17,-35,-49,-58,-59,-52,-39,-21,-1,20,36,2,3,2,-1,-7,-14,-22,-28,-32,-34,-32,-27,-19,-9,2,12,20,25,27,24,18,9,-1,-10,-17,-19,-16,-7,4,19,33,44,-8,-12,-16,-21,-27,-33,-39,-43,-46,-47,-45,-41,-34,-26,-16,-6,3,11,17,20,21,21,18,16,14,14,17,22,30,39,48,54 },
{ 25,34,39,41,40,38,34,30,27,24,20,17,12,6,-2,-10,-20,-28,-36,-42,-46,-47,-44,-39,-33,-25,-17,-9,-2,4,9,12,30,42,49,51,49,44,37,32,27,25,23,22,21,17,9,-1,-14,-27,-40,-51,-60,-63,-62,-56,-47,-36,-23,-10,2,12,20,25,22,31,35,33,26,16,6,-3,-7,-7,-3,5,12,18,21,19,12,1,-12,-26,-38,-45,-47,-45,-38,-27,-13,2,16,28,37,42,11,16,14,6,-6,-22,-37,-49,-56,-56,-48,-34,-16,1,17,28,34,33,27,17,6,-4,-11,-13,-11,-4,7,20,34,46,54,57,9,12,9,0,-14,-31,-49,-65,-76,-79,-73,-60,-42,-20,2,21,37,46,48,45,38,29,20,13,9,11,16,25,36,46,54,57,15,22,23,18,8,-6,-21,-36,-49,-55,-55,-49,-38,-23,-5,12,27,38,43,43,38,31,21,12,3,-1,-2,1,8,16,24,30,22,33,39,40,37,30,20,9,-1,-9,-13,-14,-11,-5,3,12,20,26,28,27,22,14,4,-7,-19,-27,-34,-36,-35,-30,-23,-14,22,35,45,50,52,50,46,39,33,27,22,18,16,16,17,19,20,21,19,16,9,1,-9,-21,-33,-44,-53,-60,-63,-63,-58,-50 },
{ -26,-34,-39,-39,-33,-23,-10,4,16,24,27,24,17,8,-3,-13,-20,-24,-24,-20,-13,-4,6,17,26,33,38,40,39,36,30,23,-32,-47,-55,-58,-52,-40,-21,0,20,36,44,44,36,22,4,-14,-30,-40,-44,-41,-33,-21,-4,13,29,42,51,56,57,54,47,37,-22,-34,-43,-47,-46,-37,-23,-4,17,34,46,50,46,33,15,-5,-25,-39,-48,-50,-47,-37,-22,-5,11,25,36,43,46,45,39,30,0,-2,-6,-10,-13,-13,-8,0,10,21,30,35,35,30,19,6,-8,-20,-29,-35,-36,-33,-26,-18,-9,-1,5,9,11,10,6,1,21,29,32,30,25,18,12,7,3,2,3,4,6,6,6,4,3,1,0,0,-1,-1,-1,-2,-5,-8,-13,-19,-25,-30,-35,-38,30,44,51,51,46,37,24,11,-3,-14,-22,-28,-30,-28,-23,-16,-7,4,14,24,32,36,37,34,26,14,-1,-17,-33,-47,-57,-62,28,41,50,51,48,39,26,11,-6,-22,-36,-46,-53,-54,-50,-42,-30,-15,3,20,37,49,57,59,55,44,27,7,-14,-34,-50,-60,19,30,37,39,37,31,21,8,-7,-21,-36,-48,-57,-61,-61,-56,-47,-34,-18,0,18,34,47,55,58,54,43,28,9,-10,-28,-42 },
{ 8,7,1,-6,-12,-13,-7,5,23,41,57,67,71,67,58,46,34,23,14,8,5,4,4,3,2,-1,-6,-12,-19,-25,-28,-29,19,18,7,-9,-25,-37,-37,-27,-6,20,45,64,73,72,61,45,26,11,-1,-7,-8,-5,-1,3,5,2,-4,-14,-26,-37,-45,-48,36,40,29,8,-19,-42,-56,-57,-47,-26,-2,18,30,30,20,4,-15,-30,-39,-41,-36,-25,-10,3,13,16,12,1,-14,-29,-43,-51,51,63,58,40,13,-15,-36,-48,-49,-40,-24,-10,-2,-3,-12,-27,-45,-60,-67,-66,-56,-38,-15,9,28,39,40,31,16,-3,-22,-36,49,64,66,55,37,16,-2,-14,-18,-13,-4,6,12,11,3,-10,-27,-42,-51,-53,-46,-30,-8,18,41,56,62,57,44,24,2,-17,27,37,38,33,22,11,2,-2,0,7,17,29,37,41,38,30,18,5,-7,-14,-15,-9,3,20,37,50,55,52,41,26,5,-12,-1,-1,-5,-11,-18,-24,-27,-26,-20,-9,4,18,31,39,44,43,38,30,21,12,5,2,2,6,12,16,17,13,5,-7,-21,-33,-18,-27,-35,-44,-51,-56,-58,-56,-50,-41,-29,-16,-2,9,16,21,22,19,14,7,0,-6,-11,-15,-18,-21,-25,-31,-38,-47,-55,-61 },
{ 35,43,42,32,16,0,-15,-25,-30,-32,-32,-32,-34,-37,-40,-42,-42,-38,-29,-18,-5,9,21,29,33,32,26,18,7,-3,-12,-18,48,63,63,51,29,5,-15,-28,-32,-29,-23,-19,-19,-23,-31,-39,-45,-46,-40,-29,-11,8,27,42,50,50,42,27,10,-8,-23,-33,41,56,57,44,22,-2,-20,-28,-24,-10,9,25,34,32,23,9,-8,-20,-26,-24,-13,4,23,40,51,52,44,26,4,-19,-39,-52,23,32,29,14,-8,-30,-43,-46,-34,-11,19,47,67,76,71,57,35,14,-4,-15,-16,-8,7,23,35,39,31,15,-8,-33,-55,-69,11,15,9,-7,-28,-49,-63,-66,-57,-35,-6,25,50,64,67,58,41,20,-2,-19,-29,-28,-19,-5,9,16,16,5,-13,-35,-57,-70,13,17,13,2,-15,-33,-48,-55,-53,-43,-25,-5,13,25,29,25,14,-2,-20,-35,-45,-46,-39,-26,-10,3,11,11,2,-13,-31,-45,21,30,32,28,19,7,-5,-14,-18,-17,-12,-5,2,7,8,4,-5,-16,-28,-39,-46,-46,-39,-26,-10,7,21,29,31,25,13,-1,24,36,44,46,44,39,32,26,21,18,17,17,17,16,14,9,1,-7,-16,-23,-27,-27,-21,-11,4,19,35,47,54,54,47,37 },
{ 29,37,47,55,63,66,67,64,58,50,40,31,25,21,21,24,28,33,39,43,47,47,46,43,40,37,34,30,26,23,19,16,16,20,27,35,43,49,51,49,43,32,19,7,-3,-9,-9,-5,3,13,23,32,38,40,40,39,36,33,30,27,24,22,20,17,-7,-15,-21,-21,-20,-16,-13,-12,-15,-20,-29,-38,-46,-50,-51,-46,-39,-29,-20,-12,-6,-3,-4,-6,-8,-9,-9,-8,-6,-4,-1,1,-14,-28,-39,-47,-50,-50,-47,-43,-38,-36,-35,-36,-36,-37,-36,-34,-30,-25,-22,-21,-22,-25,-31,-37,-42,-46,-46,-43,-38,-32,-24,-17,-2,-8,-15,-21,-24,-24,-21,-15,-7,1,9,15,20,24,27,29,30,30,29,24,17,8,-3,-13,-23,-31,-34,-34,-31,-25,-19,-12,12,15,15,14,14,15,17,21,26,32,38,44,49,53,56,58,58,59,57,53,48,41,33,26,19,14,11,11,13,16,18,18,14,19,22,23,24,23,22,21,20,19,18,17,16,15,14,12,11,10,9,8,7,6,7,8,11,15,20,26,33,38,41,40,7,10,12,12,10,8,4,-1,-7,-13,-20,-27,-35,-43,-49,-56,-61,-66,-68,-70,-70,-68,-63,-56,-47,-36,-24,-11,3,15,23,28 },
{ -27,-34,-36,-30,-19,-5,11,22,27,23,12,-4,-19,-30,-35,-32,-22,-8,8,21,30,31,25,14,1,-12,-24,-33,-38,-39,-35,-27,-31,-43,-47,-44,-30,-10,13,35,47,47,33,10,-17,-39,-52,-54,-42,-22,4,28,46,54,49,35,16,-5,-24,-40,-50,-53,-49,-40,-17,-24,-31,-32,-27,-13,8,29,47,53,46,26,0,-26,-46,-54,-50,-32,-6,21,44,55,56,46,30,10,-9,-25,-36,-39,-36,-28,12,13,8,0,-8,-10,-4,7,19,29,32,27,14,-3,-20,-30,-33,-26,-12,6,22,32,34,29,20,10,0,-6,-8,-6,0,7,37,48,46,33,15,-3,-16,-21,-20,-13,-4,4,9,9,7,3,-1,-1,-1,1,2,0,-5,-12,-17,-19,-15,-6,7,22,36,46,45,62,63,51,29,4,-20,-38,-47,-47,-38,-25,-10,4,16,24,29,29,25,17,5,-10,-26,-41,-51,-52,-43,-25,0,26,50,67,39,54,59,51,33,10,-15,-36,-52,-57,-54,-43,-27,-8,11,28,41,47,47,39,26,7,-15,-36,-53,-59,-54,-38,-14,15,44,65,25,38,43,39,28,12,-7,-26,-40,-48,-49,-43,-32,-16,1,19,35,46,51,50,42,28,10,-9,-27,-38,-39,-32,-15,7,31,51 },
{ -33,-36,-26,-9,8,17,16,6,-8,-20,-24,-19,-7,7,19,25,24,17,7,-1,-4,-2,5,14,22,24,20,10,-5,-21,-34,-42,-50,-58,-42,-13,19,40,42,27,1,-25,-39,-38,-21,2,24,36,36,24,6,-11,-21,-19,-6,12,29,39,36,22,-1,-28,-52,-68,-58,-66,-50,-14,27,56,63,47,14,-21,-45,-50,-36,-8,21,38,40,25,-1,-28,-47,-48,-33,-7,22,42,48,37,12,-21,-56,-80,-50,-62,-46,-14,26,56,64,50,19,-17,-44,-53,-40,-13,19,42,47,33,4,-31,-59,-70,-59,-32,5,36,53,52,32,-2,-41,-72,-36,-44,-34,-10,20,42,48,36,11,-18,-41,-49,-39,-14,17,43,56,49,25,-9,-43,-62,-63,-44,-12,22,48,58,49,21,-16,-50,-18,-23,-16,-1,16,29,30,20,1,-21,-39,-45,-38,-18,9,35,52,55,42,18,-10,-33,-43,-38,-19,7,32,47,47,31,2,-27,-3,-3,1,9,18,22,21,11,-4,-20,-33,-39,-36,-23,-3,18,35,42,39,27,9,-9,-22,-26,-20,-6,10,22,26,19,2,-18,5,7,10,15,19,20,18,10,-1,-13,-23,-30,-30,-24,-12,2,14,22,23,19,10,-1,-12,-18,-19,-15,-8,-2,1,-1,-10,-21 },
{ -26,-33,-33,-26,-14,3,20,36,49,53,50,39,22,2,-20,-40,-56,-63,-63,-56,-44,-27,-9,8,21,28,31,30,26,21,15,10,-28,-38,-41,-38,-26,-10,9,27,44,54,56,50,36,17,-6,-30,-52,-65,-68,-64,-51,-33,-11,10,27,36,40,38,32,24,16,10,-7,-11,-14,-15,-14,-11,-9,-6,-3,0,5,9,12,11,8,2,-6,-12,-16,-16,-12,-3,8,18,26,29,27,21,12,3,-5,-9,18,24,28,29,26,18,4,-14,-33,-48,-53,-50,-39,-23,-5,13,28,38,42,43,41,38,34,29,22,13,2,-10,-22,-31,-37,-37,18,27,37,45,49,46,33,12,-13,-36,-53,-60,-58,-44,-25,-2,20,37,47,50,48,41,31,19,6,-6,-18,-29,-39,-45,-48,-45,-7,-6,-1,10,21,31,34,30,20,7,-6,-17,-22,-21,-14,-6,4,11,14,13,7,-1,-10,-17,-23,-26,-25,-23,-20,-18,-15,-12,-33,-45,-49,-43,-32,-16,0,12,22,25,26,24,22,20,17,14,10,5,-3,-13,-24,-34,-42,-46,-44,-35,-20,-2,17,33,43,45,-41,-60,-70,-72,-66,-53,-36,-18,-1,13,24,31,36,38,36,32,25,16,5,-7,-20,-32,-39,-42,-38,-27,-8,16,42,65,80,86 },
{ -32,-37,-32,-16,5,24,36,36,25,6,-16,-32,-38,-31,-16,1,14,19,15,3,-13,-26,-35,-36,-28,-15,2,19,33,41,41,34,-40,-52,-48,-32,-4,26,48,57,47,22,-11,-39,-52,-47,-25,3,28,41,39,23,-1,-26,-45,-53,-48,-32,-9,16,37,51,55,49,-23,-32,-36,-30,-15,7,30,44,44,27,-1,-29,-47,-44,-26,3,32,51,55,43,22,-5,-29,-43,-46,-36,-18,2,21,33,38,34,15,15,7,-4,-11,-11,-3,7,13,12,3,-11,-23,-27,-19,-4,15,30,37,34,24,10,-3,-12,-15,-14,-8,-3,1,1,-1,-6,47,57,50,30,4,-17,-28,-28,-21,-9,1,7,7,4,1,-2,-5,-6,-8,-9,-9,-6,1,11,21,25,24,16,0,-18,-37,-49,53,68,63,42,11,-18,-39,-46,-40,-23,-1,20,33,37,31,19,1,-19,-35,-47,-49,-41,-21,5,31,49,53,43,20,-13,-46,-70,38,51,48,31,5,-22,-43,-53,-49,-32,-7,19,41,52,53,44,25,1,-24,-45,-58,-56,-40,-13,17,42,55,53,36,4,-34,-63,18,26,24,12,-6,-26,-42,-51,-50,-38,-18,6,28,44,51,49,39,21,0,-21,-37,-43,-37,-21,1,23,38,42,34,12,-18,-45 },
{ 38,50,61,66,68,64,57,46,35,21,9,-1,-8,-14,-18,-22,-26,-31,-37,-41,-45,-46,-47,-46,-45,-44,-43,-41,-40,-36,-32,-26,16,24,31,38,41,41,36,30,20,10,1,-4,-6,-6,-4,-2,-3,-7,-13,-18,-23,-25,-26,-27,-27,-28,-29,-31,-33,-34,-32,-29,-20,-29,-34,-35,-36,-35,-34,-33,-33,-32,-30,-23,-14,-3,9,20,28,30,30,27,26,26,27,29,31,30,27,22,16,9,3,-1,-23,-36,-45,-51,-52,-52,-49,-46,-42,-38,-32,-25,-15,-5,6,15,22,24,24,22,23,26,31,39,47,52,54,54,49,43,35,27,3,2,2,3,5,9,13,17,19,18,17,15,14,12,10,6,1,-6,-14,-21,-27,-28,-25,-19,-11,-3,5,11,16,17,16,15,18,25,31,38,44,49,54,57,57,55,50,43,35,27,19,10,0,-9,-19,-29,-38,-46,-49,-51,-52,-51,-49,-47,-43,-39,-33,-27,5,8,11,13,16,18,20,20,19,16,11,7,2,-1,-3,-4,-3,-3,-2,-1,0,0,0,-1,-4,-9,-15,-21,-28,-31,-34,-33,-10,-15,-20,-24,-29,-33,-37,-40,-44,-48,-52,-54,-55,-53,-48,-40,-29,-18,-4,11,26,40,51,60,65,67,63,56,46,34,23,12 },
{ -33,-30,-11,10,23,19,2,-19,-33,-31,-15,7,25,31,24,9,-8,-20,-23,-17,-8,0,2,-3,-13,-21,-24,-19,-6,13,33,46,-54,-53,-21,21,50,52,26,-12,-43,-50,-30,4,37,54,47,23,-5,-26,-31,-21,-2,16,23,15,-3,-22,-34,-33,-17,13,46,69,-67,-68,-33,19,61,69,44,-1,-42,-58,-44,-8,31,52,48,21,-14,-39,-45,-28,3,33,49,44,22,-9,-34,-44,-34,-3,39,72,-63,-69,-39,8,49,63,43,3,-36,-56,-46,-16,19,41,38,12,-26,-55,-63,-46,-9,33,60,65,44,8,-29,-53,-53,-27,16,56,-44,-48,-28,5,35,45,30,0,-30,-44,-36,-11,20,41,42,22,-14,-45,-62,-53,-25,14,48,62,52,21,-18,-48,-60,-43,-6,33,-16,-17,-5,14,28,31,18,-5,-26,-35,-27,-5,22,44,51,42,18,-10,-32,-38,-28,-4,22,39,40,24,-4,-30,-43,-36,-9,22,3,6,13,21,25,20,7,-12,-28,-35,-30,-13,9,29,41,41,31,12,-7,-19,-22,-14,0,12,17,13,2,-11,-18,-12,6,27,9,14,18,20,18,11,-1,-16,-29,-37,-35,-26,-12,3,14,19,17,8,-4,-14,-20,-20,-14,-8,-3,-1,-2,-4,-3,4,17,32 },
{ -41,-45,-37,-20,1,19,30,32,25,11,-10,-32,-51,-59,-58,-48,-30,-7,18,39,53,56,47,31,11,-7,-22,-31,-34,-32,-24,-15,-41,-49,-40,-21,3,24,38,43,40,30,12,-9,-30,-46,-53,-52,-38,-16,11,38,58,65,58,41,17,-6,-24,-36,-39,-36,-25,-14,-14,-16,-11,-2,8,13,12,7,5,7,13,17,20,17,8,-2,-10,-10,-4,6,16,22,21,12,-1,-13,-22,-24,-20,-10,3,13,16,23,28,30,23,8,-16,-41,-55,-54,-33,-3,29,53,60,53,36,16,-3,-18,-28,-32,-33,-34,-32,-30,-23,-11,5,24,41,49,17,25,35,39,36,20,-7,-38,-64,-72,-62,-36,-2,28,47,52,43,25,3,-17,-32,-40,-41,-38,-33,-25,-15,-1,17,35,53,60,-11,-11,-2,11,22,27,21,7,-9,-22,-26,-22,-11,-1,7,9,5,-2,-10,-14,-14,-9,0,9,15,16,13,9,8,12,18,23,-41,-52,-50,-35,-14,6,23,32,36,34,28,21,14,5,-5,-16,-27,-33,-34,-27,-14,5,26,44,56,53,39,16,-8,-27,-38,-39,-47,-66,-71,-64,-46,-23,0,20,37,46,48,43,34,22,6,-11,-27,-39,-44,-40,-27,-9,13,34,49,51,38,14,-18,-48,-69,-79 },
{ -36,-48,-55,-54,-45,-27,-3,22,44,58,65,65,62,56,49,42,34,26,16,6,-7,-18,-29,-37,-44,-47,-47,-45,-43,-38,-31,-24,-14,-25,-34,-40,-39,-31,-17,-1,15,24,25,21,16,11,8,8,10,12,12,10,3,-5,-13,-20,-26,-30,-31,-31,-29,-26,-22,-17,28,34,34,30,24,17,9,1,-9,-20,-32,-45,-57,-62,-61,-54,-42,-29,-16,-6,1,6,11,15,19,21,23,24,25,24,22,18,29,43,51,54,53,47,36,24,8,-6,-17,-27,-34,-38,-38,-34,-27,-20,-14,-10,-4,2,9,18,27,36,42,47,50,50,46,39,-13,-10,-8,-5,-2,-1,-2,-3,-2,2,10,19,29,36,41,43,42,38,30,19,8,0,-6,-8,-8,-6,-4,-2,1,3,4,5,-34,-44,-49,-52,-52,-51,-48,-44,-36,-25,-10,7,23,37,46,50,50,45,35,24,11,1,-9,-17,-25,-32,-39,-47,-52,-56,-54,-47,-10,-14,-16,-16,-16,-17,-17,-17,-17,-15,-12,-8,-4,-2,-1,-3,-6,-12,-16,-20,-20,-17,-11,-4,3,4,1,-6,-16,-26,-35,-37,20,28,37,45,51,54,54,51,46,38,30,20,10,-1,-14,-26,-38,-48,-54,-55,-49,-37,-19,3,27,46,58,64,62,54,41,28 },
{ -34,-37,-28,-8,14,27,27,11,-11,-28,-33,-23,-1,21,34,35,21,-1,-21,-31,-27,-13,9,28,38,35,21,1,-20,-36,-43,-40,-39,-47,-37,-13,18,43,48,31,-2,-34,-51,-46,-17,19,45,53,37,5,-28,-50,-52,-33,-1,30,51,55,40,15,-15,-40,-54,-55,-17,-22,-22,-11,10,32,45,37,13,-18,-43,-47,-30,2,33,48,42,15,-18,-44,-56,-44,-17,13,37,46,40,22,1,-20,-33,-35,21,21,11,-2,-9,-4,7,16,14,3,-11,-21,-20,-7,9,22,25,17,2,-13,-22,-21,-13,-3,6,10,9,5,3,2,4,8,49,53,37,6,-25,-41,-38,-21,0,15,20,16,8,-2,-10,-14,-12,-6,3,13,22,26,21,8,-10,-25,-34,-32,-18,5,32,50,53,62,45,10,-29,-54,-58,-42,-12,18,38,44,35,14,-12,-34,-45,-41,-22,6,34,53,53,36,5,-27,-51,-59,-44,-10,33,67,42,51,40,11,-23,-48,-55,-43,-16,15,42,56,53,33,2,-29,-53,-59,-47,-20,13,40,54,48,26,-6,-36,-53,-50,-21,22,59,25,33,27,8,-16,-34,-41,-34,-15,10,34,50,54,42,18,-10,-36,-50,-49,-34,-10,14,31,37,28,10,-12,-30,-33,-18,12,41 },
{ 36,30,7,-15,-23,-9,14,29,26,7,-16,-27,-20,-2,18,29,25,10,-5,-12,-8,4,16,19,11,-6,-23,-31,-22,2,30,50,54,46,7,-36,-54,-37,5,41,45,18,-22,-49,-46,-19,16,37,34,11,-16,-32,-26,-3,23,36,28,1,-30,-50,-45,-11,37,75,63,54,9,-43,-71,-53,-4,43,60,34,-13,-48,-52,-24,16,43,43,13,-26,-51,-48,-19,22,50,51,22,-20,-56,-64,-31,27,79,57,55,15,-33,-61,-50,-5,41,60,43,0,-36,-43,-19,21,51,52,23,-22,-57,-63,-36,11,52,66,47,2,-46,-67,-47,9,67,40,40,14,-20,-41,-33,-2,31,46,31,-4,-34,-43,-23,13,45,55,35,-4,-41,-58,-43,-5,38,64,56,21,-25,-56,-49,-6,46,17,16,2,-16,-25,-17,5,25,30,16,-12,-38,-48,-35,-7,23,40,36,12,-17,-37,-38,-17,13,38,42,23,-10,-36,-38,-10,30,-1,-4,-10,-16,-15,-5,12,25,27,15,-6,-27,-39,-34,-17,5,22,27,18,1,-16,-23,-19,-4,10,16,11,-5,-19,-20,-4,22,-8,-12,-15,-15,-11,0,13,24,28,21,7,-7,-17,-18,-10,3,15,22,20,12,1,-7,-9,-6,-2,2,0,-5,-10,-8,4,20 },
{ 24,29,40,51,63,70,73,71,69,64,60,55,50,42,35,28,23,23,26,30,36,38,38,37,36,33,32,29,26,20,15,9,-4,-12,-12,-6,2,6,4,-2,-9,-14,-14,-12,-10,-11,-14,-19,-22,-21,-16,-9,-2,4,5,5,5,5,7,10,10,8,6,3,-17,-33,-42,-43,-42,-42,-50,-60,-70,-73,-70,-60,-48,-39,-35,-36,-38,-37,-34,-30,-27,-26,-28,-32,-36,-36,-34,-28,-23,-19,-16,-13,3,-2,-2,4,13,18,17,11,3,1,4,14,26,35,36,32,26,22,20,20,19,16,8,-2,-11,-18,-20,-19,-16,-13,-11,-9,7,9,16,27,41,50,55,52,48,46,48,52,59,61,57,49,40,33,30,32,37,39,38,33,28,24,22,22,24,23,22,17,-9,-12,-12,-10,-6,-4,-6,-11,-17,-20,-21,-21,-20,-21,-26,-33,-40,-46,-48,-43,-35,-25,-15,-9,-3,1,6,12,18,23,23,21,-8,-12,-15,-18,-21,-25,-30,-37,-43,-46,-46,-44,-43,-42,-44,-45,-48,-51,-52,-50,-46,-39,-34,-29,-26,-24,-24,-23,-20,-16,-12,-8,9,12,14,17,17,18,16,13,13,14,18,23,30,35,40,43,47,49,50,52,53,52,49,44,36,25,13,0,-11,-19,-22,-21 },
{ -5,1,13,28,37,33,17,-8,-33,-48,-53,-43,-23,4,34,63,85,89,79,54,25,-3,-25,-37,-40,-32,-20,-8,0,2,1,-1,-21,-22,-10,11,31,39,32,14,-9,-29,-41,-45,-39,-26,-5,20,44,56,51,35,10,-16,-36,-46,-44,-32,-15,2,11,12,7,2,-24,-32,-33,-24,-11,-1,7,13,19,23,26,22,11,-6,-22,-33,-38,-35,-32,-31,-33,-35,-34,-28,-15,1,17,29,32,24,12,0,6,2,-4,-14,-24,-33,-36,-29,-10,19,47,66,66,49,18,-14,-40,-54,-53,-45,-31,-17,-2,13,28,40,45,45,34,16,-4,-17,32,40,43,35,18,-5,-29,-44,-47,-32,-8,16,33,35,27,13,0,-6,-4,6,19,30,38,40,41,37,29,18,0,-21,-38,-45,11,20,32,42,44,36,18,-3,-22,-34,-38,-36,-31,-25,-18,-12,-4,5,16,28,37,38,30,17,0,-13,-24,-32,-38,-43,-43,-41,-37,-43,-34,-14,8,25,34,33,25,12,-2,-15,-26,-31,-31,-26,-17,-7,4,13,17,11,-1,-19,-38,-48,-49,-39,-23,-5,12,20,-59,-79,-82,-69,-45,-18,6,25,36,39,35,28,19,11,5,2,4,7,10,12,10,4,-7,-21,-32,-35,-25,-3,27,58,82,92 },
{ -57,-66,-61,-40,-11,18,41,51,50,36,12,-14,-31,-33,-25,-12,-4,-6,-17,-33,-48,-53,-46,-29,-8,13,30,42,49,49,44,34,-35,-42,-37,-25,-6,13,28,38,40,30,7,-18,-34,-33,-15,10,31,38,28,5,-21,-40,-43,-33,-15,4,19,30,37,38,36,30,20,29,35,32,22,6,-9,-17,-18,-17,-18,-24,-29,-23,-7,16,40,54,56,45,27,10,1,0,3,4,-1,-8,-16,-21,-21,-18,32,50,58,54,32,1,-28,-47,-48,-36,-15,1,8,7,2,-3,-5,-4,-1,3,7,12,19,27,30,25,8,-15,-40,-58,-63,-58,-9,-2,7,10,4,-11,-29,-37,-32,-10,19,44,57,51,32,3,-27,-47,-58,-57,-49,-33,-13,8,24,29,24,11,-5,-20,-29,-30,-42,-49,-42,-29,-18,-14,-13,-13,-7,5,23,38,48,47,35,17,-4,-19,-27,-29,-26,-21,-15,-9,-3,2,7,13,23,34,41,42,-36,-43,-36,-18,2,15,21,21,16,9,1,-5,-11,-14,-17,-16,-10,0,15,30,41,43,34,16,-6,-25,-35,-32,-14,16,48,65,-12,-14,-5,13,34,49,54,51,38,19,-4,-27,-48,-62,-66,-63,-49,-25,3,32,57,69,64,44,12,-23,-52,-67,-63,-40,-5,25 },
{ -20,-29,-32,-18,12,37,42,21,-15,-37,-34,-7,25,36,22,-6,-34,-43,-30,-3,21,28,15,-10,-31,-36,-25,-2,19,28,25,13,-5,-22,-37,-33,-1,40,58,37,-13,-56,-60,-24,31,65,55,11,-39,-61,-45,-4,38,56,39,0,-38,-54,-41,-11,20,35,30,14,36,23,-9,-30,-18,18,48,40,-2,-49,-67,-38,19,63,66,25,-31,-61,-51,-6,45,69,55,15,-28,-48,-39,-9,19,28,15,-9,65,61,19,-24,-39,-17,18,34,17,-19,-43,-36,1,38,48,23,-21,-51,-48,-16,26,50,42,12,-21,-34,-20,9,31,25,-6,-44,63,60,21,-29,-58,-47,-11,22,31,16,-6,-16,-8,10,21,14,-6,-21,-24,-10,9,17,6,-16,-33,-30,-3,33,52,34,-16,-69,43,41,8,-34,-58,-52,-20,15,36,35,16,-3,-13,-12,-5,0,4,7,11,17,18,9,-12,-36,-47,-36,0,42,64,46,-10,-70,27,27,7,-22,-40,-36,-12,17,37,39,24,3,-17,-27,-28,-21,-8,8,23,34,35,23,-1,-28,-44,-36,-6,32,56,43,-2,-55,18,21,10,-6,-17,-16,-1,17,32,36,25,7,-14,-29,-35,-34,-23,-9,8,22,29,25,9,-10,-26,-27,-11,13,31,27,-3,-41 },
{ -54,-44,-6,35,50,30,-4,-23,-20,1,22,28,18,-2,-15,-17,-10,0,5,5,5,6,9,8,-2,-17,-32,-36,-24,5,37,56,-79,-70,-13,50,73,45,-11,-50,-49,-14,26,43,28,0,-21,-23,-11,2,8,4,1,5,17,25,18,-5,-34,-53,-44,-7,44,80,-69,-61,-12,45,66,34,-22,-61,-61,-21,22,38,22,-8,-28,-24,-3,14,13,-3,-20,-19,2,29,42,27,-8,-43,-55,-28,26,72,-25,-19,9,36,39,13,-24,-42,-29,5,34,36,10,-22,-36,-21,14,38,34,3,-35,-53,-36,4,42,54,30,-11,-43,-42,-6,38,14,20,24,19,4,-17,-31,-23,6,38,53,37,-1,-37,-50,-28,18,54,62,30,-20,-57,-62,-31,16,48,51,23,-14,-34,-26,0,28,33,22,1,-25,-44,-44,-24,13,44,53,33,-8,-46,-62,-47,-5,39,62,51,13,-29,-51,-44,-13,22,41,35,12,-12,-23,-17,28,31,20,-4,-31,-47,-44,-22,10,37,46,31,-1,-35,-56,-52,-27,8,37,44,31,2,-23,-32,-25,-5,15,23,19,4,-9,-14,22,27,20,4,-16,-28,-25,-10,14,34,43,36,15,-10,-29,-34,-24,-5,16,28,28,16,-1,-14,-19,-15,-4,6,9,5,-2,-6 },
{ 27,39,54,67,78,76,66,48,27,9,-6,-17,-25,-28,-32,-35,-36,-35,-35,-38,-43,-48,-50,-48,-46,-42,-40,-38,-40,-41,-39,-32,-12,-15,-14,-9,-2,2,0,-7,-14,-17,-15,-11,-5,-1,2,3,6,12,15,14,8,2,-2,-1,4,8,9,7,-2,-12,-19,-21,-21,-34,-49,-59,-64,-63,-59,-54,-46,-32,-15,0,14,21,24,25,29,34,40,43,42,37,35,37,43,50,55,55,50,38,26,15,24,26,21,17,14,14,14,16,17,21,24,24,20,14,5,-6,-14,-18,-16,-14,-14,-16,-19,-19,-16,-9,-1,6,12,15,16,14,26,34,40,43,47,49,51,48,44,38,30,19,7,-3,-12,-21,-31,-36,-38,-35,-34,-34,-36,-40,-47,-52,-56,-55,-50,-41,-29,-18,-16,-20,-24,-25,-24,-24,-23,-23,-25,-28,-30,-32,-29,-23,-15,-7,0,6,13,20,28,35,41,44,39,30,17,4,-5,-10,-9,-6,-20,-27,-31,-33,-34,-35,-36,-35,-36,-37,-38,-36,-30,-18,-5,8,18,23,26,26,27,31,38,46,52,53,51,45,39,35,31,27,6,11,18,24,30,34,36,36,36,32,28,25,25,26,28,28,26,17,2,-15,-33,-48,-57,-61,-59,-54,-47,-39,-29,-17,-5,3 },
{ -53,-50,-25,11,38,38,14,-15,-30,-21,-4,7,0,-19,-36,-37,-19,8,32,38,27,8,-4,-2,16,38,53,47,23,-10,-38,-50,-46,-47,-23,15,43,45,16,-22,-37,-22,13,40,38,11,-23,-39,-27,4,33,40,21,-12,-38,-43,-22,15,45,54,33,-8,-49,-70,0,0,4,13,22,19,0,-25,-38,-24,9,40,51,33,1,-21,-22,-2,23,32,17,-15,-47,-62,-56,-28,6,27,27,4,-28,-47,44,44,25,0,-14,-13,-8,-7,-10,-13,-10,-2,6,5,-2,-11,-15,-10,3,13,16,11,1,-8,-15,-16,-10,0,10,17,16,13,49,44,11,-30,-52,-38,-3,30,42,26,-3,-26,-33,-23,-6,5,6,-3,-15,-22,-16,4,32,51,54,33,2,-24,-28,-4,34,61,31,25,-8,-47,-66,-49,-2,44,65,52,13,-24,-38,-25,7,37,49,34,1,-35,-52,-42,-4,38,61,48,3,-49,-74,-56,1,55,26,24,2,-29,-46,-34,-1,34,50,38,3,-32,-50,-38,-4,37,64,61,30,-14,-52,-61,-41,-2,32,38,10,-36,-69,-61,-17,37,26,31,22,5,-7,-5,10,26,32,19,-9,-40,-59,-56,-31,3,35,47,35,6,-24,-41,-34,-10,21,40,35,13,-8,-9,15,47 },
{ 34,29,8,-17,-32,-27,-5,21,41,43,28,-1,-34,-56,-62,-46,-13,24,54,65,56,28,-6,-35,-49,-44,-29,-10,6,14,16,12,38,38,15,-15,-36,-40,-25,1,27,44,42,24,-5,-35,-54,-54,-29,7,42,62,59,35,-2,-34,-49,-45,-27,-4,14,23,22,16,10,12,7,0,-3,-4,-7,-13,-17,-15,-5,10,25,27,18,4,-6,-7,-3,3,2,-4,-15,-22,-21,-8,8,21,25,21,11,0,-26,-30,-23,-4,24,45,43,20,-18,-54,-65,-47,-5,37,61,61,38,8,-21,-41,-50,-48,-33,-12,12,32,43,41,24,1,-22,-36,-24,-32,-38,-25,4,37,58,52,24,-15,-48,-55,-37,-4,26,39,33,11,-13,-30,-36,-28,-12,8,29,40,42,29,6,-21,-45,-55,23,17,-5,-26,-31,-18,6,26,33,28,12,-2,-9,-10,-9,-9,-13,-17,-14,-5,10,24,32,32,24,11,-2,-13,-21,-23,-22,-19,62,67,43,3,-35,-51,-47,-29,-5,16,29,32,29,17,0,-18,-34,-36,-26,-5,21,40,45,32,6,-24,-46,-50,-36,-4,31,51,62,78,65,31,-10,-41,-54,-51,-35,-12,10,26,33,31,18,1,-16,-25,-23,-10,10,26,31,20,-5,-35,-55,-56,-33,11,60,92 },
{ -30,-29,-16,3,24,40,51,48,28,-9,-54,-86,-93,-70,-36,-8,8,9,9,19,41,63,74,67,47,21,0,-12,-17,-16,-12,-8,-25,-27,-20,-12,-7,-1,14,33,42,31,2,-27,-35,-15,16,37,33,9,-17,-25,-10,16,36,38,19,-4,-22,-28,-25,-18,-11,-8,9,17,23,14,-15,-47,-59,-42,-9,18,27,23,27,42,63,71,55,17,-27,-56,-62,-46,-28,-22,-29,-39,-40,-28,-10,6,13,11,13,33,56,61,34,-11,-47,-55,-37,-13,-2,-6,-10,-7,2,12,13,2,-15,-26,-25,-15,-5,-5,-13,-20,-13,6,29,43,41,29,-39,-29,2,30,38,25,7,1,10,21,20,4,-19,-41,-53,-52,-42,-27,-10,9,30,45,51,43,26,13,14,24,34,32,18,0,-70,-78,-58,-30,-10,-4,-2,4,20,38,47,44,29,8,-10,-21,-23,-16,-1,16,29,35,31,17,-2,-13,-12,-7,-8,-23,-46,-65,-30,-31,-20,-5,2,-4,-15,-23,-22,-11,2,14,21,21,19,15,15,15,15,14,8,-3,-19,-35,-46,-42,-25,-5,3,-9,-37,-61,28,41,56,67,65,47,20,-8,-32,-44,-45,-40,-31,-20,-9,1,10,16,18,15,6,-9,-25,-37,-37,-22,8,42,66,68,48,19 },
{ 32,12,-24,-37,-10,33,50,24,-21,-44,-28,5,23,10,-19,-38,-32,-7,18,26,17,4,3,16,31,31,13,-14,-31,-22,8,36,61,31,-35,-73,-42,29,67,40,-24,-61,-39,15,50,39,-4,-39,-38,-7,27,33,10,-21,-30,-9,25,40,20,-23,-52,-42,4,51,79,52,-20,-71,-53,18,65,43,-21,-59,-40,19,63,54,9,-32,-34,3,44,48,10,-42,-68,-46,6,42,35,-12,-56,-51,0,58,59,45,-8,-48,-37,14,50,35,-17,-51,-35,12,45,35,-10,-49,-47,-4,49,64,30,-32,-72,-58,0,54,61,18,-34,-45,-3,56,19,10,-15,-31,-19,14,34,20,-17,-37,-22,14,38,25,-18,-57,-62,-25,28,58,45,-5,-48,-47,-2,50,67,34,-18,-40,-14,37,-10,-16,-21,-19,-4,18,25,9,-17,-29,-14,19,43,40,8,-27,-42,-27,8,36,37,10,-24,-34,-11,23,37,16,-24,-47,-29,11,-15,-16,-12,-2,13,24,22,4,-20,-31,-21,3,28,35,24,2,-15,-15,-1,14,19,8,-10,-19,-13,3,11,2,-18,-30,-19,8,-7,-7,-1,10,22,28,21,4,-17,-29,-30,-18,-1,10,10,3,-6,-10,-5,1,4,2,-5,-9,-7,1,8,8,4,3,13,27 },
{ -57,-74,-80,-69,-47,-19,8,30,44,46,40,31,24,19,16,16,15,13,10,8,7,3,-2,-9,-19,-30,-44,-58,-71,-72,-64,-48,2,-1,-2,2,10,17,21,19,12,3,-7,-16,-21,-21,-18,-14,-11,-10,-9,-6,0,5,10,15,19,19,12,-1,-17,-28,-29,-23,44,59,67,65,57,41,19,-4,-27,-37,-41,-38,-33,-25,-18,-11,-8,-8,-12,-15,-15,-12,-7,3,19,34,48,55,57,53,50,46,-5,-3,-3,-6,-13,-23,-29,-31,-27,-19,-4,12,26,34,36,35,31,27,22,15,5,-8,-22,-30,-32,-30,-19,-6,10,26,41,49,-31,-40,-48,-52,-53,-47,-36,-19,-1,15,29,36,38,34,24,11,0,-1,5,13,20,18,12,1,-13,-30,-45,-55,-59,-52,-37,-17,8,9,11,13,17,22,28,33,35,33,25,12,-5,-21,-35,-48,-56,-57,-49,-33,-14,3,19,34,44,47,41,26,3,-18,-31,-33,18,24,28,32,36,37,37,33,25,13,0,-14,-25,-29,-28,-25,-19,-13,-9,-8,-10,-13,-13,-7,4,22,41,53,53,39,21,4,-10,-15,-17,-19,-20,-21,-23,-26,-31,-35,-37,-35,-27,-13,8,31,55,74,80,73,53,23,-10,-39,-61,-66,-54,-34,-13,0,4,3 },
{ 22,14,-3,-17,-21,-8,15,32,35,17,-14,-45,-59,-39,6,52,81,73,34,-19,-61,-71,-53,-14,24,39,34,19,3,-5,-5,-2,25,20,0,-19,-27,-20,-2,15,26,27,10,-19,-46,-52,-27,15,54,66,41,-7,-53,-72,-53,-12,30,47,36,12,-10,-19,-13,-4,9,8,3,-2,0,1,-7,-19,-21,-5,21,37,33,9,-19,-32,-27,-11,2,1,-7,-11,0,20,37,36,15,-13,-32,-30,-13,7,-15,-19,-13,4,28,43,26,-14,-53,-58,-23,30,68,70,31,-18,-54,-61,-39,-7,22,39,43,40,27,6,-19,-39,-42,-25,9,35,-12,-22,-30,-20,11,42,52,27,-19,-51,-54,-23,17,40,35,9,-20,-32,-23,0,25,34,27,8,-14,-30,-40,-38,-24,3,36,53,28,18,-10,-34,-33,-8,23,41,33,8,-16,-27,-24,-15,-7,-2,3,9,16,24,23,12,-10,-32,-42,-35,-15,5,20,26,27,22,63,61,28,-18,-52,-53,-28,8,37,42,29,8,-12,-23,-25,-18,-4,13,26,29,20,0,-25,-41,-37,-9,29,54,53,23,-20,-50,59,68,46,5,-37,-58,-51,-24,8,28,32,24,9,-5,-14,-15,-9,2,11,14,6,-8,-24,-32,-22,5,41,63,53,8,-53,-99 },
{ 54,60,45,10,-30,-50,-47,-16,28,57,61,38,6,-24,-43,-48,-46,-40,-32,-21,0,26,50,65,67,52,27,1,-22,-32,-34,-30,13,21,20,8,-14,-34,-42,-31,-5,20,27,15,-3,-15,-12,-2,8,10,3,-11,-17,-10,5,21,29,24,10,-6,-21,-29,-30,-26,-47,-53,-41,-14,18,36,34,17,-2,-16,-27,-33,-34,-22,4,33,59,66,56,29,-2,-24,-38,-42,-43,-39,-31,-18,-4,8,18,20,-25,-42,-42,-22,17,52,62,46,16,-8,-19,-18,-14,-9,-5,-2,1,5,9,9,8,4,-5,-16,-29,-36,-30,-12,13,38,55,58,41,36,18,2,-5,-2,-1,-12,-25,-24,-6,20,41,43,27,-5,-40,-62,-66,-50,-21,8,30,40,39,28,18,9,5,8,14,17,54,58,40,14,-12,-28,-35,-43,-46,-40,-22,4,29,45,44,28,4,-16,-26,-22,-9,5,13,20,25,29,26,13,-11,-38,-57,-61,13,11,1,-11,-18,-14,-3,8,13,11,3,-6,-13,-14,-11,-5,5,17,30,39,40,26,0,-26,-40,-33,-11,8,12,-5,-32,-52,-20,-31,-40,-44,-35,-13,17,46,67,70,52,22,-12,-42,-60,-60,-45,-21,11,37,48,37,7,-30,-59,-63,-36,6,44,62,53,32 },
{ 49,39,3,-36,-49,-19,28,48,28,-12,-34,-21,10,30,23,-2,-23,-23,-6,13,19,5,-16,-28,-21,6,34,46,34,1,-33,-49,44,40,6,-39,-58,-30,26,58,36,-18,-54,-44,1,39,39,6,-29,-36,-11,22,38,24,-11,-39,-43,-16,23,50,46,12,-33,-60,-3,3,5,-8,-22,-14,13,35,26,-11,-41,-37,-2,32,39,13,-24,-37,-21,12,41,40,14,-18,-38,-31,-7,18,30,17,-11,-33,-55,-42,0,32,33,11,-8,-10,-3,0,-2,-3,3,14,18,9,-9,-20,-21,-12,5,16,18,15,5,-8,-18,-20,-10,4,16,18,-69,-51,6,55,61,18,-33,-52,-33,6,34,30,5,-17,-22,-9,10,21,16,-6,-29,-36,-21,13,43,40,7,-29,-46,-26,18,52,-48,-34,15,56,55,10,-43,-63,-37,15,52,50,10,-37,-58,-41,5,48,61,37,-12,-53,-57,-20,32,58,39,-8,-48,-47,-2,49,-25,-18,13,38,33,-2,-41,-52,-27,21,58,59,22,-29,-64,-60,-21,31,65,60,19,-30,-56,-41,2,39,45,13,-28,-40,-14,28,-11,-8,6,17,12,-8,-32,-39,-20,16,47,54,31,-8,-41,-52,-35,0,33,43,24,-7,-32,-34,-14,14,27,17,-7,-19,-8,17 },
{ 35,10,-32,-40,0,43,41,-4,-37,-18,23,39,16,-20,-29,-7,21,24,3,-19,-17,5,22,15,-10,-25,-16,12,32,24,-5,-35,65,29,-42,-70,-19,50,56,-8,-66,-48,17,54,24,-34,-56,-22,30,42,9,-34,-39,-4,34,36,-5,-42,-40,0,40,40,-2,-50,75,42,-33,-69,-25,50,66,1,-66,-52,20,65,37,-30,-63,-27,39,59,19,-41,-59,-16,45,62,18,-41,-60,-19,39,53,10,-51,49,28,-27,-54,-17,44,58,9,-48,-41,23,66,39,-24,-57,-26,41,70,32,-37,-71,-36,38,77,44,-27,-65,-37,26,56,21,-41,15,3,-24,-34,-9,26,31,-3,-41,-34,11,41,23,-24,-54,-31,22,52,33,-23,-65,-47,14,59,47,-11,-56,-44,8,42,23,-29,1,-4,-10,-8,5,19,15,-8,-28,-22,7,28,20,-10,-34,-29,2,28,27,-2,-30,-30,1,32,29,-5,-34,-30,5,31,18,-21,-2,-2,1,6,14,17,10,-5,-15,-9,10,24,22,6,-12,-15,-4,13,20,10,-4,-7,1,14,13,-3,-15,-11,10,24,13,-18,-5,-5,-3,1,6,6,-1,-11,-16,-12,0,9,11,4,-5,-10,-8,-1,5,2,-2,-4,-2,1,1,-5,-10,-7,5,13,5,-16 },
{ -41,-54,-55,-42,-17,17,53,76,87,77,55,28,5,-9,-22,-30,-34,-32,-28,-23,-17,-8,2,11,20,27,36,45,55,58,53,41,7,5,4,3,-1,-7,-10,-14,-19,-25,-31,-33,-26,-16,-7,-2,1,6,8,6,4,3,1,-1,-7,-13,-15,-13,-5,5,11,13,29,44,57,57,41,9,-23,-44,-58,-60,-57,-43,-18,5,23,30,31,32,33,29,25,19,13,7,-4,-18,-33,-47,-54,-53,-49,-41,-26,-24,-15,-5,-2,-5,-1,12,31,44,46,43,41,38,28,13,-4,-15,-19,-21,-19,-16,-8,4,15,23,27,24,14,2,-12,-21,-30,-40,-46,-46,-43,-36,-20,4,31,44,42,29,12,-2,-14,-25,-35,-36,-33,-29,-27,-27,-27,-23,-14,1,23,43,57,57,46,29,24,29,30,30,27,18,7,-2,-10,-18,-33,-48,-54,-51,-39,-25,-9,10,28,41,48,46,33,14,-10,-29,-39,-39,-28,-15,-3,3,20,28,35,39,43,38,27,14,-1,-11,-20,-26,-22,-11,3,15,23,30,32,31,33,35,37,34,26,8,-13,-30,-42,-42,-38,-29,-28,-37,-42,-41,-35,-29,-23,-18,-13,-5,5,17,32,44,49,46,30,6,-22,-50,-72,-80,-70,-47,-16,11,30,42,43,37,26,17 },
{ -21,-14,5,22,20,-2,-28,-32,-10,28,49,36,-5,-49,-73,-54,1,54,78,59,13,-32,-55,-47,-20,9,28,31,20,-1,-14,-16,-21,-20,-1,23,30,13,-17,-37,-31,0,34,50,34,-8,-48,-59,-26,24,57,53,15,-29,-51,-44,-15,15,31,33,19,-5,-18,-19,0,-4,-8,-3,5,12,16,11,-7,-27,-34,-13,20,41,33,9,-11,-17,-12,-9,-13,-16,-9,6,19,25,18,5,-9,-17,-14,-4,26,25,2,-23,-35,-26,11,51,56,14,-47,-77,-50,8,54,62,30,-10,-38,-48,-36,-10,24,48,48,25,-9,-37,-42,-25,8,33,21,26,21,-1,-35,-51,-33,15,61,58,15,-36,-55,-31,8,32,26,3,-15,-22,-13,7,25,33,26,0,-30,-47,-43,-11,30,55,-23,-13,15,33,20,-17,-42,-38,-7,22,34,24,8,-3,-8,-11,-15,-16,-4,11,24,27,13,-9,-26,-30,-21,-6,7,15,21,22,-63,-57,-15,35,61,43,1,-36,-49,-33,-4,22,36,30,11,-14,-32,-31,-13,13,36,35,7,-30,-53,-42,-1,43,61,35,-13,-50,-61,-67,-35,15,55,64,39,-1,-33,-43,-30,-4,19,28,19,-1,-19,-23,-14,5,25,30,10,-21,-41,-30,10,52,65,31,-36,-93 },
{ 28,30,34,45,55,55,46,41,42,42,40,40,47,55,59,57,54,54,54,50,42,30,20,14,9,3,-2,-4,-5,-4,-3,0,-13,-30,-37,-34,-32,-37,-48,-52,-45,-41,-44,-51,-52,-47,-42,-46,-51,-48,-39,-30,-22,-25,-24,-18,-12,-11,-9,-8,-7,-6,-1,4,-12,-21,-20,-13,-7,-12,-19,-15,0,9,6,-1,-7,-7,-5,-13,-25,-30,-28,-23,-17,-18,-19,-12,-3,0,3,5,5,4,6,10,10,16,29,44,55,52,44,46,54,58,53,47,46,54,64,66,61,56,52,52,51,42,28,22,22,21,18,15,10,3,1,5,-4,-8,-6,-3,-6,-20,-34,-39,-39,-41,-47,-54,-60,-54,-45,-36,-32,-30,-24,-14,-7,-7,-11,-12,-11,-8,-8,-9,-10,-14,-14,-10,-5,-11,-17,-20,-23,-30,-33,-29,-20,-12,-9,-10,-11,-12,-14,-19,-26,-33,-36,-35,-32,-30,-28,-26,-19,-13,-10,-8,-5,-4,-5,-4,3,6,9,13,18,22,29,38,50,60,63,64,66,69,73,71,63,54,47,42,36,33,31,29,27,24,20,15,17,20,19,16,-6,-4,-1,2,4,1,-1,-5,-12,-20,-32,-44,-53,-54,-47,-41,-35,-30,-24,-18,-14,-10,-7,-5,-5,-7,-12,-16,-15,-11,-6,-4 },
{ 55,54,25,-21,-62,-62,-27,22,55,46,11,-28,-57,-57,-39,-15,9,28,43,45,41,24,-3,-33,-58,-62,-47,-21,9,32,40,30,15,23,16,-2,-24,-30,-15,10,29,31,16,-1,-8,-4,7,8,0,-8,-7,-1,9,17,18,7,-13,-28,-26,-13,6,24,32,23,-48,-48,-31,-1,33,46,35,6,-24,-40,-38,-17,15,42,56,45,19,-15,-43,-57,-54,-31,0,27,42,40,30,19,6,-5,-14,-23,-21,-30,-30,-10,26,52,43,9,-29,-47,-38,-18,-5,0,0,0,7,12,7,-4,-16,-24,-22,-7,15,31,32,26,7,-20,-45,-61,46,42,21,0,-10,-13,-15,-18,-17,5,36,52,38,-1,-45,-64,-48,-10,31,56,63,44,12,-15,-31,-33,-25,-7,8,8,-4,-19,44,46,26,-1,-26,-38,-39,-35,-20,8,38,57,51,26,-7,-31,-35,-26,-9,8,20,26,19,9,-6,-27,-42,-38,-7,28,50,52,-3,-8,-14,-17,-15,-6,6,10,7,2,-9,-17,-20,-16,-4,13,31,31,13,-18,-47,-55,-37,-2,31,37,17,-11,-22,-9,17,37,-28,-36,-34,-21,1,27,50,61,51,25,-11,-44,-65,-65,-40,3,49,74,65,27,-24,-57,-57,-24,24,57,57,28,-9,-36,-43,-33 },
{ 43,26,-13,-40,-28,10,38,19,-26,-42,-16,24,36,9,-27,-38,-12,24,33,9,-22,-30,-9,24,43,29,-8,-41,-46,-17,21,45,44,33,-8,-45,-39,5,48,41,-16,-50,-26,29,55,28,-25,-51,-24,26,52,27,-23,-50,-31,14,50,47,7,-42,-59,-31,22,57,-5,3,2,-12,-20,-4,26,33,3,-29,-29,6,35,26,-11,-40,-29,13,45,32,-6,-37,-39,-13,20,34,20,-10,-32,-23,11,39,-55,-32,15,36,18,-14,-21,-5,11,7,-8,-16,-8,4,5,-6,-13,-7,5,11,10,5,-3,-14,-18,-8,7,17,15,2,-7,-10,-70,-39,30,69,44,-18,-57,-38,12,42,30,-9,-35,-19,14,36,26,-3,-31,-36,-10,30,49,26,-24,-49,-32,13,49,37,-11,-55,-49,-27,29,63,38,-22,-62,-45,12,55,46,-3,-45,-45,-2,44,55,23,-28,-63,-48,6,57,59,7,-49,-56,-12,45,60,9,-60,-29,-17,15,34,18,-22,-49,-34,12,48,47,5,-45,-56,-29,19,53,44,0,-45,-57,-22,30,53,30,-19,-50,-32,14,42,21,-32,-14,-9,7,17,8,-15,-30,-19,13,38,40,13,-24,-42,-33,-3,29,39,20,-13,-31,-23,6,29,28,2,-22,-25,-3,19,16,-11 },
{ -36,-3,40,33,-14,-41,-17,22,18,-22,-34,5,51,46,4,-31,-25,7,25,9,-14,-14,5,20,8,-17,-25,-3,27,32,7,-26,-64,-19,50,53,-15,-57,-15,54,55,-19,-66,-29,41,51,-6,-56,-39,14,44,16,-28,-34,4,40,27,-21,-46,-21,27,42,8,-41,-69,-25,47,53,-22,-72,-29,58,77,1,-67,-42,29,46,-11,-65,-43,29,69,29,-42,-61,-11,53,55,-6,-55,-40,16,44,11,-48,-41,-9,45,51,-10,-63,-36,30,48,-4,-54,-30,42,63,9,-51,-39,31,76,41,-41,-79,-32,46,69,13,-46,-45,9,50,25,-36,-15,-1,26,27,-3,-25,-8,27,24,-20,-53,-25,38,59,16,-42,-50,-1,47,37,-19,-56,-34,27,55,17,-40,-48,-3,42,32,-21,-7,-6,-1,-6,-18,-16,10,36,28,-10,-38,-22,21,40,14,-29,-47,-27,13,27,6,-19,-15,16,33,14,-26,-39,-12,23,20,-21,6,5,-2,-14,-22,-15,6,26,25,0,-22,-18,6,23,18,-3,-18,-13,7,19,14,0,-5,4,12,7,-6,-8,5,19,11,-22,16,19,15,2,-9,-9,1,10,9,-5,-18,-19,-7,5,10,6,0,-1,5,9,5,-4,-10,-10,-9,-10,-9,-2,10,19,9,-16 },
{ 29,35,36,23,-8,-49,-82,-87,-62,-17,31,61,68,55,42,25,3,-15,-24,-23,-20,-20,-21,-14,1,14,26,36,47,50,48,37,-9,-14,-11,1,17,29,26,14,11,15,17,7,-16,-31,-28,-19,-15,-15,-7,2,10,9,2,-5,-6,-8,-10,-11,-8,-3,4,10,-13,-33,-51,-47,-16,28,57,56,50,35,12,-21,-57,-69,-50,-20,-1,2,10,22,33,33,26,16,11,6,-6,-26,-44,-52,-51,-37,42,40,18,-4,-13,-14,-24,-42,-45,-37,-16,0,8,20,42,61,54,27,0,-10,-10,-12,-19,-19,-5,16,33,32,16,0,-8,-6,24,33,36,34,29,16,-6,-33,-46,-35,-10,13,23,28,34,34,18,-10,-33,-35,-22,-15,-26,-39,-41,-25,1,21,33,38,43,44,-41,-48,-44,-28,-7,8,19,26,34,42,43,32,4,-24,-40,-44,-47,-51,-40,-15,23,52,56,43,19,-2,-18,-31,-36,-32,-14,10,-24,-30,-33,-29,-23,-18,-12,0,15,27,30,19,-1,-23,-32,-24,-12,-3,4,12,22,29,31,31,34,34,26,7,-16,-39,-44,-28,35,47,54,50,36,15,-7,-19,-26,-29,-28,-27,-24,-20,-4,23,49,63,59,39,4,-36,-68,-85,-76,-43,-3,30,45,38,24,14 },
{ -6,9,22,14,-17,-40,-35,-1,37,41,13,-29,-58,-40,18,76,91,45,-26,-77,-81,-35,18,46,44,22,0,-12,-15,-9,1,9,-24,-10,18,31,14,-14,-25,-16,8,29,31,13,-27,-54,-36,13,50,43,-3,-50,-54,-21,22,46,35,5,-18,-22,-14,-4,5,7,-20,-22,-12,5,15,22,26,7,-28,-42,-16,33,60,32,-22,-52,-47,-18,1,10,25,34,31,18,-10,-35,-41,-22,5,16,11,3,22,13,-5,-27,-35,-7,39,52,4,-58,-75,-29,46,81,46,-13,-49,-41,-10,24,46,44,16,-12,-37,-46,-28,6,37,38,11,-14,30,38,29,-7,-48,-49,-4,47,57,17,-31,-46,-24,9,21,9,0,3,10,16,7,-15,-33,-32,-23,-7,16,36,46,25,-17,-44,-20,-2,24,28,-1,-39,-44,-13,29,49,38,12,-15,-31,-33,-22,-1,22,31,21,-8,-37,-41,-17,16,37,36,22,1,-20,-35,-36,-63,-54,-9,37,49,17,-25,-45,-35,-6,23,31,21,1,-19,-21,-10,7,19,17,-2,-20,-19,10,41,45,18,-20,-47,-39,-2,35,-55,-57,-18,32,64,57,21,-17,-42,-41,-17,5,17,18,9,1,-3,0,2,2,-6,-16,-14,5,26,21,-8,-43,-59,-31,35,94 },
{ 29,45,59,58,55,55,49,26,9,11,19,11,-5,-13,-21,-26,-39,-54,-65,-67,-68,-66,-56,-45,-37,-29,-24,-16,-5,3,5,0,-37,-38,-36,-46,-55,-53,-41,-37,-36,-24,-3,-1,4,11,15,29,46,47,45,47,51,47,40,37,37,31,18,8,9,11,8,0,-15,-12,-6,-7,-15,-16,-3,5,4,2,3,-5,-8,-10,-14,-11,1,8,13,18,28,31,28,26,24,26,15,2,1,1,-2,-6,26,37,49,55,52,51,57,52,41,29,19,12,10,8,-4,-18,-28,-38,-45,-57,-64,-64,-63,-63,-58,-46,-32,-28,-19,-14,-12,-16,-18,-20,-21,-30,-39,-42,-43,-45,-44,-41,-35,-27,-13,3,18,25,32,31,32,32,30,30,25,21,17,10,14,16,16,15,11,5,-8,-13,-15,-19,-20,-21,-18,-13,-9,-3,3,0,-4,-6,-6,-9,-7,-6,-1,14,29,37,39,40,41,34,28,24,16,12,13,15,12,20,28,33,43,49,51,54,58,57,57,48,33,18,8,-5,-21,-30,-38,-42,-46,-54,-59,-56,-50,-49,-44,-41,-44,-39,-26,-11,-13,-10,-8,-11,-13,-15,-25,-35,-41,-39,-36,-35,-35,-27,-14,-1,9,23,34,41,35,22,14,15,18,22,30,33,25,14,9,6 },
},
{
{ 0,-1,-1,-1,-1,-1,-1,-1,0,0,0,0,1,1,1,2,2,3,3,4,4,5,5,6,6,7,8,9,10,11,12,14,-1,-1,-1,-1,-1,-1,-1,0,0,1,1,2,3,3,4,5,6,8,9,10,11,12,13,14,16,17,19,20,22,23,24,26,-1,-1,-1,-1,-1,0,0,1,2,3,4,5,6,8,9,11,13,15,17,19,20,22,24,26,28,30,31,33,34,35,36,36,-1,-1,-1,0,0,1,2,3,5,6,8,10,12,14,17,19,22,24,27,29,32,34,36,38,40,42,43,44,45,45,45,45,-1,-1,0,1,2,3,5,7,9,11,14,17,20,23,26,29,32,35,38,41,43,46,48,49,51,52,52,53,53,52,51,50,0,1,2,3,5,7,9,12,15,18,21,25,28,32,35,39,42,45,48,50,52,54,55,56,57,57,58,57,57,56,54,53,1,3,4,7,9,12,15,18,22,25,29,33,36,40,43,46,49,52,54,56,57,59,59,60,60,60,59,59,58,56,55,53,3,5,8,11,14,17,20,24,28,31,35,39,42,45,48,51,53,55,57,58,59,60,60,60,60,59,59,58,57,55,54,52 },
{ -2,-2,-3,-4,-5,-6,-7,-9,-10,-11,-12,-14,-15,-16,-17,-18,-19,-19,-20,-20,-19,-19,-17,-16,-14,-12,-9,-6,-3,0,4,8,-3,-4,-6,-8,-10,-12,-15,-17,-20,-22,-25,-27,-29,-31,-33,-34,-35,-35,-35,-34,-33,-31,-28,-25,-21,-16,-11,-6,0,5,10,15,-4,-7,-10,-13,-16,-19,-23,-27,-30,-34,-37,-40,-43,-45,-47,-48,-48,-48,-46,-44,-41,-36,-31,-25,-19,-12,-5,2,8,14,20,25,-6,-10,-14,-18,-22,-27,-31,-36,-41,-45,-48,-52,-54,-56,-57,-56,-55,-53,-49,-45,-39,-33,-25,-17,-9,-1,7,14,21,27,31,35,-7,-13,-18,-23,-28,-33,-38,-43,-48,-52,-55,-58,-59,-59,-58,-56,-53,-48,-43,-36,-28,-20,-12,-3,6,14,21,28,33,38,42,44,-9,-14,-20,-26,-31,-36,-41,-46,-50,-53,-55,-55,-55,-54,-50,-46,-41,-35,-28,-20,-12,-3,5,13,21,28,34,39,43,46,48,49,-9,-14,-20,-25,-30,-35,-39,-42,-45,-46,-46,-45,-43,-40,-35,-30,-24,-17,-10,-2,6,13,20,27,33,38,42,46,48,50,52,52,-8,-12,-17,-21,-25,-29,-31,-33,-34,-34,-33,-30,-27,-23,-18,-12,-6,0,6,13,19,25,31,36,40,43,46,48,50,51,52,52 },
{ -5,-7,-10,-13,-15,-18,-20,-22,-24,-25,-26,-26,-26,-25,-23,-21,-18,-15,-11,-6,-2,3,6,10,13,14,15,15,14,11,7,2,-9,-14,-19,-24,-29,-33,-37,-40,-42,-44,-44,-44,-42,-39,-34,-29,-22,-15,-7,1,8,15,21,25,28,29,28,25,20,14,7,-1,-13,-21,-28,-35,-40,-45,-50,-53,-55,-55,-54,-51,-47,-40,-32,-23,-13,-3,8,17,26,33,38,41,41,39,33,26,18,8,-2,-12,-17,-26,-35,-42,-48,-53,-56,-59,-59,-57,-53,-47,-39,-30,-19,-7,6,17,28,37,44,48,50,48,43,36,27,16,4,-8,-19,-28,-18,-28,-36,-43,-49,-52,-54,-54,-52,-48,-41,-32,-22,-10,2,14,26,36,44,49,52,51,47,40,32,21,9,-4,-16,-27,-37,-45,-16,-25,-32,-38,-41,-43,-43,-41,-36,-30,-21,-12,-1,10,21,30,38,43,46,46,43,38,30,21,10,-2,-14,-26,-36,-45,-52,-57,-11,-18,-23,-26,-28,-28,-26,-23,-18,-11,-3,5,14,21,28,33,36,36,34,30,24,16,7,-3,-14,-25,-35,-43,-51,-57,-62,-64,-5,-9,-12,-14,-15,-14,-12,-8,-3,2,7,13,18,21,23,24,23,20,15,9,2,-7,-15,-24,-33,-41,-48,-54,-59,-63,-65,-66 },
{ 2,2,3,4,5,6,7,8,9,10,10,11,11,12,12,13,13,14,15,16,17,18,20,22,23,25,27,29,31,33,34,34,3,5,6,8,10,11,13,15,16,17,18,19,20,21,22,23,24,25,27,30,32,35,38,42,45,48,51,54,55,56,55,53,5,7,10,12,14,16,18,19,21,22,22,23,24,24,25,26,28,31,34,37,41,46,50,54,59,62,64,65,65,64,60,55,7,10,13,15,17,18,18,19,19,18,18,17,17,17,17,19,21,24,28,33,38,43,48,52,55,58,59,59,57,54,49,44,8,11,13,13,13,12,11,9,7,4,1,-1,-3,-3,-3,-2,1,5,10,15,20,26,31,35,38,39,40,39,37,34,30,26,7,8,7,5,2,-2,-6,-11,-16,-21,-25,-29,-31,-31,-31,-29,-25,-21,-15,-10,-4,2,6,10,13,15,15,15,14,12,10,8,1,-1,-5,-10,-16,-23,-30,-36,-43,-49,-54,-57,-58,-58,-56,-53,-49,-44,-38,-32,-26,-20,-16,-12,-9,-7,-6,-5,-5,-5,-5,-6,-8,-13,-20,-27,-35,-43,-51,-58,-65,-70,-73,-75,-75,-74,-71,-67,-62,-57,-51,-45,-39,-34,-30,-26,-23,-21,-19,-18,-17,-16,-15,-15 },
{ 4,7,9,10,12,12,13,12,10,8,5,1,-4,-10,-16,-22,-27,-32,-36,-38,-38,-36,-32,-27,-20,-11,-2,7,15,21,27,29,8,12,15,18,20,21,21,19,15,10,3,-5,-14,-24,-34,-44,-52,-58,-61,-61,-58,-52,-41,-29,-14,0,15,27,37,43,45,44,10,16,21,25,28,29,27,24,18,10,0,-12,-24,-37,-49,-58,-66,-70,-70,-64,-56,-43,-27,-9,9,25,39,48,54,54,50,43,13,21,27,31,34,35,33,28,21,11,-1,-14,-27,-39,-50,-57,-61,-61,-55,-45,-31,-15,2,19,34,45,52,54,51,45,36,26,15,24,31,36,39,40,38,33,26,16,5,-7,-19,-28,-36,-39,-39,-34,-25,-14,0,13,25,35,42,44,42,37,29,18,8,-2,16,26,34,40,44,45,44,40,33,25,16,6,-2,-9,-12,-13,-11,-6,1,9,16,22,26,27,25,21,13,4,-6,-16,-25,-31,16,27,35,42,46,48,47,44,39,33,26,19,13,8,6,5,6,7,9,10,10,9,6,1,-5,-13,-22,-30,-39,-45,-50,-53,15,25,33,39,43,45,45,42,38,34,28,23,18,13,10,7,4,2,-1,-5,-9,-14,-21,-28,-35,-42,-49,-55,-60,-63,-65,-65 },
{ -9,-15,-19,-22,-25,-28,-30,-31,-31,-31,-30,-28,-26,-23,-20,-17,-14,-11,-9,-7,-6,-6,-5,-5,-4,-2,0,4,9,14,21,28,-17,-27,-34,-40,-44,-48,-49,-50,-49,-47,-43,-38,-33,-27,-21,-16,-11,-8,-6,-5,-4,-4,-4,-4,-2,1,6,12,20,29,38,45,-24,-35,-44,-50,-54,-55,-55,-52,-48,-42,-35,-27,-18,-11,-4,1,4,5,5,3,1,-2,-3,-3,-1,3,10,19,29,39,48,55,-25,-37,-44,-48,-48,-47,-42,-35,-27,-17,-7,3,12,18,22,23,21,17,11,4,-3,-8,-10,-10,-7,-1,8,18,30,41,51,57,-21,-29,-32,-31,-27,-21,-12,-2,9,20,30,37,41,42,39,32,23,12,0,-11,-19,-25,-26,-24,-18,-10,2,14,27,39,49,55,-10,-12,-10,-5,3,12,23,33,42,50,54,54,50,43,31,17,2,-13,-26,-37,-43,-46,-44,-38,-29,-17,-4,10,23,35,44,50,2,6,12,20,29,37,45,51,56,56,52,44,32,17,1,-15,-32,-45,-55,-61,-63,-61,-55,-45,-33,-20,-6,8,21,31,39,45,12,18,25,32,38,43,46,46,44,38,27,15,0,-16,-32,-46,-58,-67,-71,-72,-69,-63,-54,-43,-30,-17,-4,8,19,28,35,39 },
{ -3,-4,-5,-5,-4,-2,1,4,9,15,21,26,32,35,37,36,33,26,17,6,-5,-17,-27,-34,-39,-38,-34,-25,-14,0,14,27,-5,-8,-9,-9,-8,-5,0,7,16,25,35,44,51,55,55,50,40,27,9,-10,-29,-45,-56,-62,-62,-54,-40,-21,0,20,38,50,-8,-12,-15,-16,-15,-11,-5,4,15,26,38,48,55,56,53,44,29,10,-12,-32,-51,-63,-69,-66,-57,-40,-18,6,29,47,60,65,-12,-20,-25,-27,-27,-24,-17,-8,4,16,28,38,44,44,39,28,12,-6,-24,-40,-50,-55,-51,-41,-25,-6,14,33,49,58,61,59,-18,-29,-37,-42,-43,-41,-34,-25,-13,0,13,23,29,30,26,17,6,-6,-17,-24,-27,-25,-17,-7,7,19,30,38,43,42,38,32,-24,-38,-48,-54,-56,-54,-47,-37,-24,-10,4,15,22,25,24,21,15,9,4,1,1,3,6,10,14,16,17,15,11,6,1,-5,-25,-40,-50,-56,-58,-55,-47,-36,-22,-8,6,17,26,30,31,30,27,23,19,15,11,7,3,0,-5,-10,-16,-21,-27,-32,-36,-37,-22,-34,-43,-47,-47,-43,-35,-24,-11,1,13,23,29,33,33,31,27,21,15,8,0,-8,-16,-24,-32,-40,-46,-52,-56,-58,-58,-57 },
{ 17,25,31,35,38,39,39,36,33,27,21,15,9,3,-1,-4,-5,-5,-4,-2,0,2,4,5,6,6,7,9,11,15,21,27,28,41,51,56,59,58,54,47,38,28,16,6,-4,-10,-14,-15,-14,-10,-5,1,6,9,11,12,12,11,12,14,19,25,34,42,34,48,57,61,60,54,45,32,18,4,-9,-20,-28,-30,-28,-23,-15,-6,4,11,16,17,15,12,8,5,4,7,14,24,36,46,31,43,47,45,39,28,14,-1,-17,-31,-40,-45,-44,-38,-27,-14,0,12,19,23,21,16,6,-3,-12,-17,-17,-11,0,15,32,46,20,25,23,15,4,-9,-23,-36,-47,-52,-52,-45,-34,-19,-2,14,26,31,31,24,12,-3,-19,-32,-42,-43,-38,-26,-9,11,32,49,4,2,-5,-14,-25,-35,-42,-47,-47,-41,-30,-15,3,20,34,43,44,39,25,8,-12,-32,-48,-59,-62,-58,-45,-27,-5,18,40,56,-8,-13,-20,-26,-31,-33,-32,-26,-17,-3,13,29,44,53,57,53,43,26,5,-17,-38,-54,-64,-67,-63,-51,-34,-13,10,31,50,63,-11,-15,-17,-17,-16,-11,-3,8,21,34,47,57,62,62,55,43,25,5,-15,-33,-48,-57,-59,-55,-46,-31,-13,6,26,43,56,65 },
{ -2,-2,-2,-2,-3,-3,-5,-7,-10,-13,-17,-20,-24,-27,-30,-32,-33,-33,-33,-34,-34,-36,-38,-40,-43,-46,-48,-47,-46,-41,-35,-26,-2,-1,-1,0,-1,-2,-4,-8,-12,-18,-24,-29,-35,-39,-41,-42,-42,-41,-40,-40,-42,-45,-50,-55,-61,-65,-66,-64,-59,-50,-38,-24,1,3,6,8,8,8,5,1,-4,-10,-16,-21,-25,-26,-25,-22,-19,-15,-13,-13,-16,-21,-28,-36,-43,-48,-48,-45,-38,-27,-14,-1,6,12,18,22,24,24,21,17,12,8,4,2,3,7,13,21,29,35,37,36,31,23,13,3,-6,-12,-13,-10,-3,6,16,25,13,23,30,35,37,36,33,28,24,21,20,22,28,36,47,58,67,72,73,69,61,50,38,26,17,11,10,12,18,25,32,36,18,26,31,33,32,28,22,16,11,8,10,15,23,35,46,57,64,67,65,59,49,38,27,17,10,7,8,12,17,24,29,33,12,14,13,8,1,-8,-18,-26,-32,-34,-31,-24,-15,-4,7,16,21,22,20,14,7,0,-6,-11,-13,-12,-8,-2,5,12,18,22,-6,-11,-20,-31,-43,-55,-66,-74,-80,-80,-76,-69,-60,-51,-42,-35,-31,-29,-30,-32,-34,-36,-37,-36,-33,-28,-22,-14,-7,0,6,10 },
{ -13,-18,-20,-20,-18,-13,-7,1,10,17,22,23,22,15,5,-8,-23,-37,-48,-54,-54,-48,-36,-20,-4,11,23,28,28,21,10,-1,-19,-27,-30,-29,-23,-14,-1,13,27,37,42,42,34,20,0,-23,-46,-65,-75,-76,-67,-49,-25,2,26,42,49,46,34,17,-3,-19,-22,-31,-34,-31,-22,-8,8,26,42,52,56,51,39,18,-7,-32,-54,-67,-69,-59,-40,-14,15,39,56,59,52,34,11,-13,-33,-45,-23,-33,-35,-31,-20,-5,13,31,46,56,57,51,36,16,-6,-26,-39,-42,-35,-18,4,26,43,52,51,40,19,-5,-28,-47,-56,-56,-24,-34,-37,-34,-24,-10,7,24,38,46,47,42,30,16,2,-8,-12,-9,0,13,25,33,34,27,14,-4,-23,-38,-49,-52,-47,-37,-25,-37,-42,-41,-34,-23,-8,6,19,27,30,28,23,16,10,5,5,6,9,12,12,8,0,-10,-21,-31,-36,-36,-30,-21,-8,5,-26,-40,-48,-49,-46,-37,-25,-13,-1,8,13,15,14,12,9,6,3,0,-3,-7,-11,-17,-21,-24,-25,-20,-12,0,14,28,41,49,-25,-39,-47,-51,-49,-42,-33,-22,-12,-4,2,5,6,5,2,-2,-5,-9,-13,-16,-18,-18,-15,-9,0,12,26,41,56,67,75,78 },
{ 24,33,41,45,47,46,44,39,33,27,20,13,7,1,-3,-6,-9,-11,-11,-11,-10,-8,-6,-3,0,1,-1,-6,-14,-25,-38,-49,36,50,58,62,62,58,49,40,29,18,9,1,-6,-10,-13,-15,-16,-16,-16,-14,-12,-8,-5,-1,1,1,-4,-14,-27,-43,-57,-67,36,47,51,50,44,34,22,9,-2,-10,-16,-18,-18,-15,-12,-10,-8,-7,-7,-6,-4,-2,2,6,9,9,4,-6,-20,-35,-50,-61,21,24,21,13,1,-10,-21,-29,-33,-32,-25,-16,-4,5,12,14,13,10,5,2,1,4,10,17,25,28,27,20,7,-10,-28,-43,0,-7,-17,-28,-39,-46,-49,-45,-36,-20,-1,17,32,39,40,33,22,9,-1,-7,-7,1,14,29,43,51,52,44,29,9,-13,-32,-18,-30,-41,-49,-52,-50,-39,-23,-2,20,39,52,57,52,36,17,-5,-22,-32,-32,-23,-6,16,37,53,62,61,50,32,10,-13,-33,-23,-32,-39,-39,-34,-22,-5,14,34,48,55,52,40,19,-7,-32,-53,-64,-64,-53,-33,-9,16,37,51,55,50,36,18,-4,-25,-42,-14,-20,-20,-16,-7,5,19,31,39,41,32,16,-6,-32,-55,-74,-85,-85,-75,-56,-33,-9,12,27,35,35,26,13,-4,-21,-37,-48 },
{ 7,10,10,8,5,-2,-9,-18,-27,-35,-41,-45,-46,-44,-41,-35,-30,-26,-23,-21,-20,-18,-15,-9,0,11,23,35,46,52,52,46,13,19,20,17,10,-1,-14,-27,-40,-50,-56,-58,-54,-48,-38,-29,-21,-17,-16,-16,-17,-17,-13,-4,10,26,43,58,67,69,61,47,21,30,33,29,20,8,-6,-20,-32,-38,-39,-33,-24,-11,1,10,14,11,4,-6,-15,-20,-18,-10,3,19,34,44,48,42,28,12,29,42,45,42,33,22,10,-1,-7,-7,0,12,26,39,47,48,39,25,5,-15,-32,-42,-42,-35,-23,-10,1,7,5,-4,-18,-30,33,45,48,44,36,26,17,12,12,18,29,43,56,62,62,50,31,7,-19,-41,-57,-63,-60,-49,-37,-25,-18,-17,-23,-33,-44,-52,25,32,29,23,13,5,-1,-2,2,11,24,37,45,47,39,25,4,-17,-34,-47,-51,-48,-38,-26,-14,-7,-6,-11,-20,-32,-43,-50,4,0,-9,-19,-29,-36,-38,-35,-27,-15,-2,10,18,20,16,8,-2,-9,-13,-12,-6,3,14,23,28,27,21,10,-4,-17,-28,-35,-21,-32,-44,-55,-63,-66,-64,-57,-45,-31,-16,-3,7,14,18,20,22,26,32,40,48,56,61,63,60,52,40,26,12,-1,-12,-18 },
{ 21,28,31,30,27,20,12,4,-1,-3,-1,7,17,29,39,45,46,38,24,3,-18,-38,-52,-57,-54,-41,-24,-5,11,21,25,22,29,38,40,36,27,14,-1,-13,-19,-18,-10,6,25,45,58,63,57,39,11,-20,-50,-71,-78,-72,-53,-27,1,23,37,38,29,17,28,34,33,23,9,-9,-27,-39,-44,-39,-24,-2,23,43,56,56,44,20,-9,-36,-57,-62,-53,-32,-5,21,39,44,38,21,1,-16,19,23,17,5,-13,-32,-48,-58,-59,-51,-33,-10,13,31,40,38,26,9,-8,-19,-20,-11,5,24,39,45,38,21,-3,-27,-44,-52,12,14,10,-1,-16,-31,-44,-50,-51,-43,-29,-12,4,16,22,21,17,13,11,15,22,31,38,39,33,18,-4,-28,-48,-60,-62,-53,14,21,22,18,10,-1,-11,-19,-23,-22,-18,-13,-7,-1,3,6,10,14,20,26,29,29,23,11,-5,-22,-37,-47,-49,-43,-30,-14,25,39,47,49,45,36,24,12,-1,-11,-19,-23,-24,-22,-17,-11,-4,3,9,12,11,6,-3,-13,-22,-26,-25,-17,-4,11,28,40,35,51,61,64,60,50,34,17,-1,-16,-28,-35,-37,-36,-30,-22,-14,-7,-2,0,-1,-3,-4,-4,-1,6,18,33,49,64,73,78 },
{ -16,-21,-27,-32,-37,-41,-44,-45,-44,-39,-31,-19,-7,6,16,23,26,25,21,15,9,4,2,4,8,11,10,4,-9,-28,-50,-67,-19,-25,-30,-36,-42,-47,-49,-49,-44,-36,-23,-7,10,25,35,39,37,30,18,6,-4,-8,-4,4,14,20,17,5,-18,-46,-72,-91,-7,-6,-6,-8,-12,-16,-19,-20,-19,-13,-3,9,22,31,34,30,19,5,-11,-22,-27,-22,-8,10,27,36,33,18,-6,-34,-60,-75,17,29,36,37,34,26,16,7,-1,-4,-2,2,7,10,7,0,-13,-27,-37,-41,-36,-21,2,26,46,57,54,41,20,-4,-26,-42,41,59,69,66,57,40,20,0,-15,-24,-26,-22,-16,-10,-9,-13,-21,-29,-35,-35,-26,-10,12,33,51,59,58,49,35,17,-1,-15,45,61,62,53,34,11,-13,-32,-43,-45,-36,-21,-4,9,15,13,4,-8,-19,-25,-25,-17,-3,13,26,35,38,37,30,21,10,-1,27,31,25,11,-8,-27,-41,-46,-42,-26,-3,22,44,55,55,43,23,0,-22,-38,-46,-44,-35,-22,-8,4,13,19,20,17,11,4,1,-1,-9,-20,-30,-36,-34,-24,-5,20,45,66,78,78,63,40,10,-19,-43,-60,-68,-68,-58,-44,-29,-15,-3,6,11,12,9,4 },
{ -31,-42,-46,-42,-33,-19,-3,13,25,33,35,32,26,17,10,4,1,-2,-4,-8,-13,-20,-27,-31,-32,-26,-16,-1,13,23,26,22,-46,-61,-62,-52,-32,-9,16,37,51,56,50,38,22,8,-1,-6,-6,-4,-4,-7,-14,-24,-33,-37,-34,-22,-4,16,32,38,31,18,-48,-60,-56,-40,-16,11,35,50,55,45,28,6,-13,-23,-24,-15,-2,10,17,15,5,-9,-21,-26,-22,-8,10,26,34,28,11,-12,-39,-46,-38,-20,3,23,34,35,23,3,-22,-42,-52,-46,-26,2,30,49,53,43,23,0,-17,-24,-19,-7,9,19,17,3,-22,-47,-24,-25,-16,-1,13,20,17,3,-19,-42,-61,-66,-56,-29,7,42,67,73,61,35,5,-21,-36,-35,-24,-5,10,15,7,-13,-41,-66,-6,-3,6,15,19,16,3,-16,-37,-53,-56,-46,-22,9,38,58,60,46,18,-12,-38,-50,-46,-29,-5,17,30,29,14,-11,-42,-68,11,18,26,29,28,19,5,-11,-24,-29,-24,-10,8,24,33,28,13,-10,-33,-49,-54,-43,-20,9,36,53,57,46,24,-6,-36,-60,22,31,37,38,34,26,15,5,-3,-5,-1,5,9,8,1,-11,-27,-40,-46,-42,-27,-3,25,51,68,75,67,50,24,-5,-31,-50 },
{ -24,-29,-30,-28,-25,-21,-19,-18,-20,-25,-32,-38,-44,-44,-40,-29,-16,-1,11,18,16,4,-15,-36,-57,-71,-76,-70,-55,-33,-8,11,-28,-31,-28,-22,-14,-7,-3,-2,-7,-16,-28,-39,-45,-43,-31,-13,10,29,40,41,28,5,-25,-54,-74,-82,-74,-54,-26,1,23,35,-16,-12,-3,8,19,28,32,31,23,10,-4,-17,-23,-18,-4,16,37,51,56,49,32,11,-10,-24,-29,-21,-6,13,30,38,39,33,2,11,22,33,43,50,51,47,37,23,9,-3,-9,-8,2,14,26,34,36,34,29,25,25,29,35,40,42,39,29,16,2,-8,8,12,16,21,26,28,29,25,18,9,-2,-12,-20,-24,-24,-21,-17,-11,-4,6,18,30,40,45,44,33,17,-4,-25,-40,-47,-43,-11,-19,-25,-28,-25,-20,-13,-7,-3,-3,-8,-16,-27,-37,-46,-51,-50,-44,-31,-14,3,16,21,18,7,-11,-31,-48,-57,-58,-47,-30,-35,-52,-61,-60,-51,-34,-14,5,20,27,25,14,-1,-19,-34,-44,-46,-40,-28,-14,-2,5,5,-2,-13,-24,-32,-33,-28,-14,4,22,-38,-51,-52,-42,-22,4,32,56,72,78,71,56,36,15,-2,-13,-16,-12,-5,4,11,14,14,11,8,7,11,19,32,46,59,68 },
{ 3,2,4,8,14,19,24,25,23,16,6,-3,-8,-7,2,19,40,61,77,84,81,68,52,35,23,20,22,28,33,32,23,10,0,-3,-1,5,14,22,27,27,19,6,-10,-25,-32,-28,-11,15,45,70,81,78,60,36,10,-6,-9,0,16,32,38,32,14,-7,-9,-16,-16,-9,2,12,17,16,6,-12,-32,-50,-60,-55,-39,-16,7,19,16,-1,-25,-48,-61,-58,-41,-14,11,26,26,9,-16,-38,-22,-32,-31,-22,-7,7,15,16,7,-10,-31,-50,-61,-61,-51,-38,-29,-28,-38,-54,-68,-74,-65,-45,-16,10,24,24,9,-15,-40,-55,-29,-37,-33,-19,1,21,35,40,36,23,5,-11,-21,-22,-18,-11,-8,-9,-15,-20,-22,-16,-2,14,29,34,30,15,-5,-25,-40,-45,-26,-31,-24,-7,16,38,53,61,60,52,40,30,26,27,32,38,41,41,38,35,33,33,32,32,29,22,12,1,-8,-14,-15,-12,-22,-30,-27,-15,1,16,27,32,31,26,20,18,20,25,32,37,39,37,32,25,17,9,2,-3,-6,-7,-5,0,6,13,21,25,-28,-43,-49,-49,-45,-40,-38,-38,-40,-42,-43,-40,-34,-27,-21,-17,-17,-19,-24,-31,-36,-40,-40,-37,-29,-18,-4,11,26,37,44,45 },
{ 2,5,11,19,28,34,36,33,24,8,-11,-30,-45,-52,-53,-47,-40,-32,-28,-27,-29,-32,-31,-24,-13,1,12,15,6,-15,-42,-64,0,3,11,23,35,44,46,40,24,1,-24,-45,-57,-58,-46,-29,-12,-2,-2,-9,-19,-27,-25,-14,5,23,33,28,5,-28,-63,-86,-12,-14,-8,4,18,30,35,32,20,3,-14,-24,-23,-9,13,36,52,52,39,17,-5,-17,-16,-2,20,39,48,39,16,-17,-48,-65,-32,-42,-39,-27,-9,9,21,26,24,18,11,11,20,38,57,71,72,58,31,1,-24,-35,-27,-6,21,43,53,48,32,10,-12,-25,-49,-63,-61,-45,-23,0,16,23,23,16,8,5,9,17,27,30,24,8,-15,-37,-51,-50,-35,-12,14,33,44,43,36,24,13,4,-47,-59,-52,-34,-12,7,15,13,0,-18,-35,-46,-47,-39,-27,-17,-12,-16,-24,-34,-38,-37,-29,-16,-3,8,16,20,21,20,18,15,-24,-24,-13,4,20,27,21,5,-20,-43,-60,-65,-57,-37,-13,9,23,26,21,8,-6,-19,-27,-30,-29,-24,-16,-7,3,10,15,17,9,18,32,44,51,48,34,14,-8,-24,-28,-19,2,28,54,72,79,73,55,31,5,-18,-35,-45,-47,-42,-32,-19,-6,5,13,15 },
{ -50,-63,-66,-57,-44,-28,-14,-4,-1,-2,-7,-12,-16,-15,-12,-8,-6,-7,-11,-17,-21,-20,-12,4,24,42,55,59,56,46,36,27,-63,-75,-67,-48,-22,2,19,27,24,14,1,-10,-14,-11,-2,6,10,6,-4,-17,-24,-23,-9,13,36,51,54,48,32,15,5,4,-44,-43,-25,2,30,50,57,50,33,11,-7,-17,-14,0,18,30,33,22,2,-19,-33,-33,-22,-7,5,6,-4,-20,-36,-42,-33,-13,-12,-2,18,40,56,61,48,25,-3,-27,-37,-33,-13,13,36,47,41,20,-7,-31,-43,-43,-32,-22,-19,-26,-41,-55,-58,-47,-17,17,5,13,24,30,29,17,-5,-30,-52,-59,-51,-28,3,30,45,42,26,3,-17,-26,-23,-9,6,13,10,-4,-21,-31,-26,-4,31,62,-2,-1,-2,-5,-13,-26,-39,-49,-50,-40,-20,4,24,34,28,14,-2,-12,-9,7,30,52,62,60,42,18,-2,-11,-4,19,50,75,-8,-10,-11,-12,-13,-13,-11,-6,2,12,20,23,17,2,-16,-29,-33,-22,1,30,56,68,65,46,18,-10,-29,-33,-21,3,32,54,2,5,10,16,24,31,37,40,39,32,19,0,-23,-45,-60,-63,-54,-34,-9,14,27,26,10,-14,-40,-61,-69,-65,-47,-21,6,26 },
{ -12,-15,-14,-8,2,16,30,42,52,55,54,47,35,20,5,-7,-15,-14,-7,4,16,27,33,30,18,-3,-27,-47,-59,-58,-46,-26,-20,-28,-25,-16,0,18,35,48,55,55,46,31,11,-8,-24,-33,-33,-24,-7,11,28,39,38,28,7,-17,-39,-52,-52,-39,-17,6,-28,-37,-37,-28,-16,-2,8,13,14,7,-4,-15,-27,-33,-36,-32,-24,-13,0,11,19,22,21,17,10,4,1,2,9,19,32,42,-28,-36,-35,-30,-25,-22,-22,-26,-30,-33,-32,-26,-16,-5,4,8,6,0,-9,-15,-17,-11,3,20,35,43,43,38,32,29,28,31,-10,-8,-4,-2,-4,-11,-21,-29,-32,-24,-8,14,37,51,52,35,8,-22,-47,-57,-51,-28,1,27,42,39,24,3,-14,-21,-16,-1,24,39,46,45,33,15,-3,-15,-16,-4,19,44,63,66,48,16,-22,-54,-68,-64,-43,-15,10,22,15,-5,-32,-55,-64,-57,-31,1,47,65,68,56,34,5,-19,-32,-32,-17,6,27,40,36,19,-5,-28,-38,-34,-17,4,20,24,14,-8,-34,-56,-63,-55,-28,9,43,37,46,38,18,-11,-39,-59,-67,-60,-42,-19,2,16,19,16,10,10,16,28,41,50,50,37,18,-3,-21,-26,-19,2,32,61,83 },
{ 13,17,15,9,0,-9,-15,-17,-16,-12,-10,-13,-23,-38,-56,-70,-75,-65,-42,-10,22,44,54,49,37,20,11,13,24,39,50,49,18,24,20,10,-4,-14,-18,-15,-5,5,12,9,-5,-27,-50,-67,-66,-47,-11,28,57,66,53,27,-4,-24,-24,-8,17,40,47,39,20,24,19,8,-4,-11,-9,3,22,42,55,56,44,21,-4,-21,-22,-7,16,32,34,15,-15,-47,-69,-69,-50,-21,5,15,9,-8,17,19,12,0,-11,-16,-9,7,31,55,70,73,62,41,16,-2,-9,-7,-3,-6,-18,-36,-52,-60,-53,-35,-12,5,7,-7,-31,-51,9,8,0,-14,-28,-36,-34,-22,-4,15,28,32,26,12,-2,-12,-15,-13,-10,-9,-9,-6,2,13,27,37,39,27,4,-24,-50,-63,5,6,-1,-16,-34,-49,-56,-56,-48,-37,-25,-17,-11,-8,-5,-1,6,13,20,27,35,44,51,56,56,50,36,16,-6,-25,-35,-36,22,33,32,20,1,-18,-34,-42,-44,-37,-26,-14,-2,9,15,17,18,16,14,12,13,14,14,13,12,9,6,3,2,4,8,12,50,71,77,70,54,34,17,5,0,1,7,13,18,17,9,-3,-18,-33,-45,-53,-57,-57,-53,-44,-32,-18,-3,13,27,39,46,47 },
{ -30,-37,-43,-48,-52,-53,-50,-41,-27,-10,6,17,22,19,11,2,-6,-9,-6,3,15,24,29,30,27,21,13,1,-16,-38,-66,-87,-25,-27,-29,-33,-36,-37,-32,-20,-3,16,31,38,34,21,2,-14,-23,-23,-12,3,17,24,23,18,12,10,9,6,-5,-26,-54,-77,11,22,27,23,15,7,4,6,13,22,28,26,14,-4,-23,-35,-36,-26,-12,-1,3,-4,-14,-19,-16,2,26,46,53,37,5,-29,49,67,68,55,34,12,-4,-13,-13,-8,-3,-2,-8,-18,-24,-23,-13,-1,7,4,-12,-31,-44,-44,-24,11,51,80,86,67,26,-15,51,59,48,22,-7,-31,-44,-44,-34,-18,-3,6,8,6,8,15,26,33,30,13,-14,-38,-53,-50,-29,2,34,52,50,28,-6,-35,14,9,-9,-30,-46,-51,-41,-21,4,24,33,31,21,13,13,21,33,41,38,22,-2,-28,-46,-52,-45,-29,-13,-3,-5,-16,-30,-41,-14,-21,-29,-30,-23,-6,17,37,49,44,25,-3,-29,-39,-33,-11,17,38,46,39,19,-5,-27,-39,-42,-36,-25,-15,-9,-7,-8,-10,-11,-10,-3,9,25,40,49,46,28,-3,-41,-75,-93,-89,-62,-24,17,47,60,57,42,22,5,-6,-9,-4,6,18,27,31,30,26 },
{ 19,19,14,4,-3,-4,2,16,35,51,59,56,43,22,1,-13,-17,-11,-3,0,-7,-24,-46,-61,-62,-42,-8,31,57,57,36,4,21,18,6,-12,-26,-29,-18,5,32,52,57,45,19,-10,-31,-37,-24,-1,20,25,11,-17,-47,-63,-53,-21,24,60,67,44,-4,-47,17,11,-7,-31,-51,-56,-46,-22,5,22,22,6,-20,-41,-47,-31,3,41,66,67,45,9,-24,-37,-28,-1,26,37,22,-17,-60,-85,21,20,2,-25,-47,-57,-50,-30,-7,7,6,-7,-26,-37,-31,-7,30,63,76,68,39,4,-22,-31,-22,-6,6,6,-10,-33,-51,-55,42,50,37,12,-12,-25,-23,-9,9,21,21,8,-10,-24,-26,-15,4,20,24,16,0,-16,-24,-21,-9,4,13,16,14,11,10,11,61,74,62,38,12,-4,-5,6,23,35,33,19,-6,-30,-46,-50,-43,-31,-19,-11,-5,-1,2,7,12,18,23,29,36,42,45,44,44,47,32,7,-16,-27,-22,-4,19,35,37,23,-1,-25,-42,-45,-37,-19,0,15,24,23,16,5,-4,-9,-7,1,12,22,30,30,-1,-9,-28,-47,-57,-54,-35,-9,20,39,45,38,23,8,0,1,10,23,32,34,25,8,-15,-37,-53,-60,-55,-44,-28,-13,-2,4 },
{ -54,-65,-58,-35,-7,20,38,43,38,23,5,-11,-22,-25,-24,-18,-8,3,15,22,23,17,5,-10,-24,-30,-27,-15,1,14,18,11,-68,-76,-55,-18,23,53,65,59,37,11,-14,-30,-34,-29,-18,-5,7,16,22,25,21,11,-4,-19,-29,-29,-17,1,19,26,16,-1,-55,-53,-26,10,41,54,47,25,-4,-27,-37,-30,-14,3,14,15,9,0,-3,1,6,8,6,0,-6,-6,0,10,17,12,-5,-25,-27,-20,0,18,25,17,-6,-30,-45,-43,-21,11,38,47,33,4,-29,-47,-40,-17,13,33,36,24,5,-9,-12,-6,2,0,-14,-34,-2,5,12,11,-2,-22,-43,-52,-43,-12,28,60,71,48,5,-41,-72,-68,-36,9,45,55,38,5,-26,-38,-29,-5,17,21,3,-27,17,25,24,13,-8,-28,-39,-34,-11,22,50,61,44,7,-34,-60,-57,-29,12,45,52,31,-8,-43,-56,-42,-5,35,58,50,12,-33,31,39,36,20,-1,-18,-25,-18,-1,17,27,21,3,-18,-31,-24,-2,25,43,40,16,-20,-51,-60,-44,-4,40,69,72,40,-13,-62,30,37,30,15,-5,-20,-25,-22,-13,-5,-2,-5,-8,-7,2,17,33,40,30,8,-22,-46,-52,-39,-8,28,53,59,38,-3,-52,-89 },
{ -21,-25,-20,-6,9,19,23,21,19,19,26,38,52,58,51,28,-7,-44,-71,-76,-60,-29,2,23,29,18,5,-3,2,19,38,48,-28,-31,-20,-1,16,24,19,8,-5,-8,2,23,46,57,48,19,-25,-61,-73,-58,-20,21,46,48,26,-6,-29,-31,-12,16,37,41,-27,-28,-16,3,15,12,-6,-32,-55,-61,-47,-18,15,37,40,22,-3,-17,-12,11,38,51,43,13,-27,-55,-61,-43,-13,8,12,-1,-18,-16,-3,13,19,10,-15,-46,-72,-78,-61,-29,7,34,42,36,26,20,21,26,25,13,-10,-33,-47,-42,-21,3,16,9,-18,-45,-5,0,14,31,40,35,17,-7,-28,-36,-30,-14,4,14,16,10,3,-3,-7,-9,-13,-17,-17,-9,10,31,48,49,31,-5,-45,-69,-5,-3,10,30,48,57,54,43,25,7,-7,-16,-23,-26,-28,-27,-24,-19,-13,-8,-3,4,15,30,46,55,52,37,10,-20,-43,-51,-32,-43,-37,-16,11,35,48,46,34,14,-8,-25,-33,-30,-20,-7,6,14,15,10,4,-2,-3,0,4,8,8,6,2,-1,-1,2,-64,-86,-84,-65,-34,-5,14,22,18,8,-3,-7,-2,12,27,39,41,33,14,-9,-33,-50,-58,-56,-46,-30,-10,9,26,38,45,46 },
{ 29,34,37,41,45,48,49,44,35,21,5,-9,-16,-17,-13,-9,-8,-9,-13,-16,-16,-7,13,37,62,76,76,55,21,-19,-57,-75,19,17,13,13,17,21,23,20,10,-4,-17,-24,-22,-14,-2,7,8,1,-12,-24,-29,-21,-2,21,40,49,41,19,-9,-34,-51,-55,-20,-36,-45,-45,-37,-25,-14,-8,-9,-12,-13,-9,1,15,28,33,28,12,-10,-29,-42,-44,-40,-36,-29,-22,-13,-1,13,23,26,18,-43,-59,-60,-50,-32,-13,1,8,10,9,8,10,16,24,27,27,21,12,2,-7,-17,-26,-39,-49,-48,-34,-5,30,62,76,65,40,-16,-12,-1,13,25,30,29,21,11,2,-6,-9,-11,-11,-10,-5,5,20,36,46,45,28,3,-19,-30,-23,-2,23,37,32,10,-16,33,48,53,50,37,18,-2,-18,-27,-28,-26,-25,-29,-33,-34,-27,-7,21,49,67,64,43,11,-18,-36,-40,-33,-25,-24,-33,-47,-58,38,41,30,7,-18,-38,-45,-36,-17,6,20,19,4,-19,-38,-43,-33,-10,15,31,31,17,-3,-20,-29,-28,-23,-18,-17,-22,-29,-32,2,-6,-23,-39,-47,-40,-15,21,59,85,87,69,31,-11,-44,-60,-58,-42,-19,0,11,15,15,16,23,30,37,41,40,33,24,17 },
{ -3,-9,-20,-29,-32,-22,0,27,52,62,54,30,-1,-27,-39,-32,-17,-2,3,-4,-14,-17,-6,16,36,43,29,-1,-26,-28,-2,36,1,-5,-20,-36,-41,-29,0,36,62,66,44,6,-33,-54,-46,-19,13,29,21,-4,-26,-30,-10,23,46,43,10,-34,-57,-40,14,69,22,21,2,-24,-42,-39,-18,10,30,29,7,-23,-44,-38,-8,31,58,53,21,-22,-52,-50,-20,18,39,27,-11,-51,-64,-31,30,81,52,57,32,-7,-41,-54,-42,-19,2,7,-1,-14,-17,-2,26,52,56,33,-8,-47,-63,-47,-6,32,46,29,-8,-42,-49,-23,23,60,71,76,48,1,-38,-51,-40,-12,14,24,17,1,-10,-8,4,16,18,6,-15,-31,-30,-9,23,45,47,27,-5,-30,-38,-24,-1,17,59,60,32,-4,-29,-31,-9,21,41,39,14,-20,-44,-48,-30,-4,18,25,18,5,-3,-1,10,21,23,14,0,-15,-23,-23,-21,-16,22,17,-2,-19,-22,-8,17,39,45,25,-9,-42,-57,-43,-10,24,47,45,24,-5,-29,-37,-28,-8,11,24,25,16,3,-11,-23,-27,-13,-20,-27,-29,-18,2,21,32,27,8,-15,-28,-23,-2,25,43,41,20,-13,-43,-59,-56,-33,0,31,50,52,41,22,1,-16,-25 },
{ 62,68,56,30,3,-17,-23,-14,2,22,36,39,33,17,-2,-17,-27,-25,-11,11,35,51,53,36,9,-19,-38,-39,-25,-3,13,17,64,60,31,-9,-42,-58,-49,-26,4,28,38,33,16,-6,-24,-36,-38,-29,-10,12,31,39,30,8,-18,-36,-36,-20,5,22,23,10,33,17,-15,-45,-61,-54,-31,-3,18,23,15,0,-14,-18,-15,-10,-8,-10,-14,-17,-15,-11,-7,-3,0,5,11,19,22,15,-3,-22,6,-7,-21,-25,-13,8,27,33,22,-2,-24,-31,-16,14,42,52,34,1,-34,-53,-45,-20,12,33,38,29,13,0,-8,-14,-25,-36,0,-2,3,19,41,55,54,29,-10,-45,-59,-39,6,55,83,72,30,-19,-52,-48,-18,21,44,38,11,-19,-36,-29,-10,7,6,-11,-7,-10,-2,15,31,37,23,-8,-44,-66,-59,-27,17,48,48,22,-16,-39,-33,-4,29,42,25,-12,-48,-61,-38,5,47,62,40,-2,-31,-41,-36,-18,2,13,10,-4,-21,-27,-22,-8,5,3,-11,-27,-33,-16,12,37,45,24,-14,-48,-59,-36,9,54,77,58,9,-43,-41,-49,-38,-14,15,36,45,42,32,21,10,0,-12,-23,-29,-25,-7,17,37,42,26,-2,-28,-40,-29,-1,29,44,31,-6,-54,-94 },
{ 34,35,19,-7,-30,-42,-40,-29,-20,-18,-24,-28,-23,-3,29,58,72,56,18,-25,-55,-57,-38,-9,15,22,16,6,5,15,29,36,44,44,19,-15,-39,-42,-24,0,15,10,-12,-32,-35,-12,28,61,66,37,-13,-55,-65,-42,1,34,40,19,-13,-31,-24,0,22,28,43,39,16,-10,-21,-6,26,55,64,40,-5,-47,-63,-45,-8,24,30,10,-19,-29,-12,24,52,49,15,-31,-62,-59,-31,2,15,1,25,18,0,-15,-13,11,44,67,65,31,-20,-62,-74,-53,-14,14,22,13,3,7,25,42,37,10,-29,-51,-42,-11,25,35,7,-35,1,-9,-25,-36,-32,-13,13,31,33,14,-12,-27,-22,-1,19,22,10,-8,-16,-10,3,10,4,-9,-16,-3,26,54,62,31,-25,-75,-3,-9,-22,-36,-42,-36,-20,-1,14,22,26,30,34,32,16,-9,-35,-47,-40,-21,-1,9,6,1,3,16,35,46,34,1,-44,-77,29,36,27,5,-19,-33,-32,-18,0,18,30,32,25,7,-16,-32,-36,-22,0,20,27,15,-6,-24,-30,-20,-2,15,18,7,-12,-27,61,76,64,35,-1,-27,-38,-34,-20,-8,-1,-1,-5,-10,-10,0,18,38,50,46,23,-12,-43,-60,-58,-39,-7,23,42,46,37,24 },
{ -5,-1,-2,-7,-13,-19,-22,-21,-18,-16,-16,-21,-30,-39,-50,-58,-67,-72,-76,-75,-73,-64,-55,-47,-40,-35,-33,-32,-36,-40,-45,-44,7,14,14,7,-1,-6,-6,0,9,16,17,14,9,4,1,1,1,2,2,1,1,5,7,8,9,7,6,3,-1,-8,-16,-19,20,27,24,15,6,4,9,19,30,37,40,40,42,48,58,68,78,78,73,62,53,46,41,37,34,33,34,36,37,33,25,14,13,10,1,-10,-17,-18,-12,-6,-3,-6,-12,-16,-14,-7,3,10,12,6,-5,-15,-19,-19,-16,-14,-13,-12,-7,4,16,21,18,8,-8,-16,-24,-28,-29,-24,-20,-22,-31,-45,-58,-66,-66,-61,-57,-56,-62,-66,-67,-59,-45,-31,-25,-29,-39,-44,-40,-26,-11,-3,-4,-11,-8,-7,-1,8,19,29,31,28,16,6,1,2,9,15,15,9,3,1,8,25,39,42,31,9,-12,-22,-18,-8,1,3,-4,-17,3,10,20,30,40,45,45,41,37,38,48,58,69,69,60,46,35,33,41,52,57,49,33,14,2,1,8,17,20,13,-1,-16,-11,-16,-21,-26,-32,-39,-44,-47,-44,-36,-23,-14,-12,-19,-33,-47,-53,-49,-37,-24,-17,-15,-15,-13,-7,3,14,20,18,8,-7,-19 },
{ -17,-23,-32,-40,-46,-44,-32,-12,12,35,51,55,47,30,13,5,4,8,11,8,-3,-17,-25,-21,-4,26,58,72,61,21,-31,-70,-5,-6,-12,-22,-31,-33,-22,-4,17,33,38,29,8,-13,-24,-22,-6,11,18,14,-2,-21,-32,-30,-12,17,44,52,33,-5,-45,-67,33,42,39,23,4,-10,-15,-15,-13,-14,-19,-28,-40,-42,-35,-17,6,20,25,19,6,-9,-24,-36,-41,-35,-20,-3,9,12,9,3,54,64,54,34,11,-8,-19,-24,-26,-24,-21,-15,-7,2,10,14,12,10,9,14,20,20,6,-19,-44,-53,-38,-6,29,53,58,45,19,12,2,-4,-4,0,5,9,11,15,22,32,40,37,22,-3,-27,-34,-22,10,45,62,53,21,-15,-32,-27,-4,20,32,27,9,-46,-61,-55,-30,4,31,39,32,14,1,-2,5,14,12,-7,-34,-56,-59,-34,8,47,66,56,26,-8,-31,-35,-28,-19,-19,-26,-37,-66,-69,-43,0,40,52,34,-4,-45,-63,-54,-23,11,29,22,-5,-34,-47,-39,-16,8,21,19,6,-10,-20,-19,-14,-12,-17,-25,-31,-26,-17,12,42,55,41,2,-41,-69,-64,-25,27,73,91,74,35,-9,-40,-49,-41,-23,-6,7,14,20,25,31,34,31,23,9,-1 },
{ -25,-20,-10,-3,-5,-20,-45,-68,-76,-60,-31,0,18,15,-3,-26,-38,-36,-24,-10,-1,5,14,26,41,54,60,53,42,34,38,46,-13,0,21,37,36,14,-20,-46,-47,-20,20,51,56,35,-2,-28,-32,-16,7,16,9,-7,-18,-15,0,13,10,-6,-24,-25,-2,27,-4,12,39,60,65,46,15,-6,-3,19,46,55,42,11,-18,-22,0,30,44,26,-15,-55,-72,-59,-32,-15,-24,-51,-71,-59,-20,23,-28,-25,-4,21,32,23,1,-16,-17,-9,-2,-6,-21,-36,-32,-6,34,59,53,17,-25,-46,-30,10,47,53,26,-12,-33,-21,14,44,-65,-70,-50,-21,-2,-3,-17,-28,-31,-28,-24,-26,-33,-31,-16,7,31,37,25,5,-3,10,42,73,84,64,30,1,-7,7,26,32,-46,-42,-16,13,28,25,13,6,11,20,27,23,8,-8,-19,-24,-21,-19,-16,-14,-10,-4,1,-1,-12,-23,-28,-22,-8,2,1,-11,9,22,37,42,34,16,4,6,23,42,51,40,15,-14,-36,-41,-35,-20,-9,-9,-21,-37,-54,-61,-58,-38,-13,6,14,3,-20,-43,19,20,9,-12,-40,-61,-64,-49,-21,4,18,17,6,-4,-2,11,30,47,51,41,21,-1,-11,-6,11,36,54,56,39,9,-26,-49 },
{ -10,-8,2,14,18,12,0,-11,-11,5,30,54,68,66,54,39,28,19,9,-4,-19,-28,-27,-13,1,4,-14,-51,-88,-95,-70,-24,-16,-14,0,15,16,2,-20,-39,-41,-23,5,27,30,16,-3,-13,-11,-2,3,-2,-14,-22,-11,15,41,49,27,-12,-39,-32,8,50,-21,-16,2,19,21,3,-25,-47,-54,-42,-25,-19,-32,-51,-62,-48,-16,19,37,29,5,-13,-7,22,55,71,62,39,24,32,57,73,-20,-13,11,36,44,33,11,-6,-9,0,10,5,-14,-32,-33,-11,27,55,52,20,-27,-60,-59,-32,1,17,9,-11,-25,-22,-7,7,-32,-25,2,30,45,41,29,23,30,45,55,47,25,2,-7,1,19,27,15,-15,-47,-62,-56,-36,-21,-20,-35,-51,-60,-54,-41,-28,-47,-47,-27,-8,-3,-11,-22,-24,-8,14,29,24,3,-22,-36,-32,-14,7,21,25,26,28,28,28,24,17,9,4,5,7,3,-4,-24,-18,-7,-5,-19,-41,-59,-60,-43,-15,5,7,-6,-25,-35,-29,-6,21,42,52,53,43,32,25,24,29,39,47,49,38,18,-4,37,53,59,50,27,0,-17,-17,1,24,38,38,24,4,-12,-18,-14,-10,-12,-22,-37,-52,-58,-53,-37,-16,4,16,15,1,-21,-38 },
{ -48,-55,-49,-32,-14,1,10,9,2,-10,-17,-14,2,24,39,36,13,-21,-45,-41,-13,31,67,74,52,12,-23,-34,-23,-9,-12,-30,-40,-37,-19,3,20,30,27,16,-2,-20,-29,-23,1,29,44,34,-3,-42,-58,-44,-4,39,56,40,-3,-40,-44,-14,27,40,12,-31,0,17,32,36,32,22,10,0,-12,-22,-30,-28,-11,11,26,23,1,-21,-33,-28,-14,-5,-10,-27,-43,-36,-1,45,75,57,5,-46,27,38,30,8,-18,-31,-23,-4,13,14,-3,-24,-30,-15,14,36,39,27,6,-13,-23,-23,-17,-10,-3,6,18,29,26,4,-28,-52,23,17,-10,-44,-66,-55,-14,38,72,61,17,-33,-57,-37,7,46,58,40,10,-10,-9,11,31,32,13,-17,-39,-39,-24,-6,2,-1,21,16,-10,-39,-50,-30,18,64,80,51,-8,-59,-71,-45,-1,27,22,-3,-24,-22,6,37,46,24,-19,-55,-59,-30,16,50,57,39,44,48,27,-6,-29,-24,0,24,29,8,-23,-39,-31,-6,15,10,-17,-43,-49,-26,10,36,35,10,-22,-35,-20,14,46,53,34,-1,52,56,30,-8,-38,-47,-34,-13,3,11,16,26,40,47,37,10,-22,-40,-35,-11,17,33,28,10,-6,-12,-5,3,1,-16,-44,-68 },
{ -64,-63,-39,-5,21,28,22,12,7,7,4,-9,-30,-49,-53,-33,5,41,57,44,15,-11,-16,0,18,20,-1,-29,-39,-16,22,50,-58,-48,-8,30,48,39,14,-4,-5,8,17,10,-14,-38,-42,-19,22,50,44,9,-32,-48,-24,18,47,37,-5,-42,-42,-10,31,49,-26,-7,25,42,31,-4,-39,-46,-22,21,53,54,26,-9,-28,-20,1,10,-6,-35,-56,-41,1,42,54,25,-18,-39,-26,1,12,-3,0,13,24,16,-17,-57,-76,-60,-11,44,73,64,23,-19,-37,-27,-4,8,3,-11,-15,-2,19,29,15,-10,-23,-11,15,20,-13,-57,8,14,16,6,-17,-38,-44,-27,3,26,29,6,-21,-31,-19,10,36,41,28,9,-2,-4,-5,-12,-23,-23,-2,33,55,34,-21,-75,-2,4,17,29,34,29,17,4,-12,-25,-33,-35,-21,2,24,36,28,7,-14,-22,-13,-3,-3,-11,-20,-15,10,44,59,39,-10,-56,-32,-31,-8,25,50,52,33,0,-30,-42,-32,-6,23,33,22,-7,-38,-51,-38,-3,32,44,28,-6,-36,-41,-19,19,44,38,8,-25,-63,-70,-48,-12,18,26,15,-5,-16,-10,11,34,40,23,-12,-43,-53,-34,10,55,75,62,16,-36,-71,-73,-42,0,30,35,18,-3 },
{ 1,-2,-20,-48,-69,-70,-52,-22,8,22,20,4,-14,-27,-31,-24,-11,0,7,11,20,34,51,60,54,29,-8,-44,-63,-49,-13,21,29,32,8,-25,-46,-40,-11,23,44,44,22,-5,-22,-26,-16,-1,8,6,-7,-18,-19,-7,11,23,21,7,-14,-28,-24,-3,26,43,65,71,47,16,-1,7,27,39,35,14,-9,-18,-10,11,30,33,17,-11,-40,-54,-54,-42,-28,-16,-2,14,27,34,31,19,8,2,46,42,17,-7,-13,-5,2,-3,-22,-39,-37,-14,20,47,48,28,2,-14,-11,0,7,2,-12,-19,-8,16,37,33,3,-34,-54,-47,-17,-33,-44,-40,-21,-3,1,-14,-36,-42,-25,6,29,24,1,-20,-16,18,59,79,66,19,-30,-49,-36,-3,19,10,-19,-43,-39,-11,-44,-49,-31,5,42,59,46,17,-9,-13,1,13,2,-30,-60,-64,-30,21,58,59,20,-30,-59,-51,-14,27,44,31,7,2,23,54,-24,-13,14,46,64,51,20,-9,-19,-3,22,30,10,-26,-55,-56,-31,-1,13,6,-15,-29,-23,4,35,47,35,6,-13,-2,32,62,-10,-7,-1,-1,-16,-40,-60,-61,-32,13,54,71,57,24,-5,-16,-10,0,4,3,3,7,15,20,13,-9,-41,-66,-67,-42,-2,29 },
{ -3,-12,-20,-22,-9,16,44,63,67,51,32,20,19,21,21,9,-14,-38,-54,-49,-35,-19,-9,-7,-7,-5,-3,-2,8,36,76,100,-6,-17,-29,-33,-22,0,21,29,16,-10,-29,-27,-5,18,29,22,1,-15,-16,0,18,24,15,4,-2,-2,-9,-26,-38,-25,10,41,16,11,-6,-23,-31,-28,-24,-29,-46,-62,-64,-41,-4,26,35,27,17,18,31,45,42,19,-5,-13,0,15,6,-32,-74,-83,-60,-21,54,57,33,3,-14,-12,-2,2,-2,-8,-9,0,10,9,-5,-20,-23,-11,4,8,-8,-32,-38,-14,34,71,67,28,-17,-33,-17,9,52,47,22,-1,-2,22,51,64,60,41,19,2,-11,-25,-40,-47,-39,-19,-1,-1,-16,-34,-34,-7,35,64,68,49,27,20,26,31,-11,-26,-42,-47,-28,3,25,25,8,-11,-18,-10,7,15,11,6,13,30,41,37,13,-20,-45,-54,-43,-25,-10,-4,-1,0,3,6,-34,-38,-37,-28,-18,-11,-19,-38,-52,-42,-10,30,57,51,25,0,-3,13,33,40,26,-6,-41,-59,-58,-40,-23,-16,-15,-17,-16,-13,21,37,51,55,43,22,-5,-28,-31,-10,20,39,26,-12,-59,-86,-73,-34,12,44,52,42,27,19,21,26,27,19,7,-2,-6,-6 },
{ -3,-9,-19,-23,-16,5,25,26,3,-36,-68,-70,-42,1,27,26,14,8,17,32,38,19,-15,-33,-18,21,46,27,-18,-56,-55,-16,6,0,-14,-22,-10,20,48,49,14,-33,-60,-48,-1,42,45,11,-29,-37,-11,23,31,3,-40,-52,-13,44,64,29,-27,-51,-15,45,26,20,-4,-25,-20,11,46,55,32,-2,-16,4,40,50,17,-42,-83,-66,-11,37,43,1,-47,-54,-12,38,51,17,-22,-17,34,86,41,32,-9,-48,-56,-30,12,35,26,2,-11,3,25,27,-3,-41,-50,-15,41,73,51,-3,-49,-52,-15,20,21,-11,-41,-34,7,47,54,39,-8,-55,-69,-40,-1,18,4,-26,-41,-24,10,34,30,9,0,12,33,36,14,-17,-32,-18,9,22,7,-28,-53,-49,-24,0,59,50,12,-22,-24,5,33,32,-2,-41,-50,-22,22,48,34,-3,-35,-44,-30,-10,5,10,13,21,30,30,20,3,-9,-11,-10,-9,35,25,4,-7,6,36,53,38,0,-32,-35,-8,23,27,1,-34,-56,-45,-14,19,34,23,4,-8,-6,10,28,37,34,20,-3,-20,-16,-30,-40,-36,-14,14,26,16,-8,-24,-16,5,21,21,9,-2,2,20,37,36,10,-28,-59,-68,-49,-14,21,38,34,12,-16,-33 },
{ 44,46,41,33,26,24,25,24,15,1,-17,-31,-37,-27,-7,17,29,14,-22,-60,-76,-53,-1,57,96,89,53,7,-26,-30,-21,-10,21,10,-6,-16,-16,-8,4,11,10,2,-10,-22,-25,-11,13,38,44,25,-12,-47,-54,-29,10,36,31,0,-30,-36,-19,8,22,17,-24,-43,-54,-50,-37,-18,-1,10,18,22,20,10,1,-3,3,18,32,38,31,16,3,-10,-29,-51,-68,-62,-32,14,49,50,25,-9,-20,-24,-13,1,11,12,6,1,4,15,22,15,-8,-36,-50,-39,-7,30,52,51,27,-4,-28,-32,-13,17,41,46,24,-13,-43,-53,21,35,50,51,35,5,-28,-43,-37,-8,19,24,1,-36,-61,-57,-31,3,28,31,22,15,20,32,42,33,7,-26,-49,-47,-26,-1,15,18,20,15,0,-24,-44,-48,-28,12,48,64,48,17,-12,-27,-29,-24,-17,-15,-11,-2,8,11,0,-20,-36,-35,-10,29,61,67,-40,-49,-36,-10,13,20,11,-3,-8,2,22,36,42,35,22,7,-9,-22,-27,-28,-23,-15,-8,-6,-11,-12,-3,15,37,48,44,23,-54,-53,-16,33,67,70,36,-11,-54,-74,-66,-41,-9,16,30,31,22,13,7,3,6,11,14,13,9,6,2,-5,-17,-33,-51,-63 },
{ 65,62,39,11,-6,-6,-2,-3,-8,-7,11,39,51,33,-14,-61,-78,-49,1,34,35,10,-11,-7,20,41,33,-7,-41,-34,4,38,44,25,-12,-36,-34,-13,2,0,-17,-23,-4,31,50,31,-18,-59,-51,-2,47,53,11,-40,-56,-27,26,51,23,-27,-48,-22,22,43,-3,-27,-48,-44,-12,28,44,20,-24,-53,-41,2,41,44,17,-7,4,34,46,15,-37,-67,-54,-8,36,37,2,-26,-21,6,18,-1,-12,-20,-19,2,38,69,65,23,-37,-72,-57,-9,35,42,15,-10,-13,2,11,2,-10,-7,10,24,19,-4,-18,-8,16,22,-10,-55,12,11,6,6,16,26,26,7,-21,-33,-22,1,11,-3,-28,-40,-29,-4,20,31,34,30,17,-6,-31,-36,-14,23,46,29,-19,-65,25,16,-17,-49,-60,-41,-1,31,45,39,19,-2,-16,-20,-14,-4,4,3,0,-3,-2,0,-6,-20,-30,-23,4,36,46,31,-3,-32,43,30,-11,-53,-67,-34,19,57,62,30,-11,-30,-16,19,45,40,7,-34,-53,-40,-8,22,31,15,-10,-23,-15,4,19,24,16,2,66,63,30,-7,-24,-13,8,13,-9,-43,-58,-40,7,49,59,31,-18,-49,-43,-7,39,65,54,15,-30,-54,-50,-29,-4,14,19,12 },
{ -44,-38,-2,42,65,50,11,-26,-40,-21,9,29,32,16,-6,-19,-23,-20,-14,-10,-5,-2,2,12,24,31,25,4,-20,-27,-12,13,-56,-43,7,56,65,29,-27,-60,-49,-8,32,45,26,-3,-20,-17,-2,10,12,5,-2,-8,-10,-5,5,14,13,-3,-21,-20,4,30,-57,-40,4,35,27,-14,-52,-51,-13,29,41,15,-22,-35,-15,19,40,34,12,-6,-12,-14,-19,-26,-23,-4,16,18,4,-7,1,17,-34,-16,12,21,1,-25,-26,5,43,50,9,-45,-65,-33,21,49,30,-12,-35,-21,16,34,14,-20,-31,-4,30,34,4,-27,-30,-8,3,18,23,9,-15,-22,3,40,56,23,-35,-67,-42,20,57,32,-32,-70,-52,18,78,72,12,-44,-49,-3,37,31,-11,-42,-33,8,27,30,11,-21,-44,-36,1,36,34,-3,-38,-31,21,65,54,-6,-66,-69,-12,55,71,22,-47,-74,-36,28,58,35,-12,-31,-1,48,27,20,-6,-35,-47,-23,14,32,18,-17,-33,-7,36,49,20,-24,-47,-24,18,37,13,-36,-62,-37,20,61,54,5,-37,-35,10,58,21,18,4,-9,-5,15,32,26,-5,-37,-42,-19,9,17,7,-6,-3,13,25,18,-6,-25,-18,11,37,35,-1,-47,-67,-46,4,45 },
{ 15,20,17,7,-6,-22,-42,-58,-65,-58,-42,-21,3,28,50,60,61,46,18,-15,-35,-34,-18,-3,-3,-23,-51,-60,-36,17,70,90,16,18,15,13,9,5,0,-5,-7,-4,-1,1,2,2,1,2,2,-1,-10,-16,-13,3,26,41,33,12,-14,-29,-22,-5,11,15,-5,-10,-6,6,25,44,55,55,50,34,12,-12,-36,-55,-63,-52,-31,-3,19,26,20,14,16,23,33,37,28,6,-23,-50,-65,-60,-31,-39,-35,-20,-2,13,16,12,6,-2,-5,-3,-4,-6,-6,1,15,27,27,6,-28,-54,-56,-36,-1,27,40,33,14,-5,-16,-15,-8,-12,-17,-25,-35,-41,-45,-43,-32,-8,24,52,66,55,30,6,-11,-12,-9,-11,-22,-33,-36,-29,-15,3,21,38,48,45,40,29,51,56,39,15,-6,-14,-11,-9,-4,1,7,11,8,-9,-32,-42,-32,-2,36,63,66,47,13,-21,-42,-44,-33,-15,-1,4,6,8,43,36,19,8,11,28,41,30,-1,-36,-57,-52,-33,-13,-4,-4,0,10,27,38,40,30,8,-14,-29,-34,-34,-32,-32,-30,-19,-5,-35,-53,-59,-45,-11,27,44,30,-2,-25,-20,12,52,71,53,10,-41,-73,-75,-58,-27,9,34,47,50,44,28,9,-4,-8,-1,12 },
{ 4,11,17,11,-9,-33,-47,-32,4,39,48,18,-19,-32,-17,12,24,7,-14,-13,5,17,-2,-33,-36,2,42,39,-4,-36,-16,41,6,14,22,17,-5,-34,-44,-20,27,59,44,-11,-55,-48,-1,40,37,-6,-37,-18,27,43,5,-43,-39,16,56,30,-38,-69,-14,67,-9,-3,16,26,18,-7,-24,-10,20,34,10,-36,-54,-14,42,59,17,-47,-63,-6,61,64,2,-54,-47,16,56,24,-45,-63,-7,61,-47,-37,4,39,42,11,-26,-31,-8,11,4,-17,-14,20,48,32,-26,-71,-50,20,69,44,-26,-69,-39,30,67,36,-24,-47,-16,24,-70,-49,6,51,49,3,-41,-42,-6,27,27,2,-13,0,14,7,-20,-30,-11,24,35,5,-35,-42,-7,37,49,22,-17,-28,-15,1,-49,-28,20,48,28,-18,-44,-23,24,47,21,-27,-50,-28,15,39,28,2,-14,-10,3,6,-1,-6,-6,-6,-3,-3,2,8,6,-6,-16,-2,19,22,-2,-30,-31,3,42,38,-7,-50,-51,-4,47,55,19,-30,-49,-24,17,39,28,-5,-38,-43,-22,11,37,34,7,-27,-2,2,5,-1,-16,-23,-9,19,36,18,-17,-35,-15,21,39,18,-26,-52,-37,7,48,56,26,-16,-42,-36,-5,29,42,24,-15,-48 },
{ 45,47,48,46,40,30,19,7,-4,-11,-20,-27,-28,-18,-3,6,-4,-27,-33,-5,48,90,92,43,-23,-64,-64,-33,-3,10,12,7,4,-7,-13,-11,-8,-5,-5,-1,0,-1,-3,-9,-8,6,26,27,-3,-43,-55,-30,18,47,29,-15,-42,-27,11,38,33,5,-15,-15,-52,-65,-59,-40,-20,-9,-1,10,22,27,25,13,6,14,33,37,12,-26,-50,-49,-34,-26,-23,-8,24,58,66,32,-19,-47,-32,8,-26,-15,9,29,31,15,-2,-4,6,12,3,-20,-35,-23,9,40,49,35,7,-13,-21,-18,-4,16,24,15,-16,-46,-50,-19,31,65,34,51,62,50,17,-24,-48,-41,-16,5,-1,-29,-53,-49,-19,21,52,52,37,18,4,-1,-10,-22,-31,-34,-28,-9,17,34,36,24,9,4,-4,-15,-29,-40,-30,-2,35,58,50,21,-15,-39,-41,-32,-20,-9,2,10,13,8,-4,-8,1,19,34,37,17,-18,-52,-61,-49,-53,-35,-6,19,28,25,19,22,28,35,37,25,1,-24,-42,-45,-31,-7,16,24,19,11,8,15,21,20,4,-21,-44,-51,-37,-32,-15,22,56,60,26,-32,-80,-94,-69,-18,32,58,54,28,5,-7,-6,2,5,-1,-14,-27,-27,-22,-13,-1,9,19,29,43,54 },
{ 33,28,16,9,4,1,-1,-6,-6,10,34,41,13,-45,-85,-68,-3,64,86,47,-9,-31,-12,14,14,-19,-46,-32,13,40,20,-16,14,2,-12,-15,-9,-2,-4,-16,-20,0,33,47,17,-42,-69,-37,33,71,36,-37,-75,-41,29,62,27,-28,-45,-8,37,37,-10,-46,-13,-23,-26,-14,8,21,11,-18,-37,-24,16,45,39,8,-10,-2,16,-1,-48,-72,-35,36,79,51,-12,-41,-16,23,30,-6,-35,-19,-6,-8,-2,15,35,43,21,-16,-46,-44,-8,28,39,25,3,-8,-13,-17,-12,11,38,36,-1,-43,-51,-13,35,38,-6,-35,0,62,12,9,3,1,9,18,17,1,-21,-31,-22,-6,4,1,-7,-4,10,27,39,29,-5,-46,-66,-43,12,57,54,-3,-57,-46,23,87,12,1,-26,-48,-41,-6,33,46,30,0,-23,-27,-15,-3,-1,0,1,3,2,-7,-18,-16,2,29,46,36,-3,-50,-64,-38,7,37,33,22,-13,-43,-41,0,43,54,32,-5,-23,-9,15,23,5,-21,-38,-29,0,27,39,31,10,-8,-16,-15,-8,-5,-2,-4,-14,-26,57,52,17,-19,-31,-18,-3,-3,-18,-28,-14,17,42,36,3,-27,-31,-9,25,37,16,-24,-56,-55,-24,22,62,74,52,12,-30,-57 },
{ 34,32,12,-9,-25,-40,-52,-54,-47,-25,5,33,51,54,40,17,-4,-28,-46,-45,-24,3,19,8,-18,-19,18,60,71,22,-49,-86,28,20,3,-3,-2,1,2,-3,-5,-1,7,10,6,-1,-7,-4,5,5,-1,-1,13,30,29,-3,-42,-50,-13,29,35,3,-24,-21,-6,-13,-9,10,39,61,60,37,8,-17,-34,-44,-51,-43,-20,16,47,46,20,-4,-10,7,19,4,-25,-40,-35,-18,2,24,54,74,-36,-41,-29,-6,16,27,17,-3,-19,-20,-6,8,5,-3,-3,11,17,-3,-33,-51,-37,5,42,51,34,6,-18,-33,-28,-10,18,35,-13,-10,-12,-23,-34,-39,-35,-20,8,40,69,68,31,-15,-39,-30,-11,-4,-8,-12,-9,4,17,24,28,24,8,-19,-45,-53,-45,-25,53,56,31,-3,-24,-21,-8,4,11,11,9,-6,-26,-32,-17,13,44,55,39,8,-30,-55,-57,-34,7,41,49,33,4,-15,-14,-3,46,32,8,-4,3,23,25,-2,-43,-63,-55,-22,15,34,29,12,1,3,13,12,-8,-30,-41,-31,-3,25,42,41,31,21,16,14,-34,-49,-48,-22,20,48,45,11,-23,-23,11,51,59,20,-45,-90,-84,-29,41,80,75,41,-2,-36,-46,-38,-24,-11,-5,-3,-5,-4 },
{ 19,23,31,41,48,35,6,-20,-34,-30,-21,-9,4,19,23,3,-16,-10,31,74,73,11,-59,-86,-55,10,55,59,37,9,-2,-7,-14,-20,-11,6,15,7,-13,-21,-14,0,5,4,3,11,5,-22,-51,-43,2,42,34,-15,-49,-29,17,35,9,-30,-39,-20,5,8,-49,-54,-37,-14,-1,-3,0,13,32,39,19,-11,-18,0,15,3,-29,-46,-32,-4,16,25,39,53,33,-26,-78,-70,-12,38,41,-3,-12,-1,14,18,6,-7,-4,15,29,18,-21,-50,-29,28,70,64,16,-24,-33,-15,9,21,20,9,-10,-20,-7,32,61,46,-12,-62,41,48,37,9,-23,-41,-33,-5,13,0,-33,-45,-18,28,47,28,-3,-13,-9,-10,-25,-42,-40,-9,25,43,38,19,-3,-25,-39,-37,16,5,-10,-20,-24,-19,-2,22,35,25,3,-15,-21,-29,-40,-36,-5,38,51,22,-22,-39,-18,22,32,1,-46,-65,-38,13,51,53,-35,-37,-16,15,36,33,16,4,6,14,24,25,6,-30,-47,-27,24,62,55,14,-16,-13,12,22,0,-38,-56,-29,25,65,66,25,-29,-16,16,41,35,-4,-51,-75,-56,-8,41,64,45,5,-28,-30,-14,-7,-18,-28,-19,7,29,31,19,5,1,11,15,-4,-46,-88 },
{ -61,-42,3,38,37,5,-29,-40,-18,14,36,31,10,-8,-14,-12,-13,-19,-27,-28,-21,0,23,32,20,-10,-35,-36,-13,14,11,-20,-49,-19,36,64,41,-11,-49,-43,-2,34,38,11,-18,-19,3,23,24,11,-1,-5,0,7,14,13,5,-6,-15,-4,26,39,10,-34,-34,-5,35,42,8,-34,-46,-15,27,32,-2,-42,-47,-5,39,48,24,-1,-4,6,1,-20,-32,-15,16,29,14,-4,-2,10,5,-20,-29,-11,10,5,-17,-27,-4,33,45,13,-42,-65,-24,34,40,-10,-56,-47,7,45,19,-37,-52,-8,40,33,-22,-62,-38,15,37,9,-19,-4,2,-8,-18,-4,29,49,31,-15,-46,-20,40,61,6,-73,-83,-7,81,89,18,-50,-44,18,54,16,-44,-55,-5,50,44,-14,15,24,11,-12,-22,-10,15,20,-5,-33,-24,27,71,51,-18,-65,-32,42,74,27,-49,-67,-12,53,63,12,-35,-25,22,41,-3,-66,33,27,-1,-30,-35,-11,13,9,-20,-39,-22,17,37,12,-25,-33,-3,21,3,-43,-65,-29,31,58,28,-28,-48,-13,30,30,-13,-59,17,6,-14,-20,-3,27,42,29,-4,-26,-23,-6,5,-2,-4,10,26,20,-3,-14,-2,24,34,13,-35,-62,-38,14,50,50,21,-13 },
},
{
{ 0,0,1,1,2,2,3,4,4,5,6,7,8,9,10,11,12,13,13,14,14,14,14,13,13,12,11,10,9,8,7,7,0,1,2,3,4,5,6,7,8,10,11,13,15,17,19,21,22,24,25,26,26,26,26,25,24,23,22,20,19,17,16,14,1,2,3,4,6,7,9,10,12,14,16,19,21,24,26,29,31,33,35,36,37,37,37,36,35,34,32,30,28,26,24,22,1,2,4,5,7,9,11,13,15,18,20,23,26,29,32,35,38,41,43,44,45,46,45,45,44,42,40,38,36,34,32,29,1,3,4,6,8,10,13,15,18,21,24,27,30,33,37,40,43,46,48,50,51,52,52,51,50,48,47,45,43,41,38,35,2,3,5,7,9,12,14,17,20,23,26,29,32,36,39,43,46,49,51,53,54,55,55,55,54,52,51,49,47,45,43,40,2,4,6,8,10,13,15,18,21,24,27,30,34,37,40,44,47,50,52,54,55,56,56,56,55,54,53,52,50,48,46,43,3,5,7,9,11,14,16,19,22,25,28,31,34,37,40,44,47,49,51,53,54,55,56,56,55,54,53,52,51,49,47,45 },
{ -3,-5,-7,-9,-11,-13,-15,-17,-18,-19,-20,-21,-21,-21,-20,-18,-16,-13,-10,-7,-3,0,3,6,8,9,10,11,11,10,9,8,-5,-8,-12,-15,-19,-22,-25,-28,-31,-34,-35,-37,-37,-37,-35,-32,-28,-23,-17,-10,-4,2,8,12,16,19,20,21,21,20,19,17,-7,-11,-16,-20,-25,-29,-33,-37,-41,-44,-47,-48,-49,-48,-46,-42,-36,-29,-20,-12,-3,6,13,19,24,28,30,31,31,30,28,25,-8,-13,-18,-23,-28,-33,-38,-42,-47,-50,-53,-55,-56,-55,-52,-47,-40,-32,-21,-11,0,9,18,25,31,35,38,39,39,37,35,31,-8,-14,-19,-24,-30,-35,-40,-44,-49,-52,-55,-57,-58,-56,-53,-47,-40,-31,-20,-9,2,12,21,29,35,40,43,44,44,42,40,36,-8,-13,-19,-24,-29,-34,-39,-43,-47,-51,-53,-55,-55,-53,-50,-44,-36,-27,-16,-6,5,15,23,31,37,42,45,46,46,45,42,39,-7,-12,-17,-22,-27,-31,-36,-40,-43,-46,-48,-49,-49,-47,-43,-38,-30,-21,-12,-2,7,16,24,31,37,41,44,46,46,45,43,40,-6,-11,-15,-20,-24,-28,-32,-35,-38,-40,-41,-42,-41,-39,-35,-30,-23,-16,-7,1,9,17,24,30,35,39,42,44,44,44,42,40 },
{ 5,7,9,11,13,14,15,16,15,14,11,7,3,-3,-9,-15,-21,-25,-28,-29,-28,-25,-20,-15,-10,-4,1,5,8,10,12,13,7,12,15,19,22,25,26,27,26,24,20,13,5,-5,-16,-27,-37,-45,-49,-50,-48,-43,-34,-25,-15,-5,3,11,16,20,22,23,9,15,20,25,29,33,35,36,35,33,27,19,8,-5,-19,-34,-47,-57,-63,-63,-60,-53,-42,-29,-15,-3,9,18,26,30,33,33,10,17,23,29,34,38,40,42,41,39,32,24,11,-3,-19,-35,-50,-61,-67,-68,-63,-55,-42,-27,-11,3,16,26,34,39,42,42,11,18,25,31,36,40,43,44,44,42,36,27,15,1,-15,-31,-46,-56,-63,-63,-58,-49,-36,-20,-4,10,23,33,41,46,49,48,11,18,24,30,35,40,43,44,44,42,37,29,18,6,-9,-23,-36,-46,-51,-51,-47,-38,-25,-11,4,17,29,39,46,50,52,52,10,17,23,28,33,37,40,42,42,40,36,29,21,10,-2,-13,-24,-32,-36,-36,-32,-24,-14,-2,11,23,33,41,47,51,53,53,8,14,20,25,30,33,36,37,38,36,33,28,21,14,5,-4,-12,-18,-21,-21,-18,-12,-3,7,17,26,34,41,46,50,51,51 },
{ 6,9,12,14,16,19,20,22,23,23,23,23,22,22,22,23,24,26,28,31,33,35,36,36,35,33,30,26,22,18,13,8,9,14,19,23,26,29,32,34,35,35,34,33,32,32,31,32,34,37,41,46,50,54,56,57,56,53,49,43,36,29,22,15,11,17,22,27,31,34,36,37,38,37,35,33,31,28,27,28,30,33,38,44,51,56,60,62,62,60,55,49,42,34,25,17,12,18,23,27,30,32,33,33,32,30,27,23,18,15,12,11,12,15,21,28,35,42,48,52,53,52,49,43,37,30,22,14,11,16,20,23,25,25,25,24,21,17,12,6,0,-6,-10,-13,-13,-11,-6,2,10,18,25,30,34,34,33,29,24,18,12,6,8,12,14,16,16,15,13,10,6,1,-6,-13,-21,-28,-33,-37,-39,-38,-33,-27,-19,-11,-3,4,8,10,10,9,6,2,-2,-6,4,6,7,7,5,3,0,-4,-9,-15,-23,-31,-39,-47,-53,-58,-61,-60,-57,-51,-45,-37,-30,-23,-18,-14,-13,-12,-13,-15,-17,-19,0,0,-1,-2,-5,-8,-12,-17,-23,-29,-36,-44,-52,-59,-66,-71,-74,-74,-72,-68,-63,-57,-50,-44,-39,-35,-32,-31,-30,-30,-31,-31 },
{ -7,-10,-12,-14,-15,-14,-12,-8,-3,3,11,19,27,32,35,35,31,24,15,5,-4,-10,-14,-15,-13,-9,-4,2,7,11,14,17,-10,-16,-21,-24,-25,-25,-21,-16,-7,4,17,31,44,55,59,58,50,38,22,5,-10,-21,-27,-27,-22,-14,-4,6,15,22,27,30,-14,-22,-28,-32,-35,-34,-30,-22,-12,2,18,36,53,65,71,69,59,42,21,-1,-20,-33,-39,-37,-29,-17,-3,11,24,33,39,42,-16,-25,-33,-38,-41,-40,-36,-29,-18,-4,14,32,50,64,69,67,55,36,13,-11,-31,-44,-47,-44,-33,-18,-1,15,30,41,47,50,-17,-27,-35,-41,-44,-44,-41,-34,-24,-11,5,23,40,52,57,53,42,23,0,-22,-40,-50,-52,-46,-34,-17,1,18,33,45,52,55,-16,-26,-35,-41,-44,-45,-43,-37,-29,-18,-4,10,24,34,37,34,23,7,-12,-30,-44,-52,-51,-44,-31,-15,3,20,34,45,52,55,-15,-24,-32,-38,-42,-43,-42,-38,-31,-23,-13,-2,8,15,17,13,5,-8,-22,-35,-44,-48,-46,-38,-26,-11,4,19,32,42,49,51,-12,-21,-28,-34,-37,-39,-38,-36,-31,-25,-18,-11,-5,-1,0,-3,-9,-18,-27,-35,-40,-42,-39,-31,-21,-8,5,17,28,37,43,46 },
{ -12,-17,-21,-25,-28,-30,-31,-31,-31,-29,-28,-27,-26,-25,-25,-24,-23,-20,-15,-9,-1,9,18,27,34,37,38,36,33,27,20,12,-17,-25,-32,-38,-42,-45,-45,-45,-43,-40,-37,-34,-32,-32,-32,-32,-32,-29,-23,-13,0,14,29,43,54,60,61,58,52,43,32,20,-19,-28,-36,-42,-46,-47,-46,-43,-40,-34,-29,-25,-22,-22,-24,-26,-29,-29,-24,-15,-2,13,30,45,58,64,65,62,56,46,33,20,-18,-27,-33,-37,-39,-39,-35,-30,-24,-16,-9,-3,0,0,-4,-11,-17,-22,-22,-17,-7,6,20,34,45,52,52,49,43,34,23,11,-14,-21,-25,-27,-27,-24,-18,-10,-1,8,17,23,27,25,19,9,-2,-12,-18,-19,-15,-8,3,12,21,26,27,24,19,12,4,-5,-9,-13,-14,-14,-11,-6,1,11,21,31,40,47,49,47,38,26,11,-3,-14,-21,-24,-22,-17,-12,-7,-4,-4,-6,-9,-14,-19,-23,-3,-4,-3,0,4,10,18,28,38,48,56,61,63,59,50,36,19,3,-12,-23,-30,-34,-34,-33,-32,-31,-31,-32,-35,-37,-39,-40,2,4,6,10,15,21,29,38,47,55,61,65,65,61,51,38,21,5,-11,-23,-33,-40,-44,-47,-48,-49,-49,-51,-52,-53,-53,-52 },
{ 7,10,11,11,10,6,0,-8,-16,-24,-31,-35,-34,-28,-18,-4,10,22,29,30,27,19,9,0,-5,-6,-3,2,8,14,20,24,11,16,19,20,17,11,1,-11,-25,-39,-50,-57,-56,-47,-29,-6,19,39,49,50,40,26,8,-6,-14,-15,-8,3,15,27,36,43,15,22,26,27,25,18,6,-9,-26,-43,-57,-65,-66,-54,-32,-3,27,49,59,56,42,21,-1,-19,-29,-27,-16,1,19,36,49,57,17,26,32,34,32,25,14,-2,-20,-37,-51,-61,-61,-50,-27,2,31,52,58,51,32,7,-17,-36,-44,-40,-24,-3,19,40,56,65,19,29,36,39,38,32,22,8,-8,-24,-38,-46,-47,-37,-17,8,32,48,50,38,16,-9,-34,-50,-56,-49,-31,-8,16,39,56,67,18,29,37,41,41,38,29,18,4,-9,-20,-27,-27,-20,-5,13,29,39,36,22,0,-23,-44,-58,-60,-53,-35,-12,12,34,51,63,17,27,35,40,41,39,33,25,15,5,-3,-9,-9,-5,4,15,24,27,21,8,-11,-31,-47,-57,-58,-50,-34,-14,7,27,43,54,14,23,31,35,38,37,34,28,21,14,9,5,4,6,10,15,18,17,10,-2,-16,-31,-43,-49,-49,-42,-29,-13,4,20,34,44 },
{ 14,20,25,28,30,31,30,28,25,21,17,12,6,0,-8,-16,-26,-33,-40,-43,-43,-37,-26,-13,1,14,26,33,37,36,31,24,20,29,36,41,44,44,42,38,33,27,21,14,7,-1,-11,-22,-34,-46,-55,-62,-61,-54,-38,-19,3,24,40,52,57,56,49,39,21,31,38,42,44,42,38,33,27,20,14,9,5,0,-6,-13,-23,-34,-45,-53,-56,-50,-37,-18,4,25,43,54,61,59,52,40,18,26,31,33,32,28,23,16,9,3,-1,-2,0,3,5,6,3,-4,-14,-24,-31,-32,-25,-13,3,19,32,41,46,46,39,29,12,17,18,17,13,8,1,-7,-14,-18,-19,-15,-7,4,16,27,32,31,25,13,1,-7,-10,-8,-2,5,12,17,20,19,15,8,5,5,3,-1,-7,-14,-21,-29,-35,-38,-35,-27,-14,3,23,41,53,58,53,42,27,13,1,-7,-11,-11,-11,-10,-10,-12,-14,-16,-3,-6,-11,-17,-24,-31,-39,-46,-51,-51,-46,-36,-20,0,22,43,59,66,64,54,40,22,5,-9,-20,-27,-32,-35,-37,-39,-40,-39,-8,-14,-20,-27,-34,-42,-49,-54,-57,-56,-50,-40,-24,-5,16,36,51,59,58,50,37,21,3,-13,-27,-38,-46,-51,-55,-57,-57,-55 },
{ -9,-13,-13,-11,-5,3,13,23,31,33,29,19,4,-13,-28,-36,-36,-26,-10,7,21,26,24,15,5,-4,-9,-9,-5,3,13,23,-15,-21,-22,-19,-10,3,19,36,49,54,48,32,7,-21,-45,-59,-56,-40,-12,17,37,45,37,21,1,-13,-19,-17,-7,7,24,38,-20,-29,-31,-28,-18,-2,18,38,56,63,57,38,9,-24,-52,-67,-64,-41,-7,27,50,54,40,16,-9,-26,-32,-26,-10,10,33,50,-24,-36,-40,-37,-28,-12,9,31,50,60,56,39,10,-22,-48,-61,-55,-32,3,35,54,54,34,5,-23,-41,-44,-34,-13,12,38,59,-27,-40,-47,-45,-38,-23,-3,19,38,48,48,34,11,-15,-37,-45,-38,-16,13,38,51,44,22,-9,-36,-51,-52,-38,-14,14,42,63,-27,-42,-49,-50,-44,-32,-15,4,21,32,34,26,10,-8,-22,-27,-19,-1,20,36,41,32,8,-20,-43,-55,-52,-37,-13,15,42,63,-26,-40,-48,-50,-47,-37,-24,-8,6,16,19,16,7,-3,-10,-11,-4,8,21,29,29,18,-2,-25,-43,-50,-46,-31,-10,15,40,59,-21,-34,-42,-45,-43,-37,-27,-16,-5,3,7,7,4,0,-2,-1,4,12,18,21,18,8,-7,-24,-36,-41,-36,-23,-5,16,36,52 },
{ -23,-31,-37,-39,-39,-36,-31,-24,-15,-6,3,11,18,23,26,25,21,12,-1,-16,-32,-43,-50,-49,-42,-28,-11,6,20,29,33,31,-31,-44,-51,-54,-53,-48,-39,-28,-15,-3,9,19,26,32,34,35,30,20,3,-17,-38,-55,-64,-66,-55,-36,-11,14,35,48,52,48,-32,-43,-50,-51,-48,-40,-29,-17,-5,6,14,19,22,23,25,26,26,22,12,-4,-23,-39,-51,-54,-47,-28,-4,20,41,53,57,52,-25,-33,-36,-34,-28,-19,-9,2,11,16,16,12,6,1,-1,3,10,17,20,17,7,-6,-18,-25,-24,-14,2,19,34,43,45,41,-14,-17,-15,-10,-2,7,16,23,27,24,15,1,-15,-27,-31,-25,-11,7,25,35,36,29,18,6,-1,-2,2,8,15,19,20,18,-2,0,6,13,22,30,36,39,37,28,11,-10,-32,-49,-55,-49,-30,-4,23,43,53,51,40,26,12,2,-5,-8,-10,-10,-10,-10,8,14,22,30,39,45,48,47,41,27,7,-18,-43,-60,-67,-60,-41,-14,16,39,53,54,45,30,12,-4,-17,-27,-34,-37,-38,-36,14,22,30,38,45,49,49,46,37,22,1,-21,-43,-59,-65,-60,-43,-20,5,26,39,43,35,21,4,-13,-29,-41,-51,-56,-56,-53 },
{ -5,-6,-7,-8,-9,-11,-14,-18,-24,-30,-38,-46,-54,-58,-61,-60,-59,-55,-51,-47,-45,-43,-43,-43,-43,-41,-38,-34,-29,-23,-16,-10,-6,-7,-6,-6,-7,-8,-11,-15,-22,-30,-39,-48,-57,-63,-64,-62,-58,-53,-47,-43,-41,-41,-42,-44,-45,-46,-44,-41,-36,-30,-23,-16,-4,-3,-1,1,3,4,4,2,-2,-7,-13,-19,-24,-25,-24,-19,-14,-8,-4,-2,-3,-6,-10,-13,-18,-21,-22,-23,-23,-20,-17,-12,-1,1,5,9,13,16,19,21,21,20,19,19,20,23,28,34,39,43,43,42,38,33,28,24,19,14,10,6,2,-1,-2,-3,0,3,7,12,16,20,25,28,31,34,37,40,45,50,57,61,65,64,61,56,52,47,45,42,40,37,34,29,23,16,10,6,0,1,3,6,9,12,16,19,22,25,28,32,36,41,44,46,44,41,35,30,26,26,28,31,34,36,36,33,28,22,14,8,-4,-5,-6,-6,-6,-6,-5,-5,-4,-4,-3,-2,-1,-1,-2,-5,-10,-16,-22,-26,-26,-22,-15,-5,4,11,16,18,17,13,7,2,-7,-12,-16,-20,-23,-26,-28,-31,-34,-37,-40,-43,-46,-50,-55,-61,-68,-75,-80,-82,-79,-72,-61,-48,-34,-23,-14,-8,-5,-5,-6,-9 },
{ -2,-2,1,6,14,23,31,35,32,21,4,-15,-29,-32,-22,-1,24,42,48,39,20,-3,-21,-30,-28,-17,-4,7,10,7,-3,-15,-6,-8,-4,4,17,31,43,51,48,33,6,-25,-49,-56,-39,-7,33,63,70,55,22,-13,-39,-48,-39,-19,3,17,20,11,-7,-26,-13,-18,-16,-7,7,24,40,51,51,36,6,-30,-60,-69,-52,-15,31,62,69,47,10,-27,-51,-53,-36,-8,18,32,32,15,-11,-37,-21,-31,-31,-24,-11,7,26,40,45,35,9,-25,-55,-68,-54,-21,20,48,50,28,-8,-39,-53,-46,-20,11,36,47,39,16,-17,-48,-28,-41,-45,-41,-29,-11,9,26,36,32,14,-12,-38,-50,-43,-19,10,28,27,6,-22,-43,-47,-30,-1,29,50,54,40,11,-25,-58,-31,-47,-53,-51,-40,-24,-4,15,28,31,22,5,-13,-24,-22,-10,5,14,9,-8,-27,-38,-32,-13,15,40,53,51,32,2,-35,-66,-30,-45,-52,-51,-44,-29,-10,8,23,31,29,21,11,3,0,3,7,8,1,-11,-22,-25,-17,1,23,39,46,39,19,-10,-44,-71,-25,-38,-44,-44,-38,-26,-10,6,21,30,33,31,27,22,17,15,12,8,1,-7,-13,-13,-6,7,21,31,32,23,4,-21,-48,-70 },
{ -33,-44,-49,-48,-43,-34,-22,-11,-2,3,4,1,-5,-12,-18,-22,-24,-24,-23,-18,-8,7,25,42,55,56,48,32,12,-7,-24,-34,-44,-59,-64,-61,-51,-36,-18,-1,12,18,16,10,0,-10,-17,-21,-22,-24,-24,-23,-15,2,25,51,68,73,61,39,10,-18,-41,-54,-42,-55,-57,-50,-36,-18,2,19,30,33,27,16,4,-5,-7,-5,-2,-3,-10,-19,-23,-16,3,27,47,54,47,26,-1,-29,-51,-64,-30,-38,-35,-25,-10,7,24,37,42,38,26,11,-1,-5,1,14,26,27,14,-8,-28,-37,-29,-12,7,18,19,8,-11,-32,-49,-60,-16,-18,-12,0,14,27,38,43,40,28,11,-8,-19,-17,0,24,46,50,36,6,-27,-48,-54,-45,-29,-13,-4,-3,-10,-21,-33,-41,-4,-1,7,17,28,36,39,36,25,7,-14,-34,-42,-36,-12,20,49,61,48,19,-17,-45,-57,-55,-41,-24,-7,3,6,2,-4,-11,5,10,17,24,31,33,29,20,3,-18,-40,-57,-64,-53,-27,8,40,55,49,27,-2,-27,-41,-40,-30,-11,7,22,31,32,29,21,9,14,18,22,24,22,15,2,-16,-36,-55,-69,-72,-61,-36,-5,24,42,42,30,12,-5,-15,-14,-5,11,28,43,53,57,53,45 },
{ 0,0,1,4,10,17,26,36,47,55,61,62,60,51,38,22,5,-10,-22,-30,-35,-35,-33,-30,-31,-34,-39,-44,-48,-46,-40,-29,-3,-6,-5,-3,3,12,24,36,47,57,62,64,59,50,34,18,0,-16,-27,-34,-36,-33,-26,-21,-21,-27,-37,-48,-56,-59,-53,-42,-9,-14,-16,-16,-13,-6,2,10,16,21,22,21,16,10,3,-3,-9,-12,-15,-15,-12,-4,6,13,16,9,-3,-17,-31,-38,-38,-32,-12,-19,-23,-25,-25,-23,-21,-20,-20,-23,-27,-32,-35,-35,-29,-20,-9,0,6,11,16,25,34,43,47,46,36,23,9,-1,-7,-8,-10,-16,-20,-22,-24,-25,-27,-31,-38,-45,-54,-60,-62,-54,-40,-19,1,16,24,25,26,28,35,43,51,53,52,45,37,29,21,15,-3,-4,-5,-5,-6,-7,-11,-17,-25,-34,-43,-49,-48,-40,-22,-1,18,29,28,20,10,3,3,9,18,27,33,37,37,36,31,26,7,12,16,19,22,23,21,17,10,3,-4,-8,-8,0,12,26,34,32,19,-1,-22,-38,-45,-43,-35,-22,-8,4,13,19,21,20,16,25,34,41,47,51,52,51,47,43,38,35,35,39,43,45,40,28,5,-23,-51,-73,-84,-86,-80,-68,-51,-34,-19,-7,0,5 },
{ 10,11,8,1,-7,-13,-13,-7,7,24,39,44,34,8,-25,-50,-58,-40,-9,22,39,35,16,-7,-19,-17,-3,13,24,23,10,-9,15,17,10,-2,-15,-26,-28,-20,-1,26,51,64,52,16,-33,-72,-79,-53,-2,44,63,50,13,-23,-41,-33,-7,20,36,33,11,-18,19,22,14,-1,-20,-34,-41,-35,-17,12,43,62,57,22,-27,-65,-73,-39,14,57,71,44,-2,-43,-59,-43,-8,25,42,33,3,-33,23,28,21,5,-16,-35,-46,-46,-32,-7,23,46,47,25,-12,-42,-44,-16,27,58,57,26,-21,-56,-63,-41,-2,31,42,28,-9,-51,28,36,31,17,-4,-25,-41,-46,-40,-21,4,25,33,22,1,-17,-17,3,30,43,34,3,-34,-55,-52,-23,14,39,43,20,-22,-65,31,43,42,31,12,-8,-26,-36,-36,-26,-8,9,18,16,6,-3,-3,8,20,22,9,-14,-35,-42,-27,2,32,49,43,15,-30,-73,33,46,49,41,28,10,-7,-19,-25,-21,-11,0,7,8,4,-1,-1,3,6,3,-8,-19,-26,-20,-1,25,46,53,41,10,-33,-72,30,43,48,45,35,22,8,-4,-11,-12,-8,-3,1,1,-1,-4,-5,-5,-6,-9,-13,-17,-13,-2,17,36,48,49,33,5,-32,-66 },
{ -23,-28,-25,-14,3,22,40,52,57,49,34,14,-6,-22,-34,-38,-39,-33,-23,-11,2,10,11,6,-1,-5,-2,8,22,37,50,56,-35,-44,-39,-23,1,27,50,65,67,57,34,10,-12,-26,-32,-34,-32,-27,-18,-4,10,20,19,10,-4,-14,-13,-1,21,47,68,80,-40,-51,-47,-31,-8,16,36,45,44,28,7,-11,-20,-16,-7,1,4,1,-1,4,14,22,22,11,-8,-25,-32,-24,-2,26,56,74,-37,-48,-45,-32,-14,2,12,13,3,-14,-29,-35,-25,-2,24,41,40,25,6,-2,3,14,19,14,-4,-28,-44,-47,-33,-9,21,46,-27,-34,-31,-21,-10,-3,-3,-12,-28,-45,-55,-50,-26,10,46,62,55,25,-7,-24,-21,-3,16,22,12,-12,-37,-52,-52,-37,-12,13,-10,-11,-6,1,8,9,1,-14,-33,-50,-56,-47,-19,18,48,59,41,5,-32,-51,-42,-16,15,36,35,16,-12,-35,-46,-44,-29,-9,8,15,23,30,33,31,20,3,-16,-31,-36,-27,-6,20,38,37,15,-21,-53,-65,-53,-19,19,48,59,46,21,-4,-23,-30,-26,-14,21,33,43,51,54,51,41,26,10,-3,-8,-4,7,20,24,17,-6,-36,-57,-62,-46,-13,25,56,70,66,47,25,5,-7,-10,-6 },
{ 33,43,47,46,43,37,31,25,20,17,15,13,9,5,-1,-9,-21,-33,-47,-57,-61,-50,-29,1,30,51,63,62,53,36,16,-3,39,51,53,50,42,33,23,16,11,9,8,8,6,4,2,-2,-10,-23,-39,-56,-64,-58,-35,-2,33,60,72,71,56,34,9,-11,30,35,33,24,14,3,-6,-12,-14,-11,-8,-4,-2,1,6,13,19,17,7,-9,-25,-30,-23,-6,15,32,39,35,22,3,-16,-29,12,10,2,-9,-21,-30,-35,-35,-31,-24,-16,-11,-8,-4,4,19,37,51,53,43,25,7,-6,-12,-12,-9,-9,-13,-22,-31,-39,-42,-4,-11,-22,-32,-41,-45,-44,-37,-27,-16,-8,-5,-7,-10,-8,4,26,48,64,64,51,28,4,-16,-30,-36,-40,-42,-44,-44,-42,-36,-11,-19,-27,-34,-37,-35,-27,-15,-1,11,17,14,2,-13,-25,-25,-11,11,32,44,41,27,6,-15,-29,-37,-37,-35,-30,-24,-16,-9,-9,-13,-16,-17,-14,-7,5,20,36,45,46,36,15,-12,-38,-52,-53,-38,-17,1,11,10,2,-6,-12,-12,-7,1,11,20,28,31,-2,-2,0,5,12,23,36,51,64,70,65,50,24,-8,-40,-63,-73,-69,-52,-33,-17,-6,1,5,12,20,30,43,54,64,68,66 },
{ 48,59,62,56,48,36,25,17,11,8,3,-3,-12,-20,-28,-31,-31,-22,-5,18,44,61,69,60,39,8,-23,-45,-54,-44,-24,-1,53,65,61,51,36,22,10,2,0,0,0,-3,-9,-17,-24,-29,-30,-28,-16,4,29,53,64,61,37,2,-33,-59,-63,-49,-20,8,35,36,26,11,-5,-17,-23,-22,-16,-7,1,4,5,4,3,1,-3,-11,-20,-23,-17,-2,15,23,16,-3,-26,-40,-38,-19,7,31,6,-1,-16,-30,-42,-48,-43,-33,-18,-4,6,12,16,21,27,35,33,17,-10,-38,-54,-53,-34,-14,-1,0,-4,-5,3,19,38,51,-13,-26,-39,-48,-53,-49,-37,-19,-2,10,15,12,10,13,26,42,52,40,11,-27,-57,-62,-49,-24,-2,11,18,22,30,38,48,50,-17,-27,-34,-37,-32,-22,-6,11,24,28,18,2,-14,-18,-6,17,38,44,28,1,-24,-34,-25,-8,10,21,25,25,23,23,23,22,-9,-11,-10,-5,4,17,31,42,47,38,15,-15,-44,-57,-50,-26,4,25,32,25,15,8,10,15,20,19,11,1,-10,-18,-23,-23,3,7,14,24,35,47,55,59,54,37,7,-30,-63,-83,-80,-60,-28,1,21,31,33,33,30,26,18,6,-12,-30,-48,-60,-65,-62 },
{ -20,-20,-8,11,28,37,33,16,-8,-29,-37,-28,-5,19,28,15,-11,-32,-35,-17,8,25,26,12,-3,-10,-6,2,7,2,-15,-34,-31,-32,-14,15,43,59,52,27,-11,-44,-56,-40,0,40,53,32,-13,-49,-51,-22,19,43,36,10,-15,-23,-11,7,17,9,-19,-50,-41,-45,-25,8,42,61,56,29,-13,-49,-63,-41,6,53,69,41,-13,-53,-53,-15,30,49,33,-4,-35,-36,-14,16,34,24,-12,-53,-49,-58,-40,-7,28,51,49,26,-13,-48,-59,-39,8,53,66,38,-15,-51,-44,-5,37,49,22,-21,-51,-46,-12,27,50,41,0,-50,-53,-64,-51,-20,13,36,40,22,-8,-37,-50,-34,3,37,47,23,-19,-42,-32,6,40,42,11,-32,-58,-45,-7,35,60,49,7,-45,-48,-61,-50,-25,4,27,33,23,2,-21,-32,-25,-3,18,23,5,-21,-32,-17,14,37,34,3,-34,-51,-38,-1,37,55,45,3,-46,-38,-48,-41,-21,3,23,31,27,14,-3,-13,-13,-4,4,4,-7,-20,-21,-6,17,32,26,2,-25,-37,-25,3,29,41,28,-7,-48,-23,-31,-26,-11,8,24,31,30,23,12,2,-2,-2,-2,-5,-11,-15,-11,2,16,24,20,3,-14,-21,-14,3,19,23,10,-18,-49 },
{ 16,18,13,2,-13,-28,-40,-47,-45,-30,-4,25,53,63,58,31,-3,-31,-44,-36,-17,5,16,12,0,-13,-18,-9,12,35,55,61,23,28,21,8,-10,-30,-45,-55,-53,-38,-9,25,54,69,59,31,-10,-43,-53,-40,-8,21,32,24,0,-24,-33,-23,5,40,68,82,26,31,28,18,5,-9,-21,-29,-31,-23,-10,6,21,26,23,8,-14,-30,-34,-17,11,34,42,28,1,-26,-41,-36,-15,17,47,63,20,25,24,22,18,15,13,11,8,3,-5,-15,-24,-27,-21,-12,-4,-1,0,6,18,30,32,23,3,-20,-34,-38,-30,-14,6,22,6,6,7,10,17,25,35,41,41,28,4,-25,-52,-58,-44,-14,16,31,28,14,3,1,5,9,8,1,-11,-21,-30,-31,-28,-20,-15,-22,-22,-15,-2,15,33,48,51,40,12,-22,-49,-57,-35,2,37,50,33,2,-27,-37,-27,-6,15,26,22,10,-9,-27,-40,-45,-34,-47,-52,-46,-31,-11,13,32,42,35,16,-11,-31,-31,-11,22,48,49,23,-18,-53,-63,-47,-13,23,46,52,40,19,-8,-32,-46,-42,-61,-68,-66,-53,-34,-12,8,21,22,13,-1,-9,-6,11,32,44,38,8,-29,-60,-68,-49,-13,26,55,64,58,38,12,-15,-33 },
{ 39,50,55,52,46,33,14,-6,-24,-34,-38,-35,-32,-28,-24,-15,2,21,38,38,19,-17,-55,-77,-80,-57,-24,8,31,39,37,29,37,48,51,49,40,28,9,-10,-26,-33,-30,-22,-14,-13,-16,-17,-6,17,41,51,32,-4,-45,-71,-67,-44,-8,22,39,44,37,29,12,12,11,9,7,3,-3,-10,-14,-9,3,17,29,24,7,-12,-22,-10,14,33,34,19,-1,-11,-6,9,23,28,24,13,5,2,-20,-31,-34,-32,-26,-18,-10,-5,3,13,27,42,52,47,23,-9,-34,-40,-24,-2,15,25,31,38,45,48,36,15,-11,-32,-37,-30,-39,-52,-56,-48,-35,-19,-6,4,11,16,23,30,37,33,18,-5,-30,-42,-42,-30,-14,5,26,41,51,43,22,-10,-42,-59,-58,-39,-33,-44,-41,-31,-14,1,11,14,10,3,-6,-10,-8,-3,2,3,-2,-11,-21,-29,-28,-21,-6,8,15,11,-5,-26,-43,-48,-34,-13,-13,-13,-5,8,23,32,33,24,7,-15,-36,-49,-50,-34,-9,18,37,37,23,0,-20,-31,-32,-26,-21,-17,-16,-16,-13,-1,20,39,10,18,29,42,53,57,49,31,4,-25,-49,-64,-63,-44,-7,32,62,73,59,33,4,-19,-30,-33,-28,-19,-5,11,30,52,72,85 },
{ 38,37,30,20,14,14,21,30,37,38,33,26,27,39,59,76,87,82,72,59,52,47,41,34,28,28,35,42,46,38,20,-2,35,31,15,-1,-12,-12,-2,13,23,23,11,-4,-11,-1,21,40,46,38,21,12,12,15,13,5,-2,1,14,31,39,34,12,-12,20,9,-11,-30,-42,-40,-28,-11,0,-2,-19,-41,-57,-53,-39,-28,-33,-48,-64,-60,-44,-26,-21,-30,-41,-40,-27,-6,9,8,-9,-30,6,-5,-21,-36,-43,-40,-26,-9,2,2,-14,-36,-50,-49,-38,-33,-45,-67,-77,-66,-37,-12,-5,-20,-39,-48,-40,-24,-9,-6,-20,-38,4,-1,-9,-16,-18,-12,1,15,25,25,15,1,-3,5,19,24,13,-8,-18,-6,21,41,44,23,-3,-19,-20,-10,1,3,-10,-29,9,10,9,8,9,15,23,32,36,35,28,23,28,45,63,74,65,47,34,40,55,69,65,48,24,9,6,14,22,22,9,-10,10,14,15,16,16,17,18,17,14,8,1,-1,7,24,42,50,45,28,15,13,20,28,28,19,9,4,9,19,29,29,18,1,6,8,7,5,1,-3,-10,-19,-30,-41,-51,-55,-51,-40,-29,-25,-33,-47,-59,-63,-60,-52,-46,-42,-37,-29,-16,0,12,17,10,-3 },
{ 21,22,12,-3,-14,-15,-5,9,17,8,-20,-52,-70,-55,-19,16,23,-3,-41,-61,-55,-26,-4,0,-16,-32,-35,-20,2,16,14,-2,29,30,14,-10,-27,-27,-8,20,39,33,-3,-50,-74,-56,-1,51,58,18,-39,-67,-44,1,33,29,-6,-38,-42,-21,11,29,19,-6,33,34,13,-15,-37,-37,-14,23,57,59,29,-17,-47,-30,25,74,81,31,-27,-43,-9,45,75,55,7,-31,-36,-9,24,37,18,-20,35,37,14,-18,-44,-49,-26,13,51,66,45,6,-24,-17,21,59,56,13,-31,-35,9,61,78,51,0,-34,-30,0,33,40,9,-38,37,39,17,-15,-44,-54,-39,-7,28,45,36,7,-21,-24,-4,17,12,-20,-48,-39,0,38,45,15,-26,-43,-29,6,37,35,-2,-54,39,44,26,-4,-32,-47,-41,-21,4,19,14,-5,-26,-33,-22,-10,-13,-31,-44,-37,-12,8,4,-22,-45,-47,-22,14,38,32,-10,-63,41,49,37,14,-10,-26,-28,-18,-5,3,1,-9,-21,-23,-14,-1,2,-4,-11,-9,-2,0,-11,-30,-42,-32,-5,26,43,30,-10,-57,36,48,44,29,12,-2,-7,-5,1,4,4,0,-1,3,15,28,37,38,33,30,25,16,3,-10,-15,-5,16,37,45,31,-4,-43 },
{ -29,-29,-13,12,36,48,46,28,4,-22,-39,-40,-29,-4,24,44,51,37,12,-12,-25,-15,9,30,35,19,-6,-24,-21,5,42,70,-44,-46,-22,12,43,61,55,34,3,-26,-42,-43,-27,-4,21,40,43,31,3,-26,-38,-25,9,39,44,22,-16,-44,-40,-3,51,94,-50,-52,-32,0,27,39,34,16,-6,-20,-22,-14,-4,1,-1,-3,-1,-1,-8,-21,-33,-25,1,28,37,16,-21,-51,-55,-22,33,78,-41,-45,-31,-11,5,9,1,-10,-17,-11,8,27,31,12,-21,-45,-42,-19,5,9,-5,-16,-12,6,19,13,-10,-36,-48,-35,3,40,-21,-21,-14,-7,-5,-11,-23,-31,-28,-5,31,58,60,23,-29,-61,-53,-8,38,48,26,-8,-26,-17,4,19,15,-2,-21,-28,-20,-2,6,11,15,13,3,-14,-31,-41,-34,-7,31,62,60,25,-25,-54,-36,15,60,69,33,-12,-39,-35,-4,26,40,35,13,-11,-28,-31,29,40,44,36,19,-4,-26,-39,-37,-16,15,38,38,11,-23,-38,-19,23,57,53,18,-27,-53,-45,-12,26,52,53,35,3,-27,-43,38,54,57,49,30,7,-16,-32,-34,-24,-5,9,8,-7,-25,-31,-14,14,31,23,-9,-43,-60,-50,-18,18,43,49,34,6,-25,-44 },
{ 52,62,60,45,26,2,-20,-36,-44,-38,-26,-13,-5,-1,1,6,13,9,-11,-40,-65,-62,-31,20,65,77,61,26,-9,-31,-39,-33,49,58,50,35,14,-7,-25,-37,-38,-28,-11,3,7,2,-2,3,17,25,11,-21,-53,-62,-32,16,56,68,46,12,-21,-40,-41,-33,16,12,5,-2,-8,-12,-13,-11,-2,11,24,28,20,1,-14,-13,8,33,43,29,3,-16,-17,-4,7,5,-6,-18,-24,-19,-11,-4,-24,-37,-39,-32,-19,-6,7,18,28,37,40,35,17,-9,-30,-36,-19,13,41,53,45,26,2,-18,-35,-47,-44,-31,-7,18,33,34,-46,-58,-54,-36,-13,8,23,29,29,25,21,14,4,-12,-30,-40,-39,-21,6,28,39,32,12,-13,-38,-48,-42,-17,17,45,59,50,-38,-46,-35,-14,9,25,28,19,2,-13,-20,-18,-7,1,1,-9,-25,-35,-31,-18,-1,12,14,7,-6,-14,-10,5,26,40,38,25,-15,-13,0,19,35,37,24,-1,-32,-52,-56,-38,-6,28,48,42,17,-16,-40,-45,-34,-11,11,25,29,24,18,13,9,0,-15,-29,7,16,29,42,47,40,17,-16,-49,-69,-64,-38,6,51,78,79,52,14,-22,-40,-38,-20,6,28,39,36,20,0,-22,-46,-64,-76 },
{ -32,-34,-30,-25,-25,-28,-36,-44,-51,-52,-53,-54,-59,-61,-59,-45,-23,2,22,36,48,52,54,53,53,53,58,60,61,49,29,8,-25,-21,-9,1,4,0,-8,-17,-21,-18,-12,-10,-14,-22,-24,-19,-5,7,14,16,16,17,16,13,8,10,19,31,37,33,17,-3,-6,7,23,34,38,34,27,22,25,34,47,54,53,41,31,23,18,7,-9,-26,-38,-38,-40,-45,-55,-55,-48,-32,-18,-12,-16,-24,6,17,28,34,33,27,20,17,22,33,45,53,50,41,30,25,18,3,-18,-36,-41,-35,-28,-30,-41,-52,-53,-47,-35,-27,-25,-28,2,4,6,3,-3,-12,-20,-22,-20,-12,-5,-5,-11,-18,-18,-8,2,2,-5,-9,-1,17,34,37,28,11,-2,-6,-3,0,-1,-7,-7,-10,-15,-22,-30,-39,-43,-45,-42,-39,-39,-47,-56,-62,-51,-30,-5,9,13,15,26,47,64,73,66,53,39,33,32,32,27,16,-5,-7,-11,-15,-19,-21,-20,-16,-11,-7,-11,-21,-34,-37,-28,-9,9,17,14,6,4,10,20,25,26,22,18,19,24,27,25,15,5,8,11,14,19,25,34,44,53,58,56,47,35,28,28,32,31,22,0,-26,-48,-60,-63,-62,-59,-55,-47,-37,-23,-12,-7,-8 },
{ -17,-16,-7,2,4,-4,-15,-17,-2,28,59,60,25,-30,-64,-43,13,56,57,14,-29,-39,-20,4,8,-9,-27,-27,-8,16,26,17,-18,-15,0,14,16,1,-22,-36,-23,17,61,75,30,-43,-85,-61,19,78,65,3,-50,-50,-5,33,29,-5,-36,-37,-7,25,33,17,-18,-12,8,27,32,12,-21,-47,-50,-16,32,56,29,-32,-73,-49,21,64,42,-24,-63,-35,26,61,48,0,-37,-33,-1,28,27,-2,-20,-14,9,34,44,28,-8,-45,-60,-42,1,33,28,-7,-34,-21,20,39,6,-45,-56,-14,44,67,38,-10,-38,-25,10,31,12,-32,-30,-25,0,30,48,40,10,-25,-48,-41,-13,17,28,15,2,4,18,15,-15,-43,-37,5,45,42,6,-32,-43,-13,26,35,0,-58,-41,-43,-19,13,38,43,25,-1,-22,-25,-10,9,20,18,10,9,9,2,-13,-22,-9,17,28,10,-27,-50,-37,3,43,45,-4,-70,-50,-56,-39,-9,20,34,30,16,1,-6,-3,3,5,2,-4,-5,-3,-2,-2,2,14,22,14,-12,-42,-46,-22,22,57,50,-1,-65,-47,-59,-49,-25,2,20,24,18,10,4,0,-4,-9,-16,-20,-18,-12,-3,6,16,23,23,8,-15,-32,-30,-3,34,57,49,3,-52 },
{ -46,-41,-14,22,48,48,26,-9,-36,-42,-26,3,27,36,36,26,14,-1,-15,-16,-6,8,9,-7,-27,-30,-14,9,19,1,-39,-74,-59,-54,-13,36,66,66,32,-13,-45,-50,-24,9,29,29,18,12,6,-6,-18,-21,-3,21,26,4,-28,-39,-14,24,43,22,-39,-95,-60,-52,-15,29,56,49,17,-20,-41,-32,-3,20,16,-10,-29,-22,-3,3,-10,-19,-4,25,40,20,-18,-35,-15,30,64,49,-9,-72,-45,-42,-16,12,25,16,-8,-27,-26,-2,29,37,7,-40,-61,-37,11,31,10,-21,-21,11,37,29,-7,-35,-28,11,52,60,21,-33,-23,-19,-6,2,0,-13,-29,-31,-11,25,57,54,10,-44,-63,-22,39,59,25,-28,-45,-14,26,33,4,-32,-46,-24,16,39,31,0,5,11,13,8,-7,-25,-36,-31,-4,33,60,54,10,-37,-43,-1,55,69,22,-39,-59,-31,18,41,21,-19,-48,-48,-21,9,22,16,27,35,34,20,-1,-22,-34,-29,-8,20,39,31,-2,-32,-31,6,48,49,8,-42,-60,-29,20,49,42,5,-32,-45,-35,-9,13,21,34,45,42,28,7,-14,-27,-28,-16,0,9,3,-18,-34,-28,-2,23,23,-6,-37,-42,-17,25,54,53,27,-5,-25,-25,-10,10,22 },
{ -2,-1,-8,-22,-41,-55,-65,-65,-62,-50,-40,-29,-17,0,21,38,52,54,51,43,38,32,23,5,-18,-42,-65,-77,-80,-66,-45,-21,12,18,15,3,-13,-26,-31,-30,-20,-11,-5,-4,-5,-2,6,14,18,15,7,1,3,10,13,11,2,-11,-26,-37,-38,-31,-15,-1,20,31,35,33,28,25,27,33,44,48,43,28,9,-7,-18,-24,-33,-41,-50,-50,-42,-25,-8,10,27,37,42,42,42,39,37,31,6,13,18,22,26,30,36,43,49,50,39,23,3,-11,-19,-24,-27,-31,-31,-30,-25,-21,-14,-3,16,36,50,58,56,50,39,28,-18,-22,-21,-17,-12,-7,-4,-1,-1,-3,-8,-13,-15,-9,0,10,19,26,32,34,30,12,-8,-21,-22,-13,-2,2,0,-6,-12,-12,-28,-37,-38,-36,-33,-33,-34,-40,-43,-47,-44,-36,-19,0,18,31,37,43,49,55,50,31,1,-27,-41,-47,-45,-47,-51,-55,-51,-42,-12,-14,-12,-8,-6,-7,-13,-22,-30,-33,-29,-16,1,16,22,14,0,-10,-8,6,17,16,6,-6,-15,-17,-20,-23,-29,-30,-28,-19,15,24,34,42,48,48,42,34,24,19,21,26,31,31,14,-16,-52,-76,-76,-59,-33,-9,10,24,37,45,50,49,46,41,36,33 },
{ -58,-64,-58,-43,-25,-5,11,19,20,8,-8,-19,-22,-14,-1,18,42,58,59,26,-30,-77,-90,-55,-3,35,45,24,-6,-29,-37,-28,-42,-45,-33,-19,-4,11,23,29,24,10,-8,-20,-18,-10,-4,-3,8,32,48,37,-8,-58,-69,-38,16,53,52,24,-13,-36,-36,-23,3,14,20,20,18,16,16,16,10,0,-10,-9,4,13,1,-29,-55,-41,-4,28,33,13,-2,5,25,34,24,1,-19,-19,-6,10,41,56,50,31,9,-7,-12,-12,-12,-14,-13,0,24,41,26,-18,-65,-78,-40,11,47,53,36,18,2,-11,-21,-27,-18,4,30,45,49,55,40,9,-20,-36,-38,-28,-19,-13,-11,-3,20,41,47,22,-17,-40,-34,-4,25,33,22,0,-25,-40,-45,-33,-11,20,46,52,27,26,6,-21,-41,-47,-33,-12,5,9,-2,-14,-13,6,31,47,39,19,-2,-12,-12,-9,-9,-15,-22,-27,-23,-13,3,18,25,22,2,-4,-19,-33,-38,-25,2,30,49,42,13,-25,-52,-46,-13,28,54,47,19,-13,-33,-33,-21,-4,11,19,21,18,10,-3,-18,-30,-10,-17,-22,-24,-14,9,40,67,79,66,24,-29,-70,-83,-56,-13,25,35,16,-11,-30,-30,-10,18,42,55,50,32,4,-27,-54,-69 },
{ 12,14,18,26,36,45,53,57,62,49,19,-23,-68,-85,-72,-34,-2,8,8,12,29,43,47,34,17,2,-12,-28,-51,-66,-69,-53,0,-5,-6,-3,2,8,13,21,29,32,19,-8,-39,-51,-28,8,29,18,-8,-19,-6,12,15,5,-6,-4,4,4,-12,-33,-43,-38,-14,-23,-30,-33,-36,-39,-43,-41,-31,-11,9,20,24,27,41,53,47,11,-27,-43,-37,-22,-21,-30,-32,-10,23,46,51,38,25,17,-8,-12,-13,-14,-19,-31,-45,-54,-50,-30,1,28,43,46,38,29,10,-11,-23,-21,-7,1,-7,-23,-29,-15,15,40,50,51,46,45,9,16,27,35,35,24,4,-14,-24,-16,1,14,14,-1,-21,-33,-36,-21,0,24,43,41,28,7,-9,-12,-10,-10,-14,-11,3,23,7,18,34,52,61,58,42,24,10,5,4,-1,-16,-38,-53,-55,-35,-7,20,36,39,35,25,18,10,-1,-19,-44,-64,-69,-43,-7,-21,-21,-9,9,25,31,28,20,13,8,4,-3,-14,-23,-24,-12,8,23,21,4,-17,-26,-19,1,21,25,11,-16,-44,-50,-32,2,-50,-66,-65,-53,-39,-28,-21,-16,-12,-6,0,5,10,19,32,46,54,46,12,-32,-69,-82,-60,-18,26,54,56,43,25,16,22,37 },
{ -14,-15,-20,-30,-44,-50,-41,-14,20,40,33,-1,-33,-26,22,69,75,22,-46,-73,-50,-2,20,4,-16,-14,10,34,42,27,4,-13,1,6,6,-3,-21,-36,-34,-12,27,55,44,-4,-54,-60,-3,63,73,18,-52,-70,-18,38,44,7,-31,-33,0,31,36,17,-10,-25,16,28,39,38,23,0,-16,-12,12,37,40,4,-51,-69,-36,17,34,-1,-38,-23,34,68,52,0,-42,-39,-10,12,8,-13,-29,-26,5,18,36,48,42,18,-11,-30,-23,3,27,26,-5,-33,-30,-10,-1,-12,-15,6,38,48,18,-19,-33,-18,6,9,-8,-27,-25,-5,-30,-25,-2,25,34,17,-17,-47,-55,-29,12,43,46,21,-1,-9,-10,-7,1,8,7,-9,-30,-32,-11,21,36,20,-8,-21,-3,33,-63,-69,-39,1,27,23,-7,-42,-57,-42,-2,38,53,41,13,-5,-5,4,13,7,-17,-43,-47,-27,15,48,46,18,-14,-19,14,62,-72,-77,-47,-1,37,46,25,-8,-31,-31,-11,13,23,12,-7,-14,-5,13,25,15,-11,-30,-30,-5,29,44,28,-8,-39,-35,7,59,-51,-55,-27,15,54,70,57,30,3,-11,-13,-12,-16,-27,-36,-32,-13,11,28,27,11,-3,-3,9,23,22,-4,-39,-61,-54,-11,38 },
{ 42,33,2,-32,-47,-30,5,33,34,7,-25,-34,-14,12,18,5,-2,7,14,4,-15,-15,6,21,8,-21,-31,-7,30,36,-2,-53,52,41,-3,-48,-62,-38,13,49,44,4,-39,-46,-10,26,22,-7,-21,0,21,8,-23,-26,9,37,17,-31,-50,-16,39,56,2,-71,54,40,-2,-41,-52,-22,25,53,42,-5,-44,-36,12,45,23,-27,-45,-5,35,18,-29,-36,9,49,33,-26,-61,-27,40,64,14,-68,43,34,1,-26,-29,-3,32,46,23,-20,-45,-21,35,61,19,-44,-56,1,53,32,-32,-51,-1,55,48,-13,-60,-39,27,63,25,-49,26,18,-2,-16,-13,6,28,27,0,-34,-45,-10,46,58,9,-53,-54,15,70,39,-36,-61,-14,49,58,1,-54,-46,8,48,31,-27,7,1,-10,-15,-8,8,19,12,-14,-39,-39,-5,39,44,-5,-55,-43,24,67,36,-36,-65,-23,39,52,10,-41,-47,-7,30,26,-11,-6,-11,-14,-12,-2,10,16,8,-11,-27,-25,2,30,26,-13,-46,-31,21,53,25,-31,-53,-23,26,43,14,-26,-36,-14,15,19,-3,-10,-13,-12,-6,5,16,20,16,3,-7,-5,10,23,16,-12,-32,-19,15,34,17,-19,-34,-13,21,34,17,-11,-22,-11,7,12,0 },
{ 68,69,52,21,-11,-32,-40,-29,-9,11,21,14,-3,-19,-25,-21,-11,8,36,57,51,4,-57,-85,-70,-14,40,56,39,1,-26,-32,51,49,28,0,-23,-37,-36,-23,-2,17,23,15,-3,-13,-11,-8,-11,-14,2,34,45,17,-34,-66,-44,7,48,53,23,-14,-33,-33,-1,-13,-21,-20,-13,-5,1,7,13,15,11,2,-6,1,21,29,7,-33,-52,-28,11,30,21,7,11,23,25,8,-16,-27,-18,-2,-44,-57,-44,-16,16,37,37,26,11,-1,-10,-18,-20,-3,29,52,33,-19,-60,-59,-17,26,46,44,30,9,-18,-40,-42,-20,17,42,-50,-52,-31,6,39,51,40,14,-8,-19,-21,-21,-25,-18,5,31,41,17,-17,-33,-22,5,24,25,11,-15,-41,-48,-33,6,46,63,-22,-18,1,23,36,31,7,-20,-32,-24,-2,10,0,-22,-32,-18,14,37,35,15,-6,-17,-16,-12,-10,-15,-18,-15,0,23,37,38,8,15,23,24,15,-7,-35,-50,-43,-7,37,58,42,-7,-52,-59,-25,24,52,40,7,-25,-38,-28,-8,13,25,26,22,8,-10,-26,21,29,27,15,-7,-35,-55,-56,-31,16,64,86,66,13,-44,-67,-44,1,34,35,8,-20,-31,-18,10,38,49,41,15,-22,-58,-82 },
{ 18,22,30,40,54,59,55,31,-3,-40,-72,-80,-70,-37,4,36,54,47,31,13,0,-13,-31,-47,-54,-43,-21,8,36,53,61,53,0,-7,-8,-2,10,22,26,20,4,-15,-28,-31,-20,-5,9,18,13,1,-10,-8,3,10,5,-5,-11,-12,-7,0,9,19,27,29,-16,-32,-46,-50,-48,-36,-22,-7,9,25,43,54,55,33,6,-18,-39,-46,-43,-23,5,27,39,42,42,32,15,-10,-35,-43,-38,-25,0,-9,-21,-31,-38,-40,-33,-21,-1,25,49,62,51,20,-13,-28,-26,-17,-9,-5,0,5,10,17,24,29,20,-3,-31,-50,-50,-40,30,35,35,28,18,6,-6,-15,-18,-11,-1,1,-11,-27,-33,-11,25,47,44,19,-6,-25,-37,-39,-31,-10,10,18,16,7,0,-4,28,38,45,50,50,42,23,1,-21,-35,-39,-43,-45,-43,-24,10,44,58,39,13,-6,-18,-29,-42,-44,-30,-3,25,44,51,44,32,-14,-16,-8,8,23,29,25,11,-5,-18,-24,-20,-14,-3,8,15,13,-4,-23,-24,-3,21,29,15,-7,-18,-15,-1,16,25,27,20,-57,-74,-70,-53,-30,-8,5,10,12,15,21,33,45,50,38,11,-29,-65,-77,-54,-2,50,74,66,34,0,-25,-38,-39,-35,-28,-25 },
{ 34,29,16,5,7,10,2,-18,-39,-29,11,46,38,-19,-63,-32,50,89,48,-29,-59,-25,22,30,5,-16,-10,12,24,17,1,-9,25,15,-5,-14,-3,15,16,-8,-41,-43,4,59,53,-19,-83,-60,38,89,28,-59,-71,-10,47,43,-8,-39,-22,12,27,13,-10,-16,8,-8,-31,-36,-14,21,40,21,-21,-43,-14,41,59,4,-61,-54,14,43,-6,-59,-41,28,65,30,-29,-47,-19,16,20,-4,-21,-15,7,-10,-35,-43,-18,26,57,49,3,-40,-38,6,41,29,-10,-19,7,11,-19,-32,5,50,46,-2,-42,-34,8,30,12,-18,-22,2,29,15,-17,-37,-26,13,50,53,17,-32,-54,-29,14,32,23,10,8,-1,-14,-2,27,31,1,-37,-41,0,42,40,2,-31,-17,30,54,47,7,-31,-40,-17,21,39,22,-16,-44,-39,-8,17,18,9,-2,-8,-6,10,18,0,-34,-50,-20,30,55,33,-18,-46,-12,53,66,61,22,-27,-53,-42,-8,21,28,9,-13,-19,-9,1,0,-6,-13,-11,-1,12,11,-11,-35,-31,4,40,45,7,-44,-56,-9,62,54,55,21,-22,-50,-49,-20,13,32,32,20,11,6,1,-6,-12,-12,-4,8,19,16,1,-11,-5,18,34,21,-17,-54,-55,-6,57 },
{ -39,-21,21,52,45,2,-44,-55,-29,13,30,3,-38,-56,-49,-29,-16,-8,-4,-14,-34,-40,-24,-4,-8,-30,-41,-17,22,37,16,-21,-52,-27,31,74,62,7,-48,-60,-15,43,61,29,-16,-24,4,20,16,16,24,20,-4,-16,8,39,29,-15,-41,-20,28,48,13,-40,-63,-39,16,55,47,-2,-46,-44,2,51,55,14,-15,10,55,53,9,-8,20,39,15,-8,14,53,55,8,-32,-22,20,37,3,-50,-57,-44,-2,26,18,-18,-42,-30,11,34,10,-41,-54,-4,50,27,-51,-75,-16,29,4,-41,-33,15,35,7,-30,-30,4,25,3,-41,-36,-24,1,15,4,-18,-27,-6,25,25,-18,-71,-77,-11,45,12,-73,-83,-11,44,12,-53,-68,-23,16,9,-21,-28,-5,18,14,-12,-3,7,19,19,5,-10,-7,18,44,40,-2,-48,-43,18,64,37,-28,-32,35,81,45,-26,-49,-15,26,26,-1,-18,-9,13,23,15,18,25,26,13,-6,-18,-11,15,40,40,13,-16,-11,31,60,36,-9,-9,36,64,41,-8,-23,7,40,38,10,-15,-20,-3,16,23,16,19,11,-7,-29,-42,-36,-15,7,11,-2,-18,-16,3,11,-11,-42,-47,-22,-3,-12,-29,-26,1,26,24,0,-24,-32,-21,0,14 },
{ 2,6,20,32,31,16,-1,-4,10,28,36,28,25,36,57,70,77,74,75,66,49,35,40,51,54,38,19,11,16,19,11,-4,-17,-15,3,20,17,-4,-26,-31,-13,10,10,-13,-34,-31,-16,-14,-29,-35,-23,-16,-29,-41,-29,-5,5,-7,-23,-20,-1,14,8,-11,-34,-34,-13,6,7,-13,-34,-35,-15,6,2,-29,-56,-50,-36,-47,-81,-89,-62,-36,-44,-60,-54,-31,-19,-31,-45,-35,-9,9,2,-18,-31,-28,-5,17,19,4,-12,-9,11,32,28,5,-6,21,53,49,12,2,34,65,50,20,10,23,27,11,-9,-9,8,20,7,-15,-15,-7,13,28,29,14,1,3,20,35,31,10,8,43,85,82,51,37,62,83,70,35,25,38,50,37,18,10,17,22,11,-9,-4,2,13,18,12,-3,-16,-16,-3,6,-5,-30,-42,-25,-1,-7,-39,-54,-36,-19,-28,-46,-42,-19,4,7,-4,-9,-3,4,2,-7,0,0,4,1,-8,-21,-27,-23,-11,-3,-12,-35,-53,-49,-40,-45,-66,-71,-58,-46,-52,-59,-56,-37,-19,-15,-21,-24,-18,-8,-2,-3,1,3,3,1,-6,-10,-8,2,20,33,33,24,17,23,35,41,39,42,52,58,49,37,31,28,24,15,2,-6,-5,3,10,11 },
{ -62,-62,-41,-5,28,42,36,9,-18,-27,-13,15,35,31,12,-8,-20,-18,-5,26,63,64,25,-36,-73,-49,6,50,55,16,-32,-57,-47,-44,-19,10,32,40,26,1,-24,-31,-14,11,22,11,-8,-12,-7,-9,-19,-15,15,37,18,-28,-56,-39,12,52,47,10,-34,-57,3,13,18,15,9,0,-8,-14,-17,-10,1,7,-4,-25,-28,-3,30,27,-15,-54,-53,-15,14,16,6,1,6,9,5,-5,-13,-11,44,52,33,2,-27,-41,-32,-12,9,21,21,12,-9,-31,-27,6,47,57,16,-35,-51,-25,19,49,48,23,-12,-38,-40,-16,21,47,47,44,18,-19,-46,-46,-24,8,32,33,22,8,-1,-5,-10,-5,11,22,26,14,-3,-7,7,28,36,14,-23,-51,-51,-12,42,73,18,12,-8,-29,-34,-20,8,31,32,12,-11,-16,4,24,15,-20,-51,-42,3,40,34,1,-27,-27,-9,2,-4,-18,-20,-2,25,47,-10,-17,-22,-20,-5,19,40,39,13,-29,-57,-44,7,52,49,-7,-68,-66,-10,43,46,0,-47,-56,-29,11,34,30,15,-3,-16,-18,-20,-25,-18,-1,22,46,52,34,-10,-58,-79,-55,9,66,72,26,-29,-39,1,41,40,4,-34,-42,-12,31,57,55,25,-15,-52,-71 },
{ -19,-26,-38,-48,-54,-42,-15,21,57,74,73,44,2,-38,-60,-47,-17,16,42,52,57,43,14,-24,-53,-55,-40,-12,21,46,59,51,6,6,-2,-13,-20,-20,-9,5,15,20,17,8,-6,-18,-17,-6,5,4,-5,-11,-6,5,8,-2,-10,-11,-9,-6,2,17,28,28,31,39,43,37,32,21,6,-16,-43,-57,-56,-35,-7,22,45,46,29,-7,-43,-61,-60,-30,1,25,46,49,34,2,-28,-40,-37,-27,13,20,25,28,30,29,17,-6,-35,-54,-47,-22,11,33,35,24,7,-4,-6,-7,-9,-5,-1,5,20,37,32,9,-21,-43,-48,-43,-23,-29,-30,-23,-12,4,15,17,15,12,17,24,23,3,-24,-39,-32,3,41,58,53,27,-8,-35,-43,-24,0,14,17,14,6,-6,-30,-42,-47,-46,-36,-18,3,23,37,47,46,37,9,-28,-51,-54,-31,0,24,35,29,16,-7,-35,-51,-48,-23,8,35,53,48,31,6,5,-2,-10,-14,-13,-8,1,10,13,13,3,-12,-21,-13,7,19,6,-22,-41,-37,-10,15,21,7,-11,-19,-13,4,22,28,18,46,59,55,42,24,5,-12,-25,-33,-37,-35,-31,-18,6,41,71,69,27,-35,-73,-63,-14,43,74,67,35,-5,-33,-42,-37,-29,-25 },
{ 19,18,17,16,14,2,-22,-38,-29,11,48,33,-26,-55,-6,72,79,-14,-92,-58,28,63,25,-27,-34,-1,22,9,-17,-22,-4,13,5,0,-2,4,13,12,-9,-36,-34,6,51,46,-28,-84,-32,70,82,-16,-92,-48,50,73,5,-50,-32,18,37,12,-22,-24,2,21,-11,-21,-25,-13,9,26,19,-8,-28,-12,29,43,-3,-59,-48,21,46,-6,-40,3,52,27,-36,-52,-8,37,36,1,-24,-12,12,17,-5,-18,-28,-22,3,32,39,16,-21,-35,-7,33,36,0,-28,-20,-4,0,13,35,23,-25,-52,-25,25,39,8,-21,-21,4,16,2,23,12,-12,-25,-11,18,39,26,-13,-46,-41,7,51,45,5,-31,-34,-4,30,29,-7,-40,-29,21,48,17,-30,-39,-10,24,20,-21,53,44,5,-30,-35,-10,24,33,5,-35,-50,-23,25,45,18,-18,-25,-3,16,7,-19,-26,8,50,38,-14,-53,-39,13,45,17,-42,63,53,9,-38,-55,-30,13,40,34,-1,-33,-33,-9,11,10,-3,-4,6,7,-7,-23,-11,25,42,16,-32,-51,-17,37,55,14,-54,46,41,1,-41,-57,-36,9,46,53,31,-3,-22,-20,-11,0,5,12,16,6,-11,-19,-7,15,19,-5,-32,-31,3,43,50,6,-54 },
{ -18,-16,-13,-13,-20,-26,-30,-28,-28,-32,-41,-52,-64,-62,-54,-38,-22,-6,8,21,35,45,52,55,62,69,72,61,42,24,17,18,-5,3,11,14,10,6,6,12,18,21,22,20,19,21,23,23,18,9,-3,-11,-14,-20,-26,-36,-34,-22,-8,-8,-17,-22,-9,7,6,16,23,22,18,16,19,25,32,34,39,46,56,56,50,37,22,5,-13,-25,-31,-36,-46,-60,-72,-66,-52,-45,-47,-40,-21,-1,-1,1,-1,-7,-13,-16,-14,-12,-14,-23,-29,-26,-19,-22,-29,-33,-24,-10,2,8,21,37,46,43,28,22,24,22,11,5,7,13,-8,-11,-16,-22,-26,-25,-20,-18,-26,-40,-52,-50,-46,-47,-55,-49,-24,5,19,17,22,40,63,67,61,55,55,52,42,28,19,14,2,3,3,1,3,10,19,26,22,14,10,18,30,34,25,18,25,31,13,-20,-44,-47,-35,-34,-35,-32,-21,-10,-5,-7,-11,-11,11,14,14,13,16,21,28,35,35,32,34,43,57,58,46,30,23,16,0,-25,-45,-48,-49,-54,-63,-61,-52,-38,-27,-22,-23,-20,0,-1,-6,-11,-16,-18,-19,-21,-26,-32,-35,-32,-27,-29,-40,-45,-38,-22,0,20,40,56,62,56,43,30,25,25,24,18,12,7 },
{ -22,-3,27,37,15,-24,-41,-15,31,47,17,-25,-29,8,32,21,10,13,1,-28,-25,16,33,-5,-43,-26,19,31,-2,-38,-27,21,-36,-11,34,53,20,-33,-55,-27,32,53,7,-46,-36,17,28,-12,-25,15,22,-27,-36,25,55,4,-52,-29,39,58,4,-49,-28,39,-51,-25,24,46,19,-29,-51,-20,31,39,-11,-52,-18,43,26,-53,-63,25,58,-13,-56,10,63,14,-51,-29,41,59,5,-48,-25,52,-51,-31,14,36,17,-18,-30,-2,34,28,-22,-47,7,72,36,-62,-66,45,83,-10,-76,-14,56,23,-46,-40,20,43,-1,-51,-26,49,-37,-20,12,26,12,-13,-16,9,34,17,-30,-44,11,69,38,-51,-53,48,79,-17,-82,-19,56,30,-38,-45,3,31,1,-40,-28,34,-16,-4,12,16,1,-17,-13,11,29,13,-28,-43,-5,40,20,-43,-37,31,45,-22,-58,-2,57,35,-26,-39,4,38,19,-20,-21,15,3,11,14,6,-12,-24,-16,8,26,14,-17,-32,-13,16,9,-24,-22,13,17,-19,-31,11,47,24,-22,-30,5,37,30,-3,-17,-3,10,16,13,-1,-18,-25,-15,6,23,20,2,-12,-2,13,13,0,0,11,7,-11,-13,8,20,0,-30,-33,-5,22,21,-1,-17,-13 },
{ -59,-56,-33,0,26,31,20,2,-3,9,29,31,7,-26,-40,-15,24,46,49,27,-15,-64,-85,-38,38,72,49,-11,-54,-43,-1,36,-41,-31,-5,20,31,24,0,-20,-22,-8,14,25,8,-18,-24,-9,5,-1,-3,19,28,-2,-37,-30,21,54,34,-14,-46,-35,11,48,5,19,29,24,9,-10,-25,-30,-26,-16,-5,1,0,0,15,23,-4,-52,-73,-20,58,74,35,-12,-27,-14,-3,-3,-5,3,16,26,32,42,29,2,-23,-32,-20,-2,13,11,-3,-14,-12,4,28,44,26,-21,-57,-44,15,56,39,-8,-50,-51,-17,18,32,24,-1,-20,24,21,1,-26,-41,-27,7,39,53,30,-1,-20,-19,-6,-2,8,35,45,22,-23,-42,-17,6,3,-20,-24,-1,27,39,17,-27,-57,0,-8,-21,-34,-31,-8,26,49,41,11,-19,-20,3,3,-33,-59,-18,53,71,13,-51,-54,-7,32,33,15,6,12,16,4,-27,-51,-6,-9,-12,-11,-2,14,26,20,-7,-38,-45,-6,49,50,-15,-79,-67,14,64,31,-29,-39,1,42,46,12,-18,-23,-9,8,9,2,4,9,12,15,22,25,15,-12,-49,-73,-51,11,82,96,33,-44,-59,-13,30,24,-9,-20,3,22,11,-22,-49,-49,-20,19,46,51 },
{ -1,-10,-25,-37,-37,-18,14,47,73,64,30,-19,-60,-61,-29,21,58,52,17,-27,-48,-42,-27,-10,5,23,40,43,27,-12,-59,-81,17,11,-3,-17,-21,-16,-1,13,20,15,-1,-16,-20,-14,0,12,16,8,-8,-16,-1,13,12,3,-10,-15,-2,15,22,8,-28,-55,25,27,24,18,13,5,-9,-28,-48,-50,-31,8,47,53,27,-14,-46,-46,-23,15,47,49,36,16,-12,-38,-49,-32,5,36,41,21,3,6,12,20,25,21,5,-20,-42,-46,-18,23,51,44,6,-25,-33,-20,7,23,11,-14,-16,6,19,3,-30,-44,-20,28,57,56,-26,-29,-21,-7,8,18,19,12,8,10,17,16,-3,-31,-37,-7,27,37,32,8,-31,-64,-60,-7,50,57,23,-23,-41,-18,10,19,-29,-35,-30,-21,-8,2,11,21,33,40,29,-2,-46,-68,-37,23,50,31,1,-4,-5,-22,-29,-11,28,54,43,7,-27,-39,-33,-28,3,5,3,-3,-9,-14,-14,-5,9,18,14,-8,-34,-29,10,44,23,-35,-58,-13,49,59,19,-23,-35,-10,18,25,13,-4,-20,-31,40,50,43,27,4,-18,-32,-34,-25,-12,0,4,8,27,54,51,-8,-78,-84,-16,68,90,33,-42,-80,-66,-18,26,45,40,20,-3 },
{ 22,22,27,33,43,45,46,45,50,54,58,50,43,26,0,-30,-51,-56,-57,-47,-32,-11,6,23,38,48,59,58,51,39,30,19,-9,-19,-20,-15,-11,-15,-23,-30,-30,-25,-23,-22,-17,-7,-1,5,15,31,33,26,17,9,-5,-16,-23,-25,-20,-17,-18,-14,-6,-1,-25,-33,-33,-28,-28,-33,-41,-48,-50,-45,-46,-46,-40,-19,5,23,42,56,55,35,23,12,-3,-23,-37,-46,-50,-49,-50,-41,-27,-13,3,7,15,23,26,26,23,24,28,35,30,21,14,14,6,-10,-30,-38,-42,-44,-28,-7,13,23,26,32,30,24,16,11,5,4,20,26,34,37,37,36,38,41,51,56,53,40,32,19,0,-21,-42,-46,-42,-36,-24,-7,11,24,36,45,51,49,48,38,26,15,-5,-9,-11,-16,-23,-30,-32,-30,-23,-20,-24,-28,-19,-11,-4,8,24,45,50,45,27,5,-13,-26,-33,-35,-31,-24,-13,-6,-6,-3,-16,-22,-27,-33,-39,-41,-44,-43,-45,-47,-52,-47,-32,-15,1,15,31,41,46,35,22,4,-15,-29,-39,-44,-49,-46,-39,-29,-22,-14,9,14,19,25,29,36,41,43,40,34,29,28,29,24,8,-12,-34,-49,-55,-47,-29,-6,17,37,48,49,40,29,20,15,9,6 },
{ -11,-16,-17,-9,6,25,40,33,0,-30,-31,8,44,11,-59,-62,26,81,17,-83,-74,37,97,47,-22,-37,-18,-7,-18,-23,-8,14,1,-2,-9,-14,-8,6,21,21,-5,-39,-36,10,58,36,-46,-69,29,97,18,-89,-61,42,65,-6,-56,-24,27,31,-2,-19,-2,23,18,19,9,-9,-23,-23,-10,4,5,-12,-24,-4,35,38,-8,-37,-1,34,6,-26,6,35,-6,-64,-56,18,67,46,-1,-17,1,19,15,22,20,6,-12,-25,-17,7,31,28,-5,-30,-19,14,25,4,-24,-34,-16,25,53,28,-33,-51,-5,44,40,-1,-33,-26,-2,4,-10,-1,12,18,7,-11,-17,4,37,43,9,-41,-57,-11,40,36,-14,-45,-19,28,36,-5,-32,-1,43,37,-15,-53,-43,1,17,-9,-42,-34,-2,22,21,-3,-26,-21,8,30,20,-18,-41,-16,28,40,4,-16,1,14,-10,-42,-25,31,53,11,-49,-57,0,56,43,-20,-51,-39,-1,32,36,5,-32,-43,-24,11,31,19,-6,-10,1,4,-2,3,18,11,-21,-39,-13,33,34,-13,-53,-28,40,76,34,-51,-31,-19,15,43,44,15,-25,-44,-32,1,32,36,15,-8,-22,-28,-19,3,21,17,0,-10,6,27,14,-21,-38,-13,35,49,-5,-81 },
{ 20,21,27,37,45,42,36,29,33,41,33,2,-34,-52,-53,-49,-53,-27,23,55,54,38,29,23,7,-28,-59,-65,-57,-43,-38,-28,-9,-18,-19,-12,-6,-11,-24,-34,-27,-5,9,3,-5,8,41,50,17,-8,-6,-5,-28,-43,-26,4,21,17,11,17,26,24,7,-4,-23,-33,-36,-30,-26,-29,-39,-46,-45,-27,-6,2,6,30,65,66,31,-5,-18,-24,-45,-51,-36,-9,8,19,35,51,64,53,32,17,10,11,13,18,24,28,27,22,18,17,14,4,-16,-33,-34,-36,-38,-22,13,40,44,40,28,10,-14,-33,-30,-22,-17,-19,-17,-4,29,30,28,28,32,38,43,39,34,26,19,10,-14,-41,-58,-50,-30,-3,19,28,37,42,36,15,-9,-30,-38,-42,-54,-57,-42,-10,6,-4,-19,-28,-29,-24,-18,-18,-22,-26,-16,2,20,28,31,42,45,30,-8,-49,-60,-47,-20,-2,12,24,39,37,20,3,5,23,-3,-14,-34,-45,-46,-36,-29,-27,-35,-39,-30,-6,25,40,40,36,33,19,-12,-40,-48,-35,-23,-9,3,23,50,55,47,30,26,29,19,22,17,14,24,38,47,44,31,14,5,4,-1,-19,-45,-63,-53,-22,15,44,65,67,37,-3,-35,-45,-35,-29,-31,-30,-21,-11 },
}
},
...
9,3,23,50,55,47,30,26,29,19,22,17,14,24,38,47,44,31,14,5,4,-1,-19,-45,-63,-53,-22,15,44,65,67,37,-3,-35,-45,-35,-29,-31,-30,-21,-11 },
}
},
도 4를 참조하면, 현재 블록의 레지듀얼 샘플을 기반으로 현재 블록을 복원할 수 있다(S420).
현재 블록의 인트라 예측 모드를 기반으로 현재 블록의 예측 샘플을 유도할 수 있다. 현재 블록의 예측 샘플과 레지듀얼 샘플을 기반으로, 현재 블록의 복원 샘플을 생성할 수 있다.
도 6은 본 개시에 따른 영상 디코딩 방법을 수행하는 디코딩 장치 (300)의 개략적인 구성을 도시한 것이다.
도 6을 참조하면, 본 개시에 따른 디코딩 장치(300)는, 변환 계수 유도부(600), 레지듀얼 샘플 유도부(610), 복원 블록 생성부(620)를 포함할 수 있다. 변환 계수 유도부(600)는 도 3의 엔트로피 디코딩부(310)에 구성될 수 있고, 레지듀얼 샘플 유도부(610)는 도 3의 레지듀얼 처리부(320)에 구성될 수 있고, 복원 블록 생성부(620)는 도 3의 가산부(340)에 구성될 수 있다.
변환 계수 유도부(600)는, 비트스트림으로부터 현재 블록의 레지듀얼 정보를 획득하고, 이를 복호화하여 현재 블록의 변환 계수를 유도할 수 있다.
레지듀얼 샘플 유도부(610)는, 현재 블록의 변환 계수에 역양자화 또는 역변환 중 적어도 하나를 수행하여, 현재 블록의 레지듀얼 샘플을 유도할 수 있다.
레지듀얼 샘플 유도부(610)는, 소정의 변환 커널 결정 방법을 통해 현재 블록의 역변환을 위한 변환 커널을 결정하고, 이를 기반으로 현재 블록의 레지듀얼 샘플을 유도할 수 있다. 이에 대해서는 도 4를 참조하여 살펴본 바와 같으며, 여기서 자세한 설명은 생략하기로 한다.
복원 블록 생성부(620)는, 현재 블록의 레지듀얼 샘플을 기반으로 현재 블록을 복원할 수 있다.
도 7은 본 개시에 따른 일실시예로서, 인코딩 장치(200)에 의해 수행되는 영상 인코딩 방법을 도시한 것이다.
도 7을 참조하면, 현재 블록의 레지듀얼 샘플(residual samples)을 유도할 수 있다(S700).
현재 블록의 레지듀얼 샘플은, 현재 블록의 원본 샘플(original samples)에서 예측 샘플(prediction samples)을 차분하여 유도될 수 있다. 여기서, 예측 샘플은, 소정의 인트라 예측 모드에 기초하여 유도된 것일 수 있다.
도 7을 참조하면, 현재 블록의 레지듀얼 샘플에 변환 또는 양자화 중 적어도 하나를 수행하여 현재 블록의 변환 계수(transform coefficients)를 유도할 수 있다(S710).
본 개시에 따른 변환 방법은 도 4를 참조하여 살펴본 역변환의 역과정으로 이해될 수 있다. 상기 변환을 위한 변환 커널을 결정하는 방법은 도 4를 참조하여 살펴본 바와 같다. 여기서 자세한 설명은 생략하기로 한다.
예를 들어, 현재 블록의 변환을 위한 하나 또는 그 이상의 변환 세트가 정의/구성될 수 있고, 각 변환 세트는 하나 또는 그 이상의 변환 커널 후보를 포함할 수 있다. 이때, 복수의 변환 세트로부터 어느 하나가 현재 블록의 변환 세트로 선택될 수 있다. 현재 블록의 변환 세트에 속한 복수의 변환 커널 후보 중 어느 하나가 선택될 수 있다. 상기 선택은, 현재 블록의 컨텍스트를 기반으로 묵시적으로 수행될 수 있다. 또는, 현재 블록을 위한 최적의 변환 세트 및/또는 변환 커널 후보를 선택하고, 이를 지시하는 인덱스가 시그날링될 수도 있다.
또는, 현재 블록의 변환 커널은 MTS 세트를 기반으로 결정될 수 있다. 현재 블록의 크기 또는 인트라 예측 모드 중 적어도 하나를 기반으로, 복수의 MTS 세트 중 어느 하나가 선택될 수 있다. 선택된 MTS 세트는 하나 또는 그 이상의 변환 커널 후보를 포함할 수 있다. 상기 하나 또는 그 이상의 변환 커널 후보 중 어느 하나가 선택될 수 있고, 선택된 변환 커널 후보를 기반으로 현재 블록의 변환 커널이 결정될 수 있다. 상기 변환 커널 후보의 선택은, 현재 블록의 컨텍스트를 기반으로 유도된 변환 커널 후보 인덱스를 이용하여 수행될 수 있다. 또는, 현재 블록을 위한 최적의 변환 커널 후보가 선택되고, 선택된 변환 커널 후보를 지시하는 변환 커널 후보 인덱스가 시그날링될 수도 있다.
또는, 현재 블록의 변환 커널은 비분리 일차 변환(NSPT) 커널을 기반으로 결정될 수 있다. 현재 블록의 크기가 NSPT가 적용될 수 있는 블록 크기의 집합인 제1 그룹에 속하는 경우, 현재 블록에 대해 순방향의 NSPT가 적용될 수 있고, 현재 블록의 크기가 제2 그룹에 속하는 경우, 현재 블록에 대해 순방향의 NSPT가 적용되지 않을 수 있다. 현재 블록의 크기가 제2 그룹에 속하는 경우, 현재 블록의 레지듀얼 샘플에 순방향의 분리 일차 변환(e.g., DCT-2)을 적용하여 변환 계수들을 유도할 수 있다. 상기 분리 일차 변환을 통해 유도된 변환 계수들 전부 또는 일부에 대해 순방향의 LFNST가 추가적으로 적용될 수도 있다.
또한, 상기 NSPT는 현재 블록의 트리 타입 또는 성분 타입 중 적어도 하나에 기초하여 적용될 수 있다. 상기 NSPT를 위한 NSPT 커널(또는, NSPT 행렬)은, 인트라 예측 모드 간의 대칭성 또는 블록 형태 간의 대칭성을 이용하여 결정될 수 있다. MxN의 현재 블록에 대해 순방향의 NSPT가 적용되는 경우, NSPT 커널은 r x MN으로 표현될 수 있다. 여기서 r은 NSPT의 출력 길이 또는 NSPT에 의해 생성되는 변환 계수의 개수를 의미하고, MN은 현재 블록의 너비와 높이의 곱으로서, NSPT의 입력 길이 또는 NSPT가 적용되는 레지듀얼 샘플의 개수를 의미할 수 있다. 이러한 NSPT 커널의 크기를 결정하는 방법에 대해서는 도 4를 참조하여 살펴본 바와 같다.
변환을 위한 LFNST 인덱스 및/또는 NSPT 인덱스는 통합된 하나의 신택스로 부호화될 수도 있고, LFNST 인덱스와 NSPT 인덱스가 각각 부호화되어 비트스트림에 삽입될 수도 있다. LFNST 인덱스와 NSPT 인덱스에 대한 이진화, 그리고 CABAC 컨텍스트와 초기 값의 할당에 대해서는 도 4를 참조하여 살펴본 바와 같다.
또한, 도 4를 참조하여 변환 인덱스를 시그날링하는 방법을 살펴보았으며, 이는 변환을 변환 인덱스를 부호화하는 방법에도 동일하게 적용될 수 있다.
도 7을 참조하면, 현재 블록의 변환 계수를 부호화하여 비트스트림을 생성할 수 있다(S720).
상기 현재 블록의 변환 계수를 기반으로, 상기 변환 계수에 관한 레지듀얼 정보가 생성될 수 있고, 레지듀얼 정보를 부호화하여 비트스트림이 생성될 수 있다.
도 8은 본 개시에 따른 영상 인코딩 방법을 수행하는 인코딩 장치(200)의 개략적인 구성을 도시한 것이다.
도 8을 참조하면, 본 개시에 따른 인코딩 장치(200)는, 래지듀얼 샘플 유도부(800), 변환 계수 유도부(810) 및 변환 계수 인코딩부(820)를 포함할 수 있다. 레지듀얼 샘플 유도부(800)와 변환 계수 유도부(810)는 도 2의 레지듀얼 처리부(230)에 구성될 수 있고, 변환 계수 인코딩부(820)는 도 2의 엔트로피 인코딩부(240)에 구성될 수 있다.
레지듀얼 샘플 유도부(800)는, 현재 블록의 원본 샘플에서 예측 샘플을 차분하여 현재 블록의 레지듀얼 샘플을 유도할 수 있다. 여기서, 예측 샘플은, 소정의 인트라 예측 모드에 기초하여 유도된 것일 수 있다.
변환 계수 유도부(810)는, 현재 블록의 레지듀얼 샘플에 변환 또는 양자화 중 적어도 하나를 수행하여 현재 블록의 변환 계수를 유도할 수 있다. 변환 계수 유도부(810)는, 전술한 실시예 1 내지 3 중 적어도 하나에 기초하여 현재 블록의 변환 커널을 결정하고, 현재 블록의 레지듀얼 샘플에 상기 변환 커널을 적용하여 변환 계수를 유도할 수 있다.
변환 계수 인코딩부(820)는, 현재 블록의 변환 계수를 부호화하여 비트스트림을 생성할 수 있다.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 해당 실시예는 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 문서의 실시예들의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.
상술한 본 문서의 실시예들에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 문서에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.
본 문서에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다. 즉, 본 문서에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 이 경우 구현을 위한 정보(ex. information on instructions) 또는 알고리즘이 디지털 저장 매체에 저장될 수 있다.
또한, 본 명세서의 실시예(들)이 적용되는 디코딩 장치 및 인코딩 장치는 멀티미디어 방송 송수신 장치, 모바일 통신 단말, 홈 시네마 비디오 장치, 디지털 시네마 비디오 장치, 감시용 카메라, 비디오 대화 장치, 비디오 통신과 같은 실시간 통신 장치, 모바일 스트리밍 장치, 저장 매체, 캠코더, 주문형 비디오(VoD) 서비스 제공 장치, OTT 비디오(Over the top video) 장치, 인터넷 스트리밍 서비스 제공 장치, 3차원(3D) 비디오 장치, VR(virtual reality) 장치, AR(argumente reality) 장치, 화상 전화 비디오 장치, 운송 수단 단말 (ex. 차량(자율주행차량 포함) 단말, 비행기 단말, 선박 단말 등) 및 의료용 비디오 장치 등에 포함될 수 있으며, 비디오 신호 또는 데이터 신호를 처리하기 위해 사용될 수 있다. 예를 들어, OTT 비디오(Over the top video) 장치로는 게임 콘솔, 블루레이 플레이어, 인터넷 접속 TV, 홈시어터 시스템, 스마트폰, 태블릿 PC, DVR(Digital Video Recorder) 등을 포함할 수 있다.
또한, 본 명세서의 실시예(들)이 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 명세서의 실시예(들)에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.
또한, 본 명세서의 실시예(들)는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 명세서의 실시예(들)에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.
도 9는 본 개시의 실시예들이 적용될 수 있는 컨텐츠 스트리밍 시스템의 예를 나타낸다.
도 9를 참조하면, 본 명세서의 실시예(들)이 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버, 스트리밍 서버, 웹 서버, 미디어 저장소, 사용자 장치 및 멀티미디어 입력 장치를 포함할 수 있다.
상기 인코딩 서버는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 상기 스트리밍 서버로 전송하는 역할을 한다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들이 비트스트림을 직접 생성하는 경우, 상기 인코딩 서버는 생략될 수 있다.
상기 비트스트림은 본 명세서의 실시예(들)이 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 상기 스트리밍 서버는 상기 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 상기 비트스트림을 저장할 수 있다.
상기 스트리밍 서버는 웹 서버를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치에 전송하고, 상기 웹 서버는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 상기 웹 서버에 원하는 서비스를 요청하면, 상기 웹 서버는 이를 스트리밍 서버에 전달하고, 상기 스트리밍 서버는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 상기 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 상기 제어 서버는 상기 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.
상기 스트리밍 서버는 미디어 저장소 및/또는 인코딩 서버로부터 컨텐츠를 수신할 수 있다. 예를 들어, 상기 인코딩 서버로부터 컨텐츠를 수신하게 되는 경우, 상기 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 상기 스트리밍 서버는 상기 비트스트림을 일정 시간동안 저장할 수 있다.
상기 사용자 장치의 예로는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기 (smartwatch), 글래스형 단말기 (smart glass), HMD(head mounted display)), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지 등이 있을 수 있다.
상기 컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.
본 명세서에 기재된 청구항들은 다양한 방식으로 조합될 수 있다. 예를 들어, 본 명세서의 방법 청구항의 기술적 특징이 조합되어 장치로 구현될 수 있고, 본 명세서의 장치 청구항의 기술적 특징이 조합되어 방법으로 구현될 수 있다. 또한, 본 명세서의 방법 청구항의 기술적 특징과 장치 청구항의 기술적 특징이 조합되어 장치로 구현될 수 있고, 본 명세서의 방법 청구항의 기술적 특징과 장치 청구항의 기술적 특징이 조합되어 방법으로 구현될 수 있다.

Claims (12)

  1. 비트스트림으로부터 현재 블록의 변환 계수들을 유도하는 단계;
    상기 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하는 단계;
    상기 NSPT 세트와 변환 인덱스를 기반으로 상기 현재 블록의 NSPT 커널을 결정하는 단계; 여기서, 상기 변환 인덱스는 상기 NSPT 세트에 속한 복수의 NSPT 커널 후보들 중 어느 하나를 특정함,
    상기 NSPT 커널을 기반으로 상기 현재 블록의 변환 계수들에 대해 NSPT를 수행하여, 상기 현재 블록의 레지듀얼 샘플들을 유도하는 단계; 및
    상기 레지듀얼 샘플들을 기반으로 상기 현재 블록을 복원하는 단계를 포함하고,
    상기 NSPT는, 상기 현재 블록의 크기가 상기 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용되는, 영상 디코딩 방법.
  2. 제1항에 있어서,
    상기 NSPT 세트는 기-정의된 35개의 NSPT 세트들 중 어느 하나로 결정되는, 영상 디코딩 방법.
  3. 제1항에 있어서,
    상기 NSPT 세트는 3개의 NSPT 커널 후보들을 포함하는, 영상 디코딩 방법.
  4. 제1항에 있어서,
    상기 그룹은, 4x4, 4x8, 8x4, 8x8, 16x8, 8x16, 16x4, 4x16, 8x32, 또는 32x8 중 적어도 하나의 블록 크기를 포함하는, 영상 디코딩 방법.
  5. 제1항에 있어서,
    상기 현재 블록의 크기가 8x32 또는 32x8인 것에 기초하여, 상기 NSPT가 적용되는 변환 계수들의 개수는 48보다 작거나 같은, 영상 디코딩 방법.
  6. 현재 블록의 레지듀얼 샘플들을 유도하는 단계;
    상기 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하는 단계;
    상기 NSPT 세트로에 속한 복수의 NSPT 커널 후보들 중 어느 하나를 기반으로 상기 현재 블록의 레지듀얼 샘플들에 대해 NSPT를 적용하여, 상기 현재 블록의 변환 계수들을 유도하는 단계; 및
    상기 현재 블록의 변환 계수들 및 상기 복수의 NSPT 커널 후보들 중 어느 하나를 특정하는 변환 인덱스를 부호화하여 비트스트림을 생성하는 단계를 포함하되,
    상기 NSPT는, 상기 현재 블록의 크기가 상기 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용되는, 영상 인코딩 방법.
  7. 제6항에 있어서,
    상기 NSPT 세트는, 기-정의된 35개의 NSPT 세트들 중 어느 하나로 결정되는, 영상 인코딩 방법.
  8. 제6항에 있어서,
    상기 NSPT 세트는 3개의 NSPT 커널 후보들을 포함하는, 영상 인코딩 방법.
  9. 제6항에 있어서,
    상기 그룹은, 4x4, 4x8, 8x4, 8x8, 16x8, 8x16, 16x4, 4x16, 8x32, 또는 32x8 중 적어도 하나의 블록 크기를 포함하는, 영상 인코딩 방법.
  10. 제6항에 있어서,
    상기 현재 블록의 크기가 8x32 또는 32x8인 것에 기초하여, 상기 NSPT를 통해 유도되는 변환 계수들의 개수는 48보다 작거나 같은, 영상 인코딩 방법.
  11. 제6항에 따른 영상 인코딩 방법에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 저장 매체.
  12. 영상 정보에 대한 비트스트림을 획득하는 단계; 여기서, 상기 비트스트림은, 현재 블록의 레지듀얼 샘플들을 유도하고, 상기 현재 블록에 대한 비분리 일차 변환(non-separable primary transform, NSPT) 세트를 결정하고, 상기 NSPT 세트에 속한 복수의 NSPT 커널 후보들 중 어느 하나를 기반으로 상기 현재 블록의 레지듀얼 샘플들에 대해 NSPT를 적용하여, 상기 현재 블록의 변환 계수들을 유도하고, 상기 현재 블록의 변환 계수들 및 상기 복수의 NSPT 커널 후보들 중 어느 하나를 특정하는 변환 인덱스를 부호화하여 생성됨, 및
    상기 비트스트림을 포함한 데이터를 전송하는 단계를 포함하되,
    상기 NSPT는, 상기 현재 블록의 크기가 상기 NSPT가 적용될 수 있는 하나 또는 그 이상의 블록 크기들의 그룹에 속하는 것에 기초하여 적용되는, 데이터 전송 방법.
PCT/KR2024/007915 2023-06-08 2024-06-10 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체 Ceased WO2024253492A1 (ko)

Priority Applications (4)

Application Number Priority Date Filing Date Title
MX2025014439A MX2025014439A (es) 2023-06-08 2024-06-10 Metodo y dispositivo de codificacion/decodificacion de imagen, y medios de grabacion en el cual se almacena el flujo de bits
KR1020267000449A KR20260035888A (ko) 2023-06-08 2024-06-10 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
EP24819643.8A EP4727124A1 (en) 2023-06-08 2024-06-10 Image encoding/decoding method and device, and recording medium on which bitstream is stored
CN202480050067.8A CN121605636A (zh) 2023-06-08 2024-06-10 图像编码/解码方法和装置以及存储比特流的记录介质

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202363471971P 2023-06-08 2023-06-08
US63/471,971 2023-06-08
US202363521882P 2023-06-20 2023-06-20
US63/521,882 2023-06-20

Publications (1)

Publication Number Publication Date
WO2024253492A1 true WO2024253492A1 (ko) 2024-12-12

Family

ID=93796300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2024/007915 Ceased WO2024253492A1 (ko) 2023-06-08 2024-06-10 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체

Country Status (5)

Country Link
EP (1) EP4727124A1 (ko)
KR (1) KR20260035888A (ko)
CN (1) CN121605636A (ko)
MX (1) MX2025014439A (ko)
WO (1) WO2024253492A1 (ko)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20210135320A (ko) * 2019-11-27 2021-11-12 텐센트 아메리카 엘엘씨 비디오 코딩 방법 및 장치
KR102435840B1 (ko) * 2017-06-29 2022-08-23 퀄컴 인코포레이티드 비분리형 변환들을 위한 메모리 감소
WO2023075353A1 (ko) * 2021-10-25 2023-05-04 엘지전자 주식회사 비분리 1차 변환 설계 방법 및 장치

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102435840B1 (ko) * 2017-06-29 2022-08-23 퀄컴 인코포레이티드 비분리형 변환들을 위한 메모리 감소
KR20210135320A (ko) * 2019-11-27 2021-11-12 텐센트 아메리카 엘엘씨 비디오 코딩 방법 및 장치
WO2023075353A1 (ko) * 2021-10-25 2023-05-04 엘지전자 주식회사 비분리 1차 변환 설계 방법 및 장치

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M. KOO (LGE), J. ZHAO (LGE), J. LIM (LGE), S. KIM (LGE): "Non-EE2: On large NSPT", 30. JVET MEETING; 20230421 - 20230428; ANTALYA; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), 14 April 2023 (2023-04-14), XP030308934 *
P. GARUS (QUALCOMM), M. COBAN (QUALCOMM), B. RAY (QUALCOMM), V. SEREGIN (QUALCOMM), M. KARCZEWICZ (QUALCOMM), M. KOO (LGE), J. ZHA: "EE2-4.2: Non-Separable Primary Transform for Intra Coding", 29. JVET MEETING; 20230111 - 20230120; TELECONFERENCE; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), 10 January 2023 (2023-01-10), XP030306709 *

Also Published As

Publication number Publication date
KR20260035888A (ko) 2026-03-13
EP4727124A1 (en) 2026-04-15
MX2025014439A (es) 2026-02-03
CN121605636A (zh) 2026-03-03

Similar Documents

Publication Publication Date Title
WO2020149648A1 (ko) 변환 스킵 플래그를 이용한 영상 코딩 방법 및 장치
WO2019216714A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2023075353A1 (ko) 비분리 1차 변환 설계 방법 및 장치
WO2021096172A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021054798A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2020256482A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021010680A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021025530A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2023128615A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2021060905A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021141403A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021025528A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2021054691A1 (ko) 변환에 기반한 영상 코딩 방법 및 그 장치
WO2020149594A1 (ko) 영상 코딩 시스템에서 고주파 제로잉을 기반으로 레지듀얼 정보를 코딩하는 영상 디코딩 방법 및 그 장치
WO2023055138A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2022265417A1 (ko) 저주파 비분리 변환 설계 방법 및 장치
WO2024253492A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024253491A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024112171A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136483A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136486A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136473A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136484A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136481A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체
WO2024136475A1 (ko) 영상 인코딩/디코딩 방법 및 장치, 그리고 비트스트림을 저장한 기록 매체

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24819643

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: MX/A/2025/014439

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2025570850

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2025570850

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 202617000368

Country of ref document: IN

WWE Wipo information: entry into national phase

Ref document number: 2024819643

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2024819643

Country of ref document: EP

Effective date: 20260108

WWP Wipo information: published in national office

Ref document number: 202617000368

Country of ref document: IN

ENP Entry into the national phase

Ref document number: 2024819643

Country of ref document: EP

Effective date: 20260108

ENP Entry into the national phase

Ref document number: 2024819643

Country of ref document: EP

Effective date: 20260108

ENP Entry into the national phase

Ref document number: 2024819643

Country of ref document: EP

Effective date: 20260108

WWP Wipo information: published in national office

Ref document number: MX/A/2025/014439

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2024819643

Country of ref document: EP

Effective date: 20260108

WWP Wipo information: published in national office

Ref document number: 2024819643

Country of ref document: EP