text
stringlengths 10
391k
|
---|
# Rilmani
Rilmani are a category of monsters in dNetHack.
Contents
1 Plumach Rilmani
1.1 Equipment sets
1.1.1 Militia
1.1.2 Civilian
1.2 Spells
2 Ferrumach Rilmani
2.1 Equipment
2.2 Spells
3 Cuprilach Rilmani
3.1 Equipment
3.2 Spells
3.3 Sneak attack
4 Stannumach Rilmani
5 Argenach Rilmani
5.1 Equipment
5.2 Spells
6 Hydrargyrumach Rilmani
6.1 Mercurial essence
6.2 Brimstone essence
7 Aurumach Rilmani
7.1 Equipment
7.2 Spells
8 Encyclopedia entry
Plumach Rilmani
" Plumach Rilmani File:Plumach Rilmani.png
Difficulty
7
Attacks
Weapon 1d4 physical, Magic 0d4 mage spell
" Plumach Rilmani File:Plumach Rilmani.png
Difficulty
7
Attacks
Weapon 1d4 physical, Magic 0d4 mage spell
Base level
4
Base experience
56
Speed
8
Base AC
4
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
3000
Nutritional value
0
Size
medium
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A Plumach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
can pick up weapons and food.
never leaves a corpse.
cannot be tamed.
Equipment sets
Plumach equipment is made of non-rustable metal.
Militia
1β3 of Plumachs are militia members.
β1 uncursed metallic short sword
One out of 3 milita members will have a +0 uncursed kite shield
Civilian
The remaining 2β3 of Plumachs are civilians.
β1 uncursed metallic sickle, scythe, or axe
Spells
Plumachs will cast the solid fog monster spell. Creatures in the fog have their speed reduced by 2β3. When a Plumach casts solid fog, it becomes canceled.
Ferrumach Rilmani
" Ferrumach Rilmani File:Ferrumach Rilmani.png
Difficulty
9
Attacks
Weapon 1d8 physical, Magic 0d4 mage spell
" Ferrumach Rilmani File:Ferrumach Rilmani.png
Difficulty
9
Attacks
Weapon 1d8 physical, Magic 0d4 mage spell
Base level
6
Base experience
88
Speed
10
Base AC
3
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
3000
Nutritional value
0
Size
medium
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A Ferrumach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
can pick up weapons and food.
never leaves a corpse.
cannot be tamed.
Equipment
+1 or higher iron halberd or battle axe
Spells
Ice storm: 4d8 physical damage and 4d8 cold damage
Solid fog: 2β3 speed reduction
Cuprilach Rilmani
" Cuprilach Rilmani File:Cuprilach Rilmani.png
Difficulty
13
Attacks
Weapon 1d8 physical, Weapon 1d8 physical, Magic 0d4 mage spell
" Cuprilach Rilmani File:Cuprilach Rilmani.png
Difficulty
13
Attacks
Weapon 1d8 physical, Weapon 1d8 physical, Magic 0d4 mage spell
Base level
8
Base experience
143
Speed
18
Base AC
0
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
3000
Nutritional value
0
Size
medium
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A Cuprilach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
can pick up weapons and food.
never leaves a corpse.
cannot be tamed.
Equipment
+2 or higher bronze short sword
1β3 of Cuprilach will have a bronze buckler (at least +2).
Spells
Drain life: Drains levels
Acid blast: Acidic explosion
Solid fog: 2β3 speed reduction
Disappear: Makes self invisible
Poison gas: Creates poison clouds
Make visible: Makes target visible
Sneak attack
When attacking an incapacitated target, or one which cannot see or sense them, Cuprilaches receive bonus damage on their melee attacks equal to 1 to 1.5 times their level (so 1 to 12 for a level 8 Cuprilach).
Stannumach Rilmani
" Stannumach Rilmani File:Stannumach Rilmani.png
Difficulty
13
Attacks
Weapon 1d4 physical, Single-target (active) gaze attack 1d20 study, Magic 0d6 mage spell
" Stannumach Rilmani File:Stannumach Rilmani.png
Difficulty
13
Attacks
Weapon 1d4 physical, Single-target (active) gaze attack 1d20 study, Magic 0d6 mage spell
Base level
9
Base experience
246
Speed
10
Base AC
1
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
3000
Nutritional value
0
Size
medium
Resistances
shock, poison, acid
Resistances conveyed
A Stannumach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
can see invisible creatures.
is poisonous to eat.
does not eat. (*)
is not a valid polymorphable form.
is strong.
can pick up weapons and food.
never leaves a corpse.
Argenach Rilmani
" Argenach Rilmani File:Argenach Rilmani.png
Difficulty
13
Attacks
Weapon 1d10 physical, Magic 0d6 mage spell
" Argenach Rilmani File:Argenach Rilmani.png
Difficulty
13
Attacks
Weapon 1d10 physical, Magic 0d6 mage spell
Base level
9
Base experience
220
Speed
15
Base AC
β1
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
4500
Nutritional value
0
Size
large
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
An Argenach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
can see invisible creatures.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
can pick up weapons and food.
never leaves a corpse.
cannot be tamed.
Equipment
+3 or higher silver broadsword, battle axe, or halberd. Argenach equipped with broadswords will have either a silver kite shield (5β6 chance) or a shield of reflection (1β6 chance).
Spells
Silver rays (Argenach unique spell): Makes two attacks, each dealing 1d20 damage of a type the target is vulnerable to (including silver damage, in which case each ray does 2d20 damage). The attacks can be avoided via low AC, but ignore armor.
Ice storm: 4d8 cold damage and 4d8 physical damage
Solid fog: 2β3 speed reduction
Disappear: Makes self invisible
Make visible: Makes target visible
Hydrargyrumach Rilmani
" Hydrargyrumach Rilmani File:Hydrargyrumach Rilmani.png
Difficulty
17
Attacks
Claw 2d4 water vampire, Touch 2d4 fire, Magic 0d4 mage spell
" Hydrargyrumach Rilmani File:Hydrargyrumach Rilmani.png
Difficulty
17
Attacks
Claw 2d4 water vampire, Touch 2d4 fire, Magic 0d4 mage spell
Base level
12
Base experience
308
Speed
12
Base AC
β1
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
4500
Nutritional value
0
Size
large
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A Hydrargyrumach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
can see invisible creatures.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
has infravision.
never leaves a corpse.
cannot be tamed.
Equipped with a metallic voulge and a metalic long sword.
Mercurial essence
" mercurial essence File:Mercurial essence.png
Difficulty
13
Attacks
Claw 2d4 water vampire, Touch 2d4 fire
" mercurial essence File:Mercurial essence.png
Difficulty
13
Attacks
Claw 2d4 water vampire, Touch 2d4 fire
Base level
10
Base experience
233
Speed
15
Base AC
1
Base MR
0
Alignment
β5 (chaotic)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
4500
Nutritional value
0
Size
medium
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A mercurial essence:
can flow under doors.
has a thick hide.
can teleport.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
has infravision.
never leaves a corpse.
cannot be tamed.
Brimstone essence
" brimstone essence File:Brimstone essence.png
Difficulty
12
Attacks
Magic 0d4 mage spell
" brimstone essence File:Brimstone essence.png
Difficulty
12
Attacks
Magic 0d4 mage spell
Base level
10
Base experience
227
Speed
9
Base AC
1
Base MR
0
Alignment
5 (lawful)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
3000
Nutritional value
0
Size
large
Resistances
shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
A brimstone essence:
has a head, a couple of arms, and a torso.
has a thick hide.
can see invisible creatures.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
never leaves a corpse.
cannot be tamed.
does not move.
Aurumach Rilmani
" Aurumach Rilmani File:Aurumach Rilmani.png
Difficulty
18
Attacks
Weapon 2d8 physical, Weapon 2d8 physical, Weapon 2d8 physical, Magic 0d6 mage spell
" Aurumach Rilmani File:Aurumach Rilmani.png
Difficulty
18
Attacks
Weapon 2d8 physical, Weapon 2d8 physical, Weapon 2d8 physical, Magic 0d6 mage spell
Base level
12
Base experience
315
Speed
15
Base AC
β3
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
4500
Nutritional value
0
Size
large
Resistances
fire, cold, shock, poison, acid
Resistances conveyed
fire, cold, sleep, shock, poison
An Aurumach Rilmani:
has a head, a couple of arms, and a torso.
has a thick hide.
can see invisible creatures.
does not eat. (*)
is not a valid polymorphable form.
can follow you to other levels.
is strong.
can pick up weapons and food.
never leaves a corpse.
cannot be tamed.
Equipment
+4 or higher gold two-handed sword and gold halberd
1β3 of Aurumachs wear +4 or higher gold plate mail
Spells
Golden wave (Aurumach unique spell): Deals 2d12 damage of a type the target is vulnerable to.
Ice storm: 4d8 cold damage and 4d8 physical damage
Acid rain: 8d6 acid damage and wets inventory
Solid fog: 2β3 speed reduction
Disappear: Makes self invisible
Poison gas: Creates stinking clouds
Make visible: Makes target visible
Prismatic spray: Up to 7 random element explosions
Encyclopedia entry
To paraphrase a particularly wise prime, the rilmani are an
enigma cloaked in a riddle, wrapped in a mystery. Who can
question their motives or their actions? They keep their own
counsel. They're sworn never to come when called, but always
to be there when needed; never to answer questions put to
them, but always to provide what information is necessary; to
aid and abet good, evil, law, and chaos alike in order to maintain
the Balance, regardless of the cost or repercussions.
[ Planescape Monstrous Compendium II, by Rich Baker ]
|
# Boots
Boots are a form of armor worn on the feet.
Contents
1 List of boots
2 Identification
3 SLASH'EM
4 Encyclopaedia entry
List of boots
Name
Cost
Weight
AC
Material
Effect
Appearance
low boots
8
10
1
leather
walking shoes
high boots
12
20
2
leather
jackboots
iron shoes
16
50
2
iron
hard shoes
elven boots
8
15
1
leather
stealth
randomized
kicking boots
8
50
1
iron
enhanced kicking
randomized
fumble boots
30
20
1
leather
fumbling
randomized
levitation boots
30
15
1
leather
levitation
randomized
jumping boots
50
20
1
leather
jumping
randomized
speed boots
50
20
1
leather
speed
randomized
water walking boots
50
15
1
leather
water walking
randomized
The randomized boots' unidentified descriptions are shuffled each game from the following list:
buckled boots
combat boots
hiking boots
jungle boots
riding boots
snow boots
mud boots
In addition to whatever magical effect they provide, riding boots give a bonus for saddling steeds, and snow boots give a bonus for walking on ice.
Identification
Speed boots, jumping boots and water walking boots have a base price of 50 zm; fumble boots and levitation boots have a base price of 30 zm; elven boots and kicking boots have a base price of 8 zm. (The most useful boots are also the most expensive ones.) Be aware, enchantment can confuse the issue.
Elven, levitation, and water walking boots weigh 15, kicking boots weigh 50, and the other randomized boots weigh 20. While this might be useful in some cases, it is somewhat tedious to attempt and cannot rule out the two pairs of boots which are likely to be cursed.
Do not wear boots without curse-testing them first. Cursed magic boots are very likely to be levitation boots or fumble boots, which have very annoying magical effects as well as possibly increasing your AC. You can still weight test, especially to distinguish levitation from fumble boots.
Any boots you find in the statue of Perseus are guaranteed to be cursed levitation boots.
Speed boots and levitation boots will auto-identify when worn, except in the unusual case where you are already very fast or levitating. Elven boots will auto-identify when worn if you are not already stealthy (be aware that an elven cloak also grants stealth). You can deduce the appearance of elven boots by taking note of which boots are dropped by various elves throughout the dungeon.
Jumping boots can be identified by trying to jump (#jump command). Knights must actually try to make an "illegal move" for a chess knight - any other role will get the message "You can't jump very far" unless they are wearing jumping boots.
Fumble boots can be identified by wearing them for a while and seeing whether you fumble, or by zapping a wand of enlightenment while wearing them.
Kicking boots are the only magic boots to be metallic, and can therefore be identified by wearing them and seeing whether your spell failure rates increase, or by testing for "scritch, scritch" by rubbing them on a touchstone. You will also always succeed in kicking down doors while wearing kicking boots, although monks and samurai may find that difficult to test.
Water walking boots are tricky to identify, because walking on water to see whether you sink is dangerous! The danger can be reduced by dropping anything which is vulnerable to water damage (keep in mind that kicking boots tested in this way will rust). They can also be identified by zapping a wand of enlightenment.
If you have some boots with a base price of 50 zm, and they grant neither speed nor jumping, then they must be water walking boots.
SLASH'EM
You may find steel boots in SLASH'EM. SLASH'EM uses steel boots as a randomized appearance for magical boots, in place of buckled boots. The actual identities of magical boots in SLASH'EM are all the same, just for some reason one of the randomized appearances is different. Steel boots are not actually metal, but rather are the appearance associated with kicking boots (which are metal) in the source code. That doesn't mean that steel boots will be kicking boots any more often than any other type of boot; it's just a thing in the source code.
Encyclopaedia entry
In Fantasyland these are remarkable in that they seldom or
never wear out and are suitable for riding or walking in
without the need of Socks. Boots never pinch, rub, or get
stones in them; nor do nails stick upwards into the feet from
the soles. They are customarily mid-calf length or knee-high,
slip on and off easily and never smell of feet. Unfortunately,
the formula for making this splendid footwear is a closely
guarded secret, possibly derived from nonhumans (see Dwarfs,
Elves, and Gnomes).
[ The Tough Guide to Fantasyland, by Diana Wynne Jones ]
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.0. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-360}} tag to the current version's tag or {{noversion}} as appropriate. |
# Talk:Spellcasting
Contents
1 Error in Table?
2 Penalty table
3 Hit change
4 Error in formula for difficulty?
5 Necessity of the "older version" of spell calculator tool?
Error in Table?
Playing as a Barbarian, I noticed a decrease in spell failure when removing an Elven shield. If I am reading the table correctly, this should not happen. Am I reading the formula incorrectly or is there a mistake? Yesennes 12:48, March 24 2016 (UTC)
If you are wearing a shield larger than a small shield, the chance is then reduced to 1/4 its amount (except if it is the special spell for your class -- then it is only halved).
This is separate from the listed shield penalty. Wearing a small shield should give no change in spellcasting rates (For those roles with a 0 in the shield column). -- Qazmlpok (talk) 15:39, 24 March 2016 (UTC)
Penalty table
I completely agree with Derekt75, no need for two copies of the same table. But I think the OTHER table, the one that was deleted, is better than the one we kept. Maybe we should swap them around or combine their designs to make an even better super table? Blackcustard 22:39, 6 March 2012 (UTC)
Here are the differences that I remember:
different order of columns
different placement in article
deleted table had a last column that contained a "-4" for every special spell
I figured that the column order didn't matter, and that the -4 was indicated in the text immediately preceding the table, so I chose the table that had the newer placement. Were there other differences that I missed? Is the "-4" useful? Was the previous column order useful? Derekt75 23:49, 6 March 2012 (UTC)
I had missed that the deleted table had more links. I added some links to the existing table (including having Int go directly to intelligence rather than a disambig page). It's fine with me if you want to replace this table with the older one, though; to me they're both the same. Derekt75 00:03, 7 March 2012 (UTC)
Actually I was mostly reacting to the annoying abbreviations, e.g. "EMERG". I patched that up and the new table is now perfect. You found a couple other good changes to make I hadn't noticed. For the record, you can look at the deleted table in the page's history, no need to go on memory. Blackcustard 23:30, 10 March 2012 (UTC)
Hit change
I'm having trouble finding information about spell hit chance. What stats have an effect and so forth. All I can recall is that it's typically better than that of a wand counterpart, but I can't find information about that either. Denky (talk) 11:33, 26 September 2012 (UTC)
Error in formula for difficulty?
Looking in the source, we see:
difficulty= (spellev(spell)-1) * 4 - ((skill * 6) + (u.ulevel/3) + 1);
So
should be
Using this modified formula explains why my Valkyrie cannot cast identify yet (failure=100%), using the original formula I should have a mall chance.
Martijn Lievaart
--82.161.179.3 19:53, 30 April 2013 (UTC)
fixed, thank you. --Tjr (talk) 08:14, 1 May 2013 (UTC)
Necessity of the "older version" of spell calculator tool?
Is there any necessity to reference the "older version" of the spell calculator tool?
The (initial) versions are both from 2006 (from the same author), the "older" tool has just been an intermediate development step for the actual tool. The actual tool is still maintained, the "older version" one is not. |
# File:Tiles16x16.png
File
File history
File usage
MetadataNo higher resolution available.
Tiles16x16.png β(640 Γ 592 pixels, file size: 67 KB, MIME type: image/png)
Default Tileset from Nethack 3.6.0
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current21:07, 8 December 2015640 Γ 592 (67 KB)Nfearnley (talk | contribs)Default Tileset from Nethack 3.6.0
You cannot overwrite this file.
File usage
The following page uses this file:
Tileset
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Horizontal resolution28.35 dpcVertical resolution28.35 dpcFile change date and time21:06, 8 December 2015 |
# File:Seal of Andromalius.jpg
File
File history
File usage
MetadataSize of this preview: 588 Γ 600 pixels. Other resolutions: 235 Γ 240 pixels | 1,347 Γ 1,374 pixels.
Original file β(1,347 Γ 1,374 pixels, file size: 441 KB, MIME type: image/jpeg)
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current05:33, 14 June 20141,347 Γ 1,374 (441 KB)Chris (talk | contribs)
You cannot overwrite this file.
File usage
The following page uses this file:
User:Chris/dNetHack/dNethack Roles/Binder/Andromalius
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
JPEG file commenthttp://www.fromoldbooks.org/Mathers-Goetia/
quality=100% |
# Ring of carrying
The ring of carrying is a ring in xNetHack and FIQHack that affects your carrying capacity.
In xNetHack, the ring changes your carrying capacity by 5% per point of enchantment. Negatively enchanted rings will decrease it and positively enchanted rings will increase it.
In FIQHack, it increases or decreases the wearer's carrying capacity by 50 per enchantment. It can also be used by monsters, and it can be eaten to acquire the effect intrinsically (33% of the time, as per usual ring eating rules).
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# Elemental Planes
The Elemental Planes form the first four levels of what NetHack refers to as the End Game. As the name suggests, each of the four Planes represents one of the four elements:
the Plane of Earth
the Plane of Air
the Plane of Fire
the Plane of Water
The planes always appear in this order, and are followed by the Astral Plane, which many players consider one of "the planes".[1] All of the planes are no-teleport and have undiggable floors.
Contents
1 Accessing the Planes
2 Variants
2.1 SpliceHack
3 References
Accessing the Planes
The Plane of Earth is entered by climbing the upstair on dungeon level 1 with the Amulet of Yendor in your possession. If you do not have the Amuletβperhaps because you have been fooled by a fakeβyou will instead "escape the dungeon", and the game will end immediately, so beware. A cursed potion of gain level is a foolproof way to test if your Amulet is real, as you will only "feel uneasy" with no effect at all if you quaff it while holding a fake Amulet. Once you enter the Planes successfully, it is impossible to return to any of the earlier dungeon branches.
Movement from one plane to the next, and from the Plane of Water to the Astral Plane, then requires finding a magic portal. It is impossible to move backwards to an earlier plane, or to move forward without the real Amulet of Yendor.
Variants
Several variants, such as GruntHack and UnNetHack, present the Elemental Planes in a random order - this makes the End Game less predictable and more challenging.
SpliceHack
SpliceHack adds new endgame levels. The sequence of levels is[2]:
Plane of Earth
Gemstone Array
Plane of Air
Plane of Ice
Plane of Fire
City of Brass
Plane of Water
References
β dat/dungeon.def in NetHack 3.6.6, line 134
β https://github.com/NullCGT/SpliceHack/blob/Spl-R-1.1.0/dat/dungeon.lua |
# Ward (dNetHack)
The ward system in dNetHack replaces and expands on the protective powers of Elbereth in vanilla NetHack. Wards are based primarily on character knowledge, rather than player knowledge. They are divided into two main types: engraved wards and magical staves.
The effects of all wards are summarized in this PDF.
Contents
1 Engraved wards
1.1 Learning wards
1.1.1 Spellbooks
1.1.2 Scrolls
1.1.3 Rings
1.1.4 Ground
1.1.5 Prayer
1.2 Using wards
1.2.1 Drawing wards
1.2.2 Presenting rings
2 Icelandic magical staves
2.1 Learning staves
2.1.1 Dwarf characters
2.1.2 Spellbooks
2.1.3 Weapons
2.2 Using staves
2.3 Carving a stave
3 List of wards
3.1 Written wards
3.2 Drawn wards
3.3 Special cases
3.4 Magical staves
3.5 Legendary drawn wards
4 Drawing a seal
Engraved wards
These are the primary type of ward. They are inscribed on the ground, and follow many of the standard rules for engraving.
Learning wards
Wards are learned from spellbooks, scrolls, magic rings, gods, and (sometimes) the ground. Troubadours start the game knowing all the basic wards (Circle of Acheron, Hamsa, Elder Sign, Elder Elemental Eye, Sign of the Scion Queen, Cartouche of the Cat Lord, and Wings of Garuda). Wizards will also start the game knowing all, if any, wards contained on their starting spellbooks.
Spellbooks
All spellbooks contain mystic energy corresponding to the spell they teach; this is why they fade after being read too many times. The energy is held in the book by magical wards on the inside covers, and sometimes these wards incorporate symbols that can be used to directly ward off monsters. The symbol used is not dependent on the type of spellbook; two spellbooks of fireball, for instance, may be warded by two different wards. To study a spellbook's ward, press r to bring up the read prompt, select the desired spellbook, and choose s, study ward. Studying a ward is much like reading a spellbook; however, the character receives a +10 (+50%) bonus to their reading skill, making failures much less likely. If the character does fail to safely study the ward, the book is treated as one level lower when determining the consequences.
Characters who begin the game with spellbooks also begin the game knowing the wards contained within. Unlike randomly generated spellbooks, spellbooks owned by starting characters are guaranteed to contain useful wards.
Scrolls
Scrolls of [ward] (e.g. scroll of pentagram, scroll of elder sign) will teach the character the appropriate ward when read, as well as engrave the ward on the ground under the character.
Rings
Many types of rings are eligible to be generated with decorative engravings. 33% of eligible rings are generated with engravings; of these, 1/4 are engraved with functional wards. Engraved rings can be read using r, or via the apply menu (a, choose ., 'self' when prompted for a direction).
Engraved rings can be used to directly ward off adjacent monsters by applying a them in the monsters direction.
Ground
A character may also learn wards by finding an intact copy engraved on the ground. Outside of bones files, this is only important in one or two cases. Zapping a wand of polymorph at a drawing may also generate a random ward, albeit with low probability.
Prayer
Finally, a character may be granted knowledge of wards by their god, as a sign of divine favor.
Using wards
Drawing wards
If your character knows any of these warding signs, you will be asked if you wish to engrave a warding sign whenever you engrave. You may also press ctrl + w to directly engrave a warding sign, skipping the initial prompt.
Each square can contain up to one type of ward in addition to a normal text engraving. Wards and engravings may be engraved by different methods (ie, you can have a burned-in ward and a dust-engraved message in the same square). Altering the ward or the text engraving obscures both, making you vulnerable until you finish the alteration.
The amount of time it takes to engrave a ward is dependent on the number of strokes required to draw it. One stroke takes the same time as one character in a text engraving. The number of strokes required to draw a given ward can be learned from the encyclopedia.
Wards can be reinforced up to a limit determined by the type of ward (typically seven). This works much the same way as engraving 'Elbereth' multiple times: if one of the wards gets scuffed, you will still be protected. If you begin drawing a ward on a square already containing a ward, you will be asked if you want to reinforce the existing ward or wipe it out and draw a different ward. Some wards will gain additional powers if reinforced.
Wards are degraded in a slightly different way than text engravings. A ward may be 10% degraded, 25% degraded, or 50% degraded. If you choose to reinforce a ward in a square that contains degraded copies of the ward, you will repair one of the most-complete degraded copies rather than engraving a new ward from scratch.
Presenting rings
You can display the symbol on an engraved ring to an adjacent monster by applying the ring toward the monster. If the ring is cursed, there is a 3/4 chance the engraving will be "fogged over", having no effect.
Icelandic magical staves
Magical staves are a special type of ward that is carved into a piece of wood rather than engraved on the ground. They are learned in the same way that regular wards are learned. Troubadours start knowing the Toustefna and Deprun staves.
Learning staves
Magical staves may be found in spellbooks or already carved on weapons
Dwarf characters
Dwarf characters begin the game knowing all magical staves, and start with a knife (to carve with) and a club (to carve on).
Spellbooks
Sometimes a spellbook is warded with a stave rather than a warding sign.
Weapons
A weapon with a stave carved into it can be read with the read command (r). Such weapons may be found in bones files, wished for, or found randomly in the dungeon.
Using staves
To use a stave, carve it into a wooden weapon and drop the weapon at your feet (though this may seem counter-intuitive, it approximates the historical use of these signs better than just whacking your target with the weapon).
Some staves grant special effects when a carved weapon is wielded.
Carving a stave
To carve a stave apply (a) a knife or dagger (ie, any weapon that uses the knife or dagger skills). You will then be prompted to select the stave you wish to carve (or told that you don't know any staves). Next you will be prompted to select a wooden weapon to carve it into (or told that you don't have anything suitable for carving). If you choose to re-carve a weapon that already has a stave, you will chip off the existing stave before carving the new one. This process damages the weapon, and adds a turn to the time required to carve the stave.
List of wards
The following pages list the properties of all the wards and staves. Note that they are spoilers, as these properties may be learned in-game via experimentation and hearing true rumors.
Written wards
Elbereth (Lolth for drow)
Drawn wards
Gorgoneion
Heptagram
Hexagram
Pentagram
Hamsa
Circle of Acheron
Elder Sign
Elder Elemental Eye
Sign of the Scion Queen Mother
Cartouche of the Cat Lord
The Wings of Garuda
Special cases
Cerulean Sign
Magical staves
Toustefna stave
Dreprun stave
Veioistafur stave
Thjofastafur stave
Legendary drawn wards
The Sigil of Cthugha
The Brand of Ithaqua
The Tracery of Krakal
The Yellow Sign
Drawing a seal
Seals are intimately associated with the Binder role, and much less important for everyone else. Drawing seals is done with ctrl + e or the extended command #seal. A square can contain a ward or a seal, but not both. |
# File:Leather armor.png
File
File history
File usageNo higher resolution available.
Leather_armor.png β(16 Γ 16 pixels, file size: 236 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'leather armor'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current11:11, 1 August 200616 Γ 16 (236 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'leather armor'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 14 pages uses this file:
Leather armor
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# User talk:Kadoba01
Welcome!
Welcome!
Hi! Welcome, and thanks for contributing to NetHackWiki!
The How to help and Style guide pages are excellent starting points.
Recent changes is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask on my talk page, at the Community Portal or on the talk page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.
I'm really happy to have you here, and look forward to working with you! -- ZeroOne (Talk) 23:17, 18 May 2009 |
# tabs-343.txt
This is a classic text spoiler, reproduced on NetHackWiki for reference and archival purposes. You should link to this page when you copy or excerpt it, but please do not modify the content.
Caution: As this is not an ordinary wiki page edited by the community, this spoiler may contain outdated or otherwise inaccurate information.
tabs-343.txt Last edited 2006-05-03 for NetHack 3.4.3
Consolidated item tables for NetHack 3.4
Compiled for 3.2.2 by Kevin Hugo.
Updated for 3.4.3 by Dylan O'Donnell
<[email protected]>.
AMULET COST WGT PROB EAT
~~~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~~ ~~~ ~~~~ : ~~~
amulet of change : $150 20 130c : Y
amulet of ESP : 150 20 175 : Y
amulet of life saving : 150 20 75 :
amulet of magical breathing : 150 20 65 : Y
amulet of reflection : 150 20 75 :
amulet of restful sleep : 150 20 135c : Y
amulet of strangulation : 150 20 135c : Y
amulet of unchanging : 150 20 45 : Y
amulet versus poison : 150 20 165 : Y
imitation AoY : 0 20 0 :
Amulet of Yendor : 30000 20 0 :
WEAPON (Table 1) COST WGT PROB MATL APPEARANCE
~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~~ ~~~~~~~~~~
Dagger : :
orcish dagger : $ 4 10 12 : IRON crude dagger
dagger : 4 10 30 : IRON --
silver dagger : 40 12 3 : SILV --
athame : 4 10 0 : IRON --
elven dagger : 4 10 10 : WOOD runed dagger
Knife : :
worm tooth : 2 20 0 : NONE --
knife (shito) : 4 5 20 : IRON --
stiletto : 4 5 5 : IRON --
scalpel : 6 5 0 : METL --
crysknife : 100 20 0 : MINL --
Axe : :
axe : 8 60 40 : IRON --
battle-axe : 40 120* 10 : IRON double-headed axe
Pick-axe : :
pick-axe : 50 100 tool : IRON --
dwarvish mattock : 50 120* 13 : IRON broad pick
Short sword : :
orcish short sword : 10 30 3 : IRON crude short sword
short sword (wakizashi) : 10 30 8 : IRON --
dwarvish short sword : 10 30 2 : IRON broad short sword
elven short sword : 10 30 2 : WOOD runed short sword
Broadsword : :
broadsword (ninja-to) : 10 70 8 : IRON --
runesword : 300 40 0 : IRON runed broadsword
elven broadsword : 10 70 4 : WOOD runed broadsword
Long sword : :
long sword : 15 40 50 : IRON --
katana : 80 40 4 : IRON samurai sword
Two-handed sword : :
two-handed sword : 50 150* 22 : IRON --
tsurugi : 500 60* 0 : METL long samurai sword
Scimitar : :
scimitar : 15 40 15 : IRON curved sword
Saber : :
silver saber : 75 40 6 : SILV --
Club : :
club : 3 30 12 : WOOD --
aklys : 4 15 8 : IRON thonged club
Mace : :
mace : 5 30 40 : IRON --
Morning star : :
morning star : 10 120 12 : IRON --
Flail : :
flail (nunchaku) : 4 15 40 : IRON --
grappling hook : 50 30 tool : IRON iron hook
Hammer : :
war hammer : 5 50 15 : IRON --
Quarterstaff : :
quarterstaff : 5 40* 11 : WOOD staff
Polearm : :
partisan : 10 80* 5 : IRON vulgar polearm
fauchard : 5 60* 6 : IRON pole sickle
glaive (naginata) : 6 75* 8 : IRON single-edged polearm
bec-de-corbin : 8 100* 4 : IRON beaked polearm
spetum : 5 50* 5 : IRON forked polearm
lucern hammer : 7 150* 5 : IRON pronged polearm
guisarme : 5 80* 6 : IRON pruning hook
ranseur : 6 50* 5 : IRON hilted polearm
voulge : 5 125* 4 : IRON pole cleaver
bill-guisarme : 7 120* 4 : IRON hooked polearm
bardiche : 7 120* 4 : IRON long poleaxe
halberd : 10 150* 8 : IRON angled poleaxe
Spear : :
orcish spear : 3 30 13 : IRON crude spear
spear : 3 30 50 : IRON --
silver spear : 40 36 2 : SILV --
elven spear : 3 30 10 : WOOD runed spear
dwarvish spear : 3 35 12 : IRON stout spear
Javelin : :
javelin : 3 20 10 : IRON throwing spear
Trident : :
trident : 5 25 8 : IRON --
Lance : :
lance : 10 180 4 : IRON --
Bow : :
orcish bow : 60 30 12 : WOOD crude bow
bow : 60 30 24 : WOOD --
elven bow : 60 30 12 : WOOD runed bow
yumi : 60 30 0 : WOOD long bow
orcish arrow : 2 1 20 : IRON crude arrow
arrow : 2 1 55 : IRON --
silver arrow : 5 1 12 : SILV --
elven arrow : 2 1 20 : WOOD runed arrow
ya : 4 1 15 : METL bamboo arrow
Sling : :
sling : 20 3 40 : LEAT --
flintstone : 1 10 gems : MINL --
other rocks/gems/glass : vary vary gems : vary --
Crossbow : :
crossbow : 40 50 45 : WOOD --
crossbow bolt : 2 1 55 : IRON --
Dart : :
dart : 2 1 60 : IRON --
Shuriken : :
shuriken : 5 1 35 : IRON throwing star
Boomerang : :
boomerang : 20 5 15 : WOOD --
Whip : :
bullwhip : 4 20 2 : LEAT --
rubber hose : 3 20 0 : PLAS --
Unicorn horn : :
unicorn horn : 100 20* tool : BONE --
Two weapon combat : -- -- none : NONE --
Riding : -- -- none : NONE --
Bare-handed combat : -- -- hand : NONE --
Martial arts : -- -- hand : NONE --
WEAPON (Table 2) ABCH KMPRaRo STVW +HIT SDAM SAVG LDAM LAVG
~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~~~ ~~~~
Dagger : bbbs b--E E bEEE
orcish dagger : +2 d3 2.0 d3 2.0
dagger : +2 d4 2.5 d3 2.0
silver dagger : +2 d4 2.5 d3 2.0
athame : +2 d4 2.5 d3 2.0
elven dagger : +2 d5 3.0 d3 2.0
Knife : b-sE b--s E ss-s
worm tooth : d2 1.5 d2 1.5
knife (shito) : d3 2.0 d2 1.5
stiletto : d3 2.0 d2 1.5
scalpel : +2 d3 2.0 d3 2.0
crysknife : +3 d10 5.5 d10 5.5
Axe : -Es- s--s - -bEs
axe : d6 3.5 d4 2.5
battle-axe : d8+d4 7.0 d6+2d4 8.5
Pick-axe : Esb- b--b - -bs-
pick-axe : d6 3.5 d3 2.0
dwarvish mattock : -1 d12 6.5 d8+2d6 11.5
Short sword : bE-s s--b E EEsb
orcish short sword : d5 3.0 d8 4.5
short sword (wakizashi) : d6 3.5 d8 4.5
dwarvish short sword : d7 4.0 d8 4.5
elven short sword : d8 4.5 d8 4.5
Broadsword : -s-- s--- s sbs-
broadsword (ninja-to) : 2d4 5.0 d6+1 4.5
runesword : 2d4 5.0 d6+1 4.5
elven broadsword : d6+d4 6.0 d6+1 4.5
Long sword : -s-- E--- s EbE-
long sword : d8 4.5 d12 6.5
katana : +1 d10 5.5 d12 6.5
Two-handed sword : -E-- s--- b EbE-
two-handed sword : d12 6.5 3d6 10.5
tsurugi : +2 d16 8.5 d8+2d6 11.5
Scimitar : ss-b b--- s bsb-
scimitar : d8 4.5 d8 4.5
Saber : Eb-b s--- s bsb-
silver saber : d8 4.5 d8 4.5
Club : ssEs b-E- s ---s
club : d6 3.5 d3 2.0
aklys : d6 3.5 d3 2.0
Mace : -sEb s-E- s -b-b
mace : d6+1 4.5 d6 3.5
Morning star : -sb- s-Eb b -b--
morning star : 2d4 5.0 d6+1 4.5
Flail : -bs- b-Es b sb--
flail (nunchaku) : d6+1 4.5 2d4 5.0
grappling hook : d2 1.5 d6 3.5
Hammer : -Es- b-Eb b -bE-
war hammer : d4+1 3.5 d4 2.5
Quarterstaff : sbEE -bEb - bbbE
quarterstaff : d6 3.5 d6 3.5
Polearm : --sb s-ss b sbss
partisan : d6 3.5 d6+1 4.5
fauchard : d6 3.5 d8 4.5
glaive (naginata) : d6 3.5 d10 5.5
bec-de-corbin : d8 4.5 d6 3.5
spetum : d6+1 4.5 2d6 7.0
lucern hammer : 2d4 5.0 d6 3.5
guisarme : 2d4 5.0 d8 4.5
ranseur : 2d4 5.0 2d4 5.0
voulge : 2d4 5.0 2d4 5.0
bill-guisarme : 2d4 5.0 d10 5.5
bardiche : 2d4 5.0 3d4 7.5
halberd : d10 5.5 2d6 7.0
Spear : -sEb sbss b bbsb
orcish spear : d5 3.0 d8 4.5
spear : d6 3.5 d8 4.5
silver spear : d6 3.5 d8 4.5
elven spear : d7 4.0 d8 4.5
dwarvish spear : d8 4.5 d8 4.5
Javelin : --sb sbsE - bbbb
javelin : d6 3.5 d6 3.5
Trident : -ssb b-sb - -bbb
trident : d6+1 4.5 3d4 7.5
Lance : ---- E-b- - sbs-
lance : d6 3.5 d8 4.5
Bow : -bs- b-bE - Eb--
orcish bow : d2 1.5 d2 1.5
bow : d2 1.5 d2 1.5
elven bow : d2 1.5 d2 1.5
yumi : d2 1.5 d2 1.5
orcish arrow : d5 3.0 d6 3.5
arrow : d6 3.5 d6 3.5
silver arrow : d6 3.5 d6 3.5
elven arrow : d7 4.0 d6 3.5
ya : +1 d7 4.0 d7 4.0
Sling : s-Es --bE - -bbs
sling : d2 1.5 d2 1.5
flintstone : d6 3.5 d6 3.5
other rocks/gems/glass : d3 2.0 d3 2.0
Crossbow : ---- sbbE E -b--
crossbow : d2 1.5 d2 1.5
crossbow bolt : d4+1 3.5 d6+1 4.5
Dart : b--E --bE E -E-E
dart : d3 2.0 d2 1.5
Shuriken : ---s -bbs s Eb-b
shuriken : +2 d8 4.5 d6 3.5
Boomerang : E-E- --bE - -b--
boomerang : d9 5.0 d9 5.0
Whip : E--- ---b - -b--
bullwhip : d2 1.5 1 1.0
rubber hose : d4 2.5 d3 2.0
Unicorn horn : s-bE --s- - -s--
unicorn horn : +1 d12 6.5 d12 6.5
Two weapon combat : bb-- s--- E Ess-
Riding : bb-- E--b b sbsb
Bare-handed combat : EMMb E-bb E -sEb d2 1.5 d2 1.5
Martial arts : ---- -G-- - M--- d4 2.5 d4 2.5
ARMOR COST WGT PR AC M EFFECT APPEARANCE
~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~ : ~~ ~ ~~~~~~~~ ~~~~~~~~~~
Shirts : :
Hawaiian shirt : $ 3 5 8 : 0 C Shops --
T-shirt : 2 5 2 : 0 C Shops --
Suits : :
leather jacket : 10 30 12 : 1 L --
leather armor : 5 150 82 : 2 L --
orcish ring mail : 80 250 20 : 2 I # crude ring mail
studded leather armor : 15 200 72 : 3 L # --
ring mail : 100 250 72 : 3 I --
scale mail : 45 250 72 : 4 I --
orcish chain mail : 75 300 20 : 4 I # crude chain mail
chain mail : 75 300 72 : 5 I # --
elven mithril coat : 240 150 15 : 5 M ### --
splint mail : 80 400 62 : 6 I # --
banded mail : 90 350 72 : 6 I --
dwarvish mithril coat : 240 150 10 : 6 M ### --
bronze plate mail : 400 450 25 : 6 B --
plate mail (tanko) : 600 450 44 : 7 I ## --
crystal plate mail : 820 450 10 : 7 G ## --
Dragon suits : :
red dragon scales : 500 40 0 : 3 D Fire --
white dragon scales : 500 40 0 : 3 D Cold --
orange dragon scales : 500 40 0 : 3 D Sleep --
blue dragon scales : 500 40 0 : 3 D Elec --
green dragon scales : 500 40 0 : 3 D Poison --
yellow dragon scales : 500 40 0 : 3 D Acd --
black dragon scales : 700 40 0 : 3 D Disint --
silver dragon scales : 700 40 0 : 3 D Reflect --
gray dragon scales : 700 40 0 : 3 D Magic --
red dragon scale mail : 900 40 0 : 9 D Fire --
white dragon scale mail : 900 40 0 : 9 D Cold --
orange dragon scale mail: 900 40 0 : 9 D Sleep --
blue dragon scale mail : 900 40 0 : 9 D Elec --
green dragon scale mail : 900 40 0 : 9 D Poison --
yellow dragon scale mail: 900 40 0 : 9 D Acd --
black dragon scale mail : 1200 40 0 : 9 D Disint --
silver dragon scale mail: 1200 40 0 : 9 D Reflect --
gray dragon scale mail : 1200 40 0 : 9 D Magic --
Cloaks : :
mummy wrapping : 2 3 0 : 0 C #Vis --
orcish cloak : 40 10 8 : 0 C ## coarse mantelet
dwarvish cloak : 50 10 8 : 0 C ## hooded cloak
leather cloak : 40 15 8 : 1 L # --
cloak of displacement : 50 10 10 : 1 C ##Displ *piece of cloth
oilskin cloak : 50 10 10 : 1 C ###Water slippery cloak
alchemy smock : 50 10 9 : 1 C #Poi+Acd apron
cloak of invisibility : 60 10 10 : 1 C ##Invis *opera cloak
clk of magic resistance : 60 10 2 : 1 C ###Magic *ornamental cope
elven cloak : 60 10 8 : 1 C ###Stlth faded pall
robe : 50 15 3 : 2 C ###Spell --
cloak of protection : 50 10 9 : 3 C ###Prot *tattered cape
Helmets : :
fedora : 1 3 0 : 0 C --
dunce cap : 1 4 3 : 0 C Stupid conical hat
cornuthaum : 80 4 3 : 0 C ##Clair conical hat
dented pot : 8 10 2 : 1 I --
elven leather helm : 8 3 6 : 1 L leather hat
helmet (kabuto) : 10 30 10 : 1 I *plumed helmet
orcish helm : 10 30 6 : 1 I iron skull cap
helm of brilliance : 50 50 6 : 1 I Int+Wis *etched helmet
hm of opposite alignment: 50 50 6c: 1 I Align *crested helmet
helm of telepathy : 50 50 2 : 1 I ESP *visored helmet
dwarvish iron helm : 20 40 6 : 2 I hard hat
Gloves : :
leather gloves (yugake) : 8 10 16 : 1 L *old gloves
gauntlets of dexterity : 50 10 8 : 1 L Dex *padded gloves
gauntlets of fumbling : 50 10 8c: 1 L Fumble *riding gloves
gauntlets of power : 50 30 8 : 1 I Str *fencing gloves
Shields : :
small shield : 3 30 6 : 1 W --
orcish shield : 7 50 2 : 1 I red-eyed
Uruk-hai shield : 7 50 2 : 1 I white-handed
elven shield : 7 50 2 : 2 W blue and green
dwarvish roundshield : 10 100 4 : 2 I large round
large shield : 10 100 7 : 2 I --
shield of reflection : 50 50 3 : 2 S Reflect polished silver
Boots : :
low boots : 8 10 25 : 1 L walking shoes
elven boots : 8 15 12 : 1 L Stlth *mud boots
kicking boots : 8 15 12 : 1 I Kick *buckled boots
fumble boots : 30 20 12c: 1 L Fumble *riding boots
levitation boots : 30 15 12c: 1 L Lev *snow boots
jumping boots : 50 20 12 : 1 L Jump *hiking boots
speed boots : 50 20 12 : 1 L Speed *combat boots
water walking boots : 50 20 12 : 1 L WWalk *jungle boots
high boots : 12 20 15 : 2 L jackboots
iron shoes : 16 50 7 : 2 I hard shoes
FOOD COST WGT PROB NUTR NUTR/WGT TIME
~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~~ ~~~~~~~~ ~~~~
Meat : :
meatball : $ 5 1 0 : 5 5 1
meat ring : 5 1 0 : 5 5 1
meat stick : 5 1 0 : 5 5 1
egg : 9 1 85 : 80 80 1
tripe ration : 15 10 140 : 200 20 2
huge chunk of meat : 105 400 0 : 2000 5 20
corpse : 5 vary 0 : vary vary vary
Fruits and vegetables : :
kelp frond : 6 1 0 : 30 30 1
eucalyptus leaf : 6 1 3 : 30 30 1
clove of garlic : 7 1 7 : 40 40 1
sprig of wolfsbane : 7 1 7 : 40 40 1
apple : 7 2 15 : 50 25 1
carrot : 7 2 15 : 50 25 1
pear : 7 2 10 : 50 25 1
banana : 9 2 10 : 80 40 1
orange : 9 2 10 : 80 40 1
melon : 10 5 10 : 100 20 1
slime mold : 17 5 75 : 250 50 1
People food : :
fortune cookie : 7 1 55 : 40 40 1
candy bar : 10 2 13 : 100 50 1
cream pie : 10 10 25 : 100 10 1
lump of royal jelly : 15 2 0 : 200 100 1
pancake : 15 2 25 : 200 100 2
C-ration : 20 10 0 : 300 30 1
K-ration : 25 10 0 : 400 40 1
cram ration : 35 15 20 : 600 40 3
food ration (gunyoki) : 45 20 380 : 800 40 5
lembas wafer : 45 5 20 : 800 160 2
tin : 5 10 75 : vary vary vary
SCROLL COST WGT PROB MRKR APPEARANCE
~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~~ ~~~~~~~~~~
mail : $ 0 5 0 : 2 stamped
identify : 20 5 180 : 14
light : 50 5 90 : 8
blank paper : 60 5 28 : 0 unlabeled
enchant weapon : 60 5 80 : 16
enchant armor : 80 5 63 : 16
remove curse : 80 5 65 : 16
confuse monster : 100 5 53 : 12
destroy armor : 100 5 45 : 10
fire : 100 5 30 : 8
food detection : 100 5 25 : 8
gold detection : 100 5 33 : 8
magic mapping : 100 5 45 : 8
scare monster : 100 5 35 : 20
teleportation : 100 5 55 : 20
amnesia : 200 5 35 : 8
create monster : 200 5 45 : 10
earth : 200 5 18 : 8
taming : 200 5 15 : 20
charging : 300 5 15 : 16
genocide : 300 5 15 : 30
punishment : 300 5 15 : 10
stinking cloud : 300 5 15 : 20
SPELLBOOK COST WGT PROB LVL READ MRKR BONUS APPEARANCE
~~~~~~~~~~~~~~~~ : ~~~~~ ~~~ ~~~~ : ~~~ ~~~~ ~~~~ ~~~~~ ~~~~~~~~~~
blank paper : $ 0 50 18 : 0 0 0 plain
Book of the Dead : 10000 20 0 : 7 0 0 papyrus
attack : :
force bolt : 100 50 35 : 1 2 10
drain life : 200 50 10 : 2 2 20
magic missile : 200 50 45 : 2 2 20 Wiz
cone of cold : 400 50 10 : 4 21 40 Val
fireball : 400 50 20 : 4 12 40
finger of death : 700 50 5 : 7 80 70
healing : :
healing : 100 50 40 : 1 2 10 +
cure blindness : 200 50 25 : 2 2 20 +
cure sickness : 300 50 32 : 3 6 30 Hea+
extra healing : 300 50 27 : 3 10 30 +
stone to flesh : 300 50 15 : 3 2 30
restore ability : 400 50 25 : 4 15 40 Mon+
divination : :
detect monsters : 100 50 43 : 1 1 10
light : 100 50 45 : 1 1 10
detect food : 200 50 30 : 2 3 20
clairvoyance : 300 50 15 : 3 6 30 Sam
detect unseen : 300 50 20 : 3 8 30
identify : 300 50 20 : 3 12 30
detect treasure : 400 50 20 : 4 15 40 Rog
magic mapping : 500 50 18 : 5 35 50 Arc
enchantment : :
sleep : 100 50 50 : 1 1 10
confuse monster : 200 50 30 : 2 2 20
slow monster : 200 50 30 : 2 2 20
cause fear : 300 50 25 : 3 6 30
charm monster : 300 50 20 : 3 6 30 Tou
clerical : :
protection : 100 50 18 : 1 3 10
create monster : 200 50 35 : 2 3 20
remove curse : 300 50 25 : 3 10 30 Pri+
create familiar : 600 50 10 : 6 42 60
turn undead : 600 50 16 : 6 48 60 Kni
escape : :
jumping : 100 50 20 : 1 3 10
haste self : 300 50 33 : 3 8 30 Bar
invisibility : 400 50 25 : 4 15 40 Ran
levitation : 400 50 20 : 4 12 40
teleport away : 600 50 15 : 6 36 60
matter : :
knock : 100 50 35 : 1 1 10
wizard lock : 200 50 30 : 2 3 20
dig : 500 50 20 : 5 30 50 Cav
polymorph : 600 50 10 : 6 48 60
cancellation : 700 50 15 : 7 64 70
POTION COST WGT PROB APPEARANCE
~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~~~~~~~~
booze (sake) : $ 50 20 42 :
fruit juice : 50 20 42 :
see invisible : 50 20 42 :
sickness : 50 20 42 :
confusion : 100 20 42 :
extra healing : 100 20 47 :
hallucination : 100 20 40 :
healing : 100 20 57 :
restore ability : 100 20 40 :
sleeping : 100 20 42 :
water : 100 20 92 : clear
blindness : 150 20 40 :
gain energy : 150 20 42 :
invisibility : 150 20 40 :
monster detection : 150 20 40 :
object detection : 150 20 42 :
enlightenment : 200 20 20 :
full healing : 200 20 10 :
levitation : 200 20 42 :
polymorph : 200 20 10 :
speed : 200 20 42 :
acid : 250 20 10 :
oil : 250 20 30 :
gain ability : 300 20 42 :
gain level : 300 20 20 :
paralysis : 300 20 42 :
RING COST WGT PROB CHG
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~
meat ring : $ 5 1 0 :
adornment : 100 3 1 : Y
hunger : 100 3 1c :
protection : 100 3 1 : Y
protection from shape changers : 100 3 1 :
stealth : 100 3 1 :
sustain ability : 100 3 1 :
warning : 100 3 1 :
aggravate monster : 150 3 1c :
cold resistance : 150 3 1 :
gain constitution : 150 3 1 : Y
gain strength : 150 3 1 : Y
increase accuracy : 150 3 1 : Y
increase damage : 150 3 1 : Y
invisibility : 150 3 1 :
poison resistance : 150 3 1 :
see invisible : 150 3 1 :
shock resistance : 150 3 1 :
fire resistance : 200 3 1 :
free action : 200 3 1 :
levitation : 200 3 1 :
regeneration : 200 3 1 :
searching : 200 3 1 :
slow digestion : 200 3 1 :
teleportation : 200 3 1c :
conflict : 300 3 1 :
polymorph : 300 3 1c :
polymorph control : 300 3 1 :
teleport control : 300 3 1 :
WAND COST WGT PROB CHG TYPE
~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~ ~~~~
light : $100 7 95 : 15 NODIR
nothing : 100 7 25 : 15 BEAM
digging : 150 7 55 : 8 RAY
enlightenment : 150 7 15 : 15 NODIR
locking : 150 7 25 : 8 BEAM
magic missile : 150 7 50 : 8 RAY
make invisible : 150 7 45 : 8 BEAM
opening : 150 7 25 : 8 BEAM
probing : 150 7 30 : 8 BEAM
secret door detection : 150 7 50 : 15 NODIR
slow monster : 150 7 50 : 8 BEAM
speed monster : 150 7 50 : 8 BEAM
striking : 150 7 75 : 8 BEAM
undead turning : 150 7 50 : 8 BEAM
cold : 175 7 40 : 8 RAY
fire : 175 7 40 : 8 RAY
lightning : 175 7 40 : 8 RAY
sleep : 175 7 50 : 8 RAY
cancellation : 200 7 45 : 8 BEAM
create monster : 200 7 45 : 15 NODIR
polymorph : 200 7 45 : 8 BEAM
teleportation : 200 7 45 : 8 BEAM
death : 500 7 5 : 8 RAY
wishing : 500 7 5 : 3! NODIR
TOOL COST WGT PROB CHG APPEARANCE
~~~~~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~ ~~~~~~~~~~
Containers : :
sack : $ 2 15 35 : bag
large box : 8 350 40 : --
chest : 16 600 35 : --
ice box : 42 900 5 : --
bag of holding : 100 15 20 : bag
bag of tricks : 100 15 20 : 20 bag
oilskin sack : 100 15 5 : bag
Unlocking tools : :
credit card* : 10 1 15 : --
lock pick (osaku) : 20 4 60 : --
skeleton key : 10 3 80 : key
Light sources : :
tallow candle : 10 2 20 : candle
wax candle : 20 2 5 : candle
brass lantern : 12 30 30 :1499 --
oil lamp : 10 20 45 :1499 lamp
magic lamp : 50 20 15 : lamp
Candelabrum of Invocation : 5000 10 0 : candelabrum
Instruments : :
tin whistle : 10 3 100 : whistle
magic whistle : 10 3 30 : whistle
bugle : 15 10 4 : --
wooden flute : 12 5 4 : flute
magic flute : 36 5 2 : 8 flute
tooled horn : 15 18 5 : horn
frost horn : 50 18 2 : 8 horn
fire horn : 50 18 2 : 8 horn
horn of plenty : 50 18 2 : 20 horn
leather drum : 25 25 4 : drum
drum of earthquake : 25 25 2 : 8 drum
wooden harp (koto) : 50 30 4 : harp
magic harp : 50 30 2 : 8 harp
bell : 50 30 2 : --
Bell of Opening : 5000 10 0 : 3 silver bell
Traps : :
beartrap : 60 200 0 : --
land mine : 180 300 0 : --
Weapon-Tools : :
pick-axe : 50 100 20 : --
grappling hook : 50 30 5 : iron hook
unicorn horn : 100 20 0 : --
Other tools : :
expensive camera* : 200 12 15 : 99 --
mirror : 10 13 45 : looking glass
crystal ball : 60 150 15 : 5 glass orb
lenses : 80 3 5 : --
blindfold : 20 2 50 : --
towel : 50 2 50 : --
saddle* : 150 200 5 : --
leash : 20 12 65 : --
stethoscope : 75 4 25 : --
tinning kit : 30 100 15 : 99 --
tin opener : 30 4 35 : --
can of grease : 20 15 15 : 25 --
figurine : 80 50 25 : --
magic marker : 50 2 15 : 99! --
GEMS AND STONES COST WGT PROB ENGR COLORS
~~~~~~~~~~~~~~~~~~~~~~~ : ~~~~ ~~~ ~~~~ : ~~~~ ~~~~~~
Valuable gems : :
dilithium crystal :$4500 1 27* : soft white
diamond : 4000 1 24* : hard white
ruby : 3500 1 21* : hard red
jacinth : 3250 1 18* : hard orange
sapphire : 3000 1 15* : hard blue
black opal : 2500 1 12* : hard black
emerald : 2500 1 9* : hard green
turquoise : 2000 1 6* : soft green, blue
aquamarine : 1500 1 1* : hard green, blue
citrine : 1500 1 3* : soft yellow
amber : 1000 1 1* : soft yellowish brown
topaz : 900 1 1* : hard yellowish brown
jet : 850 1 1* : soft black
opal : 800 1 1* : soft white
chrysoberyl : 700 1 1* : soft yellow
garnet : 700 1 1* : soft red
amethyst : 600 1 1* : soft violet
jasper : 500 1 1* : soft red
fluorite : 400 1 1* : soft green, blue, white, violet
jade : 300 1 1* : soft green
agate : 200 1 1* : soft orange
obsidian : 200 1 1* : soft black
Worthless gems : :
black glass : 0 1 76 : soft black
blue glass : 0 1 77 : soft blue
green glass : 0 1 77 : soft green
orange glass : 0 1 76 : soft orange
red glass : 0 1 77 : soft red
violet glass : 0 1 77 : soft violet
white glass : 0 1 77 : soft white
yellow glass : 0 1 77 : soft yellow
yellowish brown glass : 0 1 77 : soft yellowish brown
Stones : :
luckstone : 60 10 10 : soft gray stone
touchstone : 45 10 8 : soft gray stone
flintstone : 1 10 10 : soft gray stone
loadstone : 1 500 10 : soft gray stone
rock : 0 10 100 : soft rock
ITEM COST WGT PROB SYM DAMAGE NUTR
~~~~~~~~~~~~~~~ : ~~~~ ~~~~ ~~~~ : ~~~ ~~~~~~ ~~~~
gold piece : $ 1 0.01 1000 : $ 0 0.01
boulder : 0 6000 100 : ' d20 2000
statue : 0 vary 900 : ' d20 2500
heavy iron ball : 10 480* 0 : 0 d25* 480*
iron chain : 0 120 0 : _ d4+1 120
acid venom : 0 1 0 : . 2d6 0
blinding venom : 0 1 0 : . 0 0
See the related spoiler files for full descriptions of each of the
above fields.
This page is based on a spoiler by Dylan O'Donnell. The original license is:
Redistribution, copying, and editing of these spoilers, with or without modification, are permitted provided that the following conditions are met:
The original contributors to any spoiler must continue to be credited.
Any modifications to the spoiler must be acknowledged and credited.
</[email protected]> |
# File:Yeenoghu.png
File
File history
File usageNo higher resolution available.
Yeenoghu.png β(16 Γ 16 pixels, file size: 235 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the monster 'Yeenoghu'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current10:32, 1 August 200616 Γ 16 (235 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the monster 'Yeenoghu'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 17 pages uses this file:
List of vanilla NetHack tiles
Monster
Monsters (by size)
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0
Yeenoghu
User:Chris/dNetHack/dNethack Demon Lords |
# Source:Vis tab.c (long form)
Below is the full text to src/vis_tab.c from NetHack 3.4.3, as generated when the VISION_TABLES symbol is enabled at compile time. To link to a particular line, write [[vis_tab.c (long form)#line123]], for example.
/* This source file is generated by 'makedefs'. Do not edit. */
A clean distribution of NetHack does not include this file. It is generated at compile time.
#include "config.h"
#ifdef VISION_TABLES
#include "vis_tab.h"
#ifndef FAR_TABLE_ONLY
close2d close_table[CLOSE_MAX_SB_DY] = {
/* DY = 1 (- 1)*/
{{
/* 0*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 1*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/* 2*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/* 3*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/* 4*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/* 5*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/* 6*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/* 7*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/* 8*/ { 9,25,41,57,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/* 9*/ {10,28,46,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*10*/ {11,31,51,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*11*/ {12,34,56,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*12*/ {13,37,61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*13*/ {14,40,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*14*/ {15,43,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*15*/ {16,46,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*16*/ {17,49,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*17*/ {18,52,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*18*/ {19,55,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*19*/ {20,58,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*20*/ {21,61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*21*/ {22,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*22*/ {23,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*23*/ {24,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*24*/ {25,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*25*/ {26,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*26*/ {27,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*27*/ {28,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*28*/ {29,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*29*/ {30,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*30*/ {31,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*31*/ {32,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*32*/ {33,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*33*/ {34,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*34*/ {35,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*35*/ {36,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*36*/ {37,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*37*/ {38,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*38*/ {39,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*39*/ {40,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*40*/ {41,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*41*/ {42,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*42*/ {43,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*43*/ {44,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*44*/ {45,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*45*/ {46,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*46*/ {47,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*47*/ {48,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ {49,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ {50,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ {51,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ {52,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ {53,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ {54,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ {55,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ {56,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ {57,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ {58,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ {59,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ {60,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ {61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ {62,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ {63,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ {64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ {65,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ {66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ {67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ {68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ {69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ {70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ {71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ {72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ {73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ {74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ {75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ {76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ {77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ {78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ {79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ {80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 2 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6},
/* 1*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14,15,16},
/* 2*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/* 3*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/* 4*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/* 5*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/* 6*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/* 7*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/* 8*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,67,73,78,81,99,99,99,99,99},
/* 9*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*10*/ { 4,11,17,24,31,37,44,51,57,64,71,77,81,99,99,99,99,99,99,99,99},
/*11*/ { 4,12,19,26,34,41,48,56,63,70,78,81,99,99,99,99,99,99,99,99,99},
/*12*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*13*/ { 5,14,22,31,40,48,57,66,74,81,99,99,99,99,99,99,99,99,99,99,99},
/*14*/ { 5,15,24,33,43,52,61,71,80,81,99,99,99,99,99,99,99,99,99,99,99},
/*15*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*16*/ { 6,17,27,38,49,59,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*17*/ { 6,18,29,40,52,63,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*18*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*19*/ { 7,20,32,45,58,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*20*/ { 7,21,34,47,61,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*21*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*22*/ { 8,23,37,52,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*23*/ { 8,24,39,54,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*24*/ { 9,25,41,57,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*25*/ { 9,26,42,59,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*26*/ { 9,27,44,61,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*27*/ {10,28,46,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*28*/ {10,29,47,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*29*/ {10,30,49,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*30*/ {11,31,51,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*31*/ {11,32,52,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*32*/ {11,33,54,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*33*/ {12,34,56,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*34*/ {12,35,57,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*35*/ {12,36,59,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*36*/ {13,37,61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*37*/ {13,38,62,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*38*/ {13,39,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*39*/ {14,40,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*40*/ {14,41,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*41*/ {14,42,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*42*/ {15,43,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*43*/ {15,44,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*44*/ {15,45,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*45*/ {16,46,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*46*/ {16,47,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*47*/ {16,48,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ {17,49,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ {17,50,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ {17,51,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ {18,52,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ {18,53,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ {18,54,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ {19,55,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ {19,56,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ {19,57,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ {20,58,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ {20,59,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ {20,60,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ {21,61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ {21,62,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ {21,63,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ {22,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ {22,65,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ {22,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ {23,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ {23,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ {23,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ {24,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ {24,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ {24,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ {25,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ {25,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ {25,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ {26,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ {26,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ {26,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ {27,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ {27,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 3 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4},
/* 1*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 2*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,13,14,15,16,17,18},
/* 3*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,22,23,24,25},
/* 4*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,17,19,21,22,24,25,27,29,30,32,33},
/* 5*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/* 6*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,47,50},
/* 7*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,38,41,44,47,50,52,55,58},
/* 8*/ { 2, 5, 9,12,15,18,21,25,28,31,34,37,41,44,47,50,53,57,60,63,66},
/* 9*/ { 2, 6,10,13,17,20,24,28,31,35,38,42,46,49,53,56,60,64,67,71,74},
/*10*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*11*/ { 3, 7,12,16,20,25,29,34,38,42,47,51,56,60,64,69,73,78,81,99,99},
/*12*/ { 3, 8,13,17,22,27,32,37,41,46,51,56,61,65,70,75,80,81,99,99,99},
/*13*/ { 3, 8,14,19,24,29,34,40,45,50,55,60,66,71,76,81,99,99,99,99,99},
/*14*/ { 3, 9,15,20,26,31,37,43,48,54,59,65,71,76,81,99,99,99,99,99,99},
/*15*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*16*/ { 4,10,17,23,29,36,42,49,55,61,68,74,81,99,99,99,99,99,99,99,99},
/*17*/ { 4,11,18,24,31,38,45,52,58,65,72,79,81,99,99,99,99,99,99,99,99},
/*18*/ { 4,11,19,26,33,40,47,55,62,69,76,81,99,99,99,99,99,99,99,99,99},
/*19*/ { 4,12,20,27,35,42,50,58,65,73,80,81,99,99,99,99,99,99,99,99,99},
/*20*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*21*/ { 5,13,22,30,38,47,55,64,72,80,81,99,99,99,99,99,99,99,99,99,99},
/*22*/ { 5,14,23,31,40,49,58,67,75,81,99,99,99,99,99,99,99,99,99,99,99},
/*23*/ { 5,14,24,33,42,51,60,70,79,81,99,99,99,99,99,99,99,99,99,99,99},
/*24*/ { 5,15,25,34,44,53,63,73,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*25*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*26*/ { 6,16,27,37,47,58,68,79,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*27*/ { 6,17,28,38,49,60,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*28*/ { 6,17,29,40,51,62,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*29*/ { 6,18,30,41,53,64,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*30*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*31*/ { 7,19,32,44,56,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*32*/ { 7,20,33,45,58,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*33*/ { 7,20,34,47,60,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*34*/ { 7,21,35,48,62,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*35*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*36*/ { 8,22,37,51,65,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*37*/ { 8,23,38,52,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*38*/ { 8,23,39,54,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*39*/ { 8,24,40,55,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*40*/ { 9,25,41,57,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*41*/ { 9,25,42,58,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*42*/ { 9,26,43,59,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*43*/ { 9,26,44,61,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*44*/ { 9,27,45,62,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*45*/ {10,28,46,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*46*/ {10,28,47,65,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*47*/ {10,29,48,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ {10,29,49,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ {10,30,50,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ {11,31,51,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ {11,31,52,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ {11,32,53,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ {11,32,54,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ {11,33,55,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ {12,34,56,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ {12,34,57,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ {12,35,58,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ {12,35,59,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ {12,36,60,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ {13,37,61,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ {13,37,62,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ {13,38,63,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ {13,38,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ {13,39,65,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ {14,40,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ {14,40,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ {14,41,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ {14,41,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ {14,42,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ {15,43,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ {15,43,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ {15,44,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ {15,44,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ {15,45,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ {16,46,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ {16,46,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ {16,47,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ {16,47,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ {16,48,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 4 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3},
/* 1*/ { 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8},
/* 2*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11,12,12,13,13},
/* 3*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,18,18},
/* 4*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,21,22,23,24},
/* 5*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,18,20,21,23,24,26,27,28,30},
/* 6*/ { 1, 3, 5, 7, 8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36},
/* 7*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/* 8*/ { 2, 4, 6, 9,11,13,15,18,20,22,25,27,29,31,34,36,38,41,43,45,47},
/* 9*/ { 2, 4, 7,10,12,15,17,20,22,25,28,30,33,35,38,40,43,46,48,51,53},
/*10*/ { 2, 5, 8,11,13,16,19,22,25,28,31,33,36,39,42,45,48,51,53,56,59},
/*11*/ { 2, 5, 8,12,15,18,21,24,27,30,34,37,40,43,46,49,52,56,59,62,65},
/*12*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,43,47,50,54,57,61,64,67,71},
/*13*/ { 2, 6,10,14,17,21,25,28,32,36,40,43,47,51,54,58,62,66,69,73,77},
/*14*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*15*/ { 3, 7,11,16,20,24,28,33,37,41,46,50,54,58,63,67,71,76,80,81,99},
/*16*/ { 3, 7,12,17,21,26,30,35,39,44,49,53,58,62,67,71,76,81,99,99,99},
/*17*/ { 3, 8,13,18,22,27,32,37,42,47,52,56,61,66,71,76,81,99,99,99,99},
/*18*/ { 3, 8,13,19,24,29,34,39,44,49,55,60,65,70,75,80,81,99,99,99,99},
/*19*/ { 3, 9,14,20,25,30,36,41,47,52,58,63,68,74,79,81,99,99,99,99,99},
/*20*/ { 3, 9,15,21,26,32,38,43,49,55,61,66,72,78,81,99,99,99,99,99,99},
/*21*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*22*/ { 4,10,16,23,29,35,41,48,54,60,67,73,79,81,99,99,99,99,99,99,99},
/*23*/ { 4,10,17,24,30,37,43,50,56,63,70,76,81,99,99,99,99,99,99,99,99},
/*24*/ { 4,11,18,25,31,38,45,52,59,66,73,79,81,99,99,99,99,99,99,99,99},
/*25*/ { 4,11,18,26,33,40,47,54,61,68,76,81,99,99,99,99,99,99,99,99,99},
/*26*/ { 4,12,19,27,34,41,49,56,64,71,79,81,99,99,99,99,99,99,99,99,99},
/*27*/ { 4,12,20,28,35,43,51,58,66,74,81,99,99,99,99,99,99,99,99,99,99},
/*28*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*29*/ { 5,13,21,30,38,46,54,63,71,79,81,99,99,99,99,99,99,99,99,99,99},
/*30*/ { 5,13,22,31,39,48,56,65,73,81,99,99,99,99,99,99,99,99,99,99,99},
/*31*/ { 5,14,23,32,40,49,58,67,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*32*/ { 5,14,23,33,42,51,60,69,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*33*/ { 5,15,24,34,43,52,62,71,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*34*/ { 5,15,25,35,44,54,64,73,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*35*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*36*/ { 6,16,26,37,47,57,67,78,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*37*/ { 6,16,27,38,48,59,69,80,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*38*/ { 6,17,28,39,49,60,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*39*/ { 6,17,28,40,51,62,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*40*/ { 6,18,29,41,52,63,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*41*/ { 6,18,30,42,53,65,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*42*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*43*/ { 7,19,31,44,56,68,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*44*/ { 7,19,32,45,57,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*45*/ { 7,20,33,46,58,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*46*/ { 7,20,33,47,60,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*47*/ { 7,21,34,48,61,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ { 7,21,35,49,62,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ { 8,22,36,51,65,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ { 8,22,37,52,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ { 8,23,38,53,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ { 8,23,38,54,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ { 8,24,39,55,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ { 8,24,40,56,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ { 9,25,41,57,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ { 9,25,41,58,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ { 9,25,42,59,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ { 9,26,43,60,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ { 9,26,43,61,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ { 9,27,44,62,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ { 9,27,45,63,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ {10,28,46,64,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ {10,28,46,65,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ {10,28,47,66,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ {10,29,48,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ {10,29,48,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ {10,30,49,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ {10,30,50,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ {11,31,51,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ {11,31,51,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ {11,31,52,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ {11,32,53,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ {11,32,53,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ {11,33,54,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ {11,33,55,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ {12,34,56,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ {12,34,56,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ {12,34,57,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 5 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3},
/* 1*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7},
/* 2*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 3*/ { 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13,14,14,15},
/* 4*/ { 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,14,14,15,16,17,18,19},
/* 5*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,16,17,18,19,20,21,22,23},
/* 6*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/* 7*/ { 1, 3, 4, 6, 8, 9,11,12,14,15,17,18,20,22,23,25,26,28,29,31,32},
/* 8*/ { 1, 3, 5, 7, 9,10,12,14,16,17,19,21,23,25,26,28,30,32,33,35,37},
/* 9*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*10*/ { 2, 4, 6, 8,11,13,15,17,19,22,24,26,28,31,33,35,37,39,42,44,46},
/*11*/ { 2, 4, 7, 9,12,14,16,19,21,24,26,29,31,34,36,38,41,43,46,48,51},
/*12*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*13*/ { 2, 5, 8,11,14,16,19,22,25,28,31,34,37,40,42,45,48,51,54,57,60},
/*14*/ { 2, 5, 8,11,15,18,21,24,27,30,33,36,39,43,46,49,52,55,58,61,64},
/*15*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*16*/ { 2, 6, 9,13,17,20,24,27,31,34,38,41,45,49,52,56,59,63,66,70,73},
/*17*/ { 2, 6,10,14,18,21,25,29,33,36,40,44,48,52,55,59,63,67,70,74,78},
/*18*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*19*/ { 3, 7,11,15,20,24,28,32,36,41,45,49,53,58,62,66,70,74,79,81,99},
/*20*/ { 3, 7,12,16,21,25,29,34,38,43,47,52,56,61,65,69,74,78,81,99,99},
/*21*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/*22*/ { 3, 8,13,18,23,27,32,37,42,47,52,57,62,67,71,76,81,99,99,99,99},
/*23*/ { 3, 8,13,18,24,29,34,39,44,49,54,59,64,70,75,80,81,99,99,99,99},
/*24*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,67,73,78,81,99,99,99,99,99},
/*25*/ { 3, 9,14,20,26,31,37,42,48,53,59,64,70,76,81,99,99,99,99,99,99},
/*26*/ { 3, 9,15,21,27,32,38,44,50,55,61,67,73,79,81,99,99,99,99,99,99},
/*27*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*28*/ { 4,10,16,22,29,35,41,47,53,60,66,72,78,81,99,99,99,99,99,99,99},
/*29*/ { 4,10,17,23,30,36,42,49,55,62,68,75,81,99,99,99,99,99,99,99,99},
/*30*/ { 4,11,17,24,31,37,44,51,57,64,71,77,81,99,99,99,99,99,99,99,99},
/*31*/ { 4,11,18,25,32,38,45,52,59,66,73,80,81,99,99,99,99,99,99,99,99},
/*32*/ { 4,11,18,25,33,40,47,54,61,68,75,81,99,99,99,99,99,99,99,99,99},
/*33*/ { 4,12,19,26,34,41,48,56,63,70,78,81,99,99,99,99,99,99,99,99,99},
/*34*/ { 4,12,19,27,35,42,50,57,65,72,80,81,99,99,99,99,99,99,99,99,99},
/*35*/ { 4,12,20,28,36,43,51,59,67,74,81,99,99,99,99,99,99,99,99,99,99},
/*36*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*37*/ { 5,13,21,29,38,46,54,62,70,79,81,99,99,99,99,99,99,99,99,99,99},
/*38*/ { 5,13,22,30,39,47,55,64,72,81,99,99,99,99,99,99,99,99,99,99,99},
/*39*/ { 5,14,22,31,40,48,57,66,74,81,99,99,99,99,99,99,99,99,99,99,99},
/*40*/ { 5,14,23,32,41,49,58,67,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*41*/ { 5,14,23,32,42,51,60,69,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*42*/ { 5,15,24,33,43,52,61,71,80,81,99,99,99,99,99,99,99,99,99,99,99},
/*43*/ { 5,15,24,34,44,53,63,72,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*44*/ { 5,15,25,35,45,54,64,74,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*45*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*46*/ { 6,16,26,36,47,57,67,77,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*47*/ { 6,16,27,37,48,58,68,79,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ { 6,17,27,38,49,59,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ { 6,17,28,39,50,60,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ { 6,17,28,39,51,62,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ { 6,18,29,40,52,63,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ { 6,18,29,41,53,64,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ { 6,18,30,42,54,65,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ { 7,19,31,43,56,68,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ { 7,19,32,44,57,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ { 7,20,32,45,58,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ { 7,20,33,46,59,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ { 7,20,33,46,60,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ { 7,21,34,47,61,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ { 7,21,34,48,62,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ { 7,21,35,49,63,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ { 8,22,36,50,65,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ { 8,22,37,51,66,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ { 8,23,37,52,67,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ { 8,23,38,53,68,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ { 8,23,38,53,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ { 8,24,39,54,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ { 8,24,39,55,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ { 8,24,40,56,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ { 9,25,41,57,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ { 9,25,41,57,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 9,25,42,58,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 9,26,42,59,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 9,26,43,60,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 9,26,43,60,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 9,27,44,61,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 9,27,44,62,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 6 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3},
/* 1*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6},
/* 2*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9},
/* 3*/ { 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,10,11,11,12,13},
/* 4*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14,15,16},
/* 5*/ { 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,12,13,14,15,16,17,17,18,19},
/* 6*/ { 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,19,20,21,22,23},
/* 7*/ { 1, 2, 4, 5, 6, 8, 9,10,11,13,14,15,16,18,19,20,22,23,24,25,27},
/* 8*/ { 1, 3, 4, 6, 7, 9,10,11,13,14,16,17,19,20,22,23,25,26,27,29,30},
/* 9*/ { 1, 3, 5, 6, 8,10,11,13,14,16,18,19,21,23,24,26,28,29,31,32,34},
/*10*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,21,23,25,27,29,31,32,34,36,38},
/*11*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*12*/ { 2, 4, 6, 8,10,13,15,17,19,21,23,26,28,30,32,34,37,39,41,43,45},
/*13*/ { 2, 4, 6, 9,11,14,16,18,21,23,25,28,30,32,35,37,40,42,44,47,49},
/*14*/ { 2, 4, 7, 9,12,15,17,20,22,25,27,30,32,35,37,40,43,45,48,50,53},
/*15*/ { 2, 5, 7,10,13,16,18,21,24,26,29,32,35,37,40,43,46,48,51,54,56},
/*16*/ { 2, 5, 8,11,14,17,19,22,25,28,31,34,37,40,43,46,49,51,54,57,60},
/*17*/ { 2, 5, 8,11,14,18,21,24,27,30,33,36,39,42,45,48,52,55,58,61,64},
/*18*/ { 2, 5, 9,12,15,19,22,25,28,32,35,38,41,45,48,51,55,58,61,64,68},
/*19*/ { 2, 6, 9,13,16,20,23,26,30,33,37,40,44,47,51,54,58,61,64,68,71},
/*20*/ { 2, 6,10,13,17,21,24,28,31,35,39,42,46,50,53,57,61,64,68,71,75},
/*21*/ { 2, 6,10,14,18,22,25,29,33,37,41,44,48,52,56,60,64,67,71,75,79},
/*22*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*23*/ { 3, 7,11,15,19,24,28,32,36,40,44,49,53,57,61,65,70,74,78,81,99},
/*24*/ { 3, 7,11,16,20,25,29,33,38,42,46,51,55,59,64,68,73,77,81,99,99},
/*25*/ { 3, 7,12,16,21,26,30,35,39,44,48,53,57,62,66,71,76,80,81,99,99},
/*26*/ { 3, 8,12,17,22,27,31,36,41,45,50,55,60,64,69,74,79,81,99,99,99},
/*27*/ { 3, 8,13,18,23,28,32,37,42,47,52,57,62,67,72,77,81,99,99,99,99},
/*28*/ { 3, 8,13,18,23,29,34,39,44,49,54,59,64,69,74,79,81,99,99,99,99},
/*29*/ { 3, 8,14,19,24,30,35,40,45,51,56,61,66,72,77,81,99,99,99,99,99},
/*30*/ { 3, 9,14,20,25,31,36,41,47,52,58,63,69,74,80,81,99,99,99,99,99},
/*31*/ { 3, 9,15,20,26,32,37,43,48,54,60,65,71,77,81,99,99,99,99,99,99},
/*32*/ { 3, 9,15,21,27,33,38,44,50,56,62,67,73,79,81,99,99,99,99,99,99},
/*33*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*34*/ { 4,10,16,22,28,35,41,47,53,59,65,72,78,81,99,99,99,99,99,99,99},
/*35*/ { 4,10,16,23,29,36,42,48,55,61,67,74,80,81,99,99,99,99,99,99,99},
/*36*/ { 4,10,17,23,30,37,43,50,56,63,69,76,81,99,99,99,99,99,99,99,99},
/*37*/ { 4,11,17,24,31,38,44,51,58,64,71,78,81,99,99,99,99,99,99,99,99},
/*38*/ { 4,11,18,25,32,39,45,52,59,66,73,80,81,99,99,99,99,99,99,99,99},
/*39*/ { 4,11,18,25,32,40,47,54,61,68,75,81,99,99,99,99,99,99,99,99,99},
/*40*/ { 4,11,19,26,33,41,48,55,62,70,77,81,99,99,99,99,99,99,99,99,99},
/*41*/ { 4,12,19,27,34,42,49,56,64,71,79,81,99,99,99,99,99,99,99,99,99},
/*42*/ { 4,12,20,27,35,43,50,58,65,73,81,99,99,99,99,99,99,99,99,99,99},
/*43*/ { 4,12,20,28,36,44,51,59,67,75,81,99,99,99,99,99,99,99,99,99,99},
/*44*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*45*/ { 5,13,21,29,37,46,54,62,70,78,81,99,99,99,99,99,99,99,99,99,99},
/*46*/ { 5,13,21,30,38,47,55,63,72,80,81,99,99,99,99,99,99,99,99,99,99},
/*47*/ { 5,13,22,30,39,48,56,65,73,81,99,99,99,99,99,99,99,99,99,99,99},
/*48*/ { 5,14,22,31,40,49,57,66,75,81,99,99,99,99,99,99,99,99,99,99,99},
/*49*/ { 5,14,23,32,41,50,58,67,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*50*/ { 5,14,23,32,41,51,60,69,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*51*/ { 5,14,24,33,42,52,61,70,79,81,99,99,99,99,99,99,99,99,99,99,99},
/*52*/ { 5,15,24,34,43,53,62,71,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*53*/ { 5,15,25,34,44,54,63,73,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*54*/ { 5,15,25,35,45,55,64,74,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*55*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ { 6,16,26,36,46,57,67,77,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ { 6,16,26,37,47,58,68,78,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ { 6,16,27,37,48,59,69,80,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ { 6,17,27,38,49,60,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ { 6,17,28,39,50,61,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ { 6,17,28,39,50,62,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ { 6,17,29,40,51,63,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ { 6,18,29,41,52,64,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ { 6,18,30,41,53,65,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ { 6,18,30,42,54,66,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ { 7,19,31,43,55,68,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ { 7,19,31,44,56,69,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ { 7,19,32,44,57,70,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ { 7,20,32,45,58,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ { 7,20,33,46,59,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ { 7,20,33,46,59,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ { 7,20,34,47,60,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 7,21,34,48,61,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 7,21,35,48,62,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 7,21,35,49,63,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 8,22,36,50,64,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 8,22,36,50,64,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 8,22,36,51,65,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 7 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5},
/* 2*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8},
/* 3*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 4*/ { 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13,13,14},
/* 5*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9,10,10,11,12,13,14,14,15,16,17},
/* 6*/ { 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20},
/* 7*/ { 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,19,20,22,23},
/* 8*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,20,21,22,23,25,26},
/* 9*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,16,18,19,21,22,23,25,26,28,29},
/*10*/ { 1, 3, 4, 6, 7, 9,11,12,14,15,17,18,20,21,23,24,26,27,29,31,32},
/*11*/ { 1, 3, 5, 6, 8,10,12,13,15,17,18,20,22,23,25,27,28,30,32,34,35},
/*12*/ { 1, 3, 5, 7, 9,11,13,14,16,18,20,22,24,25,27,29,31,33,35,37,38},
/*13*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*14*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,25,27,30,32,34,36,38,40,43,45},
/*15*/ { 2, 4, 6, 9,11,13,16,18,20,22,25,27,29,32,34,36,39,41,43,46,48},
/*16*/ { 2, 4, 7, 9,12,14,17,19,21,24,26,29,31,34,36,39,41,44,46,49,51},
/*17*/ { 2, 4, 7,10,12,15,18,20,23,25,28,31,33,36,38,41,44,46,49,52,54},
/*18*/ { 2, 5, 7,10,13,16,19,21,24,27,30,32,35,38,41,43,46,49,52,55,57},
/*19*/ { 2, 5, 8,11,14,17,20,22,25,28,31,34,37,40,43,46,49,52,55,58,60},
/*20*/ { 2, 5, 8,11,14,17,21,24,27,30,33,36,39,42,45,48,51,54,57,61,64},
/*21*/ { 2, 5, 9,12,15,18,22,25,28,31,34,38,41,44,47,51,54,57,60,64,67},
/*22*/ { 2, 6, 9,12,16,19,23,26,29,33,36,39,43,46,50,53,56,60,63,67,70},
/*23*/ { 2, 6, 9,13,16,20,24,27,31,34,38,41,45,48,52,55,59,62,66,70,73},
/*24*/ { 2, 6,10,13,17,21,25,28,32,36,39,43,47,50,54,58,61,65,69,73,76},
/*25*/ { 2, 6,10,14,18,22,26,29,33,37,41,45,49,52,56,60,64,68,72,76,79},
/*26*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*27*/ { 3, 7,11,15,19,23,28,32,36,40,44,48,52,57,61,65,69,73,77,81,99},
/*28*/ { 3, 7,11,16,20,24,29,33,37,41,46,50,54,59,63,67,72,76,80,81,99},
/*29*/ { 3, 7,12,16,21,25,30,34,38,43,47,52,56,61,65,70,74,79,81,99,99},
/*30*/ { 3, 7,12,17,21,26,31,35,40,44,49,54,58,63,67,72,77,81,99,99,99},
/*31*/ { 3, 8,12,17,22,27,32,36,41,46,51,55,60,65,70,74,79,81,99,99,99},
/*32*/ { 3, 8,13,18,23,28,33,37,42,47,52,57,62,67,72,77,81,99,99,99,99},
/*33*/ { 3, 8,13,18,23,28,34,39,44,49,54,59,64,69,74,79,81,99,99,99,99},
/*34*/ { 3, 8,14,19,24,29,35,40,45,50,55,61,66,71,76,81,99,99,99,99,99},
/*35*/ { 3, 9,14,19,25,30,36,41,46,52,57,62,68,73,79,81,99,99,99,99,99},
/*36*/ { 3, 9,14,20,25,31,37,42,48,53,59,64,70,75,81,99,99,99,99,99,99},
/*37*/ { 3, 9,15,20,26,32,38,43,49,55,60,66,72,77,81,99,99,99,99,99,99},
/*38*/ { 3, 9,15,21,27,33,39,44,50,56,62,68,74,79,81,99,99,99,99,99,99},
/*39*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*40*/ { 4,10,16,22,28,34,41,47,53,59,65,71,77,81,99,99,99,99,99,99,99},
/*41*/ { 4,10,16,23,29,35,42,48,54,60,67,73,79,81,99,99,99,99,99,99,99},
/*42*/ { 4,10,17,23,30,36,43,49,55,62,68,75,81,99,99,99,99,99,99,99,99},
/*43*/ { 4,10,17,24,30,37,44,50,57,63,70,77,81,99,99,99,99,99,99,99,99},
/*44*/ { 4,11,17,24,31,38,45,51,58,65,72,78,81,99,99,99,99,99,99,99,99},
/*45*/ { 4,11,18,25,32,39,46,52,59,66,73,80,81,99,99,99,99,99,99,99,99},
/*46*/ { 4,11,18,25,32,39,47,54,61,68,75,81,99,99,99,99,99,99,99,99,99},
/*47*/ { 4,11,19,26,33,40,48,55,62,69,76,81,99,99,99,99,99,99,99,99,99},
/*48*/ { 4,12,19,26,34,41,49,56,63,71,78,81,99,99,99,99,99,99,99,99,99},
/*49*/ { 4,12,19,27,34,42,50,57,65,72,80,81,99,99,99,99,99,99,99,99,99},
/*50*/ { 4,12,20,27,35,43,51,58,66,74,81,99,99,99,99,99,99,99,99,99,99},
/*51*/ { 4,12,20,28,36,44,52,59,67,75,81,99,99,99,99,99,99,99,99,99,99},
/*52*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*53*/ { 5,13,21,29,37,45,54,62,70,78,81,99,99,99,99,99,99,99,99,99,99},
/*54*/ { 5,13,21,30,38,46,55,63,71,79,81,99,99,99,99,99,99,99,99,99,99},
/*55*/ { 5,13,22,30,39,47,56,64,72,81,99,99,99,99,99,99,99,99,99,99,99},
/*56*/ { 5,13,22,31,39,48,57,65,74,81,99,99,99,99,99,99,99,99,99,99,99},
/*57*/ { 5,14,22,31,40,49,58,66,75,81,99,99,99,99,99,99,99,99,99,99,99},
/*58*/ { 5,14,23,32,41,50,59,67,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*59*/ { 5,14,23,32,41,50,60,69,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*60*/ { 5,14,24,33,42,51,61,70,79,81,99,99,99,99,99,99,99,99,99,99,99},
/*61*/ { 5,15,24,33,43,52,62,71,80,81,99,99,99,99,99,99,99,99,99,99,99},
/*62*/ { 5,15,24,34,43,53,63,72,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*63*/ { 5,15,25,34,44,54,64,73,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*64*/ { 5,15,25,35,45,55,65,74,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ { 6,16,26,36,46,56,67,77,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ { 6,16,26,37,47,57,68,78,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ { 6,16,27,37,48,58,69,79,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ { 6,16,27,38,48,59,70,80,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ { 6,17,27,38,49,60,71,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ { 6,17,28,39,50,61,72,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ { 6,17,28,39,50,61,73,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ { 6,17,29,40,51,62,74,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 6,18,29,40,52,63,75,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 6,18,29,41,52,64,76,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 6,18,30,41,53,65,77,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 6,18,30,42,54,66,78,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 7,19,31,43,55,67,79,81,99,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 7,19,31,43,55,67,80,81,99,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 8 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5},
/* 2*/ { 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7},
/* 3*/ { 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 8, 9, 9,10},
/* 4*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10,11,11,12,12},
/* 5*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 9, 9,10,11,11,12,13,13,14,15},
/* 6*/ { 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,12,13,14,15,16,16,17},
/* 7*/ { 1, 2, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,14,15,16,17,18,19,20},
/* 8*/ { 1, 2, 3, 4, 5, 6, 7, 9,10,11,12,13,14,15,16,17,18,19,20,21,22},
/* 9*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,22,23,24,25},
/*10*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/*11*/ { 1, 3, 4, 6, 7, 9,10,12,13,14,16,17,19,20,22,23,25,26,28,29,31},
/*12*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,17,19,21,22,24,25,27,29,30,32,33},
/*13*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,20,22,24,26,27,29,31,33,34,36},
/*14*/ { 1, 3, 5, 7, 9,11,13,15,16,18,20,22,24,26,28,29,31,33,35,37,39},
/*15*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*16*/ { 2, 4, 6, 8,10,12,14,17,19,21,23,25,27,29,31,34,36,38,40,42,44},
/*17*/ { 2, 4, 6, 8,11,13,15,18,20,22,24,27,29,31,33,36,38,40,42,45,47},
/*18*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,47,50},
/*19*/ { 2, 4, 7, 9,12,14,17,20,22,25,27,30,32,35,37,40,42,45,47,50,52},
/*20*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*21*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,38,41,44,47,50,52,55,58},
/*22*/ { 2, 5, 8,11,14,17,20,23,25,28,31,34,37,40,43,46,49,52,55,58,61},
/*23*/ { 2, 5, 8,11,14,17,20,24,27,30,33,36,39,42,45,48,51,54,57,60,63},
/*24*/ { 2, 5, 9,12,15,18,21,25,28,31,34,37,41,44,47,50,53,57,60,63,66},
/*25*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*26*/ { 2, 6, 9,13,16,20,23,27,30,33,37,40,44,47,51,54,58,61,65,68,72},
/*27*/ { 2, 6,10,13,17,20,24,28,31,35,38,42,46,49,53,56,60,64,67,71,74},
/*28*/ { 2, 6,10,14,17,21,25,29,32,36,40,43,47,51,55,58,62,66,70,73,77},
/*29*/ { 2, 6,10,14,18,22,26,30,33,37,41,45,49,53,57,60,64,68,72,76,80},
/*30*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*31*/ { 3, 7,11,15,19,23,27,32,36,40,44,48,52,56,60,65,69,73,77,81,99},
/*32*/ { 3, 7,11,15,20,24,28,33,37,41,45,50,54,58,62,67,71,75,79,81,99},
/*33*/ { 3, 7,12,16,20,25,29,34,38,42,47,51,56,60,64,69,73,78,81,99,99},
/*34*/ { 3, 7,12,16,21,25,30,35,39,44,48,53,57,62,66,71,75,80,81,99,99},
/*35*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/*36*/ { 3, 8,13,17,22,27,32,37,41,46,51,56,61,65,70,75,80,81,99,99,99},
/*37*/ { 3, 8,13,18,23,28,33,38,42,47,52,57,62,67,72,77,81,99,99,99,99},
/*38*/ { 3, 8,13,18,23,28,33,39,44,49,54,59,64,69,74,79,81,99,99,99,99},
/*39*/ { 3, 8,14,19,24,29,34,40,45,50,55,60,66,71,76,81,99,99,99,99,99},
/*40*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,67,73,78,81,99,99,99,99,99},
/*41*/ { 3, 9,14,20,25,31,36,42,47,52,58,63,69,74,80,81,99,99,99,99,99},
/*42*/ { 3, 9,15,20,26,31,37,43,48,54,59,65,71,76,81,99,99,99,99,99,99},
/*43*/ { 3, 9,15,21,26,32,38,44,49,55,61,66,72,78,81,99,99,99,99,99,99},
/*44*/ { 3, 9,15,21,27,33,39,45,50,56,62,68,74,80,81,99,99,99,99,99,99},
/*45*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*46*/ { 4,10,16,22,28,34,40,47,53,59,65,71,77,81,99,99,99,99,99,99,99},
/*47*/ { 4,10,16,22,29,35,41,48,54,60,66,73,79,81,99,99,99,99,99,99,99},
/*48*/ { 4,10,17,23,29,36,42,49,55,61,68,74,81,99,99,99,99,99,99,99,99},
/*49*/ { 4,10,17,23,30,36,43,50,56,63,69,76,81,99,99,99,99,99,99,99,99},
/*50*/ { 4,11,17,24,31,37,44,51,57,64,71,77,81,99,99,99,99,99,99,99,99},
/*51*/ { 4,11,18,24,31,38,45,52,58,65,72,79,81,99,99,99,99,99,99,99,99},
/*52*/ { 4,11,18,25,32,39,46,53,59,66,73,80,81,99,99,99,99,99,99,99,99},
/*53*/ { 4,11,18,25,32,39,46,54,61,68,75,81,99,99,99,99,99,99,99,99,99},
/*54*/ { 4,11,19,26,33,40,47,55,62,69,76,81,99,99,99,99,99,99,99,99,99},
/*55*/ { 4,12,19,26,34,41,48,56,63,70,78,81,99,99,99,99,99,99,99,99,99},
/*56*/ { 4,12,19,27,34,42,49,57,64,71,79,81,99,99,99,99,99,99,99,99,99},
/*57*/ { 4,12,20,27,35,42,50,58,65,73,80,81,99,99,99,99,99,99,99,99,99},
/*58*/ { 4,12,20,28,35,43,51,59,66,74,81,99,99,99,99,99,99,99,99,99,99},
/*59*/ { 4,12,20,28,36,44,52,60,67,75,81,99,99,99,99,99,99,99,99,99,99},
/*60*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*61*/ { 5,13,21,29,37,45,53,62,70,78,81,99,99,99,99,99,99,99,99,99,99},
/*62*/ { 5,13,21,29,38,46,54,63,71,79,81,99,99,99,99,99,99,99,99,99,99},
/*63*/ { 5,13,22,30,38,47,55,64,72,80,81,99,99,99,99,99,99,99,99,99,99},
/*64*/ { 5,13,22,30,39,47,56,65,73,81,99,99,99,99,99,99,99,99,99,99,99},
/*65*/ { 5,14,22,31,40,48,57,66,74,81,99,99,99,99,99,99,99,99,99,99,99},
/*66*/ { 5,14,23,31,40,49,58,67,75,81,99,99,99,99,99,99,99,99,99,99,99},
/*67*/ { 5,14,23,32,41,50,59,68,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*68*/ { 5,14,23,32,41,50,59,69,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*69*/ { 5,14,24,33,42,51,60,70,79,81,99,99,99,99,99,99,99,99,99,99,99},
/*70*/ { 5,15,24,33,43,52,61,71,80,81,99,99,99,99,99,99,99,99,99,99,99},
/*71*/ { 5,15,24,34,43,53,62,72,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*72*/ { 5,15,25,34,44,53,63,73,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ { 5,15,25,35,44,54,64,74,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 5,15,25,35,45,55,65,75,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 6,16,26,36,46,56,66,76,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 6,16,26,36,46,56,66,77,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 6,16,26,36,47,57,67,78,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 6,16,27,37,47,58,68,79,81,99,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 6,16,27,37,48,58,69,80,81,99,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 9 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4},
/* 2*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7},
/* 3*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9},
/* 4*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 5*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9,10,10,11,11,12,13,13},
/* 6*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9,10,10,11,12,13,13,14,15,15},
/* 7*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,13,14,15,16,17,18},
/* 8*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,17,18,19,20},
/* 9*/ { 1, 2, 3, 4, 5, 6, 7, 8,10,11,12,13,14,15,16,17,18,19,20,21,22},
/*10*/ { 1, 2, 3, 5, 6, 7, 8, 9,11,12,13,14,15,16,18,19,20,21,22,23,25},
/*11*/ { 1, 2, 4, 5, 6, 8, 9,10,12,13,14,15,17,18,19,21,22,23,24,26,27},
/*12*/ { 1, 3, 4, 5, 7, 8,10,11,13,14,15,17,18,20,21,22,24,25,27,28,29},
/*13*/ { 1, 3, 4, 6, 7, 9,10,12,14,15,17,18,20,21,23,24,26,27,29,30,32},
/*14*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,19,21,23,24,26,28,29,31,33,34},
/*15*/ { 1, 3, 5, 7, 8,10,12,14,16,17,19,21,23,24,26,28,30,31,33,35,37},
/*16*/ { 1, 3, 5, 7, 9,11,13,15,17,18,20,22,24,26,28,30,32,33,35,37,39},
/*17*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*18*/ { 2, 4, 6, 8,10,12,14,16,19,21,23,25,27,29,31,33,35,38,40,42,44},
/*19*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,26,28,31,33,35,37,40,42,44,46},
/*20*/ { 2, 4, 6, 9,11,13,16,18,21,23,25,28,30,32,35,37,39,42,44,46,49},
/*21*/ { 2, 4, 7, 9,12,14,17,19,22,24,26,29,31,34,36,39,41,44,46,49,51},
/*22*/ { 2, 4, 7,10,12,15,17,20,23,25,28,30,33,35,38,41,43,46,48,51,54},
/*23*/ { 2, 5, 7,10,13,15,18,21,24,26,29,32,34,37,40,42,45,48,51,53,56},
/*24*/ { 2, 5, 8,10,13,16,19,22,25,27,30,33,36,39,41,44,47,50,53,56,58},
/*25*/ { 2, 5, 8,11,14,17,20,23,26,28,31,34,37,40,43,46,49,52,55,58,61},
/*26*/ { 2, 5, 8,11,14,17,20,23,27,30,33,36,39,42,45,48,51,54,57,60,63},
/*27*/ { 2, 5, 8,12,15,18,21,24,28,31,34,37,40,43,47,50,53,56,59,62,66},
/*28*/ { 2, 5, 9,12,15,19,22,25,29,32,35,38,42,45,48,52,55,58,61,65,68},
/*29*/ { 2, 6, 9,12,16,19,23,26,30,33,36,40,43,47,50,53,57,60,64,67,70},
/*30*/ { 2, 6, 9,13,16,20,23,27,31,34,38,41,45,48,52,55,59,62,66,69,73},
/*31*/ { 2, 6,10,13,17,21,24,28,32,35,39,42,46,50,53,57,61,64,68,72,75},
/*32*/ { 2, 6,10,14,17,21,25,29,33,36,40,44,48,51,55,59,63,66,70,74,78},
/*33*/ { 2, 6,10,14,18,22,26,30,34,37,41,45,49,53,57,61,65,68,72,76,80},
/*34*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*35*/ { 3, 7,11,15,19,23,27,31,36,40,44,48,52,56,60,64,68,73,77,81,99},
/*36*/ { 3, 7,11,15,20,24,28,32,37,41,45,49,53,58,62,66,70,75,79,81,99},
/*37*/ { 3, 7,11,16,20,24,29,33,38,42,46,51,55,59,64,68,72,77,81,99,99},
/*38*/ { 3, 7,12,16,21,25,30,34,39,43,47,52,56,61,65,70,74,79,81,99,99},
/*39*/ { 3, 7,12,17,21,26,30,35,40,44,49,53,58,62,67,72,76,81,99,99,99},
/*40*/ { 3, 8,12,17,22,26,31,36,41,45,50,55,59,64,69,73,78,81,99,99,99},
/*41*/ { 3, 8,13,17,22,27,32,37,42,46,51,56,61,66,70,75,80,81,99,99,99},
/*42*/ { 3, 8,13,18,23,28,33,38,43,47,52,57,62,67,72,77,81,99,99,99,99},
/*43*/ { 3, 8,13,18,23,28,33,38,44,49,54,59,64,69,74,79,81,99,99,99,99},
/*44*/ { 3, 8,13,19,24,29,34,39,45,50,55,60,65,70,76,81,99,99,99,99,99},
/*45*/ { 3, 8,14,19,24,30,35,40,46,51,56,61,67,72,77,81,99,99,99,99,99},
/*46*/ { 3, 9,14,19,25,30,36,41,47,52,57,63,68,74,79,81,99,99,99,99,99},
/*47*/ { 3, 9,14,20,25,31,36,42,48,53,59,64,70,75,81,99,99,99,99,99,99},
/*48*/ { 3, 9,15,20,26,32,37,43,49,54,60,65,71,77,81,99,99,99,99,99,99},
/*49*/ { 3, 9,15,21,26,32,38,44,50,55,61,67,73,78,81,99,99,99,99,99,99},
/*50*/ { 3, 9,15,21,27,33,39,45,51,56,62,68,74,80,81,99,99,99,99,99,99},
/*51*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*52*/ { 4,10,16,22,28,34,40,46,53,59,65,71,77,81,99,99,99,99,99,99,99},
/*53*/ { 4,10,16,22,29,35,41,47,54,60,66,72,78,81,99,99,99,99,99,99,99},
/*54*/ { 4,10,16,23,29,35,42,48,55,61,67,74,80,81,99,99,99,99,99,99,99},
/*55*/ { 4,10,17,23,30,36,43,49,56,62,68,75,81,99,99,99,99,99,99,99,99},
/*56*/ { 4,10,17,24,30,37,43,50,57,63,70,76,81,99,99,99,99,99,99,99,99},
/*57*/ { 4,11,17,24,31,37,44,51,58,64,71,78,81,99,99,99,99,99,99,99,99},
/*58*/ { 4,11,18,24,31,38,45,52,59,65,72,79,81,99,99,99,99,99,99,99,99},
/*59*/ { 4,11,18,25,32,39,46,53,60,66,73,80,81,99,99,99,99,99,99,99,99},
/*60*/ { 4,11,18,25,32,39,46,53,61,68,75,81,99,99,99,99,99,99,99,99,99},
/*61*/ { 4,11,18,26,33,40,47,54,62,69,76,81,99,99,99,99,99,99,99,99,99},
/*62*/ { 4,11,19,26,33,41,48,55,63,70,77,81,99,99,99,99,99,99,99,99,99},
/*63*/ { 4,12,19,26,34,41,49,56,64,71,78,81,99,99,99,99,99,99,99,99,99},
/*64*/ { 4,12,19,27,34,42,49,57,65,72,80,81,99,99,99,99,99,99,99,99,99},
/*65*/ { 4,12,20,27,35,43,50,58,66,73,81,99,99,99,99,99,99,99,99,99,99},
/*66*/ { 4,12,20,28,35,43,51,59,67,74,81,99,99,99,99,99,99,99,99,99,99},
/*67*/ { 4,12,20,28,36,44,52,60,68,75,81,99,99,99,99,99,99,99,99,99,99},
/*68*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*69*/ { 5,13,21,29,37,45,53,61,70,78,81,99,99,99,99,99,99,99,99,99,99},
/*70*/ { 5,13,21,29,38,46,54,62,71,79,81,99,99,99,99,99,99,99,99,99,99},
/*71*/ { 5,13,21,30,38,46,55,63,72,80,81,99,99,99,99,99,99,99,99,99,99},
/*72*/ { 5,13,22,30,39,47,56,64,73,81,99,99,99,99,99,99,99,99,99,99,99},
/*73*/ { 5,13,22,31,39,48,56,65,74,81,99,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 5,14,22,31,40,48,57,66,75,81,99,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 5,14,23,31,40,49,58,67,76,81,99,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 5,14,23,32,41,50,59,68,77,81,99,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 5,14,23,32,41,50,59,68,78,81,99,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 5,14,23,33,42,51,60,69,79,81,99,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 5,14,24,33,42,52,61,70,80,81,99,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 10 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4},
/* 2*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6},
/* 3*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8},
/* 4*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10},
/* 5*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,10,11,11,12},
/* 6*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,11,11,12,13,13,14},
/* 7*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14,15,16},
/* 8*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,15,16,17,18},
/* 9*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,16,17,18,19,20},
/*10*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,11,12,13,14,15,16,17,18,19,20,21,22},
/*11*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,20,21,22,23,24},
/*12*/ { 1, 2, 4, 5, 6, 7, 9,10,11,13,14,15,16,18,19,20,21,23,24,25,26},
/*13*/ { 1, 3, 4, 5, 7, 8, 9,11,12,14,15,16,18,19,20,22,23,24,26,27,29},
/*14*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,17,19,20,22,23,25,26,28,29,31},
/*15*/ { 1, 3, 4, 6, 8, 9,11,12,14,16,17,19,20,22,23,25,27,28,30,31,33},
/*16*/ { 1, 3, 5, 6, 8,10,11,13,15,17,18,20,22,23,25,27,28,30,32,33,35},
/*17*/ { 1, 3, 5, 7, 9,10,12,14,16,18,19,21,23,25,26,28,30,32,34,35,37},
/*18*/ { 1, 3, 5, 7, 9,11,13,15,17,19,20,22,24,26,28,30,32,34,36,37,39},
/*19*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*20*/ { 2, 4, 6, 8,10,12,14,16,18,21,23,25,27,29,31,33,35,37,39,42,44},
/*21*/ { 2, 4, 6, 8,10,13,15,17,19,22,24,26,28,30,33,35,37,39,41,44,46},
/*22*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,29,32,34,36,39,41,43,46,48},
/*23*/ { 2, 4, 7, 9,11,14,16,19,21,24,26,28,31,33,36,38,40,43,45,48,50},
/*24*/ { 2, 4, 7, 9,12,14,17,19,22,25,27,30,32,35,37,40,42,45,47,50,52},
/*25*/ { 2, 4, 7,10,12,15,18,20,23,26,28,31,33,36,39,41,44,47,49,52,54},
/*26*/ { 2, 5, 7,10,13,16,18,21,24,27,29,32,35,37,40,43,46,48,51,54,57},
/*27*/ { 2, 5, 8,10,13,16,19,22,25,28,30,33,36,39,42,45,47,50,53,56,59},
/*28*/ { 2, 5, 8,11,14,17,20,23,26,29,31,34,37,40,43,46,49,52,55,58,61},
/*29*/ { 2, 5, 8,11,14,17,20,23,26,30,33,36,39,42,45,48,51,54,57,60,63},
/*30*/ { 2, 5, 8,12,15,18,21,24,27,31,34,37,40,43,46,49,53,56,59,62,65},
/*31*/ { 2, 5, 9,12,15,18,22,25,28,32,35,38,41,45,48,51,54,58,61,64,67},
/*32*/ { 2, 6, 9,12,16,19,22,26,29,33,36,39,43,46,49,53,56,59,63,66,70},
/*33*/ { 2, 6, 9,13,16,20,23,27,30,34,37,40,44,47,51,54,58,61,65,68,72},
/*34*/ { 2, 6, 9,13,17,20,24,27,31,35,38,42,45,49,52,56,60,63,67,70,74},
/*35*/ { 2, 6,10,13,17,21,24,28,32,36,39,43,47,50,54,58,61,65,69,72,76},
/*36*/ { 2, 6,10,14,18,21,25,29,33,37,40,44,48,52,55,59,63,67,71,74,78},
/*37*/ { 2, 6,10,14,18,22,26,30,34,38,41,45,49,53,57,61,65,69,73,76,80},
/*38*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*39*/ { 3, 7,11,15,19,23,27,31,35,40,44,48,52,56,60,64,68,72,76,81,99},
/*40*/ { 3, 7,11,15,19,24,28,32,36,41,45,49,53,57,62,66,70,74,78,81,99},
/*41*/ { 3, 7,11,16,20,24,29,33,37,42,46,50,54,59,63,67,72,76,80,81,99},
/*42*/ { 3, 7,12,16,20,25,29,34,38,43,47,51,56,60,65,69,73,78,81,99,99},
/*43*/ { 3, 7,12,16,21,25,30,34,39,44,48,53,57,62,66,71,75,80,81,99,99},
/*44*/ { 3, 7,12,17,21,26,31,35,40,45,49,54,58,63,68,72,77,81,99,99,99},
/*45*/ { 3, 8,12,17,22,27,31,36,41,46,50,55,60,64,69,74,79,81,99,99,99},
/*46*/ { 3, 8,13,17,22,27,32,37,42,47,51,56,61,66,71,76,80,81,99,99,99},
/*47*/ { 3, 8,13,18,23,28,33,38,43,48,52,57,62,67,72,77,81,99,99,99,99},
/*48*/ { 3, 8,13,18,23,28,33,38,43,49,54,59,64,69,74,79,81,99,99,99,99},
/*49*/ { 3, 8,13,19,24,29,34,39,44,50,55,60,65,70,75,80,81,99,99,99,99},
/*50*/ { 3, 8,14,19,24,29,35,40,45,51,56,61,66,72,77,81,99,99,99,99,99},
/*51*/ { 3, 9,14,19,25,30,35,41,46,52,57,62,68,73,78,81,99,99,99,99,99},
/*52*/ { 3, 9,14,20,25,31,36,42,47,53,58,63,69,74,80,81,99,99,99,99,99},
/*53*/ { 3, 9,14,20,26,31,37,42,48,54,59,65,70,76,81,99,99,99,99,99,99},
/*54*/ { 3, 9,15,20,26,32,37,43,49,55,60,66,72,77,81,99,99,99,99,99,99},
/*55*/ { 3, 9,15,21,27,32,38,44,50,56,61,67,73,79,81,99,99,99,99,99,99},
/*56*/ { 3, 9,15,21,27,33,39,45,51,57,62,68,74,80,81,99,99,99,99,99,99},
/*57*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*58*/ { 4,10,16,22,28,34,40,46,52,59,65,71,77,81,99,99,99,99,99,99,99},
/*59*/ { 4,10,16,22,28,35,41,47,53,60,66,72,78,81,99,99,99,99,99,99,99},
/*60*/ { 4,10,16,23,29,35,42,48,54,61,67,73,79,81,99,99,99,99,99,99,99},
/*61*/ { 4,10,17,23,29,36,42,49,55,62,68,74,81,99,99,99,99,99,99,99,99},
/*62*/ { 4,10,17,23,30,36,43,49,56,63,69,76,81,99,99,99,99,99,99,99,99},
/*63*/ { 4,10,17,24,30,37,44,50,57,64,70,77,81,99,99,99,99,99,99,99,99},
/*64*/ { 4,11,17,24,31,38,44,51,58,65,71,78,81,99,99,99,99,99,99,99,99},
/*65*/ { 4,11,18,24,31,38,45,52,59,66,72,79,81,99,99,99,99,99,99,99,99},
/*66*/ { 4,11,18,25,32,39,46,53,60,67,73,80,81,99,99,99,99,99,99,99,99},
/*67*/ { 4,11,18,25,32,39,46,53,60,68,75,81,99,99,99,99,99,99,99,99,99},
/*68*/ { 4,11,18,26,33,40,47,54,61,69,76,81,99,99,99,99,99,99,99,99,99},
/*69*/ { 4,11,19,26,33,40,48,55,62,70,77,81,99,99,99,99,99,99,99,99,99},
/*70*/ { 4,12,19,26,34,41,48,56,63,71,78,81,99,99,99,99,99,99,99,99,99},
/*71*/ { 4,12,19,27,34,42,49,57,64,72,79,81,99,99,99,99,99,99,99,99,99},
/*72*/ { 4,12,19,27,35,42,50,57,65,73,80,81,99,99,99,99,99,99,99,99,99},
/*73*/ { 4,12,20,27,35,43,50,58,66,74,81,99,99,99,99,99,99,99,99,99,99},
/*74*/ { 4,12,20,28,36,43,51,59,67,75,81,99,99,99,99,99,99,99,99,99,99},
/*75*/ { 4,12,20,28,36,44,52,60,68,76,81,99,99,99,99,99,99,99,99,99,99},
/*76*/ { 5,13,21,29,37,45,53,61,69,77,81,99,99,99,99,99,99,99,99,99,99},
/*77*/ { 5,13,21,29,37,45,53,61,69,78,81,99,99,99,99,99,99,99,99,99,99},
/*78*/ { 5,13,21,29,37,46,54,62,70,79,81,99,99,99,99,99,99,99,99,99,99},
/*79*/ { 5,13,21,30,38,46,55,63,71,80,81,99,99,99,99,99,99,99,99,99,99}
}},
/* DY = 11 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4},
/* 2*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6},
/* 3*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7},
/* 4*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 8, 9, 9},
/* 5*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 6*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9,10,10,11,12,12,13},
/* 7*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,11,11,12,13,13,14,15},
/* 8*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,13,13,14,15,16,16},
/* 9*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,16,17,17,18},
/*10*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,18,19,20},
/*11*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,19,20,21,22},
/*12*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,21,22,23,24},
/*13*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,18,20,21,22,23,25,26},
/*14*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/*15*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,18,20,21,23,24,26,27,28,30},
/*16*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,17,18,20,21,23,24,26,27,29,30,32},
/*17*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,18,19,21,22,24,26,27,29,30,32,34},
/*18*/ { 1, 3, 5, 7, 8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36},
/*19*/ { 1, 3, 5, 7, 9,10,12,14,16,18,20,21,23,25,27,29,30,32,34,36,38},
/*20*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,22,24,26,28,30,32,34,36,38,40},
/*21*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*22*/ { 2, 4, 6, 8,10,12,14,16,18,20,23,25,27,29,31,33,35,37,39,41,43},
/*23*/ { 2, 4, 6, 8,10,13,15,17,19,21,24,26,28,30,32,34,37,39,41,43,45},
/*24*/ { 2, 4, 6, 9,11,13,15,18,20,22,25,27,29,31,34,36,38,41,43,45,47},
/*25*/ { 2, 4, 6, 9,11,14,16,18,21,23,26,28,30,33,35,37,40,42,45,47,49},
/*26*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,31,34,36,39,41,44,46,49,51},
/*27*/ { 2, 4, 7,10,12,15,17,20,22,25,28,30,33,35,38,40,43,46,48,51,53},
/*28*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*29*/ { 2, 5, 7,10,13,16,18,21,24,27,30,32,35,38,41,43,46,49,52,54,57},
/*30*/ { 2, 5, 8,11,13,16,19,22,25,28,31,33,36,39,42,45,48,51,53,56,59},
/*31*/ { 2, 5, 8,11,14,17,20,23,26,29,32,34,37,40,43,46,49,52,55,58,61},
/*32*/ { 2, 5, 8,11,14,17,20,23,26,29,33,36,39,42,45,48,51,54,57,60,63},
/*33*/ { 2, 5, 8,12,15,18,21,24,27,30,34,37,40,43,46,49,52,56,59,62,65},
/*34*/ { 2, 5, 9,12,15,18,22,25,28,31,35,38,41,44,47,51,54,57,60,64,67},
/*35*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*36*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,43,47,50,54,57,61,64,67,71},
/*37*/ { 2, 6, 9,13,16,20,23,27,30,34,38,41,45,48,52,55,59,62,66,69,73},
/*38*/ { 2, 6,10,13,17,20,24,28,31,35,39,42,46,49,53,57,60,64,67,71,75},
/*39*/ { 2, 6,10,14,17,21,25,28,32,36,40,43,47,51,54,58,62,66,69,73,77},
/*40*/ { 2, 6,10,14,18,21,25,29,33,37,41,44,48,52,56,60,63,67,71,75,79},
/*41*/ { 2, 6,10,14,18,22,26,30,34,38,42,45,49,53,57,61,65,69,73,77,81},
/*42*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*43*/ { 3, 7,11,15,19,23,27,31,35,39,44,48,52,56,60,64,68,72,76,80,81},
/*44*/ { 3, 7,11,15,19,24,28,32,36,40,45,49,53,57,61,65,70,74,78,81,99},
/*45*/ { 3, 7,11,16,20,24,28,33,37,41,46,50,54,58,63,67,71,76,80,81,99},
/*46*/ { 3, 7,11,16,20,25,29,33,38,42,47,51,55,60,64,68,73,77,81,99,99},
/*47*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,56,61,65,70,74,79,81,99,99},
/*48*/ { 3, 7,12,17,21,26,30,35,39,44,49,53,58,62,67,71,76,81,99,99,99},
/*49*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/*50*/ { 3, 8,12,17,22,27,31,36,41,46,51,55,60,65,70,74,79,81,99,99,99},
/*51*/ { 3, 8,13,18,22,27,32,37,42,47,52,56,61,66,71,76,81,99,99,99,99},
/*52*/ { 3, 8,13,18,23,28,33,38,43,48,53,57,62,67,72,77,81,99,99,99,99},
/*53*/ { 3, 8,13,18,23,28,33,38,43,48,54,59,64,69,74,79,81,99,99,99,99},
/*54*/ { 3, 8,13,19,24,29,34,39,44,49,55,60,65,70,75,80,81,99,99,99,99},
/*55*/ { 3, 8,14,19,24,29,35,40,45,50,56,61,66,71,76,81,99,99,99,99,99},
/*56*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,67,73,78,81,99,99,99,99,99},
/*57*/ { 3, 9,14,20,25,30,36,41,47,52,58,63,68,74,79,81,99,99,99,99,99},
/*58*/ { 3, 9,14,20,25,31,36,42,47,53,59,64,70,75,81,99,99,99,99,99,99},
/*59*/ { 3, 9,15,20,26,31,37,43,48,54,60,65,71,76,81,99,99,99,99,99,99},
/*60*/ { 3, 9,15,21,26,32,38,43,49,55,61,66,72,78,81,99,99,99,99,99,99},
/*61*/ { 3, 9,15,21,27,32,38,44,50,56,62,67,73,79,81,99,99,99,99,99,99},
/*62*/ { 3, 9,15,21,27,33,39,45,51,57,63,68,74,80,81,99,99,99,99,99,99},
/*63*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*64*/ { 4,10,16,22,28,34,40,46,52,58,65,71,77,81,99,99,99,99,99,99,99},
/*65*/ { 4,10,16,22,28,35,41,47,53,59,66,72,78,81,99,99,99,99,99,99,99},
/*66*/ { 4,10,16,23,29,35,41,48,54,60,67,73,79,81,99,99,99,99,99,99,99},
/*67*/ { 4,10,16,23,29,36,42,48,55,61,68,74,80,81,99,99,99,99,99,99,99},
/*68*/ { 4,10,17,23,30,36,43,49,56,62,69,75,81,99,99,99,99,99,99,99,99},
/*69*/ { 4,10,17,24,30,37,43,50,56,63,70,76,81,99,99,99,99,99,99,99,99},
/*70*/ { 4,11,17,24,31,37,44,51,57,64,71,77,81,99,99,99,99,99,99,99,99},
/*71*/ { 4,11,17,24,31,38,44,51,58,65,72,78,81,99,99,99,99,99,99,99,99},
/*72*/ { 4,11,18,25,31,38,45,52,59,66,73,79,81,99,99,99,99,99,99,99,99},
/*73*/ { 4,11,18,25,32,39,46,53,60,67,74,80,81,99,99,99,99,99,99,99,99},
/*74*/ { 4,11,18,25,32,39,46,53,60,67,75,81,99,99,99,99,99,99,99,99,99},
/*75*/ { 4,11,18,26,33,40,47,54,61,68,76,81,99,99,99,99,99,99,99,99,99},
/*76*/ { 4,11,19,26,33,40,48,55,62,69,77,81,99,99,99,99,99,99,99,99,99},
/*77*/ { 4,12,19,26,34,41,48,56,63,70,78,81,99,99,99,99,99,99,99,99,99},
/*78*/ { 4,12,19,27,34,41,49,56,64,71,79,81,99,99,99,99,99,99,99,99,99},
/*79*/ { 4,12,19,27,34,42,49,57,64,72,80,81,99,99,99,99,99,99,99,99,99}
}},
/* DY = 12 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3},
/* 2*/ { 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5},
/* 3*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7},
/* 4*/ { 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8},
/* 5*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9,10,10},
/* 6*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9,10,10,11,11,12},
/* 7*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11,12,12,13,13},
/* 8*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,12,12,13,14,14,15},
/* 9*/ { 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9,10,10,11,12,13,14,14,15,16,17},
/*10*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,18,18},
/*11*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,12,13,14,15,16,17,18,19,20},
/*12*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,20,21,22},
/*13*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,21,23,24},
/*14*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,15,16,17,18,19,21,22,23,24,25},
/*15*/ { 1, 2, 4, 5, 6, 8, 9,10,12,13,14,16,17,18,19,21,22,23,25,26,27},
/*16*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,17,18,19,21,22,23,25,26,28,29},
/*17*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,20,22,23,25,26,28,29,31},
/*18*/ { 1, 3, 4, 6, 8, 9,11,12,14,15,17,19,20,22,23,25,26,28,29,31,33},
/*19*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,21,23,24,26,28,29,31,33,34},
/*20*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,21,22,24,26,27,29,31,33,34,36},
/*21*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,22,23,25,27,29,31,32,34,36,38},
/*22*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,24,26,28,30,32,34,36,38,40},
/*23*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*24*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,25,27,29,31,33,35,37,39,41,43},
/*25*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,26,28,30,32,34,36,39,41,43,45},
/*26*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,27,29,31,33,36,38,40,42,45,47},
/*27*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,28,30,32,35,37,39,42,44,46,49},
/*28*/ { 2, 4, 7, 9,11,14,16,19,21,24,26,29,31,33,36,38,41,43,46,48,50},
/*29*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,30,32,35,37,40,42,45,47,50,52},
/*30*/ { 2, 4, 7,10,12,15,17,20,23,25,28,31,33,36,38,41,44,46,49,51,54},
/*31*/ { 2, 5, 7,10,13,15,18,21,23,26,29,32,34,37,40,42,45,48,50,53,56},
/*32*/ { 2, 5, 7,10,13,16,19,21,24,27,30,33,35,38,41,44,46,49,52,55,58},
/*33*/ { 2, 5, 8,11,13,16,19,22,25,28,31,34,36,39,42,45,48,51,54,56,59},
/*34*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,37,40,43,46,49,52,55,58,61},
/*35*/ { 2, 5, 8,11,14,17,20,23,26,29,32,36,39,42,45,48,51,54,57,60,63},
/*36*/ { 2, 5, 8,11,15,18,21,24,27,30,33,37,40,43,46,49,52,55,58,62,65},
/*37*/ { 2, 5, 9,12,15,18,21,25,28,31,34,38,41,44,47,50,54,57,60,63,66},
/*38*/ { 2, 5, 9,12,15,19,22,25,29,32,35,39,42,45,48,52,55,58,62,65,68},
/*39*/ { 2, 6, 9,12,16,19,23,26,29,33,36,40,43,46,50,53,56,60,63,67,70},
/*40*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,47,51,54,58,61,65,68,72},
/*41*/ { 2, 6, 9,13,17,20,24,27,31,34,38,42,45,49,52,56,59,63,66,70,74},
/*42*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,46,50,53,57,61,64,68,72,75},
/*43*/ { 2, 6,10,14,17,21,25,29,32,36,40,44,47,51,55,58,62,66,70,73,77},
/*44*/ { 2, 6,10,14,18,22,25,29,33,37,41,45,48,52,56,60,64,67,71,75,79},
/*45*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,49,53,57,61,65,69,73,77,81},
/*46*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*47*/ { 3, 7,11,15,19,23,27,31,35,39,43,48,52,56,60,64,68,72,76,80,81},
/*48*/ { 3, 7,11,15,19,23,28,32,36,40,44,49,53,57,61,65,69,74,78,81,99},
/*49*/ { 3, 7,11,15,20,24,28,32,37,41,45,50,54,58,62,67,71,75,79,81,99},
/*50*/ { 3, 7,11,16,20,24,29,33,37,42,46,51,55,59,64,68,72,77,81,99,99},
/*51*/ { 3, 7,12,16,20,25,29,34,38,43,47,52,56,60,65,69,74,78,81,99,99},
/*52*/ { 3, 7,12,16,21,25,30,34,39,43,48,53,57,62,66,71,75,80,81,99,99},
/*53*/ { 3, 7,12,17,21,26,30,35,40,44,49,54,58,63,67,72,77,81,99,99,99},
/*54*/ { 3, 8,12,17,22,26,31,36,40,45,50,55,59,64,69,73,78,81,99,99,99},
/*55*/ { 3, 8,12,17,22,27,32,36,41,46,51,56,60,65,70,75,79,81,99,99,99},
/*56*/ { 3, 8,13,18,22,27,32,37,42,47,52,57,61,66,71,76,81,99,99,99,99},
/*57*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,62,67,72,77,81,99,99,99,99},
/*58*/ { 3, 8,13,18,23,28,33,38,43,48,53,59,64,69,74,79,81,99,99,99,99},
/*59*/ { 3, 8,13,18,24,29,34,39,44,49,54,60,65,70,75,80,81,99,99,99,99},
/*60*/ { 3, 8,14,19,24,29,34,40,45,50,55,61,66,71,76,81,99,99,99,99,99},
/*61*/ { 3, 8,14,19,24,30,35,40,46,51,56,62,67,72,77,81,99,99,99,99,99},
/*62*/ { 3, 9,14,19,25,30,36,41,46,52,57,63,68,73,79,81,99,99,99,99,99},
/*63*/ { 3, 9,14,20,25,31,36,42,47,53,58,64,69,74,80,81,99,99,99,99,99},
/*64*/ { 3, 9,14,20,26,31,37,42,48,53,59,65,70,76,81,99,99,99,99,99,99},
/*65*/ { 3, 9,15,20,26,32,37,43,49,54,60,66,71,77,81,99,99,99,99,99,99},
/*66*/ { 3, 9,15,21,26,32,38,44,49,55,61,67,72,78,81,99,99,99,99,99,99},
/*67*/ { 3, 9,15,21,27,33,38,44,50,56,62,68,73,79,81,99,99,99,99,99,99},
/*68*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,74,80,81,99,99,99,99,99,99},
/*69*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*70*/ { 4,10,16,22,28,34,40,46,52,58,64,71,77,81,99,99,99,99,99,99,99},
/*71*/ { 4,10,16,22,28,34,41,47,53,59,65,72,78,81,99,99,99,99,99,99,99},
/*72*/ { 4,10,16,22,29,35,41,47,54,60,66,73,79,81,99,99,99,99,99,99,99},
/*73*/ { 4,10,16,23,29,35,42,48,54,61,67,74,80,81,99,99,99,99,99,99,99},
/*74*/ { 4,10,17,23,29,36,42,49,55,62,68,75,81,99,99,99,99,99,99,99,99},
/*75*/ { 4,10,17,23,30,36,43,49,56,62,69,76,81,99,99,99,99,99,99,99,99},
/*76*/ { 4,10,17,24,30,37,43,50,57,63,70,77,81,99,99,99,99,99,99,99,99},
/*77*/ { 4,11,17,24,31,37,44,51,57,64,71,78,81,99,99,99,99,99,99,99,99},
/*78*/ { 4,11,17,24,31,38,45,51,58,65,72,79,81,99,99,99,99,99,99,99,99},
/*79*/ { 4,11,18,25,31,38,45,52,59,66,73,80,81,99,99,99,99,99,99,99,99}
}},
/* DY = 13 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3},
/* 2*/ { 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5},
/* 3*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6},
/* 4*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8},
/* 5*/ { 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9, 9, 9},
/* 6*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 7*/ { 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9,10,10,11,11,12,13},
/* 8*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11,12,13,13,14},
/* 9*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,10,11,12,13,13,14,15,16},
/*10*/ { 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9,10,11,11,12,13,14,15,16,16,17},
/*11*/ { 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,12,13,14,15,16,17,18,19},
/*12*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,13,14,15,16,17,18,19,20},
/*13*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,21,22},
/*14*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20,21,22,23},
/*15*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,22,23,24,25},
/*16*/ { 1, 2, 4, 5, 6, 8, 9,10,11,13,14,15,17,18,19,20,22,23,24,25,27},
/*17*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,18,19,20,22,23,24,26,27,28},
/*18*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,19,20,21,23,24,26,27,29,30},
/*19*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,20,21,23,24,26,27,29,30,32},
/*20*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,17,19,21,22,24,25,27,29,30,32,33},
/*21*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,22,23,25,27,28,30,32,33,35},
/*22*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,21,23,24,26,28,30,31,33,35,37},
/*23*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,22,24,25,27,29,31,33,35,36,38},
/*24*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,26,28,30,32,34,36,38,40},
/*25*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*26*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,27,29,31,33,35,37,39,41,43},
/*27*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,25,28,30,32,34,36,38,40,43,45},
/*28*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,26,29,31,33,35,37,40,42,44,46},
/*29*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,30,32,34,36,39,41,43,46,48},
/*30*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,47,50},
/*31*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,36,39,41,44,46,49,51},
/*32*/ { 2, 4, 7, 9,12,15,17,20,22,25,27,30,33,35,38,40,43,45,48,50,53},
/*33*/ { 2, 4, 7,10,12,15,18,20,23,26,28,31,34,36,39,41,44,47,49,52,55},
/*34*/ { 2, 5, 7,10,13,15,18,21,24,26,29,32,35,37,40,43,45,48,51,54,56},
/*35*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,38,41,44,47,50,52,55,58},
/*36*/ { 2, 5, 8,11,13,16,19,22,25,28,31,34,37,39,42,45,48,51,54,57,60},
/*37*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,40,43,46,49,52,55,58,61},
/*38*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,39,42,45,48,51,54,57,60,63},
/*39*/ { 2, 5, 8,11,15,18,21,24,27,30,33,36,40,43,46,49,52,55,58,61,64},
/*40*/ { 2, 5, 9,12,15,18,21,25,28,31,34,37,41,44,47,50,53,57,60,63,66},
/*41*/ { 2, 5, 9,12,15,19,22,25,28,32,35,38,42,45,48,51,55,58,61,64,68},
/*42*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,43,46,49,53,56,59,63,66,69},
/*43*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,44,47,50,54,57,61,64,68,71},
/*44*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,45,48,52,55,59,62,66,69,73},
/*45*/ { 2, 6,10,13,17,20,24,28,31,35,38,42,46,49,53,56,60,64,67,71,74},
/*46*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,47,50,54,58,61,65,69,72,76},
/*47*/ { 2, 6,10,14,17,21,25,29,32,36,40,44,48,51,55,59,63,66,70,74,78},
/*48*/ { 2, 6,10,14,18,22,25,29,33,37,41,45,49,52,56,60,64,68,72,75,79},
/*49*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,53,57,61,65,69,73,77,81},
/*50*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*51*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,52,56,60,64,68,72,76,80,81},
/*52*/ { 3, 7,11,15,19,23,28,32,36,40,44,48,53,57,61,65,69,73,77,81,99},
/*53*/ { 3, 7,11,15,20,24,28,32,37,41,45,49,54,58,62,66,70,75,79,81,99},
/*54*/ { 3, 7,11,16,20,24,29,33,37,42,46,50,55,59,63,67,72,76,80,81,99},
/*55*/ { 3, 7,12,16,20,25,29,34,38,42,47,51,56,60,64,69,73,78,81,99,99},
/*56*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,61,65,70,74,79,81,99,99},
/*57*/ { 3, 7,12,16,21,26,30,35,39,44,48,53,58,62,67,71,76,80,81,99,99},
/*58*/ { 3, 7,12,17,21,26,31,35,40,45,49,54,59,63,68,72,77,81,99,99,99},
/*59*/ { 3, 8,12,17,22,26,31,36,41,45,50,55,60,64,69,74,78,81,99,99,99},
/*60*/ { 3, 8,13,17,22,27,32,37,41,46,51,56,61,65,70,75,80,81,99,99,99},
/*61*/ { 3, 8,13,18,22,27,32,37,42,47,52,57,62,66,71,76,81,99,99,99,99},
/*62*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,67,72,77,81,99,99,99,99},
/*63*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,64,69,74,79,81,99,99,99,99},
/*64*/ { 3, 8,13,18,24,29,34,39,44,49,54,59,65,70,75,80,81,99,99,99,99},
/*65*/ { 3, 8,14,19,24,29,34,40,45,50,55,60,66,71,76,81,99,99,99,99,99},
/*66*/ { 3, 8,14,19,24,30,35,40,45,51,56,61,67,72,77,81,99,99,99,99,99},
/*67*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,68,73,78,81,99,99,99,99,99},
/*68*/ { 3, 9,14,20,25,30,36,41,47,52,58,63,69,74,79,81,99,99,99,99,99},
/*69*/ { 3, 9,14,20,25,31,36,42,47,53,58,64,70,75,81,99,99,99,99,99,99},
/*70*/ { 3, 9,15,20,26,31,37,43,48,54,59,65,71,76,81,99,99,99,99,99,99},
/*71*/ { 3, 9,15,20,26,32,37,43,49,54,60,66,72,77,81,99,99,99,99,99,99},
/*72*/ { 3, 9,15,21,26,32,38,44,49,55,61,67,73,78,81,99,99,99,99,99,99},
/*73*/ { 3, 9,15,21,27,33,38,44,50,56,62,68,74,79,81,99,99,99,99,99,99},
/*74*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,80,81,99,99,99,99,99,99},
/*75*/ { 4,10,16,22,28,34,40,46,52,58,64,70,76,81,99,99,99,99,99,99,99},
/*76*/ { 4,10,16,22,28,34,40,46,52,58,64,70,77,81,99,99,99,99,99,99,99},
/*77*/ { 4,10,16,22,28,34,41,47,53,59,65,71,78,81,99,99,99,99,99,99,99},
/*78*/ { 4,10,16,22,29,35,41,47,54,60,66,72,79,81,99,99,99,99,99,99,99},
/*79*/ { 4,10,16,23,29,35,42,48,54,61,67,73,80,81,99,99,99,99,99,99,99}
}},
/* DY = 14 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3},
/* 2*/ { 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6},
/* 4*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7},
/* 5*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9},
/* 6*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8, 9, 9,10,10},
/* 7*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9,10,10,11,11,12},
/* 8*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11,12,13,13},
/* 9*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,13,13,14,15},
/*10*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14,15,16},
/*11*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,12,13,14,15,16,17,17},
/*12*/ { 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,13,14,15,16,17,18,19},
/*13*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,14,15,16,17,18,19,20},
/*14*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20,21,22},
/*15*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,16,17,18,19,20,21,22,23},
/*16*/ { 1, 2, 3, 5, 6, 7, 8, 9,11,12,13,14,15,17,18,19,20,21,22,24,25},
/*17*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,14,15,16,18,19,20,21,23,24,25,26},
/*18*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/*19*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,17,18,20,21,22,24,25,27,28,29},
/*20*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,23,25,26,28,29,31},
/*21*/ { 1, 3, 4, 6, 8, 9,11,12,14,15,17,18,20,22,23,25,26,28,29,31,32},
/*22*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,18,19,21,23,24,26,27,29,31,32,34},
/*23*/ { 1, 3, 5, 6, 8,10,12,13,15,17,18,20,22,24,25,27,29,30,32,34,35},
/*24*/ { 1, 3, 5, 7, 9,10,12,14,16,17,19,21,23,25,26,28,30,32,33,35,37},
/*25*/ { 1, 3, 5, 7, 9,11,13,14,16,18,20,22,24,26,27,29,31,33,35,37,38},
/*26*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,28,30,32,34,36,38,40},
/*27*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*28*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,29,31,33,35,37,39,41,43},
/*29*/ { 2, 4, 6, 8,10,12,14,17,19,21,23,25,27,30,32,34,36,38,40,42,45},
/*30*/ { 2, 4, 6, 8,11,13,15,17,19,22,24,26,28,31,33,35,37,39,42,44,46},
/*31*/ { 2, 4, 6, 9,11,13,15,18,20,22,25,27,29,32,34,36,38,41,43,45,48},
/*32*/ { 2, 4, 6, 9,11,14,16,18,21,23,25,28,30,33,35,37,40,42,44,47,49},
/*33*/ { 2, 4, 7, 9,12,14,16,19,21,24,26,29,31,34,36,38,41,43,46,48,51},
/*34*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,35,37,40,42,45,47,50,52},
/*35*/ { 2, 4, 7,10,12,15,17,20,23,25,28,30,33,36,38,41,43,46,48,51,54},
/*36*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*37*/ { 2, 5, 7,10,13,16,18,21,24,27,29,32,35,38,40,43,46,48,51,54,57},
/*38*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,39,41,44,47,50,53,55,58},
/*39*/ { 2, 5, 8,11,14,16,19,22,25,28,31,34,37,40,42,45,48,51,54,57,60},
/*40*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,43,46,49,52,55,58,61},
/*41*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,42,45,48,51,54,57,60,63},
/*42*/ { 2, 5, 8,11,15,18,21,24,27,30,33,36,39,43,46,49,52,55,58,61,64},
/*43*/ { 2, 5, 8,12,15,18,21,24,28,31,34,37,40,44,47,50,53,56,59,63,66},
/*44*/ { 2, 5, 9,12,15,18,22,25,28,31,35,38,41,45,48,51,54,58,61,64,67},
/*45*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*46*/ { 2, 6, 9,12,16,19,23,26,29,33,36,40,43,47,50,53,57,60,64,67,70},
/*47*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,54,58,61,65,68,72},
/*48*/ { 2, 6, 9,13,17,20,24,27,31,34,38,41,45,49,52,56,59,63,66,70,73},
/*49*/ { 2, 6,10,13,17,20,24,28,31,35,39,42,46,50,53,57,60,64,68,71,75},
/*50*/ { 2, 6,10,13,17,21,25,28,32,36,39,43,47,51,54,58,62,65,69,73,76},
/*51*/ { 2, 6,10,14,18,21,25,29,33,36,40,44,48,52,55,59,63,67,70,74,78},
/*52*/ { 2, 6,10,14,18,22,26,29,33,37,41,45,49,53,56,60,64,68,72,76,79},
/*53*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,57,61,65,69,73,77,81},
/*54*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*55*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,56,60,64,68,72,76,80,81},
/*56*/ { 3, 7,11,15,19,23,27,32,36,40,44,48,52,57,61,65,69,73,77,81,99},
/*57*/ { 3, 7,11,15,20,24,28,32,36,41,45,49,53,58,62,66,70,74,79,81,99},
/*58*/ { 3, 7,11,16,20,24,28,33,37,41,46,50,54,59,63,67,71,76,80,81,99},
/*59*/ { 3, 7,11,16,20,25,29,33,38,42,46,51,55,60,64,68,73,77,81,99,99},
/*60*/ { 3, 7,12,16,21,25,29,34,38,43,47,52,56,61,65,69,74,78,81,99,99},
/*61*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,62,66,71,75,80,81,99,99},
/*62*/ { 3, 7,12,17,21,26,30,35,40,44,49,53,58,63,67,72,76,81,99,99,99},
/*63*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/*64*/ { 3, 8,12,17,22,27,31,36,41,46,50,55,60,65,69,74,79,81,99,99,99},
/*65*/ { 3, 8,13,17,22,27,32,37,41,46,51,56,61,66,70,75,80,81,99,99,99},
/*66*/ { 3, 8,13,18,23,27,32,37,42,47,52,57,62,67,71,76,81,99,99,99,99},
/*67*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,68,72,77,81,99,99,99,99},
/*68*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,69,74,79,81,99,99,99,99},
/*69*/ { 3, 8,13,18,24,29,34,39,44,49,54,59,64,70,75,80,81,99,99,99,99},
/*70*/ { 3, 8,13,19,24,29,34,39,45,50,55,60,65,71,76,81,99,99,99,99,99},
/*71*/ { 3, 8,14,19,24,29,35,40,45,50,56,61,66,72,77,81,99,99,99,99,99},
/*72*/ { 3, 9,14,19,25,30,35,41,46,51,57,62,67,73,78,81,99,99,99,99,99},
/*73*/ { 3, 9,14,19,25,30,36,41,46,52,57,63,68,74,79,81,99,99,99,99,99},
/*74*/ { 3, 9,14,20,25,31,36,42,47,53,58,64,69,75,80,81,99,99,99,99,99},
/*75*/ { 3, 9,14,20,26,31,37,42,48,53,59,64,70,76,81,99,99,99,99,99,99},
/*76*/ { 3, 9,15,20,26,31,37,43,48,54,60,65,71,77,81,99,99,99,99,99,99},
/*77*/ { 3, 9,15,20,26,32,38,43,49,55,60,66,72,78,81,99,99,99,99,99,99},
/*78*/ { 3, 9,15,21,27,32,38,44,50,55,61,67,73,79,81,99,99,99,99,99,99},
/*79*/ { 3, 9,15,21,27,33,39,44,50,56,62,68,74,80,81,99,99,99,99,99,99}
}},
/* DY = 15 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3},
/* 2*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6},
/* 4*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7},
/* 5*/ { 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8},
/* 6*/ { 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8, 9, 9,10},
/* 7*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 8*/ { 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,11,11,12,12},
/* 9*/ { 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,10,11,12,12,13,14},
/*10*/ { 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13,14,14,15},
/*11*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14,15,16,16},
/*12*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,13,14,15,16,17,18},
/*13*/ { 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,14,14,15,16,17,18,19},
/*14*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,15,16,17,18,19,20},
/*15*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,16,17,18,19,20,21,22},
/*16*/ { 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,17,18,19,20,21,22,23},
/*17*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,12,13,14,15,16,18,19,20,21,22,23,25},
/*18*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,19,20,21,22,23,25,26},
/*19*/ { 1, 2, 4, 5, 6, 8, 9,10,12,13,14,16,17,18,20,21,22,23,25,26,27},
/*20*/ { 1, 3, 4, 5, 7, 8, 9,11,12,14,15,16,18,19,21,22,23,25,26,27,29},
/*21*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,19,20,22,23,24,26,27,29,30},
/*22*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,23,24,26,27,29,30,32},
/*23*/ { 1, 3, 4, 6, 8, 9,11,12,14,16,17,19,20,22,24,25,27,28,30,31,33},
/*24*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,21,23,25,26,28,29,31,33,34},
/*25*/ { 1, 3, 5, 7, 8,10,12,13,15,17,19,20,22,24,26,27,29,31,32,34,36},
/*26*/ { 1, 3, 5, 7, 9,10,12,14,16,18,19,21,23,25,27,28,30,32,34,35,37},
/*27*/ { 1, 3, 5, 7, 9,11,13,14,16,18,20,22,24,26,28,29,31,33,35,37,39},
/*28*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,30,32,34,36,38,40},
/*29*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*30*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,31,33,35,37,39,41,43},
/*31*/ { 2, 4, 6, 8,10,12,14,17,19,21,23,25,27,29,32,34,36,38,40,42,44},
/*32*/ { 2, 4, 6, 8,10,13,15,17,19,21,24,26,28,30,33,35,37,39,41,44,46},
/*33*/ { 2, 4, 6, 8,11,13,15,18,20,22,24,27,29,31,34,36,38,40,43,45,47},
/*34*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,30,32,35,37,39,42,44,46,49},
/*35*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,36,38,40,43,45,48,50},
/*36*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,39,41,44,46,49,51},
/*37*/ { 2, 4, 7, 9,12,15,17,20,22,25,27,30,32,35,38,40,43,45,48,50,53},
/*38*/ { 2, 4, 7,10,12,15,18,20,23,25,28,31,33,36,39,41,44,46,49,52,54},
/*39*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,40,42,45,48,50,53,56},
/*40*/ { 2, 5, 7,10,13,16,18,21,24,27,29,32,35,38,41,43,46,49,52,54,57},
/*41*/ { 2, 5, 8,10,13,16,19,22,25,27,30,33,36,39,42,44,47,50,53,56,58},
/*42*/ { 2, 5, 8,11,14,16,19,22,25,28,31,34,37,40,43,45,48,51,54,57,60},
/*43*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,46,49,52,55,58,61},
/*44*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,45,48,51,54,57,60,63},
/*45*/ { 2, 5, 8,11,14,18,21,24,27,30,33,36,39,42,46,49,52,55,58,61,64},
/*46*/ { 2, 5, 8,12,15,18,21,24,27,31,34,37,40,43,47,50,53,56,59,62,66},
/*47*/ { 2, 5, 9,12,15,18,22,25,28,31,35,38,41,44,48,51,54,57,60,64,67},
/*48*/ { 2, 5, 9,12,15,19,22,25,29,32,35,39,42,45,49,52,55,58,62,65,68},
/*49*/ { 2, 6, 9,12,16,19,22,26,29,33,36,39,43,46,50,53,56,60,63,66,70},
/*50*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,44,47,51,54,57,61,64,68,71},
/*51*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,52,55,59,62,66,69,73},
/*52*/ { 2, 6, 9,13,17,20,24,27,31,35,38,42,45,49,53,56,60,63,67,70,74},
/*53*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,46,50,54,57,61,64,68,72,75},
/*54*/ { 2, 6,10,14,17,21,25,28,32,36,40,43,47,51,55,58,62,66,69,73,77},
/*55*/ { 2, 6,10,14,18,21,25,29,33,37,40,44,48,52,56,59,63,67,71,74,78},
/*56*/ { 2, 6,10,14,18,22,26,29,33,37,41,45,49,53,57,60,64,68,72,76,80},
/*57*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,61,65,69,73,77,81},
/*58*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*59*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,60,64,68,72,76,80,81},
/*60*/ { 3, 7,11,15,19,23,27,32,36,40,44,48,52,56,61,65,69,73,77,81,99},
/*61*/ { 3, 7,11,15,19,24,28,32,36,40,45,49,53,57,62,66,70,74,78,81,99},
/*62*/ { 3, 7,11,15,20,24,28,33,37,41,45,50,54,58,63,67,71,75,80,81,99},
/*63*/ { 3, 7,11,16,20,24,29,33,37,42,46,50,55,59,64,68,72,77,81,99,99},
/*64*/ { 3, 7,12,16,20,25,29,34,38,42,47,51,56,60,65,69,73,78,81,99,99},
/*65*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,61,66,70,74,79,81,99,99},
/*66*/ { 3, 7,12,16,21,26,30,35,39,44,48,53,57,62,67,71,76,80,81,99,99},
/*67*/ { 3, 7,12,17,21,26,31,35,40,44,49,54,58,63,68,72,77,81,99,99,99},
/*68*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,69,73,78,81,99,99,99},
/*69*/ { 3, 8,12,17,22,27,31,36,41,46,50,55,60,65,70,74,79,81,99,99,99},
/*70*/ { 3, 8,13,17,22,27,32,37,42,46,51,56,61,66,71,75,80,81,99,99,99},
/*71*/ { 3, 8,13,18,23,27,32,37,42,47,52,57,62,67,72,76,81,99,99,99,99},
/*72*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,68,73,77,81,99,99,99,99},
/*73*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,68,74,79,81,99,99,99,99},
/*74*/ { 3, 8,13,18,23,29,34,39,44,49,54,59,64,69,75,80,81,99,99,99,99},
/*75*/ { 3, 8,13,19,24,29,34,39,44,50,55,60,65,70,76,81,99,99,99,99,99},
/*76*/ { 3, 8,14,19,24,29,35,40,45,50,56,61,66,71,77,81,99,99,99,99,99},
/*77*/ { 3, 8,14,19,24,30,35,40,46,51,56,62,67,72,78,81,99,99,99,99,99},
/*78*/ { 3, 9,14,19,25,30,35,41,46,52,57,62,68,73,79,81,99,99,99,99,99},
/*79*/ { 3, 9,14,20,25,30,36,41,47,52,58,63,69,74,80,81,99,99,99,99,99}
}},
/* DY = 16 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3},
/* 2*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5},
/* 4*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7},
/* 5*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8},
/* 6*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 9, 9},
/* 7*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 8, 9, 9,10,10},
/* 8*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,11,11,12},
/* 9*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,10,11,12,12,13},
/*10*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,11,12,13,13,14},
/*11*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9,10,10,11,12,12,13,14,15,15},
/*12*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9,10,10,11,12,13,13,14,15,16,17},
/*13*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,14,15,16,17,18},
/*14*/ { 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,12,13,14,15,15,16,17,18,19},
/*15*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,16,17,18,19,20},
/*16*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,17,18,19,20,21,22},
/*17*/ { 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,18,19,20,21,22,23},
/*18*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,19,20,21,22,23,24},
/*19*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,15,16,17,18,20,21,22,23,24,26},
/*20*/ { 1, 2, 4, 5, 6, 8, 9,10,11,13,14,15,17,18,19,21,22,23,24,26,27},
/*21*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,22,23,24,26,27,28},
/*22*/ { 1, 3, 4, 5, 7, 8,10,11,13,14,15,17,18,20,21,23,24,25,27,28,30},
/*23*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,24,25,26,28,29,31},
/*24*/ { 1, 3, 4, 6, 7, 9,11,12,14,15,17,18,20,21,23,25,26,28,29,31,32},
/*25*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,17,19,21,22,24,26,27,29,30,32,34},
/*26*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,21,23,25,27,28,30,32,33,35},
/*27*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,21,22,24,26,28,29,31,33,34,36},
/*28*/ { 1, 3, 5, 7, 9,10,12,14,16,18,19,21,23,25,27,29,30,32,34,36,38},
/*29*/ { 1, 3, 5, 7, 9,11,13,15,16,18,20,22,24,26,28,30,31,33,35,37,39},
/*30*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,32,34,36,38,40},
/*31*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*32*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,33,35,37,39,41,43},
/*33*/ { 2, 4, 6, 8,10,12,14,16,19,21,23,25,27,29,31,34,36,38,40,42,44},
/*34*/ { 2, 4, 6, 8,10,13,15,17,19,21,24,26,28,30,32,35,37,39,41,43,45},
/*35*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,26,29,31,33,36,38,40,42,45,47},
/*36*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,30,32,34,37,39,41,43,46,48},
/*37*/ { 2, 4, 6, 9,11,14,16,18,21,23,26,28,30,33,35,38,40,42,45,47,49},
/*38*/ { 2, 4, 7, 9,12,14,16,19,21,24,26,29,31,34,36,39,41,43,46,48,51},
/*39*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,40,42,45,47,50,52},
/*40*/ { 2, 4, 7,10,12,15,17,20,22,25,28,30,33,35,38,41,43,46,48,51,53},
/*41*/ { 2, 4, 7,10,12,15,18,20,23,26,28,31,34,36,39,42,44,47,49,52,55},
/*42*/ { 2, 5, 7,10,13,15,18,21,24,26,29,32,34,37,40,43,45,48,51,53,56},
/*43*/ { 2, 5, 7,10,13,16,19,21,24,27,30,32,35,38,41,44,46,49,52,55,57},
/*44*/ { 2, 5, 8,10,13,16,19,22,25,27,30,33,36,39,42,45,47,50,53,56,59},
/*45*/ { 2, 5, 8,11,14,16,19,22,25,28,31,34,37,40,43,46,48,51,54,57,60},
/*46*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,49,52,55,58,61},
/*47*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,48,51,54,57,60,63},
/*48*/ { 2, 5, 8,11,14,18,21,24,27,30,33,36,39,42,45,49,52,55,58,61,64},
/*49*/ { 2, 5, 8,12,15,18,21,24,27,31,34,37,40,43,46,50,53,56,59,62,65},
/*50*/ { 2, 5, 9,12,15,18,21,25,28,31,34,38,41,44,47,51,54,57,60,63,67},
/*51*/ { 2, 5, 9,12,15,19,22,25,28,32,35,38,42,45,48,52,55,58,61,65,68},
/*52*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,53,56,59,63,66,69},
/*53*/ { 2, 6, 9,12,16,19,23,26,30,33,36,40,43,47,50,54,57,60,64,67,71},
/*54*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,55,58,61,65,68,72},
/*55*/ { 2, 6, 9,13,16,20,24,27,31,34,38,41,45,48,52,56,59,63,66,70,73},
/*56*/ { 2, 6,10,13,17,20,24,28,31,35,38,42,46,49,53,57,60,64,67,71,75},
/*57*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,46,50,54,58,61,65,69,72,76},
/*58*/ { 2, 6,10,14,17,21,25,29,32,36,40,44,47,51,55,59,62,66,70,73,77},
/*59*/ { 2, 6,10,14,18,21,25,29,33,37,40,44,48,52,56,60,63,67,71,75,79},
/*60*/ { 2, 6,10,14,18,22,26,30,33,37,41,45,49,53,57,61,64,68,72,76,80},
/*61*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,65,69,73,77,81},
/*62*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*63*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,64,68,72,76,80,81},
/*64*/ { 3, 7,11,15,19,23,27,31,36,40,44,48,52,56,60,65,69,73,77,81,99},
/*65*/ { 3, 7,11,15,19,24,28,32,36,40,45,49,53,57,61,66,70,74,78,81,99},
/*66*/ { 3, 7,11,15,20,24,28,32,37,41,45,49,54,58,62,67,71,75,79,81,99},
/*67*/ { 3, 7,11,16,20,24,29,33,37,42,46,50,55,59,63,68,72,76,80,81,99},
/*68*/ { 3, 7,11,16,20,25,29,33,38,42,47,51,55,60,64,69,73,77,81,99,99},
/*69*/ { 3, 7,12,16,21,25,29,34,38,43,47,52,56,61,65,70,74,78,81,99,99},
/*70*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,61,66,71,75,80,81,99,99},
/*71*/ { 3, 7,12,17,21,26,30,35,39,44,49,53,58,62,67,72,76,81,99,99,99},
/*72*/ { 3, 7,12,17,21,26,31,35,40,45,49,54,59,63,68,73,77,81,99,99,99},
/*73*/ { 3, 8,12,17,22,26,31,36,41,45,50,55,59,64,69,74,78,81,99,99,99},
/*74*/ { 3, 8,12,17,22,27,32,36,41,46,51,55,60,65,70,75,79,81,99,99,99},
/*75*/ { 3, 8,13,17,22,27,32,37,42,46,51,56,61,66,71,76,80,81,99,99,99},
/*76*/ { 3, 8,13,18,23,27,32,37,42,47,52,57,62,67,72,77,81,99,99,99,99},
/*77*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,68,73,78,81,99,99,99,99},
/*78*/ { 3, 8,13,18,23,28,33,38,43,48,53,58,63,68,73,79,81,99,99,99,99},
/*79*/ { 3, 8,13,18,23,29,34,39,44,49,54,59,64,69,74,80,81,99,99,99,99}
}},
/* DY = 17 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3},
/* 2*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5},
/* 4*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6},
/* 5*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7},
/* 6*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 9},
/* 7*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 8, 9, 9,10},
/* 8*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/* 9*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10,10,11,12,12},
/*10*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11,11,12,13,13},
/*11*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,12,13,14,15},
/*12*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,13,14,15,16},
/*13*/ { 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9,10,11,11,12,13,14,14,15,16,17},
/*14*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,15,16,17,18},
/*15*/ { 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,12,13,14,15,16,16,17,18,19},
/*16*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,17,18,19,20},
/*17*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,18,19,20,21,22},
/*18*/ { 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,19,20,21,22,23},
/*19*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,20,21,22,23,24},
/*20*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,21,22,23,24,25},
/*21*/ { 1, 2, 4, 5, 6, 8, 9,10,11,13,14,15,16,18,19,20,22,23,24,25,27},
/*22*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/*23*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,17,18,19,21,22,24,25,26,28,29},
/*24*/ { 1, 3, 4, 6, 7, 9,10,11,13,14,16,17,19,20,22,23,25,26,27,29,30},
/*25*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,24,26,27,29,30,32},
/*26*/ { 1, 3, 4, 6, 8, 9,11,12,14,15,17,19,20,22,23,25,27,28,30,31,33},
/*27*/ { 1, 3, 5, 6, 8,10,11,13,14,16,18,19,21,23,24,26,28,29,31,32,34},
/*28*/ { 1, 3, 5, 6, 8,10,12,13,15,17,18,20,22,23,25,27,29,30,32,34,35},
/*29*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,21,22,24,26,28,30,31,33,35,37},
/*30*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,21,23,25,27,29,31,32,34,36,38},
/*31*/ { 1, 3, 5, 7, 9,11,13,15,16,18,20,22,24,26,28,30,32,33,35,37,39},
/*32*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,34,36,38,40},
/*33*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*34*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,35,37,39,41,43},
/*35*/ { 2, 4, 6, 8,10,12,14,16,19,21,23,25,27,29,31,33,36,38,40,42,44},
/*36*/ { 2, 4, 6, 8,10,13,15,17,19,21,23,26,28,30,32,34,37,39,41,43,45},
/*37*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,26,29,31,33,35,38,40,42,44,46},
/*38*/ { 2, 4, 6, 9,11,13,15,18,20,22,25,27,29,32,34,36,39,41,43,45,48},
/*39*/ { 2, 4, 6, 9,11,14,16,18,21,23,25,28,30,32,35,37,40,42,44,47,49},
/*40*/ { 2, 4, 7, 9,11,14,16,19,21,24,26,28,31,33,36,38,41,43,45,48,50},
/*41*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,46,49,51},
/*42*/ { 2, 4, 7, 9,12,15,17,20,22,25,27,30,32,35,37,40,43,45,48,50,53},
/*43*/ { 2, 4, 7,10,12,15,17,20,23,25,28,30,33,36,38,41,44,46,49,51,54},
/*44*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*45*/ { 2, 5, 7,10,13,16,18,21,24,26,29,32,35,37,40,43,46,48,51,54,56},
/*46*/ { 2, 5, 7,10,13,16,19,21,24,27,30,33,35,38,41,44,47,49,52,55,58},
/*47*/ { 2, 5, 8,10,13,16,19,22,25,28,30,33,36,39,42,45,48,50,53,56,59},
/*48*/ { 2, 5, 8,11,14,17,19,22,25,28,31,34,37,40,43,46,49,51,54,57,60},
/*49*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,52,55,58,61},
/*50*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,51,54,57,60,63},
/*51*/ { 2, 5, 8,11,14,18,21,24,27,30,33,36,39,42,45,48,52,55,58,61,64},
/*52*/ { 2, 5, 8,12,15,18,21,24,27,30,34,37,40,43,46,49,53,56,59,62,65},
/*53*/ { 2, 5, 9,12,15,18,21,25,28,31,34,37,41,44,47,50,54,57,60,63,66},
/*54*/ { 2, 5, 9,12,15,19,22,25,28,32,35,38,41,45,48,51,55,58,61,64,68},
/*55*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*56*/ { 2, 6, 9,12,16,19,23,26,29,33,36,40,43,46,50,53,57,60,63,67,70},
/*57*/ { 2, 6, 9,13,16,20,23,26,30,33,37,40,44,47,51,54,58,61,64,68,71},
/*58*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,55,59,62,66,69,73},
/*59*/ { 2, 6, 9,13,17,20,24,27,31,34,38,42,45,49,52,56,60,63,67,70,74},
/*60*/ { 2, 6,10,13,17,21,24,28,31,35,39,42,46,50,53,57,61,64,68,71,75},
/*61*/ { 2, 6,10,13,17,21,25,28,32,36,39,43,47,50,54,58,62,65,69,73,76},
/*62*/ { 2, 6,10,14,17,21,25,29,32,36,40,44,47,51,55,59,63,66,70,74,78},
/*63*/ { 2, 6,10,14,18,22,25,29,33,37,41,44,48,52,56,60,64,67,71,75,79},
/*64*/ { 2, 6,10,14,18,22,26,30,33,37,41,45,49,53,57,61,65,68,72,76,80},
/*65*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,69,73,77,81},
/*66*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*67*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,68,72,76,80,81},
/*68*/ { 3, 7,11,15,19,23,27,31,36,40,44,48,52,56,60,64,69,73,77,81,99},
/*69*/ { 3, 7,11,15,19,24,28,32,36,40,44,49,53,57,61,65,70,74,78,81,99},
/*70*/ { 3, 7,11,15,20,24,28,32,37,41,45,49,54,58,62,66,71,75,79,81,99},
/*71*/ { 3, 7,11,16,20,24,28,33,37,41,46,50,54,59,63,67,72,76,80,81,99},
/*72*/ { 3, 7,11,16,20,25,29,33,38,42,46,51,55,59,64,68,73,77,81,99,99},
/*73*/ { 3, 7,12,16,20,25,29,34,38,43,47,51,56,60,65,69,74,78,81,99,99},
/*74*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,61,66,70,75,79,81,99,99},
/*75*/ { 3, 7,12,16,21,26,30,35,39,44,48,53,57,62,66,71,76,80,81,99,99},
/*76*/ { 3, 7,12,17,21,26,30,35,40,44,49,53,58,63,67,72,77,81,99,99,99},
/*77*/ { 3, 8,12,17,22,26,31,36,40,45,50,54,59,64,68,73,78,81,99,99,99},
/*78*/ { 3, 8,12,17,22,27,31,36,41,45,50,55,60,64,69,74,79,81,99,99,99},
/*79*/ { 3, 8,12,17,22,27,32,36,41,46,51,56,60,65,70,75,80,81,99,99,99}
}},
/* DY = 18 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2},
/* 1*/ { 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3},
/* 2*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5},
/* 4*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6},
/* 5*/ { 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7},
/* 6*/ { 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8},
/* 7*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9},
/* 8*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9,10,10},
/* 9*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,12},
/*10*/ { 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,10,11,11,12,13},
/*11*/ { 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,12,13,14},
/*12*/ { 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13,13,14,15},
/*13*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14,15,16},
/*14*/ { 1, 2, 3, 3, 4, 5, 6, 7, 7, 8, 9,10,11,11,12,13,14,15,15,16,17},
/*15*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,16,16,17,18},
/*16*/ { 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,12,13,14,15,16,17,17,18,19},
/*17*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,18,19,20},
/*18*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,19,20,21,22},
/*19*/ { 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,20,21,22,23},
/*20*/ { 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,21,22,23,24},
/*21*/ { 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,22,23,24,25},
/*22*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,19,20,21,23,24,25,26},
/*23*/ { 1, 2, 4, 5, 6, 8, 9,10,12,13,14,16,17,18,20,21,22,24,25,26,27},
/*24*/ { 1, 3, 4, 5, 7, 8, 9,11,12,14,15,16,18,19,20,22,23,25,26,27,29},
/*25*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,18,20,21,23,24,26,27,28,30},
/*26*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,24,25,27,28,29,31},
/*27*/ { 1, 3, 4, 6, 7, 9,11,12,14,15,17,18,20,21,23,24,26,28,29,31,32},
/*28*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,17,19,21,22,24,25,27,29,30,32,33},
/*29*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,21,23,25,26,28,30,31,33,34},
/*30*/ { 1, 3, 5, 7, 8,10,12,13,15,17,19,20,22,24,25,27,29,31,32,34,36},
/*31*/ { 1, 3, 5, 7, 8,10,12,14,16,17,19,21,23,24,26,28,30,32,33,35,37},
/*32*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,22,23,25,27,29,31,33,34,36,38},
/*33*/ { 1, 3, 5, 7, 9,11,13,15,17,18,20,22,24,26,28,30,32,34,35,37,39},
/*34*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,36,38,40},
/*35*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*36*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,37,39,41,43},
/*37*/ { 2, 4, 6, 8,10,12,14,16,18,21,23,25,27,29,31,33,35,38,40,42,44},
/*38*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,25,28,30,32,34,36,39,41,43,45},
/*39*/ { 2, 4, 6, 8,11,13,15,17,19,22,24,26,28,31,33,35,37,40,42,44,46},
/*40*/ { 2, 4, 6, 9,11,13,15,18,20,22,25,27,29,31,34,36,38,41,43,45,47},
/*41*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,30,32,34,37,39,42,44,46,49},
/*42*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,47,50},
/*43*/ { 2, 4, 7, 9,12,14,16,19,21,24,26,29,31,34,36,39,41,44,46,48,51},
/*44*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,39,42,45,47,50,52},
/*45*/ { 2, 4, 7,10,12,15,17,20,22,25,28,30,33,35,38,40,43,46,48,51,53},
/*46*/ { 2, 4, 7,10,12,15,18,20,23,25,28,31,33,36,39,41,44,47,49,52,54},
/*47*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,48,50,53,56},
/*48*/ { 2, 5, 7,10,13,16,18,21,24,27,29,32,35,38,40,43,46,49,51,54,57},
/*49*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,38,41,44,47,50,52,55,58},
/*50*/ { 2, 5, 8,11,13,16,19,22,25,28,31,33,36,39,42,45,48,51,53,56,59},
/*51*/ { 2, 5, 8,11,14,17,19,22,25,28,31,34,37,40,43,46,49,52,54,57,60},
/*52*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,55,58,61},
/*53*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,54,57,60,63},
/*54*/ { 2, 5, 8,11,14,17,21,24,27,30,33,36,39,42,45,48,51,55,58,61,64},
/*55*/ { 2, 5, 8,12,15,18,21,24,27,30,34,37,40,43,46,49,52,56,59,62,65},
/*56*/ { 2, 5, 9,12,15,18,21,25,28,31,34,37,41,44,47,50,53,57,60,63,66},
/*57*/ { 2, 5, 9,12,15,18,22,25,28,31,35,38,41,44,48,51,54,58,61,64,67},
/*58*/ { 2, 5, 9,12,15,19,22,25,29,32,35,39,42,45,49,52,55,59,62,65,68},
/*59*/ { 2, 6, 9,12,16,19,22,26,29,33,36,39,43,46,49,53,56,60,63,66,70},
/*60*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,43,47,50,54,57,61,64,67,71},
/*61*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,55,58,62,65,68,72},
/*62*/ { 2, 6, 9,13,16,20,24,27,31,34,38,41,45,48,52,55,59,63,66,70,73},
/*63*/ { 2, 6,10,13,17,20,24,28,31,35,38,42,46,49,53,56,60,64,67,71,74},
/*64*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,46,50,54,57,61,65,68,72,75},
/*65*/ { 2, 6,10,14,17,21,25,28,32,36,40,43,47,51,54,58,62,66,69,73,77},
/*66*/ { 2, 6,10,14,17,21,25,29,33,36,40,44,48,51,55,59,63,67,70,74,78},
/*67*/ { 2, 6,10,14,18,22,25,29,33,37,41,45,48,52,56,60,64,68,71,75,79},
/*68*/ { 2, 6,10,14,18,22,26,30,34,37,41,45,49,53,57,61,65,69,72,76,80},
/*69*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,73,77,81},
/*70*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*71*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,72,76,80,81},
/*72*/ { 3, 7,11,15,19,23,27,31,35,40,44,48,52,56,60,64,68,73,77,81,99},
/*73*/ { 3, 7,11,15,19,23,28,32,36,40,44,48,53,57,61,65,69,74,78,81,99},
/*74*/ { 3, 7,11,15,20,24,28,32,36,41,45,49,53,58,62,66,70,75,79,81,99},
/*75*/ { 3, 7,11,16,20,24,28,33,37,41,46,50,54,58,63,67,71,76,80,81,99},
/*76*/ { 3, 7,11,16,20,24,29,33,37,42,46,50,55,59,63,68,72,77,81,99,99},
/*77*/ { 3, 7,12,16,20,25,29,34,38,42,47,51,56,60,64,69,73,78,81,99,99},
/*78*/ { 3, 7,12,16,21,25,29,34,38,43,47,52,56,61,65,70,74,79,81,99,99},
/*79*/ { 3, 7,12,16,21,25,30,34,39,43,48,52,57,61,66,70,75,80,81,99,99}
}},
/* DY = 19 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2},
/* 1*/ { 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3},
/* 2*/ { 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5},
/* 4*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6},
/* 5*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7},
/* 6*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8},
/* 7*/ { 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 9},
/* 8*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 9,10},
/* 9*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11},
/*10*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10,10,11,11,12},
/*11*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11,12,12,13},
/*12*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,12,13,13,14},
/*13*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9,10,10,11,12,12,13,14,14,15},
/*14*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14,15,15,16},
/*15*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,12,13,14,15,16,16,17},
/*16*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,17,18},
/*17*/ { 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14,15,16,17,18,18,19},
/*18*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,19,20},
/*19*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,20,21,22},
/*20*/ { 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,19,21,22,23},
/*21*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,22,23,24},
/*22*/ { 1, 2, 3, 5, 6, 7, 8, 9,11,12,13,14,15,17,18,19,20,21,23,24,25},
/*23*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,19,20,21,22,24,25,26},
/*24*/ { 1, 2, 4, 5, 6, 8, 9,10,12,13,14,15,17,18,19,21,22,23,25,26,27},
/*25*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,26,27,28},
/*26*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,17,18,19,21,22,24,25,27,28,29},
/*27*/ { 1, 3, 4, 6, 7, 9,10,11,13,14,16,17,19,20,22,23,25,26,28,29,30},
/*28*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,24,25,27,29,30,32},
/*29*/ { 1, 3, 4, 6, 8, 9,11,12,14,15,17,19,20,22,23,25,26,28,30,31,33},
/*30*/ { 1, 3, 5, 6, 8, 9,11,13,14,16,18,19,21,22,24,26,27,29,31,32,34},
/*31*/ { 1, 3, 5, 6, 8,10,11,13,15,16,18,20,21,23,25,26,28,30,32,33,35},
/*32*/ { 1, 3, 5, 7, 8,10,12,13,15,17,19,20,22,24,26,27,29,31,33,34,36},
/*33*/ { 1, 3, 5, 7, 9,10,12,14,16,17,19,21,23,25,26,28,30,32,34,35,37},
/*34*/ { 1, 3, 5, 7, 9,11,12,14,16,18,20,22,23,25,27,29,31,33,35,36,38},
/*35*/ { 1, 3, 5, 7, 9,11,13,15,17,18,20,22,24,26,28,30,32,34,36,37,39},
/*36*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,38,40},
/*37*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*38*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,39,41,43},
/*39*/ { 2, 4, 6, 8,10,12,14,16,18,21,23,25,27,29,31,33,35,37,40,42,44},
/*40*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,25,28,30,32,34,36,38,41,43,45},
/*41*/ { 2, 4, 6, 8,10,13,15,17,19,22,24,26,28,30,33,35,37,39,42,44,46},
/*42*/ { 2, 4, 6, 8,11,13,15,18,20,22,24,27,29,31,33,36,38,40,43,45,47},
/*43*/ { 2, 4, 6, 9,11,13,16,18,20,23,25,27,30,32,34,37,39,41,44,46,48},
/*44*/ { 2, 4, 6, 9,11,14,16,18,21,23,25,28,30,33,35,37,40,42,45,47,49},
/*45*/ { 2, 4, 7, 9,11,14,16,19,21,24,26,28,31,33,36,38,41,43,46,48,50},
/*46*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,49,51},
/*47*/ { 2, 4, 7, 9,12,14,17,20,22,25,27,30,32,35,37,40,42,45,48,50,53},
/*48*/ { 2, 4, 7,10,12,15,17,20,23,25,28,30,33,36,38,41,43,46,49,51,54},
/*49*/ { 2, 4, 7,10,12,15,18,20,23,26,28,31,34,36,39,42,44,47,50,52,55},
/*50*/ { 2, 5, 7,10,13,15,18,21,23,26,29,32,34,37,40,42,45,48,51,53,56},
/*51*/ { 2, 5, 7,10,13,16,18,21,24,27,29,32,35,38,40,43,46,49,52,54,57},
/*52*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,38,41,44,47,50,53,55,58},
/*53*/ { 2, 5, 8,11,13,16,19,22,25,28,31,33,36,39,42,45,48,51,54,56,59},
/*54*/ { 2, 5, 8,11,14,17,19,22,25,28,31,34,37,40,43,46,49,52,55,57,60},
/*55*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,58,61},
/*56*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,57,60,63},
/*57*/ { 2, 5, 8,11,14,17,21,24,27,30,33,36,39,42,45,48,51,54,58,61,64},
/*58*/ { 2, 5, 8,11,15,18,21,24,27,30,33,37,40,43,46,49,52,55,59,62,65},
/*59*/ { 2, 5, 8,12,15,18,21,24,28,31,34,37,40,44,47,50,53,56,60,63,66},
/*60*/ { 2, 5, 9,12,15,18,22,25,28,31,35,38,41,44,48,51,54,57,61,64,67},
/*61*/ { 2, 5, 9,12,15,19,22,25,29,32,35,38,42,45,48,52,55,58,62,65,68},
/*62*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,63,66,69},
/*63*/ { 2, 6, 9,12,16,19,23,26,29,33,36,40,43,46,50,53,57,60,64,67,70},
/*64*/ { 2, 6, 9,13,16,20,23,26,30,33,37,40,44,47,51,54,58,61,65,68,71},
/*65*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,55,58,62,66,69,73},
/*66*/ { 2, 6, 9,13,17,20,24,27,31,34,38,42,45,49,52,56,59,63,67,70,74},
/*67*/ { 2, 6,10,13,17,20,24,28,31,35,39,42,46,49,53,57,60,64,68,71,75},
/*68*/ { 2, 6,10,13,17,21,24,28,32,35,39,43,46,50,54,57,61,65,69,72,76},
/*69*/ { 2, 6,10,14,17,21,25,28,32,36,40,43,47,51,55,58,62,66,70,73,77},
/*70*/ { 2, 6,10,14,18,21,25,29,33,36,40,44,48,52,55,59,63,67,71,74,78},
/*71*/ { 2, 6,10,14,18,22,25,29,33,37,41,45,48,52,56,60,64,68,72,75,79},
/*72*/ { 2, 6,10,14,18,22,26,30,34,37,41,45,49,53,57,61,65,69,73,76,80},
/*73*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,77,81},
/*74*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*75*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,76,80,81},
/*76*/ { 3, 7,11,15,19,23,27,31,35,40,44,48,52,56,60,64,68,72,77,81,99},
/*77*/ { 3, 7,11,15,19,23,28,32,36,40,44,48,53,57,61,65,69,73,78,81,99},
/*78*/ { 3, 7,11,15,19,24,28,32,36,41,45,49,53,57,62,66,70,74,79,81,99},
/*79*/ { 3, 7,11,15,20,24,28,33,37,41,45,50,54,58,62,67,71,75,80,81,99}
}},
/* DY = 20 (- 1)*/
{{
/* 0*/ { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
/* 1*/ { 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
/* 2*/ { 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3},
/* 3*/ { 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4},
/* 4*/ { 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5},
/* 5*/ { 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6},
/* 6*/ { 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7},
/* 7*/ { 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8},
/* 8*/ { 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8, 9, 9, 9},
/* 9*/ { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,10},
/*10*/ { 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10,10,11,11},
/*11*/ { 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9,10,10,11,11,12,12},
/*12*/ { 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11,12,12,13,13},
/*13*/ { 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,12,13,14,14},
/*14*/ { 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,10,11,12,13,13,14,15,15},
/*15*/ { 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9,10,10,11,12,13,13,14,15,16,16},
/*16*/ { 1, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,13,14,15,16,17,17},
/*17*/ { 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,18,18},
/*18*/ { 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,19},
/*19*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,20},
/*20*/ { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,21,22},
/*21*/ { 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,19,20,22,23},
/*22*/ { 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20,21,23,24},
/*23*/ { 1, 2, 3, 5, 6, 7, 8, 9,11,12,13,14,15,16,18,19,20,21,22,24,25},
/*24*/ { 1, 2, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,20,21,22,23,25,26},
/*25*/ { 1, 2, 4, 5, 6, 8, 9,10,11,13,14,15,17,18,19,20,22,23,24,26,27},
/*26*/ { 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25,27,28},
/*27*/ { 1, 3, 4, 5, 7, 8,10,11,12,14,15,16,18,19,21,22,23,25,26,28,29},
/*28*/ { 1, 3, 4, 6, 7, 8,10,11,13,14,16,17,18,20,21,23,24,26,27,29,30},
/*29*/ { 1, 3, 4, 6, 7, 9,10,12,13,15,16,18,19,21,22,24,25,27,28,30,31},
/*30*/ { 1, 3, 4, 6, 7, 9,11,12,14,15,17,18,20,21,23,24,26,27,29,31,32},
/*31*/ { 1, 3, 4, 6, 8, 9,11,12,14,16,17,19,20,22,24,25,27,28,30,32,33},
/*32*/ { 1, 3, 5, 6, 8,10,11,13,14,16,18,19,21,23,24,26,28,29,31,33,34},
/*33*/ { 1, 3, 5, 6, 8,10,12,13,15,17,18,20,22,23,25,27,28,30,32,34,35},
/*34*/ { 1, 3, 5, 7, 8,10,12,14,15,17,19,21,22,24,26,28,29,31,33,35,36},
/*35*/ { 1, 3, 5, 7, 9,10,12,14,16,18,19,21,23,25,27,28,30,32,34,36,37},
/*36*/ { 1, 3, 5, 7, 9,11,13,14,16,18,20,22,24,25,27,29,31,33,35,37,38},
/*37*/ { 1, 3, 5, 7, 9,11,13,15,17,19,20,22,24,26,28,30,32,34,36,38,39},
/*38*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,40},
/*39*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42},
/*40*/ { 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,41,43},
/*41*/ { 2, 4, 6, 8,10,12,14,16,18,20,23,25,27,29,31,33,35,37,39,42,44},
/*42*/ { 2, 4, 6, 8,10,12,15,17,19,21,23,25,27,30,32,34,36,38,40,43,45},
/*43*/ { 2, 4, 6, 8,10,13,15,17,19,21,24,26,28,30,32,35,37,39,41,44,46},
/*44*/ { 2, 4, 6, 8,11,13,15,17,20,22,24,26,29,31,33,35,38,40,42,45,47},
/*45*/ { 2, 4, 6, 9,11,13,16,18,20,22,25,27,29,32,34,36,39,41,43,46,48},
/*46*/ { 2, 4, 6, 9,11,13,16,18,21,23,25,28,30,32,35,37,39,42,44,47,49},
/*47*/ { 2, 4, 7, 9,11,14,16,19,21,23,26,28,31,33,35,38,40,43,45,48,50},
/*48*/ { 2, 4, 7, 9,12,14,17,19,21,24,26,29,31,34,36,39,41,44,46,49,51},
/*49*/ { 2, 4, 7, 9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,50,52},
/*50*/ { 2, 4, 7, 9,12,15,17,20,22,25,27,30,33,35,38,40,43,45,48,51,53},
/*51*/ { 2, 4, 7,10,12,15,18,20,23,25,28,31,33,36,38,41,44,46,49,52,54},
/*52*/ { 2, 5, 7,10,13,15,18,21,23,26,29,31,34,37,39,42,45,47,50,53,55},
/*53*/ { 2, 5, 7,10,13,15,18,21,24,26,29,32,34,37,40,43,45,48,51,54,56},
/*54*/ { 2, 5, 7,10,13,16,19,21,24,27,30,32,35,38,41,43,46,49,52,55,57},
/*55*/ { 2, 5, 8,10,13,16,19,22,24,27,30,33,36,39,41,44,47,50,53,56,58},
/*56*/ { 2, 5, 8,11,13,16,19,22,25,28,31,34,36,39,42,45,48,51,54,57,59},
/*57*/ { 2, 5, 8,11,14,17,20,22,25,28,31,34,37,40,43,46,49,52,55,58,60},
/*58*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,61},
/*59*/ { 2, 5, 8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,60,63},
/*60*/ { 2, 5, 8,11,14,17,21,24,27,30,33,36,39,42,45,48,51,54,57,61,64},
/*61*/ { 2, 5, 8,11,15,18,21,24,27,30,33,36,40,43,46,49,52,55,58,62,65},
/*62*/ { 2, 5, 8,12,15,18,21,24,28,31,34,37,40,43,47,50,53,56,59,63,66},
/*63*/ { 2, 5, 9,12,15,18,22,25,28,31,34,38,41,44,47,51,54,57,60,64,67},
/*64*/ { 2, 5, 9,12,15,19,22,25,28,32,35,38,42,45,48,51,55,58,61,65,68},
/*65*/ { 2, 6, 9,12,16,19,22,26,29,32,36,39,42,46,49,52,56,59,62,66,69},
/*66*/ { 2, 6, 9,12,16,19,23,26,29,33,36,39,43,46,50,53,56,60,63,67,70},
/*67*/ { 2, 6, 9,13,16,19,23,26,30,33,37,40,43,47,50,54,57,61,64,68,71},
/*68*/ { 2, 6, 9,13,16,20,23,27,30,34,37,41,44,48,51,55,58,62,65,69,72},
/*69*/ { 2, 6, 9,13,16,20,24,27,31,34,38,41,45,48,52,55,59,62,66,70,73},
/*70*/ { 2, 6, 9,13,17,20,24,27,31,35,38,42,45,49,53,56,60,63,67,71,74},
/*71*/ { 2, 6,10,13,17,21,24,28,31,35,39,42,46,50,53,57,61,64,68,72,75},
/*72*/ { 2, 6,10,13,17,21,25,28,32,36,39,43,47,50,54,58,61,65,69,73,76},
/*73*/ { 2, 6,10,14,17,21,25,29,32,36,40,44,47,51,55,59,62,66,70,74,77},
/*74*/ { 2, 6,10,14,18,21,25,29,33,37,40,44,48,52,56,59,63,67,71,75,78},
/*75*/ { 2, 6,10,14,18,22,26,29,33,37,41,45,49,52,56,60,64,68,72,76,79},
/*76*/ { 2, 6,10,14,18,22,26,30,34,38,41,45,49,53,57,61,65,69,73,77,80},
/*77*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,81},
/*78*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,81},
/*79*/ { 3, 7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,80,81}
}},
}; /* close_table[] */
#endif /* !FAR_TABLE_ONLY */
#ifndef CLOSE_TABLE_ONLY
far2d far_table[FAR_MAX_SB_DY] = {
/* DY = 0 */
{{
/* 1(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/* 2(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/* 3(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/* 4(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/* 5(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/* 6(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/* 7(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/* 8(-1)*/ { 8,24,40,56,72,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/* 9(-1)*/ { 9,27,45,63,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*10(-1)*/ {10,30,50,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*11(-1)*/ {11,33,55,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*12(-1)*/ {12,36,60,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*13(-1)*/ {13,39,65,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*14(-1)*/ {14,42,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*15(-1)*/ {15,45,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*16(-1)*/ {16,48,80,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*17(-1)*/ {17,51,85,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*18(-1)*/ {18,54,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*19(-1)*/ {19,57,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*20(-1)*/ {20,60,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*21(-1)*/ {21,63,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*22(-1)*/ {22,66,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*23(-1)*/ {23,69,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*24(-1)*/ {24,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*25(-1)*/ {25,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*26(-1)*/ {26,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*27(-1)*/ {27,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*28(-1)*/ {28,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*29(-1)*/ {29,87,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*30(-1)*/ {30,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*31(-1)*/ {31,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*32(-1)*/ {32,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*33(-1)*/ {33,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*34(-1)*/ {34,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*35(-1)*/ {35,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*36(-1)*/ {36,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*37(-1)*/ {37,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*38(-1)*/ {38,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*39(-1)*/ {39,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*40(-1)*/ {40,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*41(-1)*/ {41,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*42(-1)*/ {42,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*43(-1)*/ {43,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ {44,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ {45,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ {46,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ {47,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ {48,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ {49,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ {50,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ {51,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ {52,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ {53,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ {54,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ {55,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ {56,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ {57,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ {58,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ {59,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ {60,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ {61,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ {62,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ {63,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ {64,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ {65,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ {66,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ {67,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ {68,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ {69,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ {70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ {71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ {72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ {73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ {74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ {75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ {76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ {77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ {78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ {79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 1 */
{{
/* 1(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 2(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/* 3(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/* 4(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/* 5(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/* 6(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/* 7(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/* 8(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,66,72,77,82,88,89,89,89},
/* 9(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*10(-1)*/ { 3,10,16,23,30,36,43,50,56,63,70,76,83,89,89,89,89,89,89,89},
/*11(-1)*/ { 3,11,18,25,33,40,47,55,62,69,77,84,89,89,89,89,89,89,89,89},
/*12(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*13(-1)*/ { 4,13,21,30,39,47,56,65,73,82,89,89,89,89,89,89,89,89,89,89},
/*14(-1)*/ { 4,14,23,32,42,51,60,70,79,88,89,89,89,89,89,89,89,89,89,89},
/*15(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*16(-1)*/ { 5,16,26,37,48,58,69,80,89,89,89,89,89,89,89,89,89,89,89,89},
/*17(-1)*/ { 5,17,28,39,51,62,73,85,89,89,89,89,89,89,89,89,89,89,89,89},
/*18(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*19(-1)*/ { 6,19,31,44,57,69,82,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*20(-1)*/ { 6,20,33,46,60,73,86,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*21(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*22(-1)*/ { 7,22,36,51,66,80,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*23(-1)*/ { 7,23,38,53,69,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*24(-1)*/ { 8,24,40,56,72,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*25(-1)*/ { 8,25,41,58,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*26(-1)*/ { 8,26,43,60,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*27(-1)*/ { 9,27,45,63,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*28(-1)*/ { 9,28,46,65,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*29(-1)*/ { 9,29,48,67,87,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*30(-1)*/ {10,30,50,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*31(-1)*/ {10,31,51,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*32(-1)*/ {10,32,53,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*33(-1)*/ {11,33,55,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*34(-1)*/ {11,34,56,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*35(-1)*/ {11,35,58,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*36(-1)*/ {12,36,60,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*37(-1)*/ {12,37,61,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*38(-1)*/ {12,38,63,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*39(-1)*/ {13,39,65,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*40(-1)*/ {13,40,66,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*41(-1)*/ {13,41,68,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*42(-1)*/ {14,42,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*43(-1)*/ {14,43,71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ {14,44,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ {15,45,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ {15,46,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ {15,47,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ {16,48,80,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ {16,49,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ {16,50,83,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ {17,51,85,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ {17,52,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ {17,53,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ {18,54,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ {18,55,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ {18,56,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ {19,57,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ {19,58,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ {19,59,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ {20,60,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ {20,61,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ {20,62,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ {21,63,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ {21,64,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ {21,65,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ {22,66,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ {22,67,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ {22,68,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ {23,69,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ {23,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ {23,71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ {24,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ {24,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ {24,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ {25,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ {25,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ {25,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ {26,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ {26,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 2 */
{{
/* 1(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4},
/* 2(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14},
/* 3(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,19,21,22,23},
/* 4(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,24,26,28,29,31},
/* 5(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/* 6(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,34,37,39,42,44,46},
/* 7(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,37,40,43,46,49,51,54},
/* 8(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,36,40,43,46,49,52,56,59,62},
/* 9(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,55,59,63,66,70},
/*10(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*11(-1)*/ { 2, 6,11,15,19,24,28,33,37,41,46,50,55,59,63,68,72,77,81,85},
/*12(-1)*/ { 2, 7,12,16,21,26,31,36,40,45,50,55,60,64,69,74,79,84,88,89},
/*13(-1)*/ { 2, 7,13,18,23,28,33,39,44,49,54,59,65,70,75,80,85,89,89,89},
/*14(-1)*/ { 2, 8,14,19,25,30,36,42,47,53,58,64,70,75,81,86,89,89,89,89},
/*15(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*16(-1)*/ { 3, 9,16,22,28,35,41,48,54,60,67,73,80,86,89,89,89,89,89,89},
/*17(-1)*/ { 3,10,17,23,30,37,44,51,57,64,71,78,85,89,89,89,89,89,89,89},
/*18(-1)*/ { 3,10,18,25,32,39,46,54,61,68,75,82,89,89,89,89,89,89,89,89},
/*19(-1)*/ { 3,11,19,26,34,41,49,57,64,72,79,87,89,89,89,89,89,89,89,89},
/*20(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*21(-1)*/ { 4,12,21,29,37,46,54,63,71,79,88,89,89,89,89,89,89,89,89,89},
/*22(-1)*/ { 4,13,22,30,39,48,57,66,74,83,89,89,89,89,89,89,89,89,89,89},
/*23(-1)*/ { 4,13,23,32,41,50,59,69,78,87,89,89,89,89,89,89,89,89,89,89},
/*24(-1)*/ { 4,14,24,33,43,52,62,72,81,89,89,89,89,89,89,89,89,89,89,89},
/*25(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*26(-1)*/ { 5,15,26,36,46,57,67,78,88,89,89,89,89,89,89,89,89,89,89,89},
/*27(-1)*/ { 5,16,27,37,48,59,70,81,89,89,89,89,89,89,89,89,89,89,89,89},
/*28(-1)*/ { 5,16,28,39,50,61,72,84,89,89,89,89,89,89,89,89,89,89,89,89},
/*29(-1)*/ { 5,17,29,40,52,63,75,87,89,89,89,89,89,89,89,89,89,89,89,89},
/*30(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*31(-1)*/ { 6,18,31,43,55,68,80,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*32(-1)*/ { 6,19,32,44,57,70,83,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*33(-1)*/ { 6,19,33,46,59,72,85,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*34(-1)*/ { 6,20,34,47,61,74,88,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*35(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*36(-1)*/ { 7,21,36,50,64,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*37(-1)*/ { 7,22,37,51,66,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*38(-1)*/ { 7,22,38,53,68,83,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*39(-1)*/ { 7,23,39,54,70,85,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*40(-1)*/ { 8,24,40,56,72,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*41(-1)*/ { 8,24,41,57,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*42(-1)*/ { 8,25,42,58,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*43(-1)*/ { 8,25,43,60,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ { 8,26,44,61,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ { 9,27,45,63,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ { 9,27,46,64,82,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ { 9,28,47,65,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ { 9,28,48,67,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ { 9,29,49,68,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ {10,30,50,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ {10,30,51,71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ {10,31,52,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ {10,31,53,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ {10,32,54,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ {11,33,55,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ {11,33,56,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ {11,34,57,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ {11,34,58,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ {11,35,59,82,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ {12,36,60,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ {12,36,61,85,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ {12,37,62,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ {12,37,63,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ {12,38,64,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ {13,39,65,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ {13,39,66,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ {13,40,67,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ {13,40,68,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ {13,41,69,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ {14,42,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ {14,42,71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ {14,43,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ {14,43,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ {14,44,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ {15,45,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ {15,45,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ {15,46,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ {15,46,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ {15,47,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 3 */
{{
/* 1(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2},
/* 2(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 3(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,11,12,13,14,15,16},
/* 4(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,20,21,22},
/* 5(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,17,19,20,22,23,25,26,27},
/* 6(-1)*/ { 0, 2, 4, 6, 7, 9,11,12,14,16,18,19,21,23,24,26,28,30,31,33},
/* 7(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/* 8(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,30,33,35,37,40,42,44},
/* 9(-1)*/ { 1, 3, 6, 9,11,14,16,19,21,24,27,29,32,34,37,39,42,45,47,50},
/*10(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,32,35,38,41,44,47,50,52,55},
/*11(-1)*/ { 1, 4, 7,11,14,17,20,23,26,29,33,36,39,42,45,48,51,55,58,61},
/*12(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,42,46,49,53,56,60,63,66},
/*13(-1)*/ { 1, 5, 9,13,16,20,24,27,31,35,39,42,46,50,53,57,61,65,68,72},
/*14(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*15(-1)*/ { 2, 6,10,15,19,23,27,32,36,40,45,49,53,57,62,66,70,75,79,83},
/*16(-1)*/ { 2, 6,11,16,20,25,29,34,38,43,48,52,57,61,66,70,75,80,84,89},
/*17(-1)*/ { 2, 7,12,17,21,26,31,36,41,46,51,55,60,65,70,75,80,85,89,89},
/*18(-1)*/ { 2, 7,12,18,23,28,33,38,43,48,54,59,64,69,74,79,84,89,89,89},
/*19(-1)*/ { 2, 8,13,19,24,29,35,40,46,51,57,62,67,73,78,84,89,89,89,89},
/*20(-1)*/ { 2, 8,14,20,25,31,37,42,48,54,60,65,71,77,82,88,89,89,89,89},
/*21(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*22(-1)*/ { 3, 9,15,22,28,34,40,47,53,59,66,72,78,84,89,89,89,89,89,89},
/*23(-1)*/ { 3, 9,16,23,29,36,42,49,55,62,69,75,82,88,89,89,89,89,89,89},
/*24(-1)*/ { 3,10,17,24,30,37,44,51,58,65,72,78,85,89,89,89,89,89,89,89},
/*25(-1)*/ { 3,10,17,25,32,39,46,53,60,67,75,82,89,89,89,89,89,89,89,89},
/*26(-1)*/ { 3,11,18,26,33,40,48,55,63,70,78,85,89,89,89,89,89,89,89,89},
/*27(-1)*/ { 3,11,19,27,34,42,50,57,65,73,81,88,89,89,89,89,89,89,89,89},
/*28(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*29(-1)*/ { 4,12,20,29,37,45,53,62,70,78,87,89,89,89,89,89,89,89,89,89},
/*30(-1)*/ { 4,12,21,30,38,47,55,64,72,81,89,89,89,89,89,89,89,89,89,89},
/*31(-1)*/ { 4,13,22,31,39,48,57,66,75,84,89,89,89,89,89,89,89,89,89,89},
/*32(-1)*/ { 4,13,22,32,41,50,59,68,77,86,89,89,89,89,89,89,89,89,89,89},
/*33(-1)*/ { 4,14,23,33,42,51,61,70,80,89,89,89,89,89,89,89,89,89,89,89},
/*34(-1)*/ { 4,14,24,34,43,53,63,72,82,89,89,89,89,89,89,89,89,89,89,89},
/*35(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*36(-1)*/ { 5,15,25,36,46,56,66,77,87,89,89,89,89,89,89,89,89,89,89,89},
/*37(-1)*/ { 5,15,26,37,47,58,68,79,89,89,89,89,89,89,89,89,89,89,89,89},
/*38(-1)*/ { 5,16,27,38,48,59,70,81,89,89,89,89,89,89,89,89,89,89,89,89},
/*39(-1)*/ { 5,16,27,39,50,61,72,83,89,89,89,89,89,89,89,89,89,89,89,89},
/*40(-1)*/ { 5,17,28,40,51,62,74,85,89,89,89,89,89,89,89,89,89,89,89,89},
/*41(-1)*/ { 5,17,29,41,52,64,76,87,89,89,89,89,89,89,89,89,89,89,89,89},
/*42(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*43(-1)*/ { 6,18,30,43,55,67,79,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ { 6,18,31,44,56,69,81,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ { 6,19,32,45,57,70,83,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ { 6,19,32,46,59,72,85,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ { 6,20,33,47,60,73,87,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ { 6,20,34,48,61,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ { 7,21,35,50,64,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ { 7,21,36,51,65,80,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ { 7,22,37,52,66,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ { 7,22,37,53,68,83,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ { 7,23,38,54,69,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ { 7,23,39,55,70,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ { 8,24,40,56,72,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ { 8,24,40,57,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ { 8,24,41,58,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ { 8,25,42,59,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ { 8,25,42,60,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ { 8,26,43,61,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 8,26,44,62,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 9,27,45,63,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 9,27,45,64,82,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 9,27,46,65,83,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 9,28,47,66,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 9,28,47,67,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 9,29,48,68,87,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 9,29,49,69,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ {10,30,50,70,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ {10,30,50,71,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ {10,30,51,72,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ {10,31,52,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ {10,31,52,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ {10,32,53,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ {10,32,54,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ {11,33,55,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ {11,33,55,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ {11,33,56,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 4 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
/* 2(-1)*/ {0xff, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6},
/* 3(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9,10,10,11,11},
/* 4(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,16},
/* 5(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20,21},
/* 6(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/* 7(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,17,19,21,22,24,25,27,28,30},
/* 8(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,16,18,20,22,24,25,27,29,31,32,34},
/* 9(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*10(-1)*/ { 1, 3, 5, 7,10,12,14,16,18,21,23,25,27,30,32,34,36,38,41,43},
/*11(-1)*/ { 1, 3, 6, 8,11,13,15,18,20,23,25,28,30,33,35,37,40,42,45,47},
/*12(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*13(-1)*/ { 1, 4, 7,10,13,15,18,21,24,27,30,33,36,39,41,44,47,50,53,56},
/*14(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,35,38,42,45,48,51,54,57,60},
/*15(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*16(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,40,44,48,51,55,58,62,65,69},
/*17(-1)*/ { 1, 5, 9,13,17,20,24,28,32,35,39,43,47,51,54,58,62,66,69,73},
/*18(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*19(-1)*/ { 2, 6,10,14,19,23,27,31,35,40,44,48,52,57,61,65,69,73,78,82},
/*20(-1)*/ { 2, 6,11,15,20,24,28,33,37,42,46,51,55,60,64,68,73,77,82,86},
/*21(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/*22(-1)*/ { 2, 7,12,17,22,26,31,36,41,46,51,56,61,66,70,75,80,85,89,89},
/*23(-1)*/ { 2, 7,12,17,23,28,33,38,43,48,53,58,63,69,74,79,84,89,89,89},
/*24(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,66,72,77,82,88,89,89,89},
/*25(-1)*/ { 2, 8,13,19,25,30,36,41,47,52,58,63,69,75,80,86,89,89,89,89},
/*26(-1)*/ { 2, 8,14,20,26,31,37,43,49,54,60,66,72,78,83,89,89,89,89,89},
/*27(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*28(-1)*/ { 3, 9,15,21,28,34,40,46,52,59,65,71,77,84,89,89,89,89,89,89},
/*29(-1)*/ { 3, 9,16,22,29,35,41,48,54,61,67,74,80,87,89,89,89,89,89,89},
/*30(-1)*/ { 3,10,16,23,30,36,43,50,56,63,70,76,83,89,89,89,89,89,89,89},
/*31(-1)*/ { 3,10,17,24,31,37,44,51,58,65,72,79,86,89,89,89,89,89,89,89},
/*32(-1)*/ { 3,10,17,24,32,39,46,53,60,67,74,81,88,89,89,89,89,89,89,89},
/*33(-1)*/ { 3,11,18,25,33,40,47,55,62,69,77,84,89,89,89,89,89,89,89,89},
/*34(-1)*/ { 3,11,18,26,34,41,49,56,64,71,79,86,89,89,89,89,89,89,89,89},
/*35(-1)*/ { 3,11,19,27,35,42,50,58,66,73,81,89,89,89,89,89,89,89,89,89},
/*36(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*37(-1)*/ { 4,12,20,28,37,45,53,61,69,78,86,89,89,89,89,89,89,89,89,89},
/*38(-1)*/ { 4,12,21,29,38,46,54,63,71,80,88,89,89,89,89,89,89,89,89,89},
/*39(-1)*/ { 4,13,21,30,39,47,56,65,73,82,89,89,89,89,89,89,89,89,89,89},
/*40(-1)*/ { 4,13,22,31,40,48,57,66,75,84,89,89,89,89,89,89,89,89,89,89},
/*41(-1)*/ { 4,13,22,31,41,50,59,68,77,86,89,89,89,89,89,89,89,89,89,89},
/*42(-1)*/ { 4,14,23,32,42,51,60,70,79,88,89,89,89,89,89,89,89,89,89,89},
/*43(-1)*/ { 4,14,23,33,43,52,62,71,81,89,89,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ { 4,14,24,34,44,53,63,73,83,89,89,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ { 5,15,25,35,46,56,66,76,86,89,89,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ { 5,15,26,36,47,57,67,78,88,89,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ { 5,16,26,37,48,58,69,80,89,89,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ { 5,16,27,38,49,59,70,81,89,89,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ { 5,16,27,38,50,61,72,83,89,89,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ { 5,17,28,39,51,62,73,85,89,89,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ { 5,17,28,40,52,63,75,86,89,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ { 5,17,29,41,53,64,76,88,89,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ { 6,18,30,42,55,67,79,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ { 6,18,31,43,56,68,80,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ { 6,19,31,44,57,69,82,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ { 6,19,32,45,58,70,83,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ { 6,19,32,45,59,72,85,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ { 6,20,33,46,60,73,86,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ { 6,20,33,47,61,74,88,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 6,20,34,48,62,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 7,21,35,49,64,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 7,21,36,50,65,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 7,22,36,51,66,80,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 7,22,37,52,67,81,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 7,22,37,52,68,83,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 7,23,38,53,69,84,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 7,23,38,54,70,85,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 7,23,39,55,71,86,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 8,24,40,56,72,88,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 8,24,40,56,73,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 8,24,41,57,74,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 8,25,41,58,75,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 8,25,42,59,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 8,25,42,59,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 8,26,43,60,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 8,26,43,61,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 5 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1},
/* 2(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5},
/* 3(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 4(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,12,12,13},
/* 5(-1)*/ { 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9,10,11,12,12,13,14,15,16,17},
/* 6(-1)*/ { 0, 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,15,16,18,19,20,21},
/* 7(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,10,12,13,14,15,17,18,19,21,22,23,24},
/* 8(-1)*/ { 0, 2, 3, 5, 6, 8, 9,10,12,13,15,16,18,19,21,22,24,25,26,28},
/* 9(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,13,15,17,18,20,22,23,25,27,28,30,31},
/*10(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,20,22,24,26,28,30,31,33,35},
/*11(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*12(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,22,25,27,29,31,33,36,38,40,42},
/*13(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,24,27,29,31,34,36,39,41,43,46},
/*14(-1)*/ { 1, 3, 6, 8,11,14,16,19,21,24,26,29,31,34,36,39,42,44,47,49},
/*15(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,25,28,31,34,36,39,42,45,47,50,53},
/*16(-1)*/ { 1, 4, 7,10,13,16,18,21,24,27,30,33,36,39,42,45,48,50,53,56},
/*17(-1)*/ { 1, 4, 7,10,13,17,20,23,26,29,32,35,38,41,44,47,51,54,57,60},
/*18(-1)*/ { 1, 4, 8,11,14,18,21,24,27,31,34,37,40,44,47,50,54,57,60,63},
/*19(-1)*/ { 1, 5, 8,12,15,19,22,25,29,32,36,39,43,46,50,53,57,60,63,67},
/*20(-1)*/ { 1, 5, 9,12,16,20,23,27,30,34,38,41,45,49,52,56,60,63,67,70},
/*21(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,43,47,51,55,59,63,66,70,74},
/*22(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*23(-1)*/ { 2, 6,10,14,18,23,27,31,35,39,43,48,52,56,60,64,69,73,77,81},
/*24(-1)*/ { 2, 6,10,15,19,24,28,32,37,41,45,50,54,58,63,67,72,76,80,85},
/*25(-1)*/ { 2, 6,11,15,20,25,29,34,38,43,47,52,56,61,65,70,75,79,84,88},
/*26(-1)*/ { 2, 7,11,16,21,26,30,35,40,44,49,54,59,63,68,73,78,82,87,89},
/*27(-1)*/ { 2, 7,12,17,22,27,31,36,41,46,51,56,61,66,71,76,81,85,89,89},
/*28(-1)*/ { 2, 7,12,17,22,28,33,38,43,48,53,58,63,68,73,78,84,89,89,89},
/*29(-1)*/ { 2, 7,13,18,23,29,34,39,44,50,55,60,65,71,76,81,87,89,89,89},
/*30(-1)*/ { 2, 8,13,19,24,30,35,40,46,51,57,62,68,73,79,84,89,89,89,89},
/*31(-1)*/ { 2, 8,14,19,25,31,36,42,47,53,59,64,70,76,81,87,89,89,89,89},
/*32(-1)*/ { 2, 8,14,20,26,32,37,43,49,55,61,66,72,78,84,89,89,89,89,89},
/*33(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*34(-1)*/ { 3, 9,15,21,27,34,40,46,52,58,64,71,77,83,89,89,89,89,89,89},
/*35(-1)*/ { 3, 9,15,22,28,35,41,47,54,60,66,73,79,85,89,89,89,89,89,89},
/*36(-1)*/ { 3, 9,16,22,29,36,42,49,55,62,68,75,81,88,89,89,89,89,89,89},
/*37(-1)*/ { 3,10,16,23,30,37,43,50,57,63,70,77,84,89,89,89,89,89,89,89},
/*38(-1)*/ { 3,10,17,24,31,38,44,51,58,65,72,79,86,89,89,89,89,89,89,89},
/*39(-1)*/ { 3,10,17,24,31,39,46,53,60,67,74,81,88,89,89,89,89,89,89,89},
/*40(-1)*/ { 3,10,18,25,32,40,47,54,61,69,76,83,89,89,89,89,89,89,89,89},
/*41(-1)*/ { 3,11,18,26,33,41,48,55,63,70,78,85,89,89,89,89,89,89,89,89},
/*42(-1)*/ { 3,11,19,26,34,42,49,57,64,72,80,87,89,89,89,89,89,89,89,89},
/*43(-1)*/ { 3,11,19,27,35,43,50,58,66,74,82,89,89,89,89,89,89,89,89,89},
/*44(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*45(-1)*/ { 4,12,20,28,36,45,53,61,69,77,85,89,89,89,89,89,89,89,89,89},
/*46(-1)*/ { 4,12,20,29,37,46,54,62,71,79,87,89,89,89,89,89,89,89,89,89},
/*47(-1)*/ { 4,12,21,29,38,47,55,64,72,81,89,89,89,89,89,89,89,89,89,89},
/*48(-1)*/ { 4,13,21,30,39,48,56,65,74,82,89,89,89,89,89,89,89,89,89,89},
/*49(-1)*/ { 4,13,22,31,40,49,57,66,75,84,89,89,89,89,89,89,89,89,89,89},
/*50(-1)*/ { 4,13,22,31,40,50,59,68,77,86,89,89,89,89,89,89,89,89,89,89},
/*51(-1)*/ { 4,13,23,32,41,51,60,69,78,88,89,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ { 4,14,23,33,42,52,61,70,80,89,89,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ { 4,14,24,33,43,53,62,72,81,89,89,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ { 4,14,24,34,44,54,63,73,83,89,89,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ { 5,15,25,35,45,56,66,76,86,89,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ { 5,15,25,36,46,57,67,77,88,89,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ { 5,15,26,36,47,58,68,79,89,89,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ { 5,16,26,37,48,59,69,80,89,89,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ { 5,16,27,38,49,60,70,81,89,89,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ { 5,16,27,38,49,61,72,83,89,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 5,16,28,39,50,62,73,84,89,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 5,17,28,40,51,63,74,85,89,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 5,17,29,40,52,64,75,87,89,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 5,17,29,41,53,65,76,88,89,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 6,18,30,42,54,67,79,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 6,18,30,43,55,68,80,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 6,18,31,43,56,69,81,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 6,19,31,44,57,70,82,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 6,19,32,45,58,71,83,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 6,19,32,45,58,72,85,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 6,19,33,46,59,73,86,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 6,20,33,47,60,74,87,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 6,20,34,47,61,75,88,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 6,20,34,48,62,76,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 7,21,35,49,63,77,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 7,21,35,49,63,78,89,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 7,21,35,50,64,79,89,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 6 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1},
/* 2(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4},
/* 3(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7},
/* 4(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10,11},
/* 5(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14},
/* 6(-1)*/ { 0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,15,16,17},
/* 7(-1)*/ { 0, 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,21},
/* 8(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,12,14,15,16,17,19,20,21,22,24},
/* 9(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,15,17,18,20,21,22,24,25,27},
/*10(-1)*/ { 0, 2, 3, 5, 6, 8,10,11,13,14,16,17,19,20,22,23,25,26,28,30},
/*11(-1)*/ { 0, 2, 4, 5, 7, 9,11,12,14,16,17,19,21,22,24,26,27,29,31,33},
/*12(-1)*/ { 0, 2, 4, 6, 8,10,12,13,15,17,19,21,23,24,26,28,30,32,34,36},
/*13(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*14(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,24,26,29,31,33,35,37,39,42},
/*15(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,21,24,26,28,31,33,35,38,40,42,45},
/*16(-1)*/ { 1, 3, 6, 8,11,13,16,18,20,23,25,28,30,33,35,38,40,43,45,48},
/*17(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,24,27,30,32,35,37,40,43,45,48,51},
/*18(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,31,34,37,40,42,45,48,51,54},
/*19(-1)*/ { 1, 4, 7,10,13,16,19,21,24,27,30,33,36,39,42,45,48,51,54,57},
/*20(-1)*/ { 1, 4, 7,10,13,16,20,23,26,29,32,35,38,41,44,47,50,53,56,60},
/*21(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,33,37,40,43,46,50,53,56,59,63},
/*22(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,38,42,45,49,52,55,59,62,66},
/*23(-1)*/ { 1, 5, 8,12,15,19,23,26,30,33,37,40,44,47,51,54,58,61,65,69},
/*24(-1)*/ { 1, 5, 9,12,16,20,24,27,31,35,38,42,46,49,53,57,60,64,68,72},
/*25(-1)*/ { 1, 5, 9,13,17,21,25,28,32,36,40,44,48,51,55,59,63,67,71,75},
/*26(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*27(-1)*/ { 2, 6,10,14,18,22,27,31,35,39,43,47,51,56,60,64,68,72,76,81},
/*28(-1)*/ { 2, 6,10,15,19,23,28,32,36,40,45,49,53,58,62,66,71,75,79,84},
/*29(-1)*/ { 2, 6,11,15,20,24,29,33,37,42,46,51,55,60,64,69,73,78,82,87},
/*30(-1)*/ { 2, 6,11,16,20,25,30,34,39,43,48,53,57,62,66,71,76,80,85,89},
/*31(-1)*/ { 2, 7,11,16,21,26,31,35,40,45,50,54,59,64,69,73,78,83,88,89},
/*32(-1)*/ { 2, 7,12,17,22,27,32,36,41,46,51,56,61,66,71,76,81,86,89,89},
/*33(-1)*/ { 2, 7,12,17,22,27,33,38,43,48,53,58,63,68,73,78,83,88,89,89},
/*34(-1)*/ { 2, 7,13,18,23,28,34,39,44,49,54,60,65,70,75,81,86,89,89,89},
/*35(-1)*/ { 2, 8,13,18,24,29,35,40,45,51,56,61,67,72,78,83,88,89,89,89},
/*36(-1)*/ { 2, 8,13,19,24,30,36,41,47,52,58,63,69,74,80,85,89,89,89,89},
/*37(-1)*/ { 2, 8,14,19,25,31,37,42,48,54,59,65,71,76,82,88,89,89,89,89},
/*38(-1)*/ { 2, 8,14,20,26,32,38,43,49,55,61,67,73,78,84,89,89,89,89,89},
/*39(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*40(-1)*/ { 3, 9,15,21,27,33,40,46,52,58,64,70,76,83,89,89,89,89,89,89},
/*41(-1)*/ { 3, 9,15,22,28,34,41,47,53,59,66,72,78,85,89,89,89,89,89,89},
/*42(-1)*/ { 3, 9,16,22,29,35,42,48,54,61,67,74,80,87,89,89,89,89,89,89},
/*43(-1)*/ { 3, 9,16,23,29,36,43,49,56,62,69,76,82,89,89,89,89,89,89,89},
/*44(-1)*/ { 3,10,16,23,30,37,44,50,57,64,71,77,84,89,89,89,89,89,89,89},
/*45(-1)*/ { 3,10,17,24,31,38,45,51,58,65,72,79,86,89,89,89,89,89,89,89},
/*46(-1)*/ { 3,10,17,24,31,38,46,53,60,67,74,81,88,89,89,89,89,89,89,89},
/*47(-1)*/ { 3,10,18,25,32,39,47,54,61,68,75,83,89,89,89,89,89,89,89,89},
/*48(-1)*/ { 3,11,18,25,33,40,48,55,62,70,77,84,89,89,89,89,89,89,89,89},
/*49(-1)*/ { 3,11,18,26,33,41,49,56,64,71,79,86,89,89,89,89,89,89,89,89},
/*50(-1)*/ { 3,11,19,26,34,42,50,57,65,73,80,88,89,89,89,89,89,89,89,89},
/*51(-1)*/ { 3,11,19,27,35,43,51,58,66,74,82,89,89,89,89,89,89,89,89,89},
/*52(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*53(-1)*/ { 4,12,20,28,36,44,53,61,69,77,85,89,89,89,89,89,89,89,89,89},
/*54(-1)*/ { 4,12,20,29,37,45,54,62,70,78,87,89,89,89,89,89,89,89,89,89},
/*55(-1)*/ { 4,12,21,29,38,46,55,63,71,80,88,89,89,89,89,89,89,89,89,89},
/*56(-1)*/ { 4,12,21,30,38,47,56,64,73,81,89,89,89,89,89,89,89,89,89,89},
/*57(-1)*/ { 4,13,21,30,39,48,57,65,74,83,89,89,89,89,89,89,89,89,89,89},
/*58(-1)*/ { 4,13,22,31,40,49,58,66,75,84,89,89,89,89,89,89,89,89,89,89},
/*59(-1)*/ { 4,13,22,31,40,49,59,68,77,86,89,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ { 4,13,23,32,41,50,60,69,78,87,89,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ { 4,14,23,32,42,51,61,70,79,89,89,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 4,14,23,33,42,52,62,71,81,89,89,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 4,14,24,33,43,53,63,72,82,89,89,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 4,14,24,34,44,54,64,73,83,89,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 5,15,25,35,45,55,66,76,86,89,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 5,15,25,36,46,56,67,77,87,89,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 5,15,26,36,47,57,68,78,88,89,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 5,15,26,37,47,58,69,79,89,89,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 5,16,26,37,48,59,70,80,89,89,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 5,16,27,38,49,60,71,81,89,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 5,16,27,38,49,60,72,83,89,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 5,16,28,39,50,61,73,84,89,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 5,17,28,39,51,62,74,85,89,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 5,17,28,40,51,63,75,86,89,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 5,17,29,40,52,64,76,87,89,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 5,17,29,41,53,65,77,88,89,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 6,18,30,42,54,66,78,89,89,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 6,18,30,42,54,66,79,89,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 7 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3},
/* 3(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6},
/* 4(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 5(-1)*/ { 0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,11,12},
/* 6(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9,10,11,12,12,13,14,15},
/* 7(-1)*/ { 0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18},
/* 8(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,19,20},
/* 9(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,19,21,22,23},
/*10(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/*11(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,13,15,16,18,19,21,22,24,25,27,28},
/*12(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,24,26,28,29,31},
/*13(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,19,21,23,25,26,28,30,32,33},
/*14(-1)*/ { 0, 2, 4, 6, 8,10,12,14,15,17,19,21,23,25,27,28,30,32,34,36},
/*15(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*16(-1)*/ { 1, 3, 5, 7, 9,11,13,16,18,20,22,24,26,28,30,33,35,37,39,41},
/*17(-1)*/ { 1, 3, 5, 7,10,12,14,17,19,21,23,26,28,30,32,35,37,39,41,44},
/*18(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,34,37,39,42,44,46},
/*19(-1)*/ { 1, 3, 6, 8,11,13,16,19,21,24,26,29,31,34,36,39,41,44,46,49},
/*20(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*21(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,37,40,43,46,49,51,54},
/*22(-1)*/ { 1, 4, 7,10,13,16,19,22,24,27,30,33,36,39,42,45,48,51,54,57},
/*23(-1)*/ { 1, 4, 7,10,13,16,19,23,26,29,32,35,38,41,44,47,50,53,56,59},
/*24(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,36,40,43,46,49,52,56,59,62},
/*25(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*26(-1)*/ { 1, 5, 8,12,15,19,22,26,29,32,36,39,43,46,50,53,57,60,64,67},
/*27(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,55,59,63,66,70},
/*28(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,42,46,50,54,57,61,65,69,72},
/*29(-1)*/ { 1, 5, 9,13,17,21,25,29,32,36,40,44,48,52,56,59,63,67,71,75},
/*30(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*31(-1)*/ { 2, 6,10,14,18,22,26,31,35,39,43,47,51,55,59,64,68,72,76,80},
/*32(-1)*/ { 2, 6,10,14,19,23,27,32,36,40,44,49,53,57,61,66,70,74,78,83},
/*33(-1)*/ { 2, 6,11,15,19,24,28,33,37,41,46,50,55,59,63,68,72,77,81,85},
/*34(-1)*/ { 2, 6,11,15,20,24,29,34,38,43,47,52,56,61,65,70,74,79,83,88},
/*35(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/*36(-1)*/ { 2, 7,12,16,21,26,31,36,40,45,50,55,60,64,69,74,79,84,88,89},
/*37(-1)*/ { 2, 7,12,17,22,27,32,37,41,46,51,56,61,66,71,76,81,86,89,89},
/*38(-1)*/ { 2, 7,12,17,22,27,32,38,43,48,53,58,63,68,73,78,83,88,89,89},
/*39(-1)*/ { 2, 7,13,18,23,28,33,39,44,49,54,59,65,70,75,80,85,89,89,89},
/*40(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,66,72,77,82,88,89,89,89},
/*41(-1)*/ { 2, 8,13,19,24,30,35,41,46,51,57,62,68,73,79,84,89,89,89,89},
/*42(-1)*/ { 2, 8,14,19,25,30,36,42,47,53,58,64,70,75,81,86,89,89,89,89},
/*43(-1)*/ { 2, 8,14,20,25,31,37,43,48,54,60,65,71,77,83,88,89,89,89,89},
/*44(-1)*/ { 2, 8,14,20,26,32,38,44,49,55,61,67,73,79,85,89,89,89,89,89},
/*45(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*46(-1)*/ { 3, 9,15,21,27,33,39,46,52,58,64,70,76,82,88,89,89,89,89,89},
/*47(-1)*/ { 3, 9,15,21,28,34,40,47,53,59,65,72,78,84,89,89,89,89,89,89},
/*48(-1)*/ { 3, 9,16,22,28,35,41,48,54,60,67,73,80,86,89,89,89,89,89,89},
/*49(-1)*/ { 3, 9,16,22,29,35,42,49,55,62,68,75,81,88,89,89,89,89,89,89},
/*50(-1)*/ { 3,10,16,23,30,36,43,50,56,63,70,76,83,89,89,89,89,89,89,89},
/*51(-1)*/ { 3,10,17,23,30,37,44,51,57,64,71,78,85,89,89,89,89,89,89,89},
/*52(-1)*/ { 3,10,17,24,31,38,45,52,58,65,72,79,86,89,89,89,89,89,89,89},
/*53(-1)*/ { 3,10,17,24,31,38,45,53,60,67,74,81,88,89,89,89,89,89,89,89},
/*54(-1)*/ { 3,10,18,25,32,39,46,54,61,68,75,82,89,89,89,89,89,89,89,89},
/*55(-1)*/ { 3,11,18,25,33,40,47,55,62,69,77,84,89,89,89,89,89,89,89,89},
/*56(-1)*/ { 3,11,18,26,33,41,48,56,63,70,78,85,89,89,89,89,89,89,89,89},
/*57(-1)*/ { 3,11,19,26,34,41,49,57,64,72,79,87,89,89,89,89,89,89,89,89},
/*58(-1)*/ { 3,11,19,27,34,42,50,58,65,73,81,88,89,89,89,89,89,89,89,89},
/*59(-1)*/ { 3,11,19,27,35,43,51,59,66,74,82,89,89,89,89,89,89,89,89,89},
/*60(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*61(-1)*/ { 4,12,20,28,36,44,52,61,69,77,85,89,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 4,12,20,28,37,45,53,62,70,78,86,89,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 4,12,21,29,37,46,54,63,71,79,88,89,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 4,12,21,29,38,46,55,64,72,81,89,89,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 4,13,21,30,39,47,56,65,73,82,89,89,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 4,13,22,30,39,48,57,66,74,83,89,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 4,13,22,31,40,49,58,67,75,84,89,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 4,13,22,31,40,49,58,68,77,86,89,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 4,13,23,32,41,50,59,69,78,87,89,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 4,14,23,32,42,51,60,70,79,88,89,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 4,14,23,33,42,52,61,71,80,89,89,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 4,14,24,33,43,52,62,72,81,89,89,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 4,14,24,34,43,53,63,73,82,89,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 4,14,24,34,44,54,64,74,83,89,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 5,15,25,35,45,55,65,75,85,89,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 5,15,25,35,45,55,65,76,86,89,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 5,15,25,35,46,56,66,77,87,89,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 5,15,26,36,46,57,67,78,88,89,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 5,15,26,36,47,57,68,79,89,89,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 8 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3},
/* 3(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5},
/* 4(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8},
/* 5(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9,10,10},
/* 6(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13},
/* 7(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,10,11,12,13,14,14,15},
/* 8(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18},
/* 9(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 9,10,11,12,13,14,15,16,17,18,19,20},
/*10(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,15,17,18,19,20,21,22},
/*11(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,14,16,17,18,20,21,22,23,25},
/*12(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,12,13,14,16,17,19,20,21,23,24,26,27},
/*13(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,13,14,16,17,19,20,22,23,25,26,28,29},
/*14(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,18,20,22,23,25,27,28,30,32},
/*15(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,15,16,18,20,22,23,25,27,29,30,32,34},
/*16(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,17,19,21,23,25,27,29,31,32,34,36},
/*17(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*18(-1)*/ { 1, 3, 5, 7, 9,11,13,15,18,20,22,24,26,28,30,32,34,37,39,41},
/*19(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,27,30,32,34,36,39,41,43},
/*20(-1)*/ { 1, 3, 5, 8,10,12,15,17,20,22,24,27,29,31,34,36,38,41,43,45},
/*21(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,25,28,30,33,35,38,40,43,45,48},
/*22(-1)*/ { 1, 3, 6, 9,11,14,16,19,22,24,27,29,32,34,37,40,42,45,47,50},
/*23(-1)*/ { 1, 4, 6, 9,12,14,17,20,23,25,28,31,33,36,39,41,44,47,50,52},
/*24(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,26,29,32,35,38,40,43,46,49,52,55},
/*25(-1)*/ { 1, 4, 7,10,13,16,19,22,25,27,30,33,36,39,42,45,48,51,54,57},
/*26(-1)*/ { 1, 4, 7,10,13,16,19,22,26,29,32,35,38,41,44,47,50,53,56,59},
/*27(-1)*/ { 1, 4, 7,11,14,17,20,23,27,30,33,36,39,42,46,49,52,55,58,61},
/*28(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,37,41,44,47,51,54,57,60,64},
/*29(-1)*/ { 1, 5, 8,11,15,18,22,25,29,32,35,39,42,46,49,52,56,59,63,66},
/*30(-1)*/ { 1, 5, 8,12,15,19,22,26,30,33,37,40,44,47,51,54,58,61,65,68},
/*31(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,41,45,49,52,56,60,63,67,71},
/*32(-1)*/ { 1, 5, 9,13,16,20,24,28,32,35,39,43,47,50,54,58,62,65,69,73},
/*33(-1)*/ { 1, 5, 9,13,17,21,25,29,33,36,40,44,48,52,56,60,64,67,71,75},
/*34(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*35(-1)*/ { 2, 6,10,14,18,22,26,30,35,39,43,47,51,55,59,63,67,72,76,80},
/*36(-1)*/ { 2, 6,10,14,19,23,27,31,36,40,44,48,52,57,61,65,69,74,78,82},
/*37(-1)*/ { 2, 6,10,15,19,23,28,32,37,41,45,50,54,58,63,67,71,76,80,84},
/*38(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,46,51,55,60,64,69,73,78,82,87},
/*39(-1)*/ { 2, 6,11,16,20,25,29,34,39,43,48,52,57,61,66,71,75,80,84,89},
/*40(-1)*/ { 2, 7,11,16,21,25,30,35,40,44,49,54,58,63,68,72,77,82,87,89},
/*41(-1)*/ { 2, 7,12,16,21,26,31,36,41,45,50,55,60,65,69,74,79,84,89,89},
/*42(-1)*/ { 2, 7,12,17,22,27,32,37,42,46,51,56,61,66,71,76,81,86,89,89},
/*43(-1)*/ { 2, 7,12,17,22,27,32,37,43,48,53,58,63,68,73,78,83,88,89,89},
/*44(-1)*/ { 2, 7,12,18,23,28,33,38,44,49,54,59,64,69,75,80,85,89,89,89},
/*45(-1)*/ { 2, 7,13,18,23,29,34,39,45,50,55,60,66,71,76,82,87,89,89,89},
/*46(-1)*/ { 2, 8,13,18,24,29,35,40,46,51,56,62,67,73,78,83,89,89,89,89},
/*47(-1)*/ { 2, 8,13,19,24,30,35,41,47,52,58,63,69,74,80,85,89,89,89,89},
/*48(-1)*/ { 2, 8,14,19,25,31,36,42,48,53,59,64,70,76,81,87,89,89,89,89},
/*49(-1)*/ { 2, 8,14,20,25,31,37,43,49,54,60,66,72,77,83,89,89,89,89,89},
/*50(-1)*/ { 2, 8,14,20,26,32,38,44,50,55,61,67,73,79,85,89,89,89,89,89},
/*51(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*52(-1)*/ { 3, 9,15,21,27,33,39,45,52,58,64,70,76,82,88,89,89,89,89,89},
/*53(-1)*/ { 3, 9,15,21,28,34,40,46,53,59,65,71,77,84,89,89,89,89,89,89},
/*54(-1)*/ { 3, 9,15,22,28,34,41,47,54,60,66,73,79,85,89,89,89,89,89,89},
/*55(-1)*/ { 3, 9,16,22,29,35,42,48,55,61,67,74,80,87,89,89,89,89,89,89},
/*56(-1)*/ { 3, 9,16,23,29,36,42,49,56,62,69,75,82,88,89,89,89,89,89,89},
/*57(-1)*/ { 3,10,16,23,30,36,43,50,57,63,70,77,83,89,89,89,89,89,89,89},
/*58(-1)*/ { 3,10,17,23,30,37,44,51,58,64,71,78,85,89,89,89,89,89,89,89},
/*59(-1)*/ { 3,10,17,24,31,38,45,52,59,65,72,79,86,89,89,89,89,89,89,89},
/*60(-1)*/ { 3,10,17,24,31,38,45,52,60,67,74,81,88,89,89,89,89,89,89,89},
/*61(-1)*/ { 3,10,17,25,32,39,46,53,61,68,75,82,89,89,89,89,89,89,89,89},
/*62(-1)*/ { 3,10,18,25,32,40,47,54,62,69,76,83,89,89,89,89,89,89,89,89},
/*63(-1)*/ { 3,11,18,25,33,40,48,55,63,70,77,85,89,89,89,89,89,89,89,89},
/*64(-1)*/ { 3,11,18,26,33,41,48,56,64,71,79,86,89,89,89,89,89,89,89,89},
/*65(-1)*/ { 3,11,19,26,34,42,49,57,65,72,80,87,89,89,89,89,89,89,89,89},
/*66(-1)*/ { 3,11,19,27,34,42,50,58,66,73,81,89,89,89,89,89,89,89,89,89},
/*67(-1)*/ { 3,11,19,27,35,43,51,59,67,74,82,89,89,89,89,89,89,89,89,89},
/*68(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 4,12,20,28,36,44,52,60,69,77,85,89,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 4,12,20,28,37,45,53,61,70,78,86,89,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 4,12,20,29,37,45,54,62,71,79,87,89,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 4,12,21,29,38,46,55,63,72,80,88,89,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 4,12,21,30,38,47,55,64,73,81,89,89,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 4,13,21,30,39,47,56,65,74,82,89,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 4,13,22,30,39,48,57,66,75,83,89,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 4,13,22,31,40,49,58,67,76,84,89,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 4,13,22,31,40,49,58,67,77,86,89,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 4,13,22,32,41,50,59,68,78,87,89,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 4,13,23,32,41,51,60,69,79,88,89,89,89,89,89,89,89,89,89,89}
}},
/* DY = 9 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2},
/* 3(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5},
/* 4(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7},
/* 5(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 6(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11},
/* 7(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,11,12,13,13},
/* 8(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,11,12,13,14,15,16},
/* 9(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14,15,16,17,18},
/*10(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8,10,11,12,13,14,15,16,17,18,19,20},
/*11(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,11,12,13,14,15,16,17,19,20,21,22},
/*12(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,12,13,14,15,17,18,19,20,22,23,24},
/*13(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,13,14,15,17,18,19,21,22,23,25,26},
/*14(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,16,18,19,21,22,24,25,27,28},
/*15(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,15,16,18,19,21,22,24,26,27,29,30},
/*16(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,16,17,19,21,22,24,26,27,29,31,32},
/*17(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,18,20,22,24,25,27,29,31,33,34},
/*18(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,19,21,23,25,27,29,31,33,35,36},
/*19(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*20(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,20,22,24,26,28,30,32,34,36,38,41},
/*21(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,21,23,25,27,29,32,34,36,38,40,43},
/*22(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,28,31,33,35,38,40,42,45},
/*23(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,23,25,27,30,32,35,37,39,42,44,47},
/*24(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,24,26,29,31,34,36,39,41,44,46,49},
/*25(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,25,27,30,32,35,38,40,43,46,48,51},
/*26(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,28,31,34,36,39,42,45,47,50,53},
/*27(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,27,29,32,35,38,41,44,46,49,52,55},
/*28(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,30,33,36,39,42,45,48,51,54,57},
/*29(-1)*/ { 1, 4, 7,10,13,16,19,22,25,29,32,35,38,41,44,47,50,53,56,59},
/*30(-1)*/ { 1, 4, 7,11,14,17,20,23,26,30,33,36,39,42,45,48,52,55,58,61},
/*31(-1)*/ { 1, 4, 8,11,14,17,21,24,27,31,34,37,40,44,47,50,53,57,60,63},
/*32(-1)*/ { 1, 5, 8,11,15,18,21,25,28,32,35,38,42,45,48,52,55,58,62,65},
/*33(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,39,43,46,50,53,57,60,64,67},
/*34(-1)*/ { 1, 5, 8,12,16,19,23,26,30,34,37,41,44,48,51,55,59,62,66,69},
/*35(-1)*/ { 1, 5, 9,12,16,20,23,27,31,35,38,42,46,49,53,57,60,64,68,71},
/*36(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,39,43,47,51,54,58,62,66,70,73},
/*37(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,40,44,48,52,56,60,64,68,72,75},
/*38(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*39(-1)*/ { 2, 6,10,14,18,22,26,30,34,39,43,47,51,55,59,63,67,71,75,80},
/*40(-1)*/ { 2, 6,10,14,18,23,27,31,35,40,44,48,52,56,61,65,69,73,77,82},
/*41(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,49,53,58,62,66,71,75,79,84},
/*42(-1)*/ { 2, 6,11,15,19,24,28,33,37,42,46,50,55,59,64,68,72,77,81,86},
/*43(-1)*/ { 2, 6,11,15,20,24,29,33,38,43,47,52,56,61,65,70,74,79,83,88},
/*44(-1)*/ { 2, 6,11,16,20,25,30,34,39,44,48,53,57,62,67,71,76,81,85,89},
/*45(-1)*/ { 2, 7,11,16,21,26,30,35,40,45,49,54,59,63,68,73,78,82,87,89},
/*46(-1)*/ { 2, 7,12,16,21,26,31,36,41,46,50,55,60,65,70,75,79,84,89,89},
/*47(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,51,56,61,66,71,76,81,86,89,89},
/*48(-1)*/ { 2, 7,12,17,22,27,32,37,42,48,53,58,63,68,73,78,83,88,89,89},
/*49(-1)*/ { 2, 7,12,18,23,28,33,38,43,49,54,59,64,69,74,79,85,89,89,89},
/*50(-1)*/ { 2, 7,13,18,23,28,34,39,44,50,55,60,65,71,76,81,86,89,89,89},
/*51(-1)*/ { 2, 8,13,18,24,29,34,40,45,51,56,61,67,72,77,83,88,89,89,89},
/*52(-1)*/ { 2, 8,13,19,24,30,35,41,46,52,57,62,68,73,79,84,89,89,89,89},
/*53(-1)*/ { 2, 8,13,19,25,30,36,41,47,53,58,64,69,75,80,86,89,89,89,89},
/*54(-1)*/ { 2, 8,14,19,25,31,36,42,48,54,59,65,71,76,82,88,89,89,89,89},
/*55(-1)*/ { 2, 8,14,20,26,31,37,43,49,55,60,66,72,78,83,89,89,89,89,89},
/*56(-1)*/ { 2, 8,14,20,26,32,38,44,50,56,61,67,73,79,85,89,89,89,89,89},
/*57(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*58(-1)*/ { 3, 9,15,21,27,33,39,45,51,58,64,70,76,82,88,89,89,89,89,89},
/*59(-1)*/ { 3, 9,15,21,27,34,40,46,52,59,65,71,77,83,89,89,89,89,89,89},
/*60(-1)*/ { 3, 9,15,22,28,34,41,47,53,60,66,72,78,85,89,89,89,89,89,89},
/*61(-1)*/ { 3, 9,16,22,28,35,41,48,54,61,67,73,80,86,89,89,89,89,89,89},
/*62(-1)*/ { 3, 9,16,22,29,35,42,48,55,62,68,75,81,88,89,89,89,89,89,89},
/*63(-1)*/ { 3, 9,16,23,29,36,43,49,56,63,69,76,82,89,89,89,89,89,89,89},
/*64(-1)*/ { 3,10,16,23,30,37,43,50,57,64,70,77,84,89,89,89,89,89,89,89},
/*65(-1)*/ { 3,10,17,23,30,37,44,51,58,65,71,78,85,89,89,89,89,89,89,89},
/*66(-1)*/ { 3,10,17,24,31,38,45,52,59,66,72,79,86,89,89,89,89,89,89,89},
/*67(-1)*/ { 3,10,17,24,31,38,45,52,59,67,74,81,88,89,89,89,89,89,89,89},
/*68(-1)*/ { 3,10,17,25,32,39,46,53,60,68,75,82,89,89,89,89,89,89,89,89},
/*69(-1)*/ { 3,10,18,25,32,39,47,54,61,69,76,83,89,89,89,89,89,89,89,89},
/*70(-1)*/ { 3,11,18,25,33,40,47,55,62,70,77,84,89,89,89,89,89,89,89,89},
/*71(-1)*/ { 3,11,18,26,33,41,48,56,63,71,78,85,89,89,89,89,89,89,89,89},
/*72(-1)*/ { 3,11,18,26,34,41,49,56,64,72,79,87,89,89,89,89,89,89,89,89},
/*73(-1)*/ { 3,11,19,26,34,42,49,57,65,73,80,88,89,89,89,89,89,89,89,89},
/*74(-1)*/ { 3,11,19,27,35,42,50,58,66,74,81,89,89,89,89,89,89,89,89,89},
/*75(-1)*/ { 3,11,19,27,35,43,51,59,67,75,82,89,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 4,12,20,28,36,44,52,60,68,76,84,89,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 4,12,20,28,36,44,52,60,68,77,85,89,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 4,12,20,28,36,45,53,61,69,78,86,89,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 4,12,20,29,37,45,54,62,70,79,87,89,89,89,89,89,89,89,89,89}
}},
/* DY = 10 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2},
/* 3(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4},
/* 4(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6},
/* 5(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8},
/* 6(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9, 9,10},
/* 7(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,11,12},
/* 8(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14},
/* 9(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,13,14,15,16},
/*10(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,14,15,16,17,18},
/*11(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,11,12,13,14,15,16,17,18,19,20},
/*12(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,20,21,22},
/*13(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,13,14,15,16,17,19,20,21,22,24},
/*14(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/*15(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,17,19,20,22,23,25,26,27},
/*16(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,16,17,19,20,22,23,25,26,28,29},
/*17(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,17,18,20,21,23,25,26,28,29,31},
/*18(-1)*/ { 0, 2, 4, 6, 7, 9,11,12,14,16,18,19,21,23,24,26,28,30,31,33},
/*19(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,19,20,22,24,26,28,29,31,33,35},
/*20(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,21,23,25,27,29,31,33,35,37},
/*21(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*22(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,22,24,26,28,30,32,34,36,38,40},
/*23(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,23,25,27,29,31,33,36,38,40,42},
/*24(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,30,33,35,37,40,42,44},
/*25(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,25,27,29,32,34,36,39,41,44,46},
/*26(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,30,33,35,38,40,43,45,48},
/*27(-1)*/ { 1, 3, 6, 9,11,14,16,19,21,24,27,29,32,34,37,39,42,45,47,50},
/*28(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*29(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,29,31,34,37,40,42,45,48,51,53},
/*30(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,32,35,38,41,44,47,50,52,55},
/*31(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,33,36,39,42,45,48,51,54,57},
/*32(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,32,35,38,41,44,47,50,53,56,59},
/*33(-1)*/ { 1, 4, 7,11,14,17,20,23,26,29,33,36,39,42,45,48,51,55,58,61},
/*34(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,34,37,40,43,46,50,53,56,59,63},
/*35(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*36(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,42,46,49,53,56,60,63,66},
/*37(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,37,40,44,47,51,54,58,61,65,68},
/*38(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,38,41,45,48,52,56,59,63,66,70},
/*39(-1)*/ { 1, 5, 9,13,16,20,24,27,31,35,39,42,46,50,53,57,61,65,68,72},
/*40(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,40,43,47,51,55,59,62,66,70,74},
/*41(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,44,48,52,56,60,64,68,72,76},
/*42(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*43(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,43,47,51,55,59,63,67,71,75,79},
/*44(-1)*/ { 2, 6,10,14,18,23,27,31,35,39,44,48,52,56,60,64,69,73,77,81},
/*45(-1)*/ { 2, 6,10,15,19,23,27,32,36,40,45,49,53,57,62,66,70,75,79,83},
/*46(-1)*/ { 2, 6,10,15,19,24,28,32,37,41,46,50,54,59,63,67,72,76,81,85},
/*47(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,55,60,64,69,73,78,82,87},
/*48(-1)*/ { 2, 6,11,16,20,25,29,34,38,43,48,52,57,61,66,70,75,80,84,89},
/*49(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/*50(-1)*/ { 2, 7,11,16,21,26,30,35,40,45,50,54,59,64,69,73,78,83,88,89},
/*51(-1)*/ { 2, 7,12,17,21,26,31,36,41,46,51,55,60,65,70,75,80,85,89,89},
/*52(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,56,61,66,71,76,81,86,89,89},
/*53(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,53,58,63,68,73,78,83,88,89,89},
/*54(-1)*/ { 2, 7,12,18,23,28,33,38,43,48,54,59,64,69,74,79,84,89,89,89},
/*55(-1)*/ { 2, 7,13,18,23,28,34,39,44,49,55,60,65,70,75,81,86,89,89,89},
/*56(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,66,72,77,82,88,89,89,89},
/*57(-1)*/ { 2, 8,13,19,24,29,35,40,46,51,57,62,67,73,78,84,89,89,89,89},
/*58(-1)*/ { 2, 8,13,19,24,30,35,41,46,52,58,63,69,74,80,85,89,89,89,89},
/*59(-1)*/ { 2, 8,14,19,25,30,36,42,47,53,59,64,70,75,81,87,89,89,89,89},
/*60(-1)*/ { 2, 8,14,20,25,31,37,42,48,54,60,65,71,77,82,88,89,89,89,89},
/*61(-1)*/ { 2, 8,14,20,26,31,37,43,49,55,61,66,72,78,84,89,89,89,89,89},
/*62(-1)*/ { 2, 8,14,20,26,32,38,44,50,56,62,67,73,79,85,89,89,89,89,89},
/*63(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*64(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,64,70,76,82,88,89,89,89,89,89},
/*65(-1)*/ { 3, 9,15,21,27,34,40,46,52,58,65,71,77,83,89,89,89,89,89,89},
/*66(-1)*/ { 3, 9,15,22,28,34,40,47,53,59,66,72,78,84,89,89,89,89,89,89},
/*67(-1)*/ { 3, 9,15,22,28,35,41,47,54,60,67,73,79,86,89,89,89,89,89,89},
/*68(-1)*/ { 3, 9,16,22,29,35,42,48,55,61,68,74,80,87,89,89,89,89,89,89},
/*69(-1)*/ { 3, 9,16,23,29,36,42,49,55,62,69,75,82,88,89,89,89,89,89,89},
/*70(-1)*/ { 3,10,16,23,30,36,43,50,56,63,70,76,83,89,89,89,89,89,89,89},
/*71(-1)*/ { 3,10,16,23,30,37,43,50,57,64,71,77,84,89,89,89,89,89,89,89},
/*72(-1)*/ { 3,10,17,24,30,37,44,51,58,65,72,78,85,89,89,89,89,89,89,89},
/*73(-1)*/ { 3,10,17,24,31,38,45,52,59,66,73,79,86,89,89,89,89,89,89,89},
/*74(-1)*/ { 3,10,17,24,31,38,45,52,59,66,74,81,88,89,89,89,89,89,89,89},
/*75(-1)*/ { 3,10,17,25,32,39,46,53,60,67,75,82,89,89,89,89,89,89,89,89},
/*76(-1)*/ { 3,10,18,25,32,39,47,54,61,68,76,83,89,89,89,89,89,89,89,89},
/*77(-1)*/ { 3,11,18,25,33,40,47,55,62,69,77,84,89,89,89,89,89,89,89,89},
/*78(-1)*/ { 3,11,18,26,33,40,48,55,63,70,78,85,89,89,89,89,89,89,89,89},
/*79(-1)*/ { 3,11,18,26,33,41,48,56,63,71,79,86,89,89,89,89,89,89,89,89}
}},
/* DY = 11 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2},
/* 3(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4},
/* 4(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5},
/* 5(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7},
/* 6(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 7(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11},
/* 8(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 9, 9,10,11,11,12,13},
/* 9(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9,10,11,11,12,13,14,14},
/*10(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,14,15,15,16},
/*11(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,17,18},
/*12(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,19,20},
/*13(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,20,22},
/*14(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,18,20,21,22,23},
/*15(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,18,20,21,22,24,25},
/*16(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,16,17,18,20,21,22,24,25,27},
/*17(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,19,21,22,24,25,27,28},
/*18(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,18,19,21,22,24,25,27,28,30},
/*19(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,23,25,27,28,30,32},
/*20(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,21,23,25,26,28,30,32,33},
/*21(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,21,22,24,26,28,30,31,33,35},
/*22(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,23,25,27,29,31,33,35,37},
/*23(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*24(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,24,26,28,30,32,34,36,38,40},
/*25(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,25,27,29,31,33,35,38,40,42},
/*26(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,26,28,30,32,35,37,39,41,44},
/*27(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,27,29,31,34,36,38,41,43,45},
/*28(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,23,25,28,30,32,35,37,40,42,45,47},
/*29(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,29,31,34,36,39,41,44,46,49},
/*30(-1)*/ { 1, 3, 6, 9,11,14,16,19,22,24,27,30,32,35,37,40,43,45,48,50},
/*31(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,31,33,36,39,41,44,47,49,52},
/*32(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,32,34,37,40,43,45,48,51,54},
/*33(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,33,35,38,41,44,47,50,53,55},
/*34(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,36,39,42,45,48,51,54,57},
/*35(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,35,38,41,44,47,50,53,56,59},
/*36(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,36,39,42,45,48,51,54,57,61},
/*37(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,37,40,43,46,49,53,56,59,62},
/*38(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,38,41,44,47,51,54,57,61,64},
/*39(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,39,42,45,49,52,55,59,62,66},
/*40(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,46,50,53,57,60,64,67},
/*41(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,41,44,48,51,55,58,62,65,69},
/*42(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,52,56,60,63,67,71},
/*43(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,46,50,54,57,61,65,69,72},
/*44(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,44,47,51,55,59,63,66,70,74},
/*45(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,48,52,56,60,64,68,72,76},
/*46(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*47(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,47,51,55,59,63,67,71,75,79},
/*48(-1)*/ { 2, 6,10,14,18,22,27,31,35,39,43,48,52,56,60,64,68,73,77,81},
/*49(-1)*/ { 2, 6,10,14,19,23,27,31,36,40,44,49,53,57,61,66,70,74,78,83},
/*50(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,50,54,58,63,67,71,76,80,84},
/*51(-1)*/ { 2, 6,11,15,19,24,28,33,37,42,46,51,55,59,64,68,73,77,82,86},
/*52(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,52,56,61,65,70,74,79,83,88},
/*53(-1)*/ { 2, 6,11,16,20,25,29,34,39,43,48,53,57,62,66,71,76,80,85,89},
/*54(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,54,58,63,68,72,77,82,86,89},
/*55(-1)*/ { 2, 7,11,16,21,26,31,35,40,45,50,55,59,64,69,74,78,83,88,89},
/*56(-1)*/ { 2, 7,12,17,21,26,31,36,41,46,51,56,60,65,70,75,80,85,89,89},
/*57(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,61,66,71,76,81,86,89,89},
/*58(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,58,63,68,73,78,83,88,89,89},
/*59(-1)*/ { 2, 7,12,17,23,28,33,38,43,48,53,59,64,69,74,79,84,89,89,89},
/*60(-1)*/ { 2, 7,13,18,23,28,33,39,44,49,54,60,65,70,75,80,86,89,89,89},
/*61(-1)*/ { 2, 7,13,18,23,29,34,39,45,50,55,61,66,71,76,82,87,89,89,89},
/*62(-1)*/ { 2, 8,13,18,24,29,35,40,45,51,56,62,67,72,78,83,88,89,89,89},
/*63(-1)*/ { 2, 8,13,19,24,30,35,41,46,52,57,63,68,73,79,84,89,89,89,89},
/*64(-1)*/ { 2, 8,13,19,25,30,36,41,47,52,58,64,69,75,80,86,89,89,89,89},
/*65(-1)*/ { 2, 8,14,19,25,31,36,42,48,53,59,65,70,76,81,87,89,89,89,89},
/*66(-1)*/ { 2, 8,14,20,25,31,37,43,48,54,60,66,71,77,83,88,89,89,89,89},
/*67(-1)*/ { 2, 8,14,20,26,32,37,43,49,55,61,67,72,78,84,89,89,89,89,89},
/*68(-1)*/ { 2, 8,14,20,26,32,38,44,50,56,62,68,73,79,85,89,89,89,89,89},
/*69(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*70(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,70,76,82,88,89,89,89,89,89},
/*71(-1)*/ { 3, 9,15,21,27,33,40,46,52,58,64,71,77,83,89,89,89,89,89,89},
/*72(-1)*/ { 3, 9,15,21,28,34,40,46,53,59,65,72,78,84,89,89,89,89,89,89},
/*73(-1)*/ { 3, 9,15,22,28,34,41,47,53,60,66,73,79,85,89,89,89,89,89,89},
/*74(-1)*/ { 3, 9,16,22,28,35,41,48,54,61,67,74,80,86,89,89,89,89,89,89},
/*75(-1)*/ { 3, 9,16,22,29,35,42,48,55,61,68,75,81,88,89,89,89,89,89,89},
/*76(-1)*/ { 3, 9,16,23,29,36,42,49,56,62,69,76,82,89,89,89,89,89,89,89},
/*77(-1)*/ { 3,10,16,23,30,36,43,50,56,63,70,77,83,89,89,89,89,89,89,89},
/*78(-1)*/ { 3,10,16,23,30,37,44,50,57,64,71,78,84,89,89,89,89,89,89,89},
/*79(-1)*/ { 3,10,17,24,30,37,44,51,58,65,72,79,85,89,89,89,89,89,89,89}
}},
/* DY = 12 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3},
/* 4(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5},
/* 5(-1)*/ {0xff, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6},
/* 6(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8},
/* 7(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10},
/* 8(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9,10,10,11,11},
/* 9(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9,10,10,11,12,12,13},
/*10(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,11,12,12,13,14,15},
/*11(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,16},
/*12(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,16,17,18},
/*13(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,20},
/*14(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,21},
/*15(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,19,21,22,23},
/*16(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,10,12,13,14,16,17,18,19,21,22,23,24},
/*17(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,17,18,19,21,22,23,25,26},
/*18(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,18,19,20,22,23,25,26,28},
/*19(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,19,20,22,23,25,26,28,29},
/*20(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,24,26,28,29,31},
/*21(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,21,22,24,26,27,29,31,32},
/*22(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,22,23,25,27,29,30,32,34},
/*23(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,21,23,24,26,28,30,32,34,35},
/*24(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,25,27,29,31,33,35,37},
/*25(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*26(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,26,28,30,32,34,36,38,40},
/*27(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,24,27,29,31,33,35,37,39,42},
/*28(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,28,30,32,34,36,39,41,43},
/*29(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,33,35,38,40,42,45},
/*30(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,34,37,39,42,44,46},
/*31(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,35,38,40,43,45,48},
/*32(-1)*/ { 1, 3, 6, 8,11,14,16,19,21,24,26,29,32,34,37,39,42,44,47,49},
/*33(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,25,27,30,33,35,38,40,43,46,48,51},
/*34(-1)*/ { 1, 4, 6, 9,12,14,17,20,23,25,28,31,34,36,39,42,44,47,50,53},
/*35(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,37,40,43,46,49,51,54},
/*36(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,33,36,38,41,44,47,50,53,56},
/*37(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,39,42,45,48,51,54,57},
/*38(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,38,41,44,47,50,53,56,59},
/*39(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,35,39,42,45,48,51,54,57,60},
/*40(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,36,40,43,46,49,52,56,59,62},
/*41(-1)*/ { 1, 4, 8,11,14,18,21,24,27,31,34,37,41,44,47,50,54,57,60,63},
/*42(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,42,45,48,52,55,58,62,65},
/*43(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,43,46,49,53,56,60,63,67},
/*44(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,44,47,51,54,58,61,65,68},
/*45(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,55,59,63,66,70},
/*46(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,46,49,53,57,60,64,68,71},
/*47(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,47,50,54,58,62,65,69,73},
/*48(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,44,48,51,55,59,63,67,71,74},
/*49(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,52,56,60,64,68,72,76},
/*50(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*51(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,51,55,59,63,67,71,75,79},
/*52(-1)*/ { 2, 6,10,14,18,22,27,31,35,39,43,47,52,56,60,64,68,72,76,81},
/*53(-1)*/ { 2, 6,10,14,19,23,27,31,36,40,44,48,53,57,61,65,69,74,78,82},
/*54(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,49,54,58,62,66,71,75,79,84},
/*55(-1)*/ { 2, 6,11,15,19,24,28,33,37,41,46,50,55,59,63,68,72,77,81,85},
/*56(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,60,64,69,73,78,82,87},
/*57(-1)*/ { 2, 6,11,15,20,25,29,34,38,43,47,52,57,61,66,70,75,79,84,88},
/*58(-1)*/ { 2, 6,11,16,20,25,30,34,39,44,48,53,58,62,67,71,76,81,85,89},
/*59(-1)*/ { 2, 7,11,16,21,25,30,35,40,44,49,54,59,63,68,73,77,82,87,89},
/*60(-1)*/ { 2, 7,12,16,21,26,31,36,40,45,50,55,60,64,69,74,79,84,88,89},
/*61(-1)*/ { 2, 7,12,17,21,26,31,36,41,46,51,56,61,65,70,75,80,85,89,89},
/*62(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,66,71,76,81,86,89,89},
/*63(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,63,68,73,78,83,88,89,89},
/*64(-1)*/ { 2, 7,12,17,23,28,33,38,43,48,53,58,64,69,74,79,84,89,89,89},
/*65(-1)*/ { 2, 7,13,18,23,28,33,39,44,49,54,59,65,70,75,80,85,89,89,89},
/*66(-1)*/ { 2, 7,13,18,23,29,34,39,44,50,55,60,66,71,76,81,87,89,89,89},
/*67(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,67,72,77,83,88,89,89,89},
/*68(-1)*/ { 2, 8,13,19,24,29,35,40,46,51,57,62,68,73,78,84,89,89,89,89},
/*69(-1)*/ { 2, 8,13,19,24,30,35,41,46,52,57,63,69,74,80,85,89,89,89,89},
/*70(-1)*/ { 2, 8,14,19,25,30,36,42,47,53,58,64,70,75,81,86,89,89,89,89},
/*71(-1)*/ { 2, 8,14,19,25,31,36,42,48,53,59,65,71,76,82,88,89,89,89,89},
/*72(-1)*/ { 2, 8,14,20,25,31,37,43,48,54,60,66,72,77,83,89,89,89,89,89},
/*73(-1)*/ { 2, 8,14,20,26,32,37,43,49,55,61,67,73,78,84,89,89,89,89,89},
/*74(-1)*/ { 2, 8,14,20,26,32,38,44,50,56,62,68,74,79,85,89,89,89,89,89},
/*75(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,75,81,87,89,89,89,89,89},
/*76(-1)*/ { 3, 9,15,21,27,33,39,45,51,57,63,69,76,82,88,89,89,89,89,89},
/*77(-1)*/ { 3, 9,15,21,27,33,40,46,52,58,64,70,77,83,89,89,89,89,89,89},
/*78(-1)*/ { 3, 9,15,21,28,34,40,46,53,59,65,71,78,84,89,89,89,89,89,89},
/*79(-1)*/ { 3, 9,15,22,28,34,41,47,53,60,66,72,79,85,89,89,89,89,89,89}
}},
/* DY = 13 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3},
/* 4(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4},
/* 5(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6},
/* 6(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 7},
/* 7(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 8(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,11},
/* 9(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,11,11,12},
/*10(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 8, 9,10,11,11,12,13,14},
/*11(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 9,10,11,12,13,14,14,15},
/*12(-1)*/ { 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9,10,10,11,12,13,14,15,16,17},
/*13(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17,18},
/*14(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20},
/*15(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20,21},
/*16(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,21,23},
/*17(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,13,14,15,17,18,19,20,22,23,24},
/*18(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/*19(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,16,17,19,20,21,23,24,26,27},
/*20(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,22,24,25,27,28},
/*21(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,17,19,21,22,24,25,27,28,30},
/*22(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,17,18,20,22,23,25,26,28,30,31},
/*23(-1)*/ { 0, 2, 4, 5, 7, 9,11,12,14,16,17,19,21,23,24,26,28,29,31,33},
/*24(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,16,18,20,22,24,25,27,29,31,32,34},
/*25(-1)*/ { 0, 2, 4, 6, 8,10,12,13,15,17,19,21,23,25,26,28,30,32,34,36},
/*26(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,27,29,31,33,35,37},
/*27(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*28(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,28,30,32,34,36,38,40},
/*29(-1)*/ { 1, 3, 5, 7, 9,11,13,16,18,20,22,24,26,29,31,33,35,37,39,41},
/*30(-1)*/ { 1, 3, 5, 7,10,12,14,16,18,21,23,25,27,30,32,34,36,38,41,43},
/*31(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,31,33,35,37,40,42,44},
/*32(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,24,27,29,32,34,36,39,41,43,46},
/*33(-1)*/ { 1, 3, 6, 8,11,13,15,18,20,23,25,28,30,33,35,37,40,42,45,47},
/*34(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,34,36,39,41,44,46,49},
/*35(-1)*/ { 1, 3, 6, 9,11,14,16,19,22,24,27,29,32,35,37,40,42,45,47,50},
/*36(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*37(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,28,31,34,37,39,42,45,47,50,53},
/*38(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,38,40,43,46,49,52,54},
/*39(-1)*/ { 1, 4, 7,10,13,15,18,21,24,27,30,33,36,39,41,44,47,50,53,56},
/*40(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,42,45,48,51,54,57},
/*41(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,41,44,47,50,53,56,59},
/*42(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,35,38,42,45,48,51,54,57,60},
/*43(-1)*/ { 1, 4, 7,11,14,17,20,23,27,30,33,36,39,43,46,49,52,55,58,62},
/*44(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,34,37,40,44,47,50,53,57,60,63},
/*45(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*46(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,39,42,46,49,52,56,59,63,66},
/*47(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,53,57,60,64,67},
/*48(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,40,44,48,51,55,58,62,65,69},
/*49(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,38,41,45,49,52,56,59,63,67,70},
/*50(-1)*/ { 1, 5, 9,12,16,20,24,27,31,35,38,42,46,50,53,57,61,64,68,72},
/*51(-1)*/ { 1, 5, 9,13,17,20,24,28,32,35,39,43,47,51,54,58,62,66,69,73},
/*52(-1)*/ { 1, 5, 9,13,17,21,25,28,32,36,40,44,48,52,55,59,63,67,71,75},
/*53(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,56,60,64,68,72,76},
/*54(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*55(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,55,59,63,67,71,75,79},
/*56(-1)*/ { 2, 6,10,14,18,22,26,31,35,39,43,47,51,56,60,64,68,72,76,80},
/*57(-1)*/ { 2, 6,10,14,19,23,27,31,35,40,44,48,52,57,61,65,69,73,78,82},
/*58(-1)*/ { 2, 6,10,15,19,23,27,32,36,40,45,49,53,58,62,66,70,75,79,83},
/*59(-1)*/ { 2, 6,10,15,19,24,28,32,37,41,45,50,54,59,63,67,72,76,80,85},
/*60(-1)*/ { 2, 6,11,15,20,24,28,33,37,42,46,51,55,60,64,68,73,77,82,86},
/*61(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,61,65,70,74,79,83,88},
/*62(-1)*/ { 2, 6,11,16,20,25,29,34,39,43,48,52,57,62,66,71,75,80,84,89},
/*63(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/*64(-1)*/ { 2, 7,11,16,21,26,30,35,40,45,49,54,59,64,68,73,78,82,87,89},
/*65(-1)*/ { 2, 7,12,16,21,26,31,36,40,45,50,55,60,65,69,74,79,84,89,89},
/*66(-1)*/ { 2, 7,12,17,22,26,31,36,41,46,51,56,61,66,70,75,80,85,89,89},
/*67(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,67,71,76,81,86,89,89},
/*68(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,68,73,78,83,88,89,89},
/*69(-1)*/ { 2, 7,12,17,23,28,33,38,43,48,53,58,63,69,74,79,84,89,89,89},
/*70(-1)*/ { 2, 7,12,18,23,28,33,38,44,49,54,59,64,70,75,80,85,89,89,89},
/*71(-1)*/ { 2, 7,13,18,23,28,34,39,44,49,55,60,65,71,76,81,86,89,89,89},
/*72(-1)*/ { 2, 8,13,18,24,29,34,40,45,50,56,61,66,72,77,82,88,89,89,89},
/*73(-1)*/ { 2, 8,13,18,24,29,35,40,45,51,56,62,67,73,78,83,89,89,89,89},
/*74(-1)*/ { 2, 8,13,19,24,30,35,41,46,52,57,63,68,74,79,84,89,89,89,89},
/*75(-1)*/ { 2, 8,13,19,25,30,36,41,47,52,58,63,69,75,80,86,89,89,89,89},
/*76(-1)*/ { 2, 8,14,19,25,30,36,42,47,53,59,64,70,76,81,87,89,89,89,89},
/*77(-1)*/ { 2, 8,14,19,25,31,37,42,48,54,59,65,71,77,82,88,89,89,89,89},
/*78(-1)*/ { 2, 8,14,20,26,31,37,43,49,54,60,66,72,78,83,89,89,89,89,89},
/*79(-1)*/ { 2, 8,14,20,26,32,38,43,49,55,61,67,73,79,84,89,89,89,89,89}
}},
/* DY = 14 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4},
/* 5(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5},
/* 6(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7},
/* 7(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8, 8},
/* 8(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10},
/* 9(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,11,11},
/*10(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,11,11,12,13},
/*11(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14},
/*12(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,10,11,12,13,14,15,15},
/*13(-1)*/ { 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9,10,11,11,12,13,14,15,16,17},
/*14(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,12,13,14,15,16,17,18},
/*15(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,15,16,17,18,19,20},
/*16(-1)*/ { 0, 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,16,17,18,19,20,21},
/*17(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,11,12,13,14,15,17,18,19,20,21,22},
/*18(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,13,14,15,16,18,19,20,21,22,24},
/*19(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,22,24,25},
/*20(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,13,14,15,17,18,20,21,22,24,25,26},
/*21(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,18,19,21,22,23,25,26,28},
/*22(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,22,23,25,26,28,29},
/*23(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,15,16,18,19,21,23,24,26,27,29,30},
/*24(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,24,25,27,28,30,32},
/*25(-1)*/ { 0, 2, 4, 6, 7, 9,11,12,14,16,18,19,21,23,25,26,28,30,31,33},
/*26(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,18,20,22,24,26,27,29,31,33,34},
/*27(-1)*/ { 0, 2, 4, 6, 8,10,12,13,15,17,19,21,23,25,27,28,30,32,34,36},
/*28(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,29,31,33,35,37},
/*29(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*30(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,30,32,34,36,38,40},
/*31(-1)*/ { 1, 3, 5, 7, 9,11,13,16,18,20,22,24,26,28,31,33,35,37,39,41},
/*32(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,23,25,27,29,32,34,36,38,40,43},
/*33(-1)*/ { 1, 3, 5, 7,10,12,14,17,19,21,23,26,28,30,33,35,37,39,42,44},
/*34(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,34,36,38,41,43,45},
/*35(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,35,37,39,42,44,47},
/*36(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,40,43,45,48},
/*37(-1)*/ { 1, 3, 6, 8,11,14,16,19,21,24,26,29,31,34,37,39,42,44,47,49},
/*38(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,24,27,30,32,35,38,40,43,45,48,51},
/*39(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,39,41,44,47,49,52},
/*40(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,28,31,34,37,40,42,45,48,51,53},
/*41(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,26,29,32,35,38,41,43,46,49,52,55},
/*42(-1)*/ { 1, 4, 7,10,13,15,18,21,24,27,30,33,36,39,42,44,47,50,53,56},
/*43(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,45,48,51,54,57},
/*44(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,44,47,50,53,56,59},
/*45(-1)*/ { 1, 4, 7,10,13,17,20,23,26,29,32,35,38,41,45,48,51,54,57,60},
/*46(-1)*/ { 1, 4, 7,11,14,17,20,23,26,30,33,36,39,42,46,49,52,55,58,61},
/*47(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,34,37,40,43,47,50,53,56,59,63},
/*48(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,38,41,44,48,51,54,57,61,64},
/*49(-1)*/ { 1, 5, 8,11,15,18,21,25,28,32,35,38,42,45,49,52,55,59,62,65},
/*50(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,43,46,50,53,56,60,63,67},
/*51(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,51,54,58,61,65,68},
/*52(-1)*/ { 1, 5, 8,12,16,19,23,26,30,34,37,41,44,48,52,55,59,62,66,69},
/*53(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,53,56,60,63,67,71},
/*54(-1)*/ { 1, 5, 9,13,16,20,24,27,31,35,39,42,46,50,54,57,61,65,68,72},
/*55(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,39,43,47,51,55,58,62,66,70,73},
/*56(-1)*/ { 1, 5, 9,13,17,21,25,28,32,36,40,44,48,52,56,59,63,67,71,75},
/*57(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,60,64,68,72,76},
/*58(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*59(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,59,63,67,71,75,79},
/*60(-1)*/ { 2, 6,10,14,18,22,26,31,35,39,43,47,51,55,60,64,68,72,76,80},
/*61(-1)*/ { 2, 6,10,14,18,23,27,31,35,39,44,48,52,56,61,65,69,73,77,82},
/*62(-1)*/ { 2, 6,10,14,19,23,27,32,36,40,44,49,53,57,62,66,70,74,79,83},
/*63(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,49,54,58,63,67,71,76,80,84},
/*64(-1)*/ { 2, 6,11,15,19,24,28,33,37,41,46,50,55,59,64,68,72,77,81,86},
/*65(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,60,65,69,73,78,82,87},
/*66(-1)*/ { 2, 6,11,15,20,25,29,34,38,43,47,52,56,61,66,70,75,79,84,88},
/*67(-1)*/ { 2, 6,11,16,20,25,30,34,39,43,48,53,57,62,67,71,76,80,85,89},
/*68(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,68,72,77,82,86,89},
/*69(-1)*/ { 2, 7,11,16,21,26,30,35,40,45,49,54,59,64,69,73,78,83,88,89},
/*70(-1)*/ { 2, 7,12,16,21,26,31,36,41,45,50,55,60,65,70,74,79,84,89,89},
/*71(-1)*/ { 2, 7,12,17,22,26,31,36,41,46,51,56,61,66,71,75,80,85,89,89},
/*72(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,67,72,76,81,86,89,89},
/*73(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,67,73,78,83,88,89,89},
/*74(-1)*/ { 2, 7,12,17,22,28,33,38,43,48,53,58,63,68,74,79,84,89,89,89},
/*75(-1)*/ { 2, 7,12,18,23,28,33,38,43,49,54,59,64,69,75,80,85,89,89,89},
/*76(-1)*/ { 2, 7,13,18,23,28,34,39,44,49,55,60,65,70,76,81,86,89,89,89},
/*77(-1)*/ { 2, 7,13,18,23,29,34,39,45,50,55,61,66,71,77,82,87,89,89,89},
/*78(-1)*/ { 2, 8,13,18,24,29,34,40,45,51,56,61,67,72,78,83,88,89,89,89},
/*79(-1)*/ { 2, 8,13,19,24,29,35,40,46,51,57,62,68,73,79,84,89,89,89,89}
}},
/* DY = 15 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4},
/* 5(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5},
/* 6(-1)*/ {0xff, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6},
/* 7(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 8},
/* 8(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/* 9(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9,10,10},
/*10(-1)*/ { 0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9,10,10,11,12},
/*11(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,12,12,13},
/*12(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9,10,10,11,12,13,14,14},
/*13(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,11,12,13,14,15,16},
/*14(-1)*/ { 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9,10,11,12,12,13,14,15,16,17},
/*15(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,13,14,15,16,17,18},
/*16(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,16,17,18,19,20},
/*17(-1)*/ { 0, 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,15,17,18,19,20,21},
/*18(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,11,12,13,14,15,16,18,19,20,21,22},
/*19(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,19,20,21,22,23},
/*20(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,10,12,13,14,16,17,18,20,21,22,23,25},
/*21(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,21,22,23,25,26},
/*22(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,12,13,14,16,17,19,20,22,23,24,26,27},
/*23(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,24,25,27,28},
/*24(-1)*/ { 0, 2, 3, 5, 6, 8,10,11,13,14,16,17,19,20,22,24,25,27,28,30},
/*25(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,25,26,28,29,31},
/*26(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,24,26,27,29,31,32},
/*27(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,21,23,25,27,28,30,32,33},
/*28(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,18,20,22,24,26,28,29,31,33,35},
/*29(-1)*/ { 0, 2, 4, 6, 8,10,12,14,15,17,19,21,23,25,27,29,30,32,34,36},
/*30(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,31,33,35,37},
/*31(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*32(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,32,34,36,38,40},
/*33(-1)*/ { 1, 3, 5, 7, 9,11,13,15,18,20,22,24,26,28,30,33,35,37,39,41},
/*34(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,23,25,27,29,31,34,36,38,40,42},
/*35(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,28,30,32,35,37,39,41,44},
/*36(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,33,36,38,40,42,45},
/*37(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,25,27,29,32,34,37,39,41,44,46},
/*38(-1)*/ { 1, 3, 6, 8,11,13,15,18,20,23,25,28,30,33,35,38,40,42,45,47},
/*39(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,39,41,44,46,49},
/*40(-1)*/ { 1, 3, 6, 9,11,14,16,19,21,24,27,29,32,34,37,40,42,45,47,50},
/*41(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,25,27,30,33,35,38,41,43,46,48,51},
/*42(-1)*/ { 1, 4, 6, 9,12,14,17,20,23,25,28,31,33,36,39,42,44,47,50,52},
/*43(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,31,34,37,40,43,45,48,51,54},
/*44(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,26,29,32,35,38,41,44,46,49,52,55},
/*45(-1)*/ { 1, 4, 7,10,13,15,18,21,24,27,30,33,36,39,42,45,47,50,53,56},
/*46(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,48,51,54,57},
/*47(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,47,50,53,56,59},
/*48(-1)*/ { 1, 4, 7,10,13,17,20,23,26,29,32,35,38,41,44,48,51,54,57,60},
/*49(-1)*/ { 1, 4, 7,11,14,17,20,23,26,30,33,36,39,42,45,49,52,55,58,61},
/*50(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,37,40,43,46,50,53,56,59,62},
/*51(-1)*/ { 1, 4, 8,11,14,18,21,24,27,31,34,37,41,44,47,51,54,57,60,64},
/*52(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,52,55,58,62,65},
/*53(-1)*/ { 1, 5, 8,11,15,18,22,25,29,32,35,39,42,46,49,53,56,59,63,66},
/*54(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,60,64,67},
/*55(-1)*/ { 1, 5, 8,12,15,19,23,26,30,33,37,40,44,47,51,55,58,62,65,69},
/*56(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,56,59,63,66,70},
/*57(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,53,57,60,64,68,71},
/*58(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,46,50,54,58,61,65,69,72},
/*59(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,39,43,47,51,55,59,62,66,70,74},
/*60(-1)*/ { 1, 5, 9,13,17,21,25,29,32,36,40,44,48,52,56,60,63,67,71,75},
/*61(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,61,64,68,72,76},
/*62(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*63(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,63,67,71,75,79},
/*64(-1)*/ { 2, 6,10,14,18,22,26,30,35,39,43,47,51,55,59,64,68,72,76,80},
/*65(-1)*/ { 2, 6,10,14,18,23,27,31,35,39,44,48,52,56,60,65,69,73,77,81},
/*66(-1)*/ { 2, 6,10,14,19,23,27,31,36,40,44,48,53,57,61,66,70,74,78,83},
/*67(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,49,54,58,62,67,71,75,79,84},
/*68(-1)*/ { 2, 6,10,15,19,24,28,32,37,41,46,50,54,59,63,68,72,76,81,85},
/*69(-1)*/ { 2, 6,11,15,20,24,28,33,37,42,46,51,55,60,64,69,73,77,82,86},
/*70(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,60,65,70,74,79,83,88},
/*71(-1)*/ { 2, 6,11,16,20,25,29,34,38,43,48,52,57,61,66,71,75,80,84,89},
/*72(-1)*/ { 2, 6,11,16,20,25,30,34,39,44,48,53,58,62,67,72,76,81,85,89},
/*73(-1)*/ { 2, 7,11,16,21,25,30,35,40,44,49,54,58,63,68,73,77,82,87,89},
/*74(-1)*/ { 2, 7,11,16,21,26,31,35,40,45,50,54,59,64,69,74,78,83,88,89},
/*75(-1)*/ { 2, 7,12,16,21,26,31,36,41,45,50,55,60,65,70,75,79,84,89,89},
/*76(-1)*/ { 2, 7,12,17,22,26,31,36,41,46,51,56,61,66,71,76,80,85,89,89},
/*77(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,67,72,77,81,86,89,89},
/*78(-1)*/ { 2, 7,12,17,22,27,32,37,42,47,52,57,62,67,72,78,83,88,89,89},
/*79(-1)*/ { 2, 7,12,17,22,28,33,38,43,48,53,58,63,68,73,79,84,89,89,89}
}},
/* DY = 16 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3},
/* 5(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5},
/* 6(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6},
/* 7(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7},
/* 8(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8},
/* 9(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 9,10},
/*10(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 8, 9,10,10,11},
/*11(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11,12},
/*12(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,10,11,12,13,13},
/*13(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,15},
/*14(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,12,13,14,15,16},
/*15(-1)*/ { 0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,12,13,13,14,15,16,17},
/*16(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,14,15,16,17,18},
/*17(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,17,18,19,20},
/*18(-1)*/ { 0, 1, 2, 3, 4, 6, 7, 8, 9,10,11,12,13,14,15,16,18,19,20,21},
/*19(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,19,20,21,22},
/*20(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,20,21,22,23},
/*21(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,10,12,13,14,15,17,18,19,21,22,23,24},
/*22(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/*23(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,16,17,18,20,21,23,24,25,27},
/*24(-1)*/ { 0, 2, 3, 5, 6, 8, 9,10,12,13,15,16,18,19,21,22,24,25,26,28},
/*25(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,25,26,28,29},
/*26(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,18,19,21,22,24,26,27,29,30},
/*27(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,13,15,17,18,20,22,23,25,27,28,30,31},
/*28(-1)*/ { 0, 2, 4, 5, 7, 9,11,12,14,16,17,19,21,22,24,26,28,29,31,33},
/*29(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,21,23,25,27,29,30,32,34},
/*30(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,20,22,24,26,28,30,31,33,35},
/*31(-1)*/ { 0, 2, 4, 6, 8,10,12,14,15,17,19,21,23,25,27,29,31,32,34,36},
/*32(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,33,35,37},
/*33(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*34(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,34,36,38,40},
/*35(-1)*/ { 1, 3, 5, 7, 9,11,13,15,18,20,22,24,26,28,30,32,35,37,39,41},
/*36(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,22,25,27,29,31,33,36,38,40,42},
/*37(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,28,30,32,34,37,39,41,43},
/*38(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,31,33,35,38,40,42,44},
/*39(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,24,27,29,31,34,36,39,41,43,46},
/*40(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,23,25,27,30,32,35,37,40,42,44,47},
/*41(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,41,43,45,48},
/*42(-1)*/ { 1, 3, 6, 8,11,14,16,19,21,24,26,29,31,34,36,39,42,44,47,49},
/*43(-1)*/ { 1, 3, 6, 9,11,14,16,19,22,24,27,29,32,35,37,40,43,45,48,50},
/*44(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*45(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,25,28,31,34,36,39,42,45,47,50,53},
/*46(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,32,34,37,40,43,46,48,51,54},
/*47(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,27,29,32,35,38,41,44,47,49,52,55},
/*48(-1)*/ { 1, 4, 7,10,13,16,18,21,24,27,30,33,36,39,42,45,48,50,53,56},
/*49(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,51,54,57},
/*50(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,50,53,56,59},
/*51(-1)*/ { 1, 4, 7,10,13,17,20,23,26,29,32,35,38,41,44,47,51,54,57,60},
/*52(-1)*/ { 1, 4, 7,11,14,17,20,23,26,29,33,36,39,42,45,48,52,55,58,61},
/*53(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,36,40,43,46,49,53,56,59,62},
/*54(-1)*/ { 1, 4, 8,11,14,18,21,24,27,31,34,37,40,44,47,50,54,57,60,63},
/*55(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*56(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,39,42,45,49,52,56,59,62,66},
/*57(-1)*/ { 1, 5, 8,12,15,19,22,25,29,32,36,39,43,46,50,53,57,60,63,67},
/*58(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,58,61,65,68},
/*59(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,41,44,48,51,55,59,62,66,69},
/*60(-1)*/ { 1, 5, 9,12,16,20,23,27,30,34,38,41,45,49,52,56,60,63,67,70},
/*61(-1)*/ { 1, 5, 9,12,16,20,24,27,31,35,38,42,46,49,53,57,61,64,68,72},
/*62(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,46,50,54,58,62,65,69,73},
/*63(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,43,47,51,55,59,63,66,70,74},
/*64(-1)*/ { 1, 5, 9,13,17,21,25,29,32,36,40,44,48,52,56,60,64,67,71,75},
/*65(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,68,72,76},
/*66(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*67(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,67,71,75,79},
/*68(-1)*/ { 2, 6,10,14,18,22,26,30,35,39,43,47,51,55,59,63,68,72,76,80},
/*69(-1)*/ { 2, 6,10,14,18,23,27,31,35,39,43,48,52,56,60,64,69,73,77,81},
/*70(-1)*/ { 2, 6,10,14,19,23,27,31,36,40,44,48,53,57,61,65,70,74,78,82},
/*71(-1)*/ { 2, 6,10,15,19,23,27,32,36,40,45,49,53,58,62,66,71,75,79,83},
/*72(-1)*/ { 2, 6,10,15,19,24,28,32,37,41,45,50,54,58,63,67,72,76,80,85},
/*73(-1)*/ { 2, 6,11,15,19,24,28,33,37,42,46,50,55,59,64,68,73,77,81,86},
/*74(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,60,65,69,74,78,82,87},
/*75(-1)*/ { 2, 6,11,15,20,25,29,34,38,43,47,52,56,61,65,70,75,79,84,88},
/*76(-1)*/ { 2, 6,11,16,20,25,29,34,39,43,48,52,57,62,66,71,76,80,85,89},
/*77(-1)*/ { 2, 7,11,16,21,25,30,35,39,44,49,53,58,63,67,72,77,81,86,89},
/*78(-1)*/ { 2, 7,11,16,21,26,30,35,40,44,49,54,59,63,68,73,78,82,87,89},
/*79(-1)*/ { 2, 7,11,16,21,26,31,35,40,45,50,55,59,64,69,74,79,83,88,89}
}},
/* DY = 17 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1},
/* 3(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3},
/* 5(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4},
/* 6(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5},
/* 7(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 7},
/* 8(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8},
/* 9(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/*10(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9,10,10},
/*11(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,11,11},
/*12(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,13},
/*13(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,11,12,13,14},
/*14(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 9,10,11,12,12,13,14,15},
/*15(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,13,14,15,16},
/*16(-1)*/ { 0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,12,13,14,14,15,16,17},
/*17(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,15,16,17,18},
/*18(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,18,19,20},
/*19(-1)*/ { 0, 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,19,20,21},
/*20(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,10,12,13,14,15,16,17,18,20,21,22},
/*21(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,13,15,16,17,18,19,21,22,23},
/*22(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,13,14,15,16,18,19,20,22,23,24},
/*23(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25},
/*24(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,13,14,15,17,18,19,21,22,24,25,26},
/*25(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,17,19,20,22,23,25,26,27},
/*26(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,24,26,27,28},
/*27(-1)*/ { 0, 2, 3, 5, 6, 8,10,11,13,14,16,17,19,20,22,23,25,27,28,30},
/*28(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,24,26,28,29,31},
/*29(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,24,25,27,29,30,32},
/*30(-1)*/ { 0, 2, 4, 6, 7, 9,11,12,14,16,18,19,21,23,24,26,28,30,31,33},
/*31(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,15,16,18,20,22,23,25,27,29,31,32,34},
/*32(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,21,22,24,26,28,30,32,33,35},
/*33(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,17,19,21,23,25,27,29,31,33,34,36},
/*34(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,35,37},
/*35(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*36(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,36,38,40},
/*37(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,20,22,24,26,28,30,32,34,37,39,41},
/*38(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,24,27,29,31,33,35,38,40,42},
/*39(-1)*/ { 1, 3, 5, 7,10,12,14,16,18,21,23,25,27,30,32,34,36,39,41,43},
/*40(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,30,33,35,37,40,42,44},
/*41(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,33,36,38,41,43,45},
/*42(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,34,37,39,42,44,46},
/*43(-1)*/ { 1, 3, 6, 8,11,13,15,18,20,23,25,28,30,33,35,38,40,43,45,47},
/*44(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,41,44,46,49},
/*45(-1)*/ { 1, 3, 6, 9,11,14,16,19,21,24,27,29,32,34,37,39,42,45,47,50},
/*46(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,24,27,30,32,35,38,40,43,46,48,51},
/*47(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,47,49,52},
/*48(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,28,31,34,37,39,42,45,48,50,53},
/*49(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,37,40,43,46,49,51,54},
/*50(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,32,35,38,41,44,47,50,52,55},
/*51(-1)*/ { 1, 4, 7,10,13,16,18,21,24,27,30,33,36,39,42,45,48,51,53,56},
/*52(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,54,57},
/*53(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,53,56,59},
/*54(-1)*/ { 1, 4, 7,10,13,16,20,23,26,29,32,35,38,41,44,47,50,54,57,60},
/*55(-1)*/ { 1, 4, 7,11,14,17,20,23,26,29,33,36,39,42,45,48,51,55,58,61},
/*56(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,36,40,43,46,49,52,56,59,62},
/*57(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,34,37,40,43,47,50,53,57,60,63},
/*58(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,38,41,44,48,51,54,58,61,64},
/*59(-1)*/ { 1, 5, 8,11,15,18,21,25,28,32,35,38,42,45,48,52,55,59,62,65},
/*60(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,42,46,49,53,56,60,63,66},
/*61(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,61,64,67},
/*62(-1)*/ { 1, 5, 8,12,15,19,23,26,30,33,37,40,44,47,51,54,58,62,65,69},
/*63(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,55,59,63,66,70},
/*64(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,53,56,60,64,67,71},
/*65(-1)*/ { 1, 5, 9,13,16,20,24,27,31,35,39,42,46,50,53,57,61,65,68,72},
/*66(-1)*/ { 1, 5, 9,13,16,20,24,28,32,35,39,43,47,50,54,58,62,66,69,73},
/*67(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,44,47,51,55,59,63,67,70,74},
/*68(-1)*/ { 1, 5, 9,13,17,21,25,29,33,36,40,44,48,52,56,60,64,68,71,75},
/*69(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,72,76},
/*70(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*71(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,71,75,79},
/*72(-1)*/ { 2, 6,10,14,18,22,26,30,34,39,43,47,51,55,59,63,67,72,76,80},
/*73(-1)*/ { 2, 6,10,14,18,22,27,31,35,39,43,47,52,56,60,64,68,73,77,81},
/*74(-1)*/ { 2, 6,10,14,19,23,27,31,35,40,44,48,52,57,61,65,69,74,78,82},
/*75(-1)*/ { 2, 6,10,15,19,23,27,32,36,40,45,49,53,57,62,66,70,75,79,83},
/*76(-1)*/ { 2, 6,10,15,19,23,28,32,36,41,45,49,54,58,62,67,71,76,80,84},
/*77(-1)*/ { 2, 6,11,15,19,24,28,33,37,41,46,50,55,59,63,68,72,77,81,85},
/*78(-1)*/ { 2, 6,11,15,20,24,28,33,37,42,46,51,55,60,64,69,73,78,82,86},
/*79(-1)*/ { 2, 6,11,15,20,24,29,33,38,42,47,51,56,60,65,69,74,79,83,88}
}},
/* DY = 18 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1},
/* 3(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3},
/* 5(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4},
/* 6(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5},
/* 7(-1)*/ {0xff, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6},
/* 8(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 7, 7},
/* 9(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8, 8},
/*10(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9,10},
/*11(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9, 9,10,11},
/*12(-1)*/ { 0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,10,11,12},
/*13(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 9,10,11,11,12,13},
/*14(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9,10,11,12,12,13,14},
/*15(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9, 9,10,11,12,13,13,14,15},
/*16(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 8, 9,10,11,12,13,14,14,15,16},
/*17(-1)*/ { 0, 1, 2, 3, 4, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,15,16,17},
/*18(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,16,17,18},
/*19(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,19,20},
/*20(-1)*/ { 0, 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,18,20,21},
/*21(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,13,14,15,16,17,18,19,21,22},
/*22(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,16,17,18,19,20,22,23},
/*23(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,13,14,15,16,18,19,20,21,23,24},
/*24(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,14,16,17,18,20,21,22,24,25},
/*25(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,25,26},
/*26(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,16,17,18,20,21,23,24,26,27},
/*27(-1)*/ { 0, 2, 3, 5, 6, 8, 9,10,12,13,15,16,18,19,21,22,24,25,27,28},
/*28(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,24,26,28,29},
/*29(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,18,19,21,22,24,25,27,29,30},
/*30(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,17,18,20,21,23,25,26,28,30,31},
/*31(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,24,25,27,29,31,32},
/*32(-1)*/ { 0, 2, 4, 6, 7, 9,11,12,14,16,18,19,21,23,25,26,28,30,32,33},
/*33(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,16,18,20,22,24,25,27,29,31,33,34},
/*34(-1)*/ { 0, 2, 4, 6, 8,10,11,13,15,17,19,21,22,24,26,28,30,32,34,35},
/*35(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,17,19,21,23,25,27,29,31,33,35,36},
/*36(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,37},
/*37(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*38(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,38,40},
/*39(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,20,22,24,26,28,30,32,34,36,39,41},
/*40(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,24,27,29,31,33,35,37,40,42},
/*41(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,21,23,25,27,29,32,34,36,38,41,43},
/*42(-1)*/ { 1, 3, 5, 7,10,12,14,17,19,21,23,26,28,30,32,35,37,39,42,44},
/*43(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,33,36,38,40,43,45},
/*44(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,24,27,29,32,34,36,39,41,44,46},
/*45(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,23,25,27,30,32,35,37,40,42,45,47},
/*46(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,41,43,46,48},
/*47(-1)*/ { 1, 3, 6, 8,11,13,16,19,21,24,26,29,31,34,36,39,41,44,47,49},
/*48(-1)*/ { 1, 3, 6, 9,11,14,16,19,22,24,27,29,32,35,37,40,42,45,48,50},
/*49(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,25,27,30,33,35,38,41,43,46,49,51},
/*50(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,31,33,36,39,41,44,47,50,52},
/*51(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,26,28,31,34,37,39,42,45,48,51,53},
/*52(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,37,40,43,46,49,52,54},
/*53(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,32,35,38,41,44,47,50,53,55},
/*54(-1)*/ { 1, 4, 7,10,13,16,18,21,24,27,30,33,36,39,42,45,48,51,54,56},
/*55(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,57},
/*56(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,56,59},
/*57(-1)*/ { 1, 4, 7,10,13,16,20,23,26,29,32,35,38,41,44,47,50,53,57,60},
/*58(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,36,39,42,45,48,51,54,58,61},
/*59(-1)*/ { 1, 4, 7,11,14,17,20,23,27,30,33,36,39,43,46,49,52,55,59,62},
/*60(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,34,37,40,43,47,50,53,56,60,63},
/*61(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,37,41,44,47,51,54,57,61,64},
/*62(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,62,65},
/*63(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,39,42,45,49,52,56,59,63,66},
/*64(-1)*/ { 1, 5, 8,12,15,19,22,25,29,32,36,39,43,46,50,53,57,60,64,67},
/*65(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,61,65,68},
/*66(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,41,44,48,51,55,58,62,66,69},
/*67(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,38,41,45,48,52,56,59,63,67,70},
/*68(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,53,56,60,64,68,71},
/*69(-1)*/ { 1, 5, 9,13,16,20,24,27,31,35,39,42,46,50,54,57,61,65,69,72},
/*70(-1)*/ { 1, 5, 9,13,17,20,24,28,32,35,39,43,47,51,54,58,62,66,70,73},
/*71(-1)*/ { 1, 5, 9,13,17,21,24,28,32,36,40,44,47,51,55,59,63,67,71,74},
/*72(-1)*/ { 1, 5, 9,13,17,21,25,29,33,36,40,44,48,52,56,60,64,68,72,75},
/*73(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,76},
/*74(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*75(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,75,79},
/*76(-1)*/ { 2, 6,10,14,18,22,26,30,34,39,43,47,51,55,59,63,67,71,76,80},
/*77(-1)*/ { 2, 6,10,14,18,22,27,31,35,39,43,47,52,56,60,64,68,72,77,81},
/*78(-1)*/ { 2, 6,10,14,18,23,27,31,35,40,44,48,52,56,61,65,69,73,78,82},
/*79(-1)*/ { 2, 6,10,14,19,23,27,32,36,40,44,49,53,57,61,66,70,74,79,83}
}},
/* DY = 19 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
/* 3(-1)*/ {0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3},
/* 5(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4},
/* 6(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5},
/* 7(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6},
/* 8(-1)*/ {0xff, 0, 0, 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 7},
/* 9(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 7, 8},
/*10(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9},
/*11(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9,10},
/*12(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,10,10,11},
/*13(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,11,12},
/*14(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 5, 6, 7, 8, 8, 9,10,10,11,12,12,13},
/*15(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9,10,10,11,12,13,13,14},
/*16(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,10,11,12,13,14,14,15},
/*17(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,15,16},
/*18(-1)*/ { 0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,16,17},
/*19(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,17,18},
/*20(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,20},
/*21(-1)*/ { 0, 1, 2, 3, 4, 5, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,21},
/*22(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,22},
/*23(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8,10,11,12,13,14,15,17,18,19,20,21,23},
/*24(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,11,12,14,15,16,17,19,20,21,22,24},
/*25(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,10,12,13,14,16,17,18,19,21,22,23,25},
/*26(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,16,18,19,20,22,23,24,26},
/*27(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,11,13,14,15,17,18,20,21,22,24,25,27},
/*28(-1)*/ { 0, 2, 3, 5, 6, 7, 9,10,12,13,15,16,17,19,20,22,23,25,26,28},
/*29(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,24,26,27,29},
/*30(-1)*/ { 0, 2, 3, 5, 6, 8,10,11,13,14,16,17,19,20,22,23,25,26,28,30},
/*31(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,15,16,18,19,21,23,24,26,27,29,31},
/*32(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,13,15,17,18,20,22,23,25,27,28,30,32},
/*33(-1)*/ { 0, 2, 4, 5, 7, 9,11,12,14,16,17,19,21,22,24,26,27,29,31,33},
/*34(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,21,23,25,27,28,30,32,34},
/*35(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,18,20,22,24,26,27,29,31,33,35},
/*36(-1)*/ { 0, 2, 4, 6, 8,10,12,13,15,17,19,21,23,24,26,28,30,32,34,36},
/*37(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,19,21,23,25,27,29,31,33,35,37},
/*38(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38},
/*39(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*40(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,40},
/*41(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,22,24,26,28,30,32,34,36,38,41},
/*42(-1)*/ { 1, 3, 5, 7, 9,11,14,16,18,20,22,24,26,29,31,33,35,37,39,42},
/*43(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,23,25,27,29,31,34,36,38,40,43},
/*44(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,28,30,32,34,37,39,41,44},
/*45(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,21,24,26,28,31,33,35,38,40,42,45},
/*46(-1)*/ { 1, 3, 5, 8,10,12,15,17,20,22,24,27,29,31,34,36,38,41,43,46},
/*47(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,22,25,27,30,32,34,37,39,42,44,47},
/*48(-1)*/ { 1, 3, 6, 8,11,13,16,18,20,23,25,28,30,33,35,38,40,43,45,48},
/*49(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,41,43,46,49},
/*50(-1)*/ { 1, 3, 6, 8,11,14,16,19,21,24,26,29,32,34,37,39,42,44,47,50},
/*51(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,24,27,30,32,35,37,40,43,45,48,51},
/*52(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*53(-1)*/ { 1, 4, 6, 9,12,14,17,20,23,25,28,31,33,36,39,42,44,47,50,53},
/*54(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,31,34,37,40,42,45,48,51,54},
/*55(-1)*/ { 1, 4, 7, 9,12,15,18,21,23,26,29,32,35,38,40,43,46,49,52,55},
/*56(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,33,35,38,41,44,47,50,53,56},
/*57(-1)*/ { 1, 4, 7,10,13,16,19,21,24,27,30,33,36,39,42,45,48,51,54,57},
/*58(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58},
/*59(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,59},
/*60(-1)*/ { 1, 4, 7,10,13,16,20,23,26,29,32,35,38,41,44,47,50,53,56,60},
/*61(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,35,39,42,45,48,51,54,57,61},
/*62(-1)*/ { 1, 4, 7,11,14,17,20,23,27,30,33,36,39,42,46,49,52,55,58,62},
/*63(-1)*/ { 1, 4, 8,11,14,17,21,24,27,30,33,37,40,43,46,50,53,56,59,63},
/*64(-1)*/ { 1, 4, 8,11,14,18,21,24,27,31,34,37,41,44,47,50,54,57,60,64},
/*65(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,41,45,48,51,55,58,61,65},
/*66(-1)*/ { 1, 5, 8,11,15,18,22,25,28,32,35,38,42,45,49,52,55,59,62,66},
/*67(-1)*/ { 1, 5, 8,12,15,18,22,25,29,32,36,39,42,46,49,53,56,60,63,67},
/*68(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,61,64,68},
/*69(-1)*/ { 1, 5, 8,12,15,19,23,26,30,33,37,40,44,47,51,54,58,61,65,69},
/*70(-1)*/ { 1, 5, 8,12,16,19,23,26,30,34,37,41,44,48,52,55,59,62,66,70},
/*71(-1)*/ { 1, 5, 9,12,16,20,23,27,30,34,38,41,45,49,52,56,60,63,67,71},
/*72(-1)*/ { 1, 5, 9,12,16,20,24,27,31,35,38,42,46,49,53,57,60,64,68,72},
/*73(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,46,50,54,58,61,65,69,73},
/*74(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,39,43,47,51,55,58,62,66,70,74},
/*75(-1)*/ { 1, 5, 9,13,17,21,25,28,32,36,40,44,48,51,55,59,63,67,71,75},
/*76(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,40,44,48,52,56,60,64,68,72,76},
/*77(-1)*/ { 1, 5, 9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77},
/*78(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78},
/*79(-1)*/ { 2, 6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,79}
}},
/* DY = 20 */
{{
/* 1(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
/* 2(-1)*/ {0xff,0xff,0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
/* 3(-1)*/ {0xff,0xff,0xff,0xff, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
/* 4(-1)*/ {0xff,0xff, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2},
/* 5(-1)*/ {0xff,0xff, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3},
/* 6(-1)*/ {0xff, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4},
/* 7(-1)*/ {0xff, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5},
/* 8(-1)*/ {0xff, 0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6},
/* 9(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 7, 7, 7},
/*10(-1)*/ {0xff, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 8},
/*11(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9},
/*12(-1)*/ { 0, 0, 1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9,10,10},
/*13(-1)*/ { 0, 0, 1, 1, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9,10,10,11,11},
/*14(-1)*/ { 0, 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9,10,10,11,12,12},
/*15(-1)*/ { 0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 8, 9,10,11,11,12,13,13},
/*16(-1)*/ { 0, 1, 1, 2, 3, 4, 4, 5, 6, 7, 8, 8, 9,10,11,11,12,13,14,14},
/*17(-1)*/ { 0, 1, 1, 2, 3, 4, 5, 6, 6, 7, 8, 9,10,11,11,12,13,14,15,15},
/*18(-1)*/ { 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, 9,10,11,12,13,14,15,16,16},
/*19(-1)*/ { 0, 1, 2, 3, 4, 5, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,17},
/*20(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,18},
/*21(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19},
/*22(-1)*/ { 0, 1, 2, 3, 4, 5, 6, 8, 9,10,11,12,13,14,15,16,17,18,19,20},
/*23(-1)*/ { 0, 1, 2, 3, 5, 6, 7, 8, 9,10,11,12,14,15,16,17,18,19,20,21},
/*24(-1)*/ { 0, 1, 2, 4, 5, 6, 7, 8, 9,11,12,13,14,15,16,18,19,20,21,22},
/*25(-1)*/ { 0, 1, 3, 4, 5, 6, 7, 9,10,11,12,14,15,16,17,18,20,21,22,23},
/*26(-1)*/ { 0, 1, 3, 4, 5, 6, 8, 9,10,12,13,14,15,17,18,19,20,22,23,24},
/*27(-1)*/ { 0, 1, 3, 4, 5, 7, 8, 9,11,12,13,15,16,17,19,20,21,23,24,25},
/*28(-1)*/ { 0, 2, 3, 4, 6, 7, 8,10,11,12,14,15,17,18,19,21,22,23,25,26},
/*29(-1)*/ { 0, 2, 3, 4, 6, 7, 9,10,12,13,14,16,17,19,20,21,23,24,26,27},
/*30(-1)*/ { 0, 2, 3, 5, 6, 8, 9,10,12,13,15,16,18,19,21,22,24,25,27,28},
/*31(-1)*/ { 0, 2, 3, 5, 6, 8, 9,11,12,14,15,17,18,20,21,23,24,26,27,29},
/*32(-1)*/ { 0, 2, 3, 5, 7, 8,10,11,13,14,16,17,19,21,22,24,25,27,28,30},
/*33(-1)*/ { 0, 2, 4, 5, 7, 8,10,12,13,15,16,18,20,21,23,24,26,28,29,31},
/*34(-1)*/ { 0, 2, 4, 5, 7, 9,10,12,14,15,17,19,20,22,24,25,27,29,30,32},
/*35(-1)*/ { 0, 2, 4, 5, 7, 9,11,12,14,16,17,19,21,23,24,26,28,29,31,33},
/*36(-1)*/ { 0, 2, 4, 6, 7, 9,11,13,14,16,18,20,21,23,25,27,28,30,32,34},
/*37(-1)*/ { 0, 2, 4, 6, 8, 9,11,13,15,17,18,20,22,24,26,27,29,31,33,35},
/*38(-1)*/ { 0, 2, 4, 6, 8,10,12,13,15,17,19,21,23,25,26,28,30,32,34,36},
/*39(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,19,21,23,25,27,29,31,33,35,37},
/*40(-1)*/ { 0, 2, 4, 6, 8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38},
/*41(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*42(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39},
/*43(-1)*/ { 1, 3, 5, 7, 9,11,13,15,17,19,22,24,26,28,30,32,34,36,38,40},
/*44(-1)*/ { 1, 3, 5, 7, 9,11,13,16,18,20,22,24,26,28,31,33,35,37,39,41},
/*45(-1)*/ { 1, 3, 5, 7, 9,12,14,16,18,20,23,25,27,29,31,34,36,38,40,42},
/*46(-1)*/ { 1, 3, 5, 7,10,12,14,16,19,21,23,25,28,30,32,34,37,39,41,43},
/*47(-1)*/ { 1, 3, 5, 8,10,12,14,17,19,21,24,26,28,30,33,35,37,40,42,44},
/*48(-1)*/ { 1, 3, 5, 8,10,12,15,17,19,22,24,26,29,31,33,36,38,40,43,45},
/*49(-1)*/ { 1, 3, 5, 8,10,13,15,17,20,22,25,27,29,32,34,37,39,41,44,46},
/*50(-1)*/ { 1, 3, 6, 8,10,13,15,18,20,23,25,28,30,32,35,37,40,42,45,47},
/*51(-1)*/ { 1, 3, 6, 8,11,13,16,18,21,23,26,28,31,33,36,38,41,43,46,48},
/*52(-1)*/ { 1, 3, 6, 8,11,13,16,19,21,24,26,29,31,34,36,39,41,44,46,49},
/*53(-1)*/ { 1, 3, 6, 9,11,14,16,19,21,24,27,29,32,34,37,40,42,45,47,50},
/*54(-1)*/ { 1, 3, 6, 9,11,14,17,19,22,25,27,30,32,35,38,40,43,46,48,51},
/*55(-1)*/ { 1, 4, 6, 9,12,14,17,20,22,25,28,30,33,36,38,41,44,46,49,52},
/*56(-1)*/ { 1, 4, 6, 9,12,15,17,20,23,25,28,31,34,36,39,42,45,47,50,53},
/*57(-1)*/ { 1, 4, 6, 9,12,15,18,20,23,26,29,31,34,37,40,43,45,48,51,54},
/*58(-1)*/ { 1, 4, 7, 9,12,15,18,21,24,26,29,32,35,38,41,43,46,49,52,55},
/*59(-1)*/ { 1, 4, 7,10,12,15,18,21,24,27,30,33,35,38,41,44,47,50,53,56},
/*60(-1)*/ { 1, 4, 7,10,13,16,19,21,24,27,30,33,36,39,42,45,48,51,54,57},
/*61(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58},
/*62(-1)*/ { 1, 4, 7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58},
/*63(-1)*/ { 1, 4, 7,10,13,16,19,23,26,29,32,35,38,41,44,47,50,53,56,59},
/*64(-1)*/ { 1, 4, 7,10,14,17,20,23,26,29,32,35,39,42,45,48,51,54,57,60},
/*65(-1)*/ { 1, 4, 7,11,14,17,20,23,26,30,33,36,39,42,45,49,52,55,58,61},
/*66(-1)*/ { 1, 4, 8,11,14,17,20,24,27,30,33,37,40,43,46,49,53,56,59,62},
/*67(-1)*/ { 1, 4, 8,11,14,17,21,24,27,31,34,37,40,44,47,50,53,57,60,63},
/*68(-1)*/ { 1, 4, 8,11,14,18,21,24,28,31,34,38,41,44,48,51,54,58,61,64},
/*69(-1)*/ { 1, 5, 8,11,15,18,21,25,28,31,35,38,42,45,48,52,55,58,62,65},
/*70(-1)*/ { 1, 5, 8,11,15,18,22,25,29,32,35,39,42,46,49,52,56,59,63,66},
/*71(-1)*/ { 1, 5, 8,12,15,19,22,25,29,32,36,39,43,46,50,53,57,60,64,67},
/*72(-1)*/ { 1, 5, 8,12,15,19,22,26,29,33,36,40,43,47,50,54,57,61,64,68},
/*73(-1)*/ { 1, 5, 8,12,16,19,23,26,30,33,37,40,44,48,51,55,58,62,65,69},
/*74(-1)*/ { 1, 5, 9,12,16,19,23,27,30,34,37,41,45,48,52,55,59,63,66,70},
/*75(-1)*/ { 1, 5, 9,12,16,20,23,27,31,34,38,42,45,49,53,56,60,64,67,71},
/*76(-1)*/ { 1, 5, 9,12,16,20,24,27,31,35,38,42,46,50,53,57,61,64,68,72},
/*77(-1)*/ { 1, 5, 9,13,16,20,24,28,31,35,39,43,46,50,54,58,61,65,69,73},
/*78(-1)*/ { 1, 5, 9,13,17,20,24,28,32,36,39,43,47,51,55,58,62,66,70,74},
/*79(-1)*/ { 1, 5, 9,13,17,21,25,28,32,36,40,44,48,52,55,59,63,67,71,75}
}},
}; /* far_table[] */
#endif /* !CLOSE_TABLE_ONLY */
void vis_tab_init() { return; }
#endif /* VISION_TABLES */
/*vis_tab.c*/
If the VISION_TABLES symbol is not defined at compile time, makedefs produces a shorter form of this file.
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates. |
# Venus
Wikipedia has an article about:
Venus (mythology)
Religion in NetHack
priests
alignment
alignment record
altars
atheism
anger
gods
sacrifice
prayer
turn undead
Venus is the neutral goddess of the Ranger pantheon.
Encyclopedia entry
Venus, the goddess of love and beauty, was the daughter of
Jupiter and Dione. Others say that Venus sprang from the
foam of the sea. The zephyr wafted her along the waves to
the Isle of Cyprus, where she was received and attired by
the Seasons, and then led to the assembly of the gods. All
were charmed with her beauty, and each one demanded her
for his wife. Jupiter gave her to Vulcan, in gratitude for
the service he had rendered in forging thunderbolts. So
the most beautiful of the goddesses became the wife of the
most ill-favoured of gods.
[ Bulfinch's Mythology, by Thomas Bulfinch ]
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.0. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-360}} tag to the current version's tag or {{noversion}} as appropriate. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:37, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
16:45
Hack'EMββ (3 changes | history)
. .
(+4,049)β . .
[Hackemslashemβ (3Γ)]
16:45
(cur | prev) . . (+78)β . . Hackemslashem (talk | contribs) (ββTrap Mechanics: Poly trap disappearing)
16:36
(cur | prev) . . (+26)β . . Hackemslashem (talk | contribs) (ββNew artifacts: Storm Whistle update)
15:08
(cur | prev) . . (+3,945)β . . Hackemslashem (talk | contribs) (Updates in preparation for 1.2)
19 July 2023
20:21 Hack'EMβ (diff | hist) . . (+92)β . . Ardub23 (talk | contribs) (Fixed changelog link, and commented out Grandmaster's Robe as it's not yet implemented) |
# Spellbook of blank paper
+
Name
spellbook of blank paper
Appearance
plain spellbook
Base price
0 zm
Weight
50
A spellbook of blank paper can be used to write a brand new spellbook of any spell you currently know by using a magic marker.
Generation
Blank spellbooks can be acquired by blanking regular spellbooks, for example by dipping them into a fountain. A general store, a rare books store, and a second-hand bookstore sometimes have blank spellbooks for sale.
Effects
When writing, the beatitude of the resulting spellbook is affected by the beatitude of both the spellbook of blank paper and the magic marker, meaning if a cursed magic marker was to write on a blessed spellbook of blank paper, then the outcome would be an uncursed spellbook.
Wizards have a better chance of guessing at a spell they don't know and writing it successfully.
This page is a stub. Should you wish to do so, you can contribute by expanding this page.
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |
# File:Keyboard.png
File
File history
File usageSize of this preview: 800 Γ 298 pixels. Other resolutions: 320 Γ 119 pixels | 1,594 Γ 593 pixels.
Original file β(1,594 Γ 593 pixels, file size: 139 KB, MIME type: image/png)
A vector version of this image is available here.
Licensing
This work was created by uploader.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current10:18, 30 August 20101,594 Γ 593 (139 KB)Pommessemmel (talk | contribs)
You cannot overwrite this file.
File usage
There are no pages that use this file. |
# File:Magenta potion.png
File
File history
File usageNo higher resolution available.
Magenta_potion.png β(16 Γ 16 pixels, file size: 200 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'magenta potion'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current12:14, 1 August 200616 Γ 16 (200 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'magenta potion'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 13 pages uses this file:
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# Wizard of Yendor
@ Wizard of Yendor
Difficulty
34
Attacks
Claw 2d12 amulet-stealing, spell-casting
@ Wizard of Yendor
Difficulty
34
Attacks
Claw 2d12 amulet-stealing, spell-casting
Base level
30
Base experience
1411
Speed
12
Base AC
-8
Base MR
100
Alignment
unaligned[1]
Frequency (by normal means)
Unique
Genocidable
No
Weight
1450
Nutritional value
400
Size
Medium
Resistances
Fire, Poison
Resistances conveyed
Fire (25%), Poison (25%), teleport control (25%), causes teleportitis (25%)
The Wizard of Yendor:
can fly.
does not breathe.
has a head, a couple of arms, and a torso.
regenerates HP quickly.
can see invisible creatures.
can teleport.
has teleport control.
is omnivorous.
is not a valid polymorphable form.
is a human.
is an overlord to its kind.
is male.
is normally generated hostile.
is nasty.
is strong.
can pick up magical items.
waits for you to come.
wants the Amulet of Yendor, the Bell of Opening, the Book of the Dead, the Candelabrum of Invocation, and your quest artifact.
can be seen through infravision.
Reference
monst.c#line2295
The Wizard of Yendor, @ (also informally known as Rodney), is one of the main antagonists in NetHack.
He is the guardian of the Book of the Dead, which you must retrieve to perform the Invocation and descend into Moloch's Sanctum to take the Amulet of Yendor from the high priest of Moloch. However, killing him alone will not be enough to deter him - not only can he hassle you remotely with mysterious curses and spells, the Wizard will eventually reappear stronger than ever. He will even follow you to the Elemental Planes, with a guaranteed reappearance on the Plane of Earth.
Eating the corpse of the Wizard of Yendor has equal chances of conveying fire resistance, poison resistance, teleportitis, or teleport control.
Contents
1 Generation
2 Abilities
2.1 Harassment
3 Strategy
3.1 Obtaining the Book of the Dead
3.2 Awakening the Wizard
3.3 Weakening the Wizard
4 History
5 Variants
5.1 SLASH'EM
5.2 UnNetHack
5.3 dNetHack
5.4 EvilHack
6 Monster stats by variant
7 Encyclopedia entry
8 References
Generation
The Wizard of Yendor is always initially generated residing in his Tower in Gehennom, with the Book of the Dead on his square. He does not normally have a starting inventory; when he makes his reappearance on the Plane of Earth, he is generated with a spellbook of dig.
Abilities
The Wizard of Yendor has -8 AC and full monster magic resistance, along with fire resistance and poison resistance; he is breathless, regenerates, can see invisible, and is capable of flight. The Wizard also has a form of teleport control: teleporting him will always move him to the upstairs of that floor, and if you are inside his Tower, he will always end up on the down ladder.[2] This is typically not a concern for you or him, as he is covetous and can easily warp right back to you.
He has two attacks - a 2d12 "claw" attack that has a 1β20 chance of stealing the Amulet of Yendor, any invocation items or any quest artifacts you possess, and a spellcasting attack that can pull from the full complement of arcane monster spells up to and including the touch of death. As both his Amulet-stealing attack and monster spellcasting in general are only coded for player-versus-monster combat, the Wizard of Yendor is incapable of harming other monsters such as pets.[3]
The Wizard also has a unique arcane spell, Double Trouble, which creates another incarnation of him with all his powers. The clone can show up with a different appearance from his normal self, and may be any one of the following: water demon, vampire, red dragon, troll, umber hulk, xorn, xan, cockatrice, floating eye, guardian naga or trapper.[4][5] He will not use this spell if there are already two of him in the world.[6]
Harassment
After the Wizard dies for the first time, or after you perform the Invocation (if you have stolen the Book from him without killing him), he will cause you trouble for the rest of the game. Fifty to 299 turns after the wizard is first killed, 2β12 turns after you perform the Invocation and every 50β249 turns afterwards (not counting turns where you are invulnerable while praying), one of the following effects will happen:[7][8][9]
Probability
Effect
Message
1β3
No effect
"You feel vaguely nervous."
1β6
Curse items
"You notice a black glow surrounding you." (if not blind)
1β6
Aggravate
"You feel that monsters are aware of your presence."
1β6
Summon nasties
No message
1β6
If there is currently no living Wizard, he returns to life near you, one monster level higher than his previous incarnation. If the Wizard is alive on a different dungeon level, and doesn't have the real Amulet, he is brought to you.
"A voice booms out... 'So thou thought thou couldst
<kill elude=""> me, fool.'"
Unrelated are various cosmetic messages that "harass" the player (e.g. "laughing fiendishly").
The Wizard will always reappear or return to life when you enter the Plane of Earth; he cannot appear on the Astral Plane this way, and every other effect has equal probability - if he is next to you on the Plane of Water when you enter its portal to the Astral Plane, he can follow you through it.
Strategy
The battle with the Wizard of Yendor marks the beginning of the ascension run for a mass majority of players - once you kill him or perform the invocation, he will hound you for the rest of the game, and finishing as fast as possible from that point reduces the number of turns that he harasses you. Before facing him for the first time, most players will want to have found the vibrating square and created quick paths from stairway to stairway through the Gehennom mazes.
Stealing the Book of the Dead without killing him will allow you to continue preparations without risk of harassment; this is especially useful for pacifists trying to raise the dead to obtain a level 49 purple worm. Prudent players will have non-quest artifact sources of vital properties on hand before beginning the ascension run, and especially cautious ones may wish to carry their quest artifact(s) in a container.
Defeating him the first time you face him is not too difficult - the Wizard lacks intrinsic magic resistance, and landing a shot a wand of death or finger of death will do the job; as his AC makes it likely for a death ray to miss, beware of having your quest artifact(s) that grants magic resistance or reflection stolen from you if taking multiple shots - pity the unprepared Caveman who has the Sceptre of Might stolen with no other source of MR and no other good melee weapon in inventory, especially if the Wizard immediately takes advantage.
Most players prefer to kill him as fast as possible; in addition to avoiding the above scenarios, this minimizes the odds of killing him over a water tile in his Tower and having the Book of the Dead fall in, and also has the benefit of preempting him summoning nasties or casting Double Trouble. See the section below for methods of retrieving the Book.
During the ascension run, make sure you have magic resistance on as often as possible, as the Wizard may reappear at any inconvenient moment and quickly bring about YASD. Many players choose to zap a wand of death at the Wizard instantly every time he reappears; however, if you are low on wand charges, you may want to take him out quickly through some other means, e.g. stoning him. If he reappears and summons nasties on you immediately, watch out for Elvenkings βthey are represented by the same symbol (@) as the Wizard, and it's annoying to realize that you've squandered a ray of death on the wrong monster.
The Wizard will not warp to you if he obtains the real Amulet, but will still harass you through other methods; if you are being overwhelmed by the Wizard, you can throw the Amulet away and change levels as he goes to pick it up. You will need to retrieve the Amulet at some point, but this gives you an opportunity to recover pets and equipment before you kill him to reobtain it.
Obtaining the Book of the Dead
-----------|.........||.}}}}}}}.||.}}---}}.||.}--.--}.||.}|.@.|}.||.}-/.--}.||.}/---}}.||./}}}}}}.||@........|-----------
Attacking the Wizard through the corner
You can zap a wand of digging diagonally at the Wizard's tower without waking him up; you can then shoot a death ray from that position through the newly-created gap, killing him without giving him the chance to cast spells at you if it hits. If you step near the breached tower, you will wake him up.
If you kill him over the moat, you can get the Book of the Dead by zapping a wand of cold or the cone of cold spell over the water; the Book of the Dead is immune to blanking, and will end up on top of the ice. Alternately, you can wear an amulet of magical breathing to go into the water and pick it up. If you choose to do this, remember to leave your water-damageable items (potions, spellbooks, scrolls, non-rustproof weapons) on the dry land or in a noncursed oilskin sack.
Awakening the Wizard
If you have a drum of earthquake, you can reliably wake him up from outside the Wizard's Tower. You can then kill him and obtain the Book without having to enter the Tower at all. A tame mind flayer can also lock onto him with its telepathy, waking him up and bringing him to you. If you polymorph into a mind flayer, you have a 10% chance of locking into his mind each time you #monster, provided he is within an eight-tile radius.[10] Drinking a cursed potion of invisibility will also wake him up, along with all other sleeping and meditating monsters on the level, but only if you are inside the Tower.
Weakening the Wizard
Level draining the Wizard will permanently reduce the level of his current incarnation, although it will still increase when another one appears. If you are able to reduce his level to 0, he will lose all spellcasting abilities, and his melee damage becomes unremarkable. Reducing his level without killing him is best done with a negatively enchanted Stormbringer, whose enchantment can be easily reduced to β3 through engraving. Reducing his level will also lower his monster magic resistance, making him more susceptible to sliming and subsequently polymorphing - this will prevent his covetous teleportation and remove most of his abilities, and your pets can also attack him on their own initiative once he approaches their level.
While the Wizard normally cannot be made tame or peaceful, there are a handful of methods to pacify him if you are able to polymorph him (which usually requires sliming him).
Polymorph him into any unicorn and throw him a gem of any kind.
Polymorph him into a snake and successfully use a wooden flute.
Polymorph him into a nymph and successfully use a wooden harp.
Polymorph him into any undead monster and read the blessed Book of the Dead.
As a chaotic priest or knight outside of Gehennom, polymorph him into any undead monster and successfully turn undead.
Polymorph him into any non-human, non-mindless monster and #untrap him from a pit that you did not create. Failure from the monster weighing too much, or success, both have chances of pacifying the Wizard; failure will leave him trapped, allowing you to try again.
The Wizard will always be made hostile when he next revives, so these methods cannot be used to permanently pacify him. Remember that teleporting the Wizard will always move him to the upstairs, or the down ladder if you are within his tower - if you managed to polymorph or slime the Wizard while he occupies a staircase, you will not be able to teleport him away.
History
The Wizard of Yendor is first introduced to NetHack in Hack 1.0.2. From this version through NetHack 2.3e, he appeared in a 1x2 room in the center of his floor's maze with a hell hound (which does not have a breath weapon in this version), and the Amulet of Yendor was placed underneath the hell hound; his glyph was 1, rather than @, as these versions of NetHack did not have color.
The room has no doors and is surrounded by a moat; fake Wizard rooms have a demon present with a fake Amulet instead of the Wizard. The arrangement of the real Tower makes it possible for players to use stealth and kill the hell hound, then pick up the Amulet and leave, all without awakening him.
}}}}}}}----}}|d1|}}----}}}}}}}
From NetHack 3.0.0 through 3.0.10, the Wizard is given a larger tower to occupy, and a vampire lord is generated within as an additional "roommate"; NetHack acquired color display in version 3.0.4. Fake Wizard rooms had a randomly chosen demon prince, and placed a demon lord instead if no prince was available; if all of the named demons are gone, a random demon is used instead. At the time, all eight modern named demons existed, but were only generated in these fake Wizard rooms or via summoning.
}}}}}}}}}---}}}-- --}}|V@d|}}-- --}}}---}}}}}}}}}
In NetHack 3.1.0, the Amulet is given to the high priest of Moloch, and the Wizard instead carries the Book of the Dead. The Wizard still lives in a 3.0.x-style Wizard room, and similar rooms exist on the first level of the Wizard's Tower and as part of the the two "Fake Wizard's Tower" levels; one of these levels contains a magic portal to the real tower.
In NetHack 3.4.3, if he appears within twelve turns after you perform the Invocation and you are on the Sanctum's floor, he will immediately warp into the Sanctum to obtain the Amulet from the high priest of Moloch (without damaging them, due to the aforementioned coding of his attacks).[3][11][12] This would allow him to bring the Amulet to you, thus circumventing the need to fight the high priest; it is no longer possible starting in NetHack 3.6.0, as covetous monsters will not attack the priest, but is still relevant for some 3.4.3-derived variants.
Before NetHack 3.6.1, your role's quest artifact is the only one eligible for the Wizard of Yendor to steal with his theft attack. In those versions, you can simply use another role's quest artifact to supply magic resistance and/or reflection while carrying your own in your on-hand container. Starting in 3.6.1, however, the Wizard can steal any role's quest artifact, so this tactic is no longer viable.
Variants
Quite a few later variants alter the Wizard of Yendor's stats and behavior in some manner.
SLASH'EM
In SLASH'EM, NetHack 3.4.3 rules for the Wizard of Yendor stealing quest artifacts apply. Additionally, there is a method of temporarily pacifying the Wizard exclusive to this variant - once you manage to drain enough levels from the Wizard that you can slime or polymorph him, hit his monster form with a potion of amnesia; this effect can be resisted dependent on his current form's monster MR.
UnNetHack
In UnNetHack, the Wizard of Yendor has an additional harassment effect outside the Astral Plane - a large earthquake will occur, similar to the effect of playing a drum of earthquake.
dNetHack
In dNetHack, the Wizard of Yendor will not attack the Elder Priest carrying the Amulet of Yendor in Moloch's Sanctum. While the Wizard's harassment mechanics are unchanged, the pool of eligible nasties is expanded and includes incredibly dangerous monsters such as the bebelith and ancient naga.
The Wizard's Amulet-stealing attack no longer targets quest artifacts, making them more reliable as sources of magic resistance both when fighting against him and on the ascension run. However, he is capable of casting nearly any monster spell available in dNetHack, and will do so 3β4 of the time. The remaining 1β4 of the time he will cast haste self, Double Trouble, or another spell exclusive to him that forces an amulet of strangulation onto your neck, transforming your current amulet if necessary; magic resistance will prevent your amulet from being transformed, but does not protect you if you are not wearing one.
Illurien of the Myriad Glimpses is a unique monster that engages in very similar harassment to the Wizard after being killed for the first time.
EvilHack
In EvilHack, the Wizard of Yendor is a far more powerful opponent that generates with his own inventory: his armor includes a robe and cornuthaum, and he will have either an amulet of magic resistance or an amulet of guarding with equal chance. The Wizard also has his own weapon, with a 2β3 chance of an athame and a 1β3 chance of a quarterstaff; said weapon has a 2β3 chance of generating with the fire object property, a 1β6 chance of generating with the frost property, and a 1β6 chance of generating with the venom property. The Wizard's attack routine is upgraded as well: he has a 2d8 weapon attack in addition to the 2d12 Amulet-stealing attack, and can cast two monster spells per turn from both mage and clerical schools; this includes the various new spells added to the game such as acid blast, lightning and reflection. His glyph is also changed to @ in order to distinguish him from elven royals.
The potential amulet of magic resistance and the reflection monster spell means that death rays are no longer a surefire method to dispose of Rodney at a given moment, and the added weapon attack and other tweaks to monster AI makes it possible for him to use quest artifact weapons and armor against you should he steal them. Furthermore, the new monsters added to EvilHack also mean that Double Trouble can result in the Wizard taking on very dangerous forms; a player facing the Wizard should be ready to dispatch him as quickly as possible without the use of a wand/finger of death (although it can still weaken him and drain his HP). However, he is markedly less cautious about warping away to heal compared to other covetous monsters, which the player can use to their advantage.
Similar to UnNetHack, the Wizard can also cause an earthquake as part of his harassment if you have the Amulet of Yendor in your possession.
Monster stats by variant
dNetHackEvilHack
@ Wizard of Yendor
Difficulty
35
Attacks
Claw 2d12 Amulet theft, Cast 0d10 mage spell
@ Wizard of Yendor
Difficulty
35
Attacks
Claw 2d12 Amulet theft, Cast 0d10 mage spell
Base level
30
Base experience
1531
Speed
12
Base AC
-8
Base MR
100
Alignment
-128 (chaotic)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
1450
Nutritional value
400
Size
medium
Resistances
fire, poison
Resistances conveyed
fire, poison
The Wizard of Yendor:
can fly.
can survive underwater.
does not breathe.
has a head, a couple of arms, and a torso.
regenerates HP quickly.
can see invisible creatures.
can teleport.
has teleport control.
is omnivorous.
is not a valid polymorphable form.
is a human.
is an overlord to its kind.
is male.
is normally generated hostile.
is nasty.
is strong.
can pick up magical items.
wants the Amulet of Yendor.
wants the Bell of Opening.
wants the Book of the Dead.
waits for you to come.
wants the Amulet of Yendor, the Bell of Opening, the Book of the Dead, the Candelabrum of Invocation, and your quest artifact.
can be seen through infravision.
Reference
dNetHack 3.21.3 src/monst.c, line 5900
@ Wizard of Yendor
Difficulty
35
Attacks
Weapon 2d8, Claw 2d12 amulet-stealing, Spell-casting, Spell-casting (clerical)
@ Wizard of Yendor
Difficulty
35
Attacks
Weapon 2d8, Claw 2d12 amulet-stealing, Spell-casting, Spell-casting (clerical)
Base level
30
Base experience
1336
Speed
12
Base AC
-8
Base MR
100
Alignment
A_NONE
Frequency (by normal means)
Unique
Genocidable
No
Weight
1450
Nutritional value
400
Size
Medium
Resistances
fire,poison
Resistances conveyed
fire (25%), teleport control (25%), poison (25%), causes teleportitis (25%)
The Wizard of Yendor:
can fly.
does not breathe.
has a head, a couple of arms, and a torso.
regenerates HP quickly.
can teleport.
is omnivorous.
is not a valid polymorphable form.
is an overlord to its kind.
is male.
is normally generated hostile.
is nasty.
is strong.
can pick up magical items.
wants the Amulet of Yendor, the Bell of Opening, the Book of the Dead, the Candelabrum of Invocation, and your quest artifact.
can be seen through infravision.
Reference
EvilHack - monst.c, line 3114
Encyclopedia entry
No one knows how old this mighty wizard is, or from whence he came. It is known that, having lived a span far greater than any normal man's, he grew weary of lesser mortals; and so, spurning all human company, he forsook the dwellings of men and went to live in the depths of the Earth. He took with him a dreadful artifact, the Book of the Dead, which is said to hold great power indeed. Many have sought to find the wizard and his treasure, but none have found him and lived to tell the tale. Woe be to the incautious adventurer who disturbs this mighty sorcerer!
References
β monst.c in NetHack 3.4.3, line 2482: The Wizard is the only always-unaligned monster in NetHack (though some other monsters can be set to unaligned if generated under special conditions)
β teleport.c in NetHack 3.4.3, line 993
β 3.0 3.1 His Amulet-stealing attack is handled entirely in mhitm.c, and there are no provisions for mon vs mon spellcasting in mcastu.c.
β wizard.c in NetHack 3.4.3, line 405
β wizard.c in NetHack 3.4.3, line 38
β wizard.c in NetHack 3.4.3, line 733
β wizard.c in NetHack 3.4.3, line 551: Specifically, you must not be a demigod to start this counter.
β spell.c in NetHack 3.4.3, line 256
β allmain.c in NetHack 3.4.3, line 267
β polyself.c in NetHack 3.4.3, line 1090
β spell.c in NetHack 3.4.3, line 248
β mhitm.c in NetHack 3.4.3, line 1129
</kill> |
# Low boots
[ β low boots β
Appearance
walking shoes
Slot
boots
AC
1
Special
(none)
Base price
8 zm
Weight
10
Material
leather
Low boots are the weakest of the non-magical boots. When unidentified, they appear as walking shoes.
Sometimes confused with water walking boots. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 18:02, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
21 July 2023
m 17:58 Elberethβ (diff | hist) . . (-3)β . . Silverwing235 (talk | contribs) (ββHistory: typo/grammar, punctuation)
19 July 2023
00:12 Lightsaberβ (diff | hist) . . (+146)β . . Ion frigate (talk | contribs) (Give general monster case)
18 July 2023
23:31 Lightsaberβ (diff | hist) . . (+552)β . . Ion frigate (talk | contribs) (Mention other uses, also that it takes time and is inadvisable early on) |
# File:Bronze spellbook.png
File
File history
File usageNo higher resolution available.
Bronze_spellbook.png β(16 Γ 16 pixels, file size: 232 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'bronze spellbook'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current12:22, 1 August 200616 Γ 16 (232 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'bronze spellbook'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 13 pages uses this file:
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:58, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
m 16:09
EvilHackββ (3 changes | history)
. .
(+1,958)β . .
[K2β (3Γ)]
m
16:09
(cur | prev) . . (+1,831)β . . K2 (talk | contribs) (ββShields: details)
m
15:42
(cur | prev) . . (+113)β . . K2 (talk | contribs) (ββGame mechanics: placeholder for new skills)
m
15:15
(cur | prev) . . (+14)β . . K2 (talk | contribs) (ββAir: more wording)
23 July 2023
08:36 EvilHackβ (diff | hist) . . (-82)β . . Umbire the Phantom (talk | contribs) (pass for word choice and rephrasing)
22 July 2023
23:38 Wishβ (diff | hist) . . (+547)β . . Umbire the Phantom (talk | contribs) (ββGruntHack: copyedit + add some IRC recommendations)
21 July 2023
14:30
EvilHackββ (3 changes | history)
. .
(+1,487)β . .
[K2β (3Γ)]
m
14:30
(cur | prev) . . (+17)β . . K2 (talk | contribs) (ββMajor changes: convicts and thievery)
14:17
(cur | prev) . . (+1,444)β . . K2 (talk | contribs) (ββGame mechanics: open air)
m
13:42
(cur | prev) . . (+26)β . . K2 (talk | contribs) (ββGame mechanics: move artifact twoweaponing behavior under 'twoweaponing' section)
18 July 2023
m 04:53 EvilHackβ (diff | hist) . . (0)β . . K2 (talk | contribs) (build date) |
# Elshava
~~~~---------~~~~~-----.......-----~|.....|-+-|.....|~|.--+-|...|---|.|~|.|...|...|...|.|~|.|...|...|...+.|~|.|...----|...|.|~|.|---|...|---|.|~|.|...|...+....^|~|.+...|...|-------|.|...----|..|...||.-----...|..|...||.....+...|..|...|-----.|...|..|...|~~~~|.-----+---+--~~~~|...........~~~~~~-------------~
The portal back to the main dungeon is located inside the walls of Elshava, in the marked location. Every enclosed room is occupied by a random shop.
Contents
1 Shop Types
1.1 Sea Garden
1.2 Fishery
1.3 Sand-walker's Shop
1.4 Spa
2 Enemy Types
3 Portal
Shop Types
Sea Garden
Shopkeeper: Yurian (crab-person)
Stock: 40% random armor, 30% random weapons, 19% Slime molds, 10% Living masks, 1% syllables.
Random armors will be war hats, plate mail, scale mail, kite shields, cloaks, leather armor, or living armor or barnacle armor. Metallic armors will instead be made of shell.
Random weapons will be spikes, spears, javelins, tridents, elven daggers, or ranseurs. Weapons will be made of shell, and coated with either poison or acid.
Slime molds will be called "algae mats" or "seaweed."
Fishery
Shopkeeper: Deep one
Stock: 64% Slime mold, 15% Cram rations, 10% Booze, 10% Amulets, 1% Syllables.
Random amulets will be made of gold, making them somewhat heavier than normal.
Slime molds will be called "salted fish", "pickled fish", "fried squid", "baked clams", "live oysters", or "sea cucumbers"
Sand-walker's Shop
Shopkeeper: Selkie/Seal
Stock: 35% random armor, 25% random weapons, 7% tinning kits, 7% stethoscopes, 7% crystal balls, 7% can of grease, 5% syllables, 7% amulet of magical breathing.
Random armors will be elven helm, high elven helm, archaic helm, leather armor, leather armor, archaic plate mail, elven mithril coat, high elven plate, elven cloak, oilskin cloak, cloak of invisibility, buckler, archaic gauntlets, gloves, high elven gauntlets, archaic boots, or elven boots
Random weapons will be spear, pick axe, dwarvish mattock, two handed sword, trident, rapier, long sword, crystal sword, high elven warsword, or elven broadsword. All weapons other than crystal swords will be made of silver. All weapons are sold coated in acid.
Spa
Shopkeeper: Oceanid
Stock: 22% potion of object detection, 22% mirrors, 15% towels, 40% random armor, 1% syllables.
Random armor will be elven toga, gentleman's suit, gentlewoman's dress, jacket, fedora, stilettos, hawaiian shirt, t-shirt, victorian underwear, or black dress.
Enemy Types
66.6% fog clouds, 16.6% piranha, 11.1% sea monsters, 2.7% Coure Eladrin, 2.77% Noviere Eladrin
Portal
The portal to the next level is located in the shallow water outside the walls of Elshava. You can use any portal detection method to find it (including wandering around the shallows until you stumble through it) or you can pay one of the shopkeepers to reveal it. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 18:02, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
m 08:36 Price identificationβ (diff | hist) . . (+3)β . . Umbire the Phantom (talk | contribs) (ββGruntHack: word choice) |
# File:Pyramidal amulet.png
File
File history
File usageNo higher resolution available.
Pyramidal_amulet.png β(16 Γ 16 pixels, file size: 216 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'pyramidal amulet'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current12:01, 1 August 200616 Γ 16 (216 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'pyramidal amulet'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 13 pages uses this file:
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# Source diving
Source diving is the action of examining the source code of NetHack. A person who practices source diving is called a source diver. The source code is freely available for anyone, unlike in most commercial programs.
Source diving is usually done when someone wants to know how something really works in the game. Source divers may also program their own patches to the game. Some people may just want to look for easter eggs or interesting comments in the source.
Grep, GEMA, AWK, and Doxygen are useful tools when source diving.
Contents
1 Tips
1.1 Function definitions
1.2 Message sources
2 See also
Tips
Function definitions
Most function declarations are in extern.h, sorted by the .c file they're defined in. If you're looking for a function's definition, you can search for the function name in extern.h, then scroll up to the comment giving the file name. Note that some things that look like functions, such as resists_fire(mon), are actually preprocessor macros; most of those are defined in other header files such as youprop.h or mondata.h.
Message sources
You can look up printed messages in the code to get an idea of what governs certain output. However, many messages are constructed using macros and/or string substitution. For example, when trying to mount your steed, you may get the message:
You are unable to swing your leg over.
You won't find this exact message anywhere in the source code, because the line that produces it reads: You("are unable to swing your %s over.", body_part(LEG)). The macro You() prints a message beginning with the word "You"; there are similar macros for messages starting with "Your", "You hear", and "You feel". The "%s" in the message is replaced with the result of the next argument, body_part(LEG), which resolves to a string describing the leg-analogue of your current polyself, if any. In this case, one way to search for the message would be "unable to swing your %s over". In general, if any word or words in a message can vary, replace them with %s in a search; if a number varies, replace it with %ld. (Alternatively, trim to "unable to swing your", if your search mechanism may not cooperate with %s or %ld as part of a search.)
See also
Beginner's guide to NetHack sources -- note that the .des level file format described here has been replaced with LUA in current versions. |
# File:Sir Lorimar.png
File
File history
File usage
MetadataNo higher resolution available.
Sir_Lorimar.png β(16 Γ 16 pixels, file size: 1 KB, MIME type: image/png)
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current13:18, 2 July 201516 Γ 16 (1 KB)Kahran042 (talk | contribs)
You cannot overwrite this file.
File usage
The following page uses this file:
Sir Lorimar
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Horizontal resolution28.35 dpcVertical resolution28.35 dpc |
# Orc (SLASH'EM)
SLASH'EM adds several new types of orcs. While they all have more hit dice and speed than their vanilla counterparts, they have few special abilities.
Contents
1 War orc
2 Great orc
3 Snow orc
4 Demon orc
5 Grund the Orc King
War orc
o war orc
Difficulty
8
Attacks
Weapon 2d8
o war orc
Difficulty
8
Attacks
Weapon 2d8
Base level
6
Base experience
78
Speed
7
Base AC
10
Base MR
0
Alignment
-4 (chaotic)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
1300
Nutritional value
300
Size
Medium
Resistances
None
Resistances conveyed
None
A war orc:
has a head, a couple of arms, and a torso.
is omnivorous.
is an orc.
is strong.
likes gold.
likes gems.
can pick up weapons and food.
has infravision.
can be seen through infravision.
appears only in Gehennom.
normally appears in large groups.
may turn against you when tame.
Reference
SLASH'EM_0.0.7E7F2/monst.c#line1199
A war orc can only be generated in Gehennom or in Grund's stronghold, and also replace dwarf kings in the Gnomish Mines if the PC is a dwarf. It is the weakest of the new orcs, and has no particularly striking features. It is unlikely to be a threat, even if encountered in Grund's stronghold.
Great orc
o great orc
Difficulty
11
Attacks
Weapon 2d8
o great orc
Difficulty
11
Attacks
Weapon 2d8
Base level
9
Base experience
191
Speed
7
Base AC
10
Base MR
10
Alignment
-4 (chaotic)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
1300
Nutritional value
300
Size
Medium
Resistances
None
Resistances conveyed
None
A great orc:
has a head, a couple of arms, and a torso.
is omnivorous.
is an orc.
is strong.
likes gold.
likes gems.
can pick up weapons and food.
has infravision.
can be seen through infravision.
appears only in Gehennom.
normally appears in large groups.
may turn against you when tame.
Reference
SLASH'EM_0.0.7E7F2/monst.c#line1206
A great orc can only be generated in Gehennom or in Grund's stronghold. While they have a fairly large amount of hit dice, they lack any special abilities and have only a modest melee attack.
Snow orc
o snow orc
Difficulty
11
Attacks
Weapon 2d8
o snow orc
Difficulty
11
Attacks
Weapon 2d8
Base level
9
Base experience
191
Speed
12
Base AC
10
Base MR
10
Alignment
-9 (chaotic)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
1300
Nutritional value
300
Size
Medium
Resistances
cold
Resistances conveyed
cold (60%)
A snow orc:
has a head, a couple of arms, and a torso.
is omnivorous.
is an orc.
is strong.
likes gold.
likes gems.
can pick up weapons and food.
has infravision.
can be seen through infravision.
does not appear in Gehennom.
normally appears in large groups.
may turn against you when tame.
Reference
SLASH'EM_0.0.7E7F2/monst.c#line1222
Snow orcs are occasionally found in the middle dungeon or Grund's stronghold. They can be be a modest threat due to their appearing in large groups and using weapons, although a player with speed can avoid them. They are cold resistant, and their corpses have a good chance of conveying that intrinsic. They do not have any other special abilities, however: their attacks are not cold-branded.
Demon orc
o demon orc
Difficulty
14
Attacks
Weapon 3d6
o demon orc
Difficulty
14
Attacks
Weapon 3d6
Base level
12
Base experience
272
Speed
12
Base AC
10
Base MR
10
Alignment
-9 (chaotic)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
1300
Nutritional value
300
Size
Medium
Resistances
fire
Resistances conveyed
fire (80%)
A demon orc:
has a head, a couple of arms, and a torso.
is omnivorous.
is an orc.
is normally generated hostile.
is strong.
likes gold.
likes gems.
can pick up weapons and food.
has infravision.
can be seen through infravision.
appears only in Gehennom.
normally appears in large groups.
may turn against you when tame.
Reference
SLASH'EM_0.0.7E7F2/monst.c#line1230
Demon orcs can only be generated in Gehennom or in Grund's stronghold. They have a high chance of granting fire resistance, and resist fire. By the time one sees them, they are unlikely to be a threat, although early travelers to Grund's stronghold might wish to be cautious.
Grund the Orc King
Main article: Grund the Orc King
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:30, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
m 16:09
EvilHackββ (3 changes | history)
. .
(+1,958)β . .
[K2β (3Γ)]
m
16:09
(cur | prev) . . (+1,831)β . . K2 (talk | contribs) (ββShields: details)
m
15:42
(cur | prev) . . (+113)β . . K2 (talk | contribs) (ββGame mechanics: placeholder for new skills)
m
15:15
(cur | prev) . . (+14)β . . K2 (talk | contribs) (ββAir: more wording)
23 July 2023
08:36 EvilHackβ (diff | hist) . . (-82)β . . Umbire the Phantom (talk | contribs) (pass for word choice and rephrasing)
21 July 2023
14:30
EvilHackββ (3 changes | history)
. .
(+1,487)β . .
[K2β (3Γ)]
m
14:30
(cur | prev) . . (+17)β . . K2 (talk | contribs) (ββMajor changes: convicts and thievery)
14:17
(cur | prev) . . (+1,444)β . . K2 (talk | contribs) (ββGame mechanics: open air)
m
13:42
(cur | prev) . . (+26)β . . K2 (talk | contribs) (ββGame mechanics: move artifact twoweaponing behavior under 'twoweaponing' section)
18 July 2023
m 04:53 EvilHackβ (diff | hist) . . (0)β . . K2 (talk | contribs) (build date) |
# Boulder fort
In NetHack, a boulder fort refers to the strategic placement of boulders to control the generation or movement of monsters around you, taking advantage of the fact that few monsters can move onto boulders.
Strategy
A basic use of a boulder fort is as a protection or escape tactic. You can read a blessed scroll of earth if an arch-lich is summoning too many monsters, or you can take out difficult monsters such as quest nemeses from behind a strategic boulder fort on the stairs up.
You can trap a temple priest in a boulder fort in order to convert the altar without interference.
Boulder forts are useful for extinctionism or farming, because they can force monsters to be created on (and able to attack you from) a certain spot, such as an altar. The keystroke sequence necessary for mass monster slaying becomes rather simple and less error-prone in a fort.
.....
.000.
.0_0.
.0@0.
.000.
.....
Boulder forts are vulnerable to hostile monsters zapping wands of striking at you from outside and smashing the boulders. Ghosts, giants, and xorns can also move onto squares containing boulders. However, monsters cannot occupy the same square as one another, so for better security, some players opt for a boulder-jelly fort: a fort where the boulders sit on top of blue jellies (or other sessile monsters), which never move. This is still not foolproof, but it is pretty solid. For maximum (but still not foolproof) security, you may want to make a boulder-jelly fort where each jelly is sitting on a scroll of scare monster.
External links
Can confused monsters attack my boulder+jelly fort?
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.1. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-361}} tag to the current version's tag or {{noversion}} as appropriate. |
# Talk:Iron golem
All golems that are created by polypiling (iron, paper, others) probably should have this mentioned. Maybe there should be a golem list page?
There is a golem page. --MadDawg2552 01:11, 23 January 2007 (UTC) |
# Spellbook of magic missile
spellbook of + β magic missile β
Appearance
random
Abundance
4.58%
Base price
200 zm
Weight
50
Turns to read
2
Ink to write
10β19
Spell type
attack
Level
2
Power cost
10 Pw
Direction
ray
Equivalent
wand of magic missile
Special for
wizard
In NetHack, a spellbook of magic missile allows you to learn the spell of magic missile. It is the special spell for Wizards.
Contents
1 Effects
2 Strategy
3 FIQHack
4 Origin
Effects
The magic missile ray does ((xplev/2)+1)d6 damage + spell damage bonus, so higher-level spellcasters can deal significant damage with this spell. A level 30 character deals 16d6 damage with magic missile, averaging 56 damage per hit. This spell's damage is doubled for Knights by carrying the Magic Mirror of Merlin.
Strategy
If your character can only learn one attack spell, it should almost certainly be magic missile. Because the damage scales with experience level, magic missile remains viable and useful throughout the entire game. And because the spell is only level 2, almost any character with some spellcasting ability can cast it effectively; roles such as priest, monk, and wizard will find it especially useful as an all-purpose ranged attack, but others like archeologists, healers, and knights may find it helpful as a backup as well, especially against monsters that might damage weapons (e.g., disenchanters) or when it's desirable to simultaneously damage a whole row of monsters. Advanced Wizards armed with the Eye of the Aethiopica can rely on magic missile as their primary attack.
For low-level Wizards, the force bolt spell they start with is usually a more efficient use of power than magic missile in the early game: force bolt costs 5 Pw and does 2d12 damage, while magic missile does slightly more damage starting at experience level 6 (doubled if hitting twice), but costs 10 Pw points. On the other hand, magic missile can still be useful in the early game in certain situations: it won't break fragile items and destroy boulders and doors, and it doesn't suffer from force bolt's fixed chance to hit, which can be an issue when encountering monsters with low AC. Wizards also get a bonus toward their success rate with magic missile since it is their special spell, so early-game wizards may be able to wear metal armor and still get an acceptably low failure rate with magic missile.
As with most ray-based spells and wands, this spell can be used to kill enemies behind boulders without breaking the boulder, making it invaluable in Sokoban. The ray can also be rebounded using walls to hit targets repeatedly.
FIQHack
In FIQHack magic missile does less damage at skill levels less than Expert (compared to vanilla). At Skilled level magic missile can partially bypass reflection. At Expert level magic missile can partially bypass magic resistance (MR only halves damage).
Origin
The canonical D&D spell of Magic Missile was a stereotypically puny level one wizard spell that quickly became a staple of the wizard class, as it was effectively a homing attack with each bullet doing its own damage roll, which can easily rack up significant damage short of the target having magic resistance. In NetHack, the spell of magic missile retains this scaling ability and removes the cap of five missiles at level nine, though they can miss the target. |
# Charge saber
Charge Saber is a technique in SlashTHEM. Jedi can use this technique at level 5.
Using this skill they can recharge their lightsaber for power*((technique_level/10)+1) turns and needs at least 5PW. If they are at least technique level 10, they have a 20% chance of channeling the force perfectly into the saber, thus giving it an additional 1500 turns. In order for the technique to succeed, the Jedi must remain uninterrupted for 10 turns. Regardless if it succeeded or not, this technique is reusable after 500 turns.
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# Forum:+6 DSM?
< Forum:Watercooler
Converting dragon scales into dragon scale mail with a blessed scroll of enchant armor increases the enchantment of the resulting armor by 1. Does that increase come with the regular chance of evaporating a set that is already at +5, or is it a special case that allows you to get a guaranteed +6 suit of armor?
Fyr (talk) 08:39, 29 April 2013 (UTC)
"Does that increase come with the regular chance of evaporating a set that is already at +5" yes. BTW, it is trivial to test it in Wizard mode Bulwersator (talk) 11:20, 29 April 2013 (UTC) |
# Sheol.txt
Sheol.txt is a document written by the author of the Sheol branch.
Sheol - The icy cold netherworld.
(c) 2012 Mikko Juola
Sheol is a branch in Gehennom that features more danger and less
tediousness.
---------------------------------------------------------------------
It adds:
- Ice walls and crystal ice walls
They act like normal walls but can be melted with a wand
of fire. Crystal ice walls are immune to everything except
fire and crystal picks. Ice walls can be shattered with
a mattock or a pick-axe but wands of digging don't work
on them.
- Ice traps
Like fire traps but ice you instead. Protect your potions!
- New monsters:
Crystal ice golem, ice golem, black angel, chillbug, Punisher,
white naga and the Executioner. Many of these have abilities
not seen in vanilla. Some are highly dangerous!
- New items:
crystal pick
It can dig crystal ice walls and has high damage.
- New levels:
Sheol has a new map generator and some hand-made levels.
Vlad has been put inside Sheol. It will be found somewhere below or at
the middle level of Sheol.
---------------------------------------------------------------------
This branch is aimed at experienced players who think Gehennom is too
easy or too tedious. It provides a refreshing change to all those
mazes. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 18:00, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
m 08:36 Price identificationβ (diff | hist) . . (+3)β . . Umbire the Phantom (talk | contribs) (ββGruntHack: word choice) |
# File:Black naga.png
File
File history
File usageNo higher resolution available.
Black_naga.png β(16 Γ 16 pixels, file size: 216 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the monster 'black naga'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current09:31, 1 August 200616 Γ 16 (216 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the monster 'black naga'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 17 pages uses this file:
Acid
List of vanilla NetHack tiles
Monster
Monsters (by size)
Naga
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# File:Samurai.png
File
File history
File usageNo higher resolution available.
Samurai.png β(16 Γ 16 pixels, file size: 217 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the monster 'samurai'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current10:40, 1 August 200616 Γ 16 (217 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the monster 'samurai'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 16 pages uses this file:
List of vanilla NetHack tiles
Monster
Monsters (by size)
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0
Samurai (player monster) |
# User:Chris/dNetHack/Cartouche of the Cat Lord
Contents
1 Strokes to draw
2 Warded monsters
3 Maximum reinforcement
4 Secondary effects
5 How to learn
Strokes to draw
The Cartouche is reinforced by adding additional hieroglyphs to the name. As such, the number of strokes required is much more highly variable. However, since all hieroglyphs require less than 10 strokes, this is only important if you use a slow engraving method.
7
5
6
7
5
4
7
Warded monsters
birds, bats, r, s, S, ;, :
Maximum reinforcement
7-fold
Secondary effects
Hostile fs that see this ward become peaceful and are returned to full health.
Grants drain resistance when reinforced 4-fold ('five-hieroglyph partial cartouche')
Grants sickness resistance when reinforced 7-fold ('nine-hieroglyph completed cartouche')
Becomes inactive if all domestic felines are exterminated (by genocide or by killing at least 120 individuals).
How to learn
Found in spellbooks of third level and above.
Found on 1/24 magic rings with a useful engraving. |
# File:King cobra.png
File
File history
File usageNo higher resolution available.
King_cobra.png β(16 Γ 16 pixels, file size: 372 bytes, MIME type: image/png)
A 16x16 SLASH'EM monster tile.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current16:19, 26 November 201016 Γ 16 (372 bytes)Paxedbot (talk | contribs)A 16x16 SLASH'EM monster tile. Category:16x16 tilesCategory:SLASH'EM monsters
You cannot overwrite this file.
File usage
The following page uses this file:
King cobra |
# Golem (dNetHack)
The variant dNetHack introduces several new golems.
Some of these golems, along with existing ones, are likely to be found early in the Neutrality Quest branch, around the golem level Sum of All.
Contents
1 New golems
1.1 Living lectern
1.2 Spell golem
1.3 Treasury golem
1.4 Argentum golem
1.5 Retriever
2 Unique golems
3 Changes to existing golems
New golems
Living lectern
' living lectern File:Living lectern.png
Difficulty
10
Attacks
Claw 3d4 physical, Claw 3d4 physical, Magic 0d4 magic missiles
' living lectern File:Living lectern.png
Difficulty
10
Attacks
Claw 3d4 physical, Claw 3d4 physical, Magic 0d4 magic missiles
Base level
7
Base experience
114
Speed
6
Base AC
2
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
900
Nutritional value
0
Size
large
Resistances
sleep, poison
Resistances conveyed
A living lecturn:
can survive underwater.
does not breathe.
is mindless.
has a head, a couple of arms, and a torso.
has a thick hide.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
never leaves a corpse.
resists death magic.
cannot be tamed.
does not naturally regenerate HP.
A living lectern is an animated spellbook on a wooden stand. When destroyed, it drops 2d3 clubs and a random spellbook.
Although the identity of the spellbook is randomized, the living lectern always uses the same magical attack: magic missiles.
One living lectern is guaranteed to appear in a ruined library at the top of the Lost Cities segment of the Neutrality Quest. There is a 25% chance of a second appearing there as well. In addition, 1d4 living lecterns are placed in waterlogged libraries.
Spell golem
' spell golem
Difficulty
12
Attacks
Claw 1d10 physical, Cast 0d0 mage spell
' spell golem
Difficulty
12
Attacks
Claw 1d10 physical, Cast 0d0 mage spell
Base level
10
Base experience
221
Speed
12
Base AC
5
Base MR
90
Alignment
0 (neutral)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
400
Nutritional value
0
Size
large
Resistances
sleep, poison
Resistances conveyed
A spell golem:
can survive underwater.
does not breathe.
is mindless.
has a head, a couple of arms, and a torso.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
appears only in Gehennom.
never leaves a corpse.
resists death magic.
cannot be tamed.
does not naturally regenerate HP.
A spell golem may be thought of as a paper golem with writing on it. When destroyed, it drops 1-8 random scrolls.
Spell golems are able to cast spells.
Treasury golem
' treasury golem
Difficulty
16
Attacks
Claw 2d6 physical, Claw 2d6 physical, Breath weapon 4d6 poison (strength)
' treasury golem
Difficulty
16
Attacks
Claw 2d6 physical, Claw 2d6 physical, Breath weapon 4d6 poison (strength)
Base level
12
Base experience
301
Speed
9
Base AC
0
Base MR
100
Alignment
9 (lawful)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
450
Nutritional value
0
Size
large
Resistances
sleep, poison, acid
Resistances conveyed
A treasury golem:
can survive underwater.
does not breathe.
is mindless.
has a head, a couple of arms, and a torso.
has a thick hide.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
likes gold.
likes gems.
can pick up magical items.
never leaves a corpse.
resists death magic.
cannot be tamed.
does not naturally regenerate HP.
A treasury golem may be thought of as a more advanced gold golem that contains precious stones as well.
When destroyed, a treasury golem drops 2d4 random gems and a Luck-dependent amount of gold (up to 400, twice the maximum for a gold golem).
Treasury golems have a poisonous breath attack.
A large number of treasury golems are found in the treasure rooms in Nessus.
Argentum golem
' argentum golem
Difficulty
21
Attacks
Weapon 4d8 physical, Arrow 4d1 silver
' argentum golem
Difficulty
21
Attacks
Weapon 4d8 physical, Arrow 4d1 silver
Base level
18
Base experience
509
Speed
9
Base AC
6
Base MR
100
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
1000
Nutritional value
0
Size
large
Resistances
fire, cold, sleep, shock, poison
Resistances conveyed
An argentum golem:
can survive underwater.
does not breathe.
is mindless.
has a head, a couple of arms, and a torso.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is normally generated hostile.
is strong.
can pick up weapons and food.
waits for you to come.
never leaves a corpse.
resists death magic.
cannot be tamed.
does not naturally regenerate HP.
Argentum golems are rare silver golems. (Argentum = the metal silver, or something made of silver.)
When destroyed, argentum golems drop 1d3 stacks of 5d10 silver slingstones. In addition, they are generated with a silver dagger, which has a 1-in-6 chance of being replaced with a silver saber, and a large stack of silver arrows, which they will fire in volleys. Any silver arrows fired in this manner are destroyed.
Like iron golems, argentum golems are slowed by lightning and healed by fire attacks.
Eight argentum golems appear in the Sum of All level of the Neutrality Quest.
To paraphrase a particularly wise prime, the rilmani are an
enigma cloaked in a riddle, wrapped in a mystery. Who can
question their motives or their actions? They keep their own
counsel. They're sworn never to come when called, but always
to be there when needed; never to answer questions put to
them, but always to provide what information is necessary; to
aid and abet good, evil, law, and chaos alike in order to maintain
the Balance, regardless of the cost or repercussions.
[ Planescape Monstrous Compendium II, by Rich Baker ]
Retriever
Wikipedia has an article about:
Retriever (Dungeons & Dragons)
' retriever
Difficulty
25
Attacks
Claw 2d8 physical, Claw 2d8 Amulet theft, Gaze attack 4d8 random elemental gaze, Claw 1d8 abduction
' retriever
Difficulty
25
Attacks
Claw 2d8 physical, Claw 2d8 Amulet theft, Gaze attack 4d8 random elemental gaze, Claw 1d8 abduction
Base level
20
Base experience
628
Speed
10
Base AC
-10
Base MR
80
Alignment
-6 (chaotic)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
2000
Nutritional value
0
Size
large
Resistances
fire, cold, sleep, shock, poison, petrification
Resistances conveyed
A retriever:
can survive underwater.
does not breathe.
is mindless.
has a head, a couple of arms, and a torso.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is normally generated hostile.
is strong.
can pick up weapons and food.
wants the Amulet of Yendor.
wants your quest artifact.
wants the Amulet of Yendor, the Bell of Opening, the Book of the Dead, the Candelabrum of Invocation, and your quest artifact.
appears only in Gehennom.
never leaves a corpse.
resists death magic.
may turn against you when tame.
does not naturally regenerate HP.
Unique golems
There are some unique golems and similar monsters in dNetHack:
Arsenal, guardian of the Second Key of Law
The ford guardian, which is a type of golem found only on the Mordor chaos variant's ford level.
Warmachine, found on Tiamat, the Fiend of Wind's level, is not actually a unique golem but instead a named retriever.
The Center of All, which was a golem in previous versions, is now a rilmani instead.
Changes to existing golems
Straw golems drop sheaves of hay when destroyed (as in the biodiversity patch and NetHack brass).
Iron golems may drop iron bars in addition to iron chains. They are generated with lances, war hammers, or glaives. |
# User talk:Luigifan18
Welcome!
Welcome!
Hi, Luigifan18! Welcome, and thanks for joining NetHackWiki!
The How to help and Style guide pages are excellent starting points.
Special:Recentchanges is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask at the Community Portal, the forum, or on the discussion page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.
You can put {{NAOplayer|NAO player account}} on your user page to link to your NAO player account. Capitalization matters.
We are really happy to have you here, and look forward to working with you!
This is an automated greeting.
-- New user message (talk) 03:19, 8 November 2016 (UTC) |
# Category:Monster symbols
List of monster symbols, usable with {{Monsym}}.
Pages in category "Monster symbols"
The following 200 pages are in this category, out of 834 total.
(previous page) (next page)A
Template:Monsym/abbot
Template:Monsym/acid blob
Template:Monsym/acid worm
Template:Monsym/acolyte
Template:Monsym/aglaope
Template:Monsym/air elemental
Template:Monsym/Aleax
Template:Monsym/aleax
Template:Monsym/aligned priest
Template:Monsym/amphitere
Template:Monsym/Angel
Template:Monsym/angel
Template:Monsym/anti-matter vortex
Template:Monsym/ape
Template:Monsym/Aphrodite
Template:Monsym/aphrodite
Template:Monsym/apollyon
Template:Monsym/apprentice
Template:Monsym/arc bug
Template:Monsym/Arch Priest
Template:Monsym/arch priest
Template:Monsym/arch-lich
Template:Monsym/arch-lich (UnNetHack)
Template:Monsym/archeologist
Template:Monsym/archeologist (player monster)
Template:Monsym/Archnemesis
Template:Monsym/archnemesis
Template:Monsym/Archon
Template:Monsym/archon
Template:Monsym/arsenal
Template:Monsym/Ashikaga Takauji
Template:Monsym/ashikaga takauji
Template:Monsym/Asmodeus
Template:Monsym/asmodeus
Template:Monsym/asphynx
Template:Monsym/assassin bug
Template:Monsym/astral deva
Template:Monsym/athol
Template:Monsym/attendant
Template:Monsym/auror
Template:Monsym/axusB
Template:Monsym/Baalzebub
Template:Monsym/baalzebub
Template:Monsym/babau
Template:Monsym/baby amphitere
Template:Monsym/baby black dragon
Template:Monsym/baby blue dragon
Template:Monsym/baby crocodile
Template:Monsym/baby deep dragon
Template:Monsym/baby draken
Template:Monsym/baby glowing dragon
Template:Monsym/baby gold dragon
Template:Monsym/baby gray dragon
Template:Monsym/baby green dragon
Template:Monsym/baby guivre
Template:Monsym/baby leviathan
Template:Monsym/baby lindworm
Template:Monsym/baby long worm
Template:Monsym/baby orange dragon
Template:Monsym/baby purple worm
Template:Monsym/baby red dragon
Template:Monsym/baby sarkany
Template:Monsym/baby shimmering dragon
Template:Monsym/baby shimmering dragon (SLASH'EM)
Template:Monsym/baby shimmering dragon (slash'em)
Template:Monsym/baby silver dragon
Template:Monsym/baby sirrush
Template:Monsym/baby tatzelworm
Template:Monsym/baby white dragon
Template:Monsym/baby wyvern
Template:Monsym/baby yellow dragon
Template:Monsym/bad egg
Template:Monsym/balrog
Template:Monsym/baluchitherium
Template:Monsym/bar-lgura
Template:Monsym/barbarian
Template:Monsym/barbarian (player monster)
Template:Monsym/barbed devil
Template:Monsym/barking spider
Template:Monsym/barrow wight
Template:Monsym/basilisk
Template:Monsym/bat
Template:Monsym/bearded devil
Template:Monsym/beholder
Template:Monsym/Beholder (SLASH'EM)
Template:Monsym/beholder (slash'em)
Template:Monsym/black dragon
Template:Monsym/black light
Template:Monsym/black marketeer
Template:Monsym/black marketeer (SLASH'EM)
Template:Monsym/black marketeer (UnNetHack)
Template:Monsym/black mold
Template:Monsym/black naga
Template:Monsym/black naga hatchling
Template:Monsym/black pudding
Template:Monsym/black rat
Template:Monsym/black troll
Template:Monsym/black unicorn
Template:Monsym/black wasp
Template:Monsym/blinking eye
Template:Monsym/blood imp
Template:Monsym/bloodshot eye
Template:Monsym/bloodworm
Template:Monsym/blue dragon
Template:Monsym/blue jelly
Template:Monsym/blue slime
Template:Monsym/bone devil
Template:Monsym/brown mold
Template:Monsym/brown pudding
Template:Monsym/brownie
Template:Monsym/bugbear
Template:Monsym/bull
Template:Monsym/burbling blob
Template:Monsym/byakheeC
Template:Monsym/captain
Template:Monsym/carmilla
Template:Monsym/carnivorous ape
Template:Monsym/carrion crawler
Template:Monsym/caterwaul
Template:Monsym/catoblepas
Template:Monsym/cave spider
Template:Monsym/caveman
Template:Monsym/caveman (player monster)
Template:Monsym/cavewoman
Template:Monsym/cavewoman (player monster)
Template:Monsym/centipede
Template:Monsym/Cerberus
Template:Monsym/cerberus
Template:Monsym/chameleon
Template:Monsym/Charon
Template:Monsym/charon
Template:Monsym/chasme
Template:Monsym/chickatrice
Template:Monsym/chicken
Template:Monsym/Chief Yeoman Warder
Template:Monsym/chief yeoman warder
Template:Monsym/chieftain
Template:Monsym/chillbug
Template:Monsym/Chromatic Dragon
Template:Monsym/chromatic dragon
Template:Monsym/chromatic dragon (unnethack)
Template:Monsym/clay golem
Template:Monsym/clear jelly
Template:Monsym/cobra
Template:Monsym/cockatoo
Template:Monsym/cockatrice
Template:Monsym/Colonel Blood
Template:Monsym/colonel blood
Template:Monsym/convict (monster)
Template:Monsym/convict (player monster)
Template:Monsym/couatl
Template:Monsym/Count Dracula
Template:Monsym/count dracula
Template:Monsym/cow
Template:Monsym/coyote
Template:Monsym/crocodile
Template:Monsym/Croesus
Template:Monsym/croesus
Template:Monsym/crystal golem
Template:Monsym/crystal ice golem
Template:Monsym/Cthulhu
Template:Monsym/cthulhu
Template:Monsym/Cthulhu (SLASH'EM)
Template:Monsym/Cthulhu (UnNetHack)
Template:Monsym/Cyclops
Template:Monsym/cyclopsD
Template:Monsym/dark angel
Template:Monsym/Dark Lord
Template:Monsym/dark lord
Template:Monsym/Dark One
Template:Monsym/dark one
Template:Monsym/Death
Template:Monsym/death
Template:Monsym/Death (monster)
Template:Monsym/death (monster)
Template:Monsym/death dog
Template:Monsym/deep dragon
Template:Monsym/deep gnome
Template:Monsym/deep one
Template:Monsym/deep orc
Template:Monsym/deeper one
Template:Monsym/deepest one
Template:Monsym/demilich
Template:Monsym/Demogorgon
Template:Monsym/demogorgon
Template:Monsym/demon orc
Template:Monsym/devteam member
Template:Monsym/diamond golem
Template:Monsym/dingo
Template:Monsym/dingo puppy
Template:Monsym/disenchanter
Template:Monsym/disgusting mold
Template:Monsym/disintegrator
Template:Monsym/Dispater
Template:Monsym/dispater
Template:Monsym/displacer beast
Template:Monsym/djinni
Template:Monsym/Doctor Frankenstein
Template:Monsym/doctor frankenstein
Template:Monsym/dog(previous page) (next page) |
# User talk:85.148.180.156
Welcome!
Welcome!
Hi! Welcome, and thanks for contributing to NetHackWiki!
Please sign in, if you haven't already, and create a user name! It's free, and it'll help you keep track of all your edits.
The How to help and Style guide pages are excellent starting points.
Recent changes is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask at the Community Portal or on the discussion page associated with each article!
I'm really happy to have you here, and look forward to working with you! βZeroOne (talk / @) 21:58, 13 February 2009 (UTC)
This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical IP address to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please create an account or log in to avoid future confusion with other anonymous users.
[WHOIS β’ RDNS β’ RBLs β’ Traceroute β’ TOR check] Β· [RIRs: America Β· Europe Β· Africa Β· Asia-Pacific Β· Latin America/Caribbean] |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:55, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
16:45
Hack'EMββ (3 changes | history)
. .
(+4,049)β . .
[Hackemslashemβ (3Γ)]
16:45
(cur | prev) . . (+78)β . . Hackemslashem (talk | contribs) (ββTrap Mechanics: Poly trap disappearing)
16:36
(cur | prev) . . (+26)β . . Hackemslashem (talk | contribs) (ββNew artifacts: Storm Whistle update)
15:08
(cur | prev) . . (+3,945)β . . Hackemslashem (talk | contribs) (Updates in preparation for 1.2)
22 July 2023
23:38 Wishβ (diff | hist) . . (+547)β . . Umbire the Phantom (talk | contribs) (ββGruntHack: copyedit + add some IRC recommendations)
20 July 2023
15:39 Trap doorβ (diff | hist) . . (+11)β . . Coz (talk | contribs) (Added links to wand of locking and spell of wizard lock)
19 July 2023
20:21 Hack'EMβ (diff | hist) . . (+92)β . . Ardub23 (talk | contribs) (Fixed changelog link, and commented out Grandmaster's Robe as it's not yet implemented)
18 July 2023
06:14 Scroll of genocideβ (diff | hist) . . (+415)β . . Ardub23 (talk | contribs) (ββVariants: Hack'EM info) |
# Prince
Prince may refer to the following:
The demon princes
The M2_PRINCE flag possessed by demon princes, along with several other monsters
This is a disambiguation page: a list of articles associated with the same title. |
# Talk:Player
Anyone know of a good widely-supported sans-serif monospace font for the monospaced table? It looks good in FF, but in chrome it defaults to something ugly, probably Courier.
Thefifthsetpin 17:57, March 21, 2010 (UTC)
In Linux, setting -D as "wizard" does not put you in debug
First off, sorry for the long section name. I couldn't think of anything else. Anyway, creating profile "wizard" and running nethack -D says
"[greeting] wizard, welcome to nethack! You are a [alignment] [gender] [race] [role]. --More--"
"Only user "root" may access debug (wizard) mode. --More--"
"Entering discovery mode instead."
This happens to me in Linux Mint 18.2.1, running nethack-x11. Is this a code problem, or just incorrect info? Pyro9224 (talk) 13:51, 9 September 2017 (UTC)
On Linux, I think you have to edit the WIZARDS option in sysconf. On my install, it defaults to "WIZARDS=root games", and since I don't run a multi-user system I change it to "WIZARDS=*" to allow any user to run as wizard with -D. This automatically changes my player name to "wizard" even though the process is running under my normal username. --Phol ende wodan (talk) 23:31, 9 September 2017 (UTC)
Where is sysconf? I searched for it in file system and couldn't find anything (mostly due to ridicoulous amounts of "sysconfig.py" files), and even .nethackrc wasn't where it was supposed to be. (For the record, it's etc/nethack/nethackrc.{x11|tty|console}. Pyro9224 (talk) 11:47, 12 September 2017 (UTC)
Maybe try to locate the "nethackdir" directory - it could be under /usr or /usr/games or /etc, I think that depends on the distro and possibly the windowport. But the nethackdir directory should contain the sysconf file. --Phol ende wodan (talk) 12:35, 12 September 2017 (UTC)
It's not in any of those places, and worse, I searched it and found... NOTHING NAMED nethackdir. This is driving me nuts now. Pyro9224 (talk) 23:16, 12 September 2017 (UTC) |
# Drow quest
The Drow quest saw you fighting Earendil for The Tentacle Staff. For more information on the quest branch in general, see the quest article.
Home level
The Temple of Lolth
Locate level
The great Circle of Earendil
Goal level
The Castle of Earendil
Leader
Lolth
Guardians
drow
Nemesis
Earendil
Quest Artifact
The Tentacle Staff
Contents
1 Levels
1.1 The Temple of Lolth
1.2 Upper filler level
1.3 The great circle of Earendil
1.4 Lower filler level(s)
1.5 The Castle of Earendil
2 Messages
2.1 Entry
2.2 Quest guardians
2.3 Quest leader
2.3.1 Encouragement
2.4 Locate and goal levels
2.5 Quest nemesis
2.5.1 Discouragement
2.6 Victory
2.7 Post-quest
Levels
Random monsters on this Quest are generated with the following frequencies:
96/175 (55%) High-elf
24/175 (14%) random d
24/175 (14%) Grey-elf
6/175 (3%) random @
1/7 (14%) normal random monster
The Temple of Lolth
..............^..................... . ........................................................................ ... ........................................................................ . ........................................................................ @@@ .......................................................................@ . @..................................................................}}}}}}}^}}}}}}}...........................................................}}}|----...----|}}}........................................................}}|--...........--|}}................................................ . . . }|-...............-|} . . . ........................................ . . . @}|.......@@@.......|}@ . . . ..............................................@.^.......@s@.......^.@.............................................. . . . @}|.......@@@.......|}@ . . . ........................................ . . . }|-...............-|} . . . ................................................}}|--...........--|}}........................................................}}}|----...----|}}}...........................................................}}}}}}}^}}}}}}}..................................................................@ . @....................................................................... @@@ ........................................................................ . ........................................................................ ... ....................................
The magic portal is at the marked point. Lolth is at the point marked s, where there is also a chest and a chaotic altar, surrounded by eight drow. The circle is under siege by sixteen Grey-elves. There is a pit at each entrance to the circle, and there are also two random traps on the level.
The entire level is no-teleport, and has undiggable walls.
Upper filler level
This is a cavernous level, with five Grey-elves, a mist wolf, and one random d; seven random objects; and four random traps.
The great circle of Earendil
<. .... ...... .>. ....... .. .. ......S... .......... ..... ........ .... .. .. ... . ......... .. ^ ..... .... .. .. . ..... .. . .. ..... .... . .. .. S .. .. .... S .. .. .... .. .. ..... ... .. .. ........ .. .. ...... ...... ... .. ............ ... ... .... .. .... .... ........................S^...S...... .. ^. .. ... .......@@@@@@........... .. .. .. .. .......@@@@@@........... .. .... .... .. .......@@@@............. .. ...... .. .. ... .................... .. .... .... .. ..... ............ .. .. .. .. .. ... .S ............ .... ... .. .. .............. .... ^........... .... .. ..... ... .. .. .... ..... .. .... .............. ...... .....
The stairs are at the marked positions. The central room contains sixteen Grey-elves, and the marked traps are a pit, a spiked pit, a squeaky board, and a magic trap; the level also has a Grey-elf, seven random d, two random traps, and fifteen random items. The entire level has undiggable walls and floor. Teleportation is permitted. Note that due to the lack of actual walls, magic mapping the level will only show you the location of the down stairs.
Lower filler level(s)
These are cavern levels, with four Grey-elves, two mist wolves, and one random d; eleven random objects; and four random traps.
The Castle of Earendil
... ... .@d...................................................................@d.. ... + ... . ............ ....... . ....... . . ............................. . ........ .........S.. . . ............ . ...... . . . ....... .. . . ......... . .... + . ... . .. . . S . ......... .S. .S............... . . ... . ... . d..@@@... . . . ........ .....S.+.......+...@\@..d+........+. . . ... ... S ...@@@... .. ..... . . .. ......... .. ...... . . ....... ... + .... .... .......... . . .............. .. . ...... .. ............. . . ............. . .......... ...... . @.. + @.. ..d....................................................................d.. ... ...
Earendil, with the Bell of Opening and the Tentacle Staff, occupies the throne, where there is also a chest; surrounding him are eight Grey-elves; there are also two mist wolves in the room. In each of the corner chambers is a Grey-elf and a mist wolf; there are an additional four Grey-elves, two mist wolves, and three random d placed around the level. Each of the Grey-elves in Earendil's room is standing on a random object; there are five further random objects located randomly around the level, as well as six traps.
The entire level has undiggable walls. Teleportation is permitted.
Messages
Entry
First time:
You arrive in frighteningly familiar surroundings. The black walls of the
spider goddess's temple loom in the distance.
Something is wrong, though. Surrounding the circle are pale surface elves!
And they've noticed you!
Next time:
Once again, you stand before the Temple of Lolth.
If already rejected twice due to bad alignment:
You have the oddest feeling that this may be the last time you
are to enter the Temple of Lolth.
Quest guardians
If #chatting before the quest is complete:
"
<playername>! Our queen's summons have not been ignored. Good..."
"Earendil continues to threaten the circle. But we hold fast."
"Lolth is growing weaker. She regularly eats dark elves to maintain her strength!"
"Remember, the great Circle of Earendil is hard to enter. Seek the secret passageways."
"We must regain the Tentacle Staff. Without it we will be overrun."
Quest leader
When you first meet your quest leader:
"<playername>! You have answered the call!
"I have great need of you. But first, I must see if you have learned enough
in your travels."
When you return, having been rejected due to lack of experience:
"Once again, <playername>, you return. Are you ready now?"
This message is not currently used:
"Ah, you are here again, <playername>. Allow me to determine your readiness..."
When you are expelled from the quest for having failed the alignment test
seven times:
"<playername>! You have doomed your race. You fairly radiate lawful influences
and weaken my power as a result!
"Begone! I renounce your <brother|sister>hood with us! You are an outcast now!"
When being rejected due to lack of experience:
"<playername>, you are yet too inexperienced to withstand the demands of that
which we need you to do. An <arandur|aranduriel> might just be able to do this thing.
"Return to us when you have learned more, my <son|daughter>."
When being rejected due to having worse than pious alignment:
"You have strayed, <playername>! You know that I requires strict
obediance (sic) and devotion to all things chaotic!
"You must go from us. Return when you have purified yourself."
When finally assigned the quest:
"You are indeed ready, <playername>. I shall tell you what has transpired,
and what you must do:
"A short time ago, weakling surface elves stole into my temple and
spirited away the Tentacle Staff. With its power gone, my dark elves are
slowly being overrun by the forces of Earendil.
"We have been besieged since shortly after your departure. I do not
know how much longer your race will survive without the Tentacle Staff.
"You, <playername>, must infiltrate the great Circle of Earendil. They have
established an underground stronghold, and there
Earendil guards the Tentacle Staff.
"Recover the Tentacle Staff for us, <playername>! Only then will the dark elves survive."
Encouragement
If you subsequently chat to your quest leader, you are encouraged:
"It is rumored that the surface elves have a pact with the humans."
"Earendil is devious and untrustworthy."
"Use the Tentacle Staff, when you find it. It will help you survive to return."
"Remember, Lolth has no mercy for the weak."
"Call upon Lolth when you face Earendil."
"Earendil has always hated the dark elves."
"I cannot hold the temple much longer, <playername>. Hurry!"
"To infiltrate the great Circle of Earendil, you must be very stealthy."
"Remember that Earendil is a deceitful braggart."
"You can triumph, <playername>, if you trust <deity>."
Locate and goal levels
When first entering the locate level:
You descend into the outer regions of the great Circle of Earendil. You can hear
scuffling sounds in the corridors, and vague mumblings in the distance.
You remember that a drow once told you that there were many secret
passageways in this complex.
When returning:
Once again, you descend into the great Circle of Earendil.
When first entering the goal level:
You descend into a weird place, in which roughly cut cave-like walls
join with smooth, finished ones, as if someone was in the midst of
finishing off the construction of a subterranean complex.
Off in the distance, you hear a sounds of a large, raucous gathering.
When returning:
Once again, you enter the distorted castle of Earendil.
Quest nemesis
When first encountering the quest nemesis:
"So, Drow. Lolth has sent you to recover the Tentacle Staff.
"It is evil, and I will never allow you to possess it!"
Upon further meetings:
"Back again, eh? Well, a <currentrank> is no threat to my faith!"
And on the 4th and subsequent meetings:
"You haven't learned your lesson, Drow. You cannot defeat me."
When you have the Tentacle Staff, but Earendil is still alive:
"I shall have the Tentacle Staff from you, <currentrank>. The dark elves will never reclaim it!"
Discouragement
Earendil will occasionally utter maledictions:
"Your Lolth is nothing, Drow. You are defeated!"
"Run away! You can never hope to defeat Earendil!"
"My Elven soldiers will cut you down!"
"It is never too late to convert one's ways."
"I shall break your Lolth's temple, and destroy all the drows!"
"Lolth has abandoned you, Drow. You are doomed."
"A <currentrank>? Lolth sends a mere <currentrank> against me? She is deperate (sic)..."
"Lolth has failed, Drow. The Tentacle Staff will never leave here."
"You really think you can defeat me, Drow? You are wrong!"
"You weaken, Drow. Flee, or die."
Victory
When picking up your quest artifact:
As you pick up the Tentacle Staff, it seems to glow, and an icy chill
fills you completely. You realize that its power is what has protected
the <brothers|sisters> against their enemies for so long.
You must now return it to Lolth without delay.
When killing the nemesis:
Earendil collapses to the ground, moaning softly.
You have defeated me, <currentrank>! May goodness prevail, despite my
failure...
When returning to your quest leader:
"<playername>! You have succeeded! I feared it was not possible!
"Your aura proclaims that you possess the Tentacle Staff!
Now, if you can recover the Amulet of Yendor, my position will be
secured.
"Take the Tentacle Staff with you. It will aid in your quest for
the Amulet."
Post-quest
When talking to Lolth after the quest:
"Welcome, <playername>. How have you fared on your quest for the Amulet
of Yendor?"
When talking to Lolth after getting the Amulet:
"You have recovered the Amulet of Yendor!
Now attend to me, <playername>, and I will tell you what must be done:
"The Amulet has within it magic, the capability to transport you to
the Astral Plane, where my primary altar resides.
"To activate this magic, you must travel upwards as far as you can.
When you reach the temple, sacrifice the Amulet to <deity>.
"Thus will you fulfill your destiny."
</deity></playername></playername></playername></currentrank></brothers|sisters></currentrank></currentrank></currentrank></currentrank></deity></playername></playername></playername></playername></playername></playername></son|daughter></arandur|aranduriel></playername></brother|sister></playername></playername></playername></playername></playername> |
# File:Plastic golem.png
File
File history
File usageNo higher resolution available.
Plastic_golem.png β(16 Γ 16 pixels, file size: 314 bytes, MIME type: image/png)
A 16x16 tile of the SLASH'EM monster, the plastic golem
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current05:09, 1 January 201016 Γ 16 (314 bytes)Ion frigate (talk | contribs)A 16x16 tile of the SLASH'EM monster, the plastic golem
You cannot overwrite this file.
File usage
The following page uses this file:
Golem (SLASH'EM) |
# Category:External link templates
Pages in category "External link templates"
This category contains only the following page.
B
Template:Bugzilla |
# User:Chris/dNetHack/Branches/Lower Hell
The Lower Hell level is drawn from these candidates:
Contents
1 Leviathan
2 Lilith
3 Baalzebub
4 Mephistopheles and Baalphegor
Leviathan
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}...}}}..}}..}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}...........}...}...}}}}.}}}..}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}.................}....}...}}.}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}............................}}.....}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}...............................}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.}.}......}.........>...............}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}...}....}.......................}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.}}}}}}}....}....}..................}.....}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}}}}....}.....}.....}......}}.....}..}.}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}}}}}.}...}}.}}}....}.........}.}.}}.}}}.}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}}}}...}}}}}}}}.}}..}.}}..}}}}}..}.....}}}.}}}.}}}}..}..}}}}}}}}}}}}}}}}}}..}}}....}}}}}}}}.}}}}}}..}}}}}}....}}}}}}}}}...}.}}.......}}}}}}}}}}}}}}}}..}.........}}}}}.}}}}}}}}}}}}}}}}}.}}}}}}}}}}}.}}}..}........}}}}}}}}}}}}}....... ......}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}}}..........}}}}}}}}}... ...............}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.}}}.}...-.-.--..}}}}}}.. ..... .. .........}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}..}..}|....|..}}}}}. ...... .. . . .....}}}}}}}}}}}}}}}}}}}}}}}}}}}}..}}}...}}.+..}.|..}}}}.. .<. ...... .. ....}}}}}}}}}}}}}}}}}}}}}}}}}}}.}}}......}|.....}.
Lilith
.......................................................... ................................................................ .................................................................. ................................ ++ ................................ ................................ .. ................................ ............................... .. ............................... ............................. ...#..#... ........................................................ .--S#--++--#S--. .................................................. ...#............#... ......................................... #-----S--............--S-----# ............................... |.S.....S............S.....S.| ..................--#-- -----------S----S--............--S----S---------- --#--...... |...S...............|.....#............#....................S...| - - ---S----------------------.|...\\\\\\...|.---------------------S--- - - |.| ------------------ |.| - .. .. - - - - .. - ..
Baalzebub
----- -------------------- |...|.. .............. |.......|.....|....| |..........---------- |...|...........----------.. |.......|.....|....|.....|..........|........| |...+...........|........|...|.......|--+-----+--.....|..........+........| -----..---+---..|........+...----+----.............{..|..........|.-..--..| |...+..|.....|..|........|.....................---...............----...... |...|..|.....|..----------...........----......|...--###--###--..|......... |...|..--...--...............####.......|..-###----|..........|---......... -----.}}}}}}}}..............##..##..###----|...........--------------............}}}}}}}}}}}...........--....|--|..................S............|----.....}}}}}}}}}}}}}}}}}.........+.##....S..--##--##--##--##|............S...|...}.}}}}}}}}}}}}}}}}}}}......--....|--|..................|............|----..}}}.}}}}--...--}}}}}}}}}.....##..##..###----|...........-----S--------...}}}}}}}....|.....|..}}}}}}}}}}}}}####.......|..-###----|..........|---..}}}}}}}-------.|.....|..----.----}}}}}}}}}}}.----......|...--###--###--}}|}}}}}}}}}|.....|.---+---..|.......|}}}}}}}}}}}}}}}}}}}}}}---}}}}}}}}}}}}}}}----}}}}}.|.....|.....................}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}...|--+--|...----+---.......-----+- --H-----|.}}.}}..|..|.....-----...--+----- ...... |......|.......|........|......+........|..+.....|...+.. |......| |......|.......|........|......|........| |.....|...| |......| ----------------------------------------- ----------- --------
Mephistopheles and Baalphegor
.................................--------------------.----------------------.###...............###..........--}}}}}}}}}}}}}}}}}} HS}.}..}..}..}..}..}.{|.#.#...............#.#.....###..|}|---#---...---#---}}|....................|.###}}}}.......}}}}###.....#.#..|}|................|}}|.-----------------..|....}###-.....-###}........###..|}|.-.-.-.-.-.-.-..|}}|.|...............|..|....}#}}|#####|}}#}.............|}#..............-.|}}|.|.-------------.|..|....}#}.S.....S.}#}.............|}|.-..............#}}|.|.|...........|.|..|.....--S-----S----##############|}|....-}}}}}}-..-.|}}|.|.|...{}{}{}{.|.|..|......#.|.....|.#}..............|}|.-..}}}}}}}}....|}}|.|.|...------}.|.|..|..###.#.|.-.-.|.----------------|}#....}}-..-}}..-.|}}|.|.|...}}}}\|{.|.-#.|..#.#}|.|..{..S.+...............+}|.-..}}.}}.}}....|}}|.|.|...}}}..|}.|....|..###.#.|.-.-.|.----------------|}#....}}-..-}}..-.|}}|.|.|...}}}}\|{.---#.|......#.|.....|.#}..............|}|.-..}}}}}}}}....|}}|.|.|...------}...|..|.....--S-----S----##############|}|....-}}}}}}-..-.|}}|.|.|...{}{}{}{.|.|..|....}#}.S.....S.}#}.............|}|.-..............#}}|.|.|...........|.|..|....}#}}|#####|}}#}.............|}#..............-.|}}|.|.-------------.|..|....}###-.....-###}........###..|}|.-.-.-.-.-.-.-..|}}|.|...............|..|.###}}}}.......}}}}###.....#.#..|}|................|}}|.-----------------..|.#.#...............#.#.....###..|}|---#---...---#---}}|....................|.###...............###..........--}}}}}}}}}}}}}}}}}} |}.}..}..}..}..}..}.{|.................................--------------------.----------------------
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# File:Bronze wand.png
File
File history
File usageNo higher resolution available.
Bronze_wand.png β(16 Γ 16 pixels, file size: 143 bytes, MIME type: image/png)
A bronze wand in SLASH'EM.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current23:02, 4 December 201016 Γ 16 (143 bytes)Ilmari Karonen (talk | contribs)A bronze wand in SLASH'EM. Category:16x16 tiles Category:SLASH'EM items
You cannot overwrite this file.
File usage
There are no pages that use this file. |
# Metroid
Metroids are a group of monsters in dNetHack. They belong to the trapper or lurker above monster class, which has been renamed the trapper, lurker, or metroid class.
All forms of metroid except the baby metroid have life drain attacks of varying potency, in addition to other physical and elemental (acidic, shocking) attacks.
Death rays will not kill metroids (except baby metroids). Instead, the energy will stimulate the metroid to bud or divide, creating one or more new metroids or baby metroids, depending on the development stage of the parent metroid.
Contents
1 Baby metroid
2 Metroid
3 Alpha metroid
4 Gamma metroid
5 Zeta metroid
6 Omega metroid
7 Metroid queen
8 Encyclopedia entry
Baby metroid
t baby metroid
Difficulty
2
Attacks
Bite 1d2 physical
t baby metroid
Difficulty
2
Attacks
Bite 1d2 physical
Base level
1
Base experience
8
Speed
9
Base AC
7
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
72
Nutritional value
20
Size
tiny
Resistances
fire, poison, acid
Resistances conveyed
A baby metroid:
can fly.
can survive underwater.
does not breathe.
cannot pick up items.
has no eyes.
has no hands.
has no limbs.
has no head.
regenerates HP quickly.
is poisonous to eat.
does not eat. (*)
is not a valid polymorphable form.
is neither male nor female.
is normally generated peaceful.
wanders randomly.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
Baby metroids are the weakest form of metroid, and are not normally generated. Metroid eggs hatch into baby metroids. If a metroid egg hatches in your inventory, the resulting baby metroid will always be tame.
Baby metroids are too young to divide, and will therefore die if zapped with a wand of death. They also do not have a life-draining bite.
Metroid
t metroid
Difficulty
7
Attacks
Bite 1d4 life drain, Claw 1d1 sticky
t metroid
Difficulty
7
Attacks
Bite 1d4 life drain, Claw 1d1 sticky
Base level
5
Base experience
136
Speed
10
Base AC
5
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
No
Weight
145
Nutritional value
40
Size
small
Resistances
fire, poison, acid
Resistances conveyed
A metroid:
can fly.
can survive underwater.
does not breathe.
cannot pick up items.
has no eyes.
has no hands.
has no limbs.
has no head.
has a thick hide.
regenerates HP quickly.
is poisonous to eat.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
can follow you to other levels.
is nasty.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
The most recognizable form of metroid. Only 21 will appear in the dungeon.
If zapped with a wand of death, a metroid divides to form a second metroid.
Alpha metroid
t alpha metroid
Difficulty
11
Attacks
Bite 1d8 life drain
t alpha metroid
Difficulty
11
Attacks
Bite 1d8 life drain
Base level
9
Base experience
290
Speed
11
Base AC
3
Base MR
10
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
No
Weight
290
Nutritional value
80
Size
small
Resistances
fire, poison, acid
Resistances conveyed
An alpha metroid:
can fly.
can survive underwater.
does not breathe.
cannot pick up items.
has no hands.
has no limbs.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
can follow you to other levels.
is nasty.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
At most 45 alpha metroids will appear in the dungeon.
If zapped with a wand of death, an alpha metroid will bud off a baby metroid.
Gamma metroid
t gamma metroid
Difficulty
16
Attacks
Bite 1d12 life drain, Touch 1d6 shock
t gamma metroid
Difficulty
16
Attacks
Bite 1d12 life drain, Touch 1d6 shock
Base level
13
Base experience
448
Speed
12
Base AC
1
Base MR
20
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
No
Weight
1450
Nutritional value
400
Size
medium
Resistances
fire, poison, acid
Resistances conveyed
A gamma metroid:
can fly.
can survive underwater.
does not breathe.
cannot pick up items.
has no hands.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
can follow you to other levels.
is nasty.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
At most 48 gamma metroids will appear in the dungeon.
If zapped with a wand of death, a gamma metroid will bud off a baby metroid.
Zeta metroid
t zeta metroid
Difficulty
23
Attacks
Bite 2d8 life drain, Spit 2d8 acid
t zeta metroid
Difficulty
23
Attacks
Bite 2d8 life drain, Spit 2d8 acid
Base level
19
Base experience
731
Speed
15
Base AC
β1
Base MR
30
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
No
Weight
2900
Nutritional value
800
Size
medium
Resistances
fire, poison, acid
Resistances conveyed
A zeta metroid:
can fly.
can phase through walls.
can survive underwater.
does not breathe.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is neither male nor female.
is normally generated hostile.
can follow you to other levels.
is nasty.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
Only 9 zeta metroids will appear in the dungeon.
If zapped with a wand of death, a zeta metroid will bud off a metroid.
Omega metroid
t omega metroid
Difficulty
33
Attacks
Bite 2d10 physical, Claw 2d4 life drain, Claw 2d4 life drain, Breath weapon 4d4 shock
t omega metroid
Difficulty
33
Attacks
Bite 2d10 physical, Claw 2d4 life drain, Claw 2d4 life drain, Breath weapon 4d4 shock
Base level
27
Base experience
1231
Speed
12
Base AC
β5
Base MR
50
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
No
Weight
7250
Nutritional value
2000
Size
large
Resistances
fire, poison, acid
Resistances conveyed
An omega metroid:
can fly.
can phase through walls.
can survive underwater.
does not breathe.
has a thick hide.
is poisonous to eat.
does not eat. (*)
is a giant.
is neither male nor female.
is normally generated hostile.
can follow you to other levels.
is nasty.
has infravision.
can be seen through infravision.
never leaves a corpse.
cannot be tamed.
At most 21 omega metroids will appear in the dungeon.
If zapped with a wand of death, it will bud off a metroid.
Metroid queen
t metroid queen
Difficulty
43
Attacks
Bite 2d12 life drain, Bite 2d12 life drain, Engulf 2d12 digestion, Breath weapon 5d4 acid
t metroid queen
Difficulty
43
Attacks
Bite 2d12 life drain, Bite 2d12 life drain, Engulf 2d12 digestion, Breath weapon 5d4 acid
Base level
35
Base experience
1939
Speed
10
Base AC
β9
Base MR
70
Alignment
12 (lawful)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
14500
Nutritional value
4000
Size
huge
Resistances
fire, poison, acid
Resistances conveyed
A metroid queen:
can fly.
can phase through walls.
can survive underwater.
does not breathe.
has no hands.
has a thick hide.
can lay eggs.
is poisonous to eat.
does not eat. (*)
is female.
is normally generated hostile.
can follow you to other levels.
is nasty.
is strong.
has infravision.
can be seen through infravision.
appears only in Gehennom.
never leaves a corpse.
cannot be tamed.
Only 3 metroid queens will appear in the dungeon.
Metroid queens wander around their dungeon level, laying eggs at irregular intervals. If zapped with a wand of death, a metroid queen will bud off three metroids.
A tame metroid queen will revert to peaceful at the start of her next turn.
Encyclopedia entry
Metroids appear to be able to sense the life energy of their prey as they have no visible sensory organs.
In their natural life cycle, Metroids gradually metamorphose to take a somewhat reptilian form, growing a hard organic shell, a head, and limbs, eventually shedding their gelatinous membrane completely. The shell removes their weakness to cold temperatures. The egg-laying Metroid Queen appears to be the only form in which Metroids can normally reproduce, although many Metroid bioforms can divide almost instantaneously when exposed to certain kinds of high-energy radiation.
|
# Source diving
Source diving is the action of examining the source code of NetHack. A person who practices source diving is called a source diver. The source code is freely available for anyone, unlike in most commercial programs.
Source diving is usually done when someone wants to know how something really works in the game. Source divers may also program their own patches to the game. Some people may just want to look for easter eggs or interesting comments in the source.
Grep, GEMA, AWK, and Doxygen are useful tools when source diving.
Contents
1 Tips
1.1 Function definitions
1.2 Message sources
2 See also
Tips
Function definitions
Most function declarations are in extern.h, sorted by the .c file they're defined in. If you're looking for a function's definition, you can search for the function name in extern.h, then scroll up to the comment giving the file name. Note that some things that look like functions, such as resists_fire(mon), are actually preprocessor macros; most of those are defined in other header files such as youprop.h or mondata.h.
Message sources
You can look up printed messages in the code to get an idea of what governs certain output. However, many messages are constructed using macros and/or string substitution. For example, when trying to mount your steed, you may get the message:
You are unable to swing your leg over.
You won't find this exact message anywhere in the source code, because the line that produces it reads: You("are unable to swing your %s over.", body_part(LEG)). The macro You() prints a message beginning with the word "You"; there are similar macros for messages starting with "Your", "You hear", and "You feel". The "%s" in the message is replaced with the result of the next argument, body_part(LEG), which resolves to a string describing the leg-analogue of your current polyself, if any. In this case, one way to search for the message would be "unable to swing your %s over". In general, if any word or words in a message can vary, replace them with %s in a search; if a number varies, replace it with %ld. (Alternatively, trim to "unable to swing your", if your search mechanism may not cooperate with %s or %ld as part of a search.)
See also
Beginner's guide to NetHack sources -- note that the .des level file format described here has been replaced with LUA in current versions. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:43, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
20 July 2023
13:29 Inediateβ (diff | hist) . . (-41)β . . Darth l33t (talk | contribs) (Undo revision 152507 by Coz (talk) those are "g" and already covered) (Tag: Undo)
19 July 2023
16:47 Inediateβ (diff | hist) . . (+41)β . . Coz (talk | contribs) (Added gargoyles and wingeds as inediate) |
# Forum:Convert Vulture savegame to Nethack?
< Forum:Watercooler
Hi there. I have a very solid game in my house, where I have Vulture installed (human Valkyrie, Excalibur, blessed greased +2 SDSC, blessed greased +2 cloak of MR, blessed bag of holding). Instead of playing at home (I usually play other games such as New Vegas) I'd like to play here in the long dead times at office (when I don't study). Problem is, though I can use the normal nethack app since it's not very NSFW (particularly when not using tiles), Vulture is another matter entirely.
Is there a way to convert the savegame from Vulture to 'normal' Nethack?
The problem isn't so much Vulture versus NetHack, as the differing processors between your home and work machines. NetHack save files aren't designed to work on more than one computer. (It may be that Vulture saves are different from NetHack saves even on the same machine, but that's less likely.)
Although it's theoretically possible to convert saves from one format to another, I'm not sure that anyone's made a tool that does it. So you may be out of luck.
What I'd recommend would be to simply keep two separate save files, one at home, one at work; that'd avoid any problems that there might be with converting your saves. Ais523 (talk) 13:11, 29 September 2013 (UTC)
Alright, I'll do that. Thanks a bunch for your time :)--Ireng (talk) 21:33, 29 September 2013 (UTC)
Sunk. In. Lava.--Ireng (talk) 02:10, 1 October 2013 (UTC) |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:34, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
21 July 2023
m 17:58 Elberethβ (diff | hist) . . (-3)β . . Silverwing235 (talk | contribs) (ββHistory: typo/grammar, punctuation) |
# Erosion
Erosion in NetHack is an attribute that can apply to some items depending on their material. Eroded weapons (including weapon-tools) and armor suffer from degraded performanceβweapons have their damage decreased, and armor's intrinsic AC bonus will be reduced by one for each level of erosion (in neither case affecting enchantment, and never reducing intrinsic damage or AC below zero). This means a +0 dwarvish iron helm's AC is β2, while a thoroughly rusty +1 dwarvish iron helm's AC is β1. Erosion does not affect an item's other enchantment-based effects; a thoroughly rusty +2 helm of brilliance still provides +2 to intelligence and wisdom. The following types of erosion exist:
Rust affects only items made from iron. It is caused by wetting (from a potion, fountain, pool, etc.) or by the attack of a rust monster or gray ooze.
Corrosion affects copper or iron items. It is caused by exposure to acidic environments (potions or some monsters).
Burning affects wood, leather, cloth, and plastic. It is caused by fire.
Rotting affects wood, leather, and cloth. It is caused by exposure to brown puddings.
Items can suffer up to three levels of erosion, for example: rusty, very rusty, and thoroughly rusty. The types of damage do not add; rather the greater damage is used. Thus, a very rusty corroded short sword has a β2 penalty rather than β3. An item can be both thoroughly rusty and thoroughly corroded, but it will never suffer more than 3 points of damage.
Contents
1 Other erodable items
2 Prevention and repair
3 Strategy
4 History
5 SLASH'EM
6 References
Other erodable items
If you are polymorphed into an iron golem, rust traps will kill your monster form (even if unchanging, unless you have the half physical damage extrinsic).[1] All iron golems suffer this fate. Similarly, a wood golem can be rotted and destroyed.
Prevention and repair
Many objects can be protected from erosion, and any existing erosion can be repaired. A metal object that is so protected identifies as rustproof, and an organic or plastic object identifies as fireproof. The procedure is the same for both types:
A weapon or weapon-tool can be protected from erosion and have any damage repaired by wielding it and reading a non-cursed scroll of enchant weapon while confused.
Any armor can be protected from erosion and have any damage repaired by wearing it, removing all other armor, and reading a non-cursed scroll of enchant armor while confused.
Any armor can also be protected from erosion by wearing it, removing all other armor, and reading a cursed scroll of destroy armor while confused. This procedure does not repair existing damage.
Successfully dipping for Excalibur will remove any existing erosion on the long sword and make it rustproof.
Any wishable item can be wished for in an unerodable state. (Any of the "-proof" adjectives can be used to erode-proof any item; a common choice is "fixed", which is intended for crysknives but shares the same bit in the object data structure as erode-proofing.)
Items retain their erode-proof status when polymorphed. One can create a fireproof bag of holding or magic marker this way, whose presence (as seen in a dump file, for example) would normally indicate a wish.
If the scroll of enchant weapon or armor is cursed, this procedure instead strips the item of any protection from erosion, and has no effect on existing erosion.
No erosion event will ever affect body armor worn under a cloak, nor a shirt worn under body armor or a cloak. One might choose, then, to wear a junk cloak such as a dwarvish cloak to protect a banded mail from rust.
Objects can be temporarily protected from rust or corrosion by greasing them. An event which would normally rust or corrode the item will instead have a chance of removing the grease. Also, one level of rust or corrosion can be removed from a weapon by dipping it into a potion of oil.
Erosion can be removed from a wielded weapon as a prayer boon, but this does not erode-proof it.
In addition to erode-proofing, blessed items may resist erosion, with a chance dependent on your Luck.[2]
Strategy
In most cases, using scrolls of enchant armor to erode-proof armor is a waste of resources. Since erosion only affects the object's base AC, and most items don't have more than 1 or 2 base AC, scrolls are usually better spent increasing the enchantment of your gear (unless you are unable to enchant your gear safely any more and don't have enough markers to make use of blanking the surplus scrolls). Additionally, blessed scrolls will bless the enchanted item for free, which (with high Luck) already provides adequate protection. Many forms of body armor grant 3 or more AC, but usually the only suits you should consider enchanting are dragon scale mail and perhaps mithril-coats, neither of which can erode. Using extra scrolls to fix erosion is an option, however. It might also be worthwhile to fire-proof speed boots, jumping boots, or water walking boots, as any of these will be destroyed should you accidentally step into lava. This applies particularly to Valkyries, whose quest contains lava in abundance. A cloak of protection may also be worth erodeproofing, since its base AC is 3.
In contrast, you generally will want an erode-proof main weapon, particularly since the erosion penalty is doubled for double-damage weapons. However, it is rarely necessary to do the erode-proofing yourself; artifact weapons from sacrifice will always be erode-proof, while those from wishes can be explicitly wished for erode-proof. However, in the case of a good weapon found randomly in the dungeon (for example Fire and Frost Brand), it is worth spending a scroll of enchant weapon to make it rustproof. Also, cavemen using the Sceptre of Might will also want to make it rustproof, as it is not generated so.
History
Before NetHack 3.1.0, items did not have erosion as such; rather, damage operated by reducing the enchantment. Thus a rust monster attacked rather like a modern disenchanter, except that its attack was blocked by rustproofing rather than magic cancellation.
In NetHack 3.6.0 and earlier versions, metal wands, rings, and tools such as stethoscopes and skeleton keys could rust and corrode, but this was purely cosmetic and did not affect their performance.
SLASH'EM
In SLASH'EM, rust may also be removed from a weapon by applying a whetstone while standing over a water source.
References
β src/trap.c in NetHack 3.6.0, line 1070
β rnl in rnd.c |
# BUC
BUC is an acronym meaning blessed/uncursed/cursed. It is usually used in phrases such as "BUC identified", meaning an item whose "BUC status" is known. Another term is beatitude (which technically means only "the state of being blessed", but in the context of NetHack generally means an object's relative blessedness, i.e. its BUC status).
Non-cursed is generally used to mean "either blessed or uncursed". This shorthand is useful because many items behave similarly whether blessed or uncursed, but very differently if cursed.
Contents
1 Blessed items
2 Cursed items
3 BUC identification
4 Changing the BUC status of an item
4.1 Curse removal or blessing
4.2 Blessing removal or cursing
4.3 Removal of either curse or blessing
5 Game messages
6 Generation
7 Encyclopedia entry
8 References
Blessed items
Generally speaking, blessing an item is never a Bad Idea. All blessed items are one step further from being cursed. Also, many items confer additional bonuses when blessed:
Blessed weapons do 1d4 extra damage to undead and major demons.[1]
Blessed missiles (e.g., arrows, darts, and throwing stars) have a significantly lower chance of disappearing when used.
Most blessed scrolls and potions work better if they are beneficial, or have their harm reduced/nullified if they are harmful.
Blessed spellbooks can always be read successfully, regardless of the spell's level, your level, or your intelligence score.
Blessed tins require only one turn to open no matter what opening tool you use (or even if you use no tool at all).
Some tools work better when they're blessed. Notable examples include the bag of holding and unicorn horn.
Blessed item generators generates blessed items:
A blessed horn of plenty will produce blessed foods and potions.
A blessed tinning kit will make blessed tins.
A blessed magic marker will make uncursed blank spellbooks/scrolls into blessed ones, and cursed ones uncursed.
Blessed tools with charges will also resist the effect of a cursed scroll of charging.
Blessed touchstone can be applied to identify other stones, while uncursed one can be applied only by Archeologist.
Blessed luckstone prevents the timeout of positive luck, while uncursed one prevents the timeout of both positive and negative luck.
Wands cannot be harmed by cursed scrolls of charging if they are blessed.
Blessed items are resistant to erosion, with a chance depending on your Luck.
For some items, being blessed may be undesired:
Blessed magic marker cannot produce cursed scrolls, therefore many players prefer at least one magic marker to be uncursed.
Quaffing blessed potion of invisibility makes the player permanently invisible, which may cause problems. In particular, quaffing it within a shop may make it hard to leave the shop.
Quaffing blessed potion of booze does not cause confusion, which make it almost useless for quaffing.
To genocide one kind of monsters without genociding all monsters denoted by the same letter, you need an uncursed scroll of genocide.
Cursed items
A cursed item, on the other hand, is usually bad. Cursed items are more difficult to bless, and almost all of them will at least impede the item's performance, if not incurring an ill-intended effect.
Anything that can be worn or wielded is reluctant to be taken off or put aside if it's cursed. This includes amulets, rings, weapons, weapon-tools, armor, tin openers, iron chains, heavy iron balls, and leashes. This also applies to monsters: Seeing a monster attempt to wield a cursed weapon or weapon-tool will produce a message about it sticking to their hand, as does a monster attempting to wield another weapon while already wielding a cursed weapon. In either case, this formally identifies the item as cursed.
Potions and scrolls generally work worse if they are cursed: if they are harmful, the harm is generally amplified, and if they are beneficial, the benefit may be reduced or nullified, or a totally different (usually harmful) effect occurs.
Wands have a chance of exploding when you zap them while they are cursed.
You can never read a cursed spellbook successfully.
Tools generally do not work as well when they are cursed.
Pets will not pick up cursed items.
Comestibles (but not corpses) are always rotten when they are cursed.
A loadstone cannot be dropped or thrown while cursed.
The invocation ritual won't work if any of the three items (Bell of Opening, Candelabrum of Invocation, or Book of the Dead) is cursed.
However, there are items which have special uses when cursed, if you know they are cursed:
A cursed potion of gain level transports you one dungeon level upwards, which has several uses.
A cursed potion of invisibility will wake all sleeping and meditating monsters on the level. Covetous monsters such as your quest nemesis, named demons, and the Wizard of Yendor will quickly warp to you after being awakened, allowing you to fight them without having to make your way to their location.
A cursed scroll of genocide creates 4β6 specified monsters. This has many potential uses; to name a few: experience levels, maximum hit points, intrinsics, intelligence or strength gain, Luck, unihorn, dragon scale mail, or powerful pets. See Genocide Β§ Reverse genocide for details.
A cursed scroll of teleportation will levelport you instead of regular teleportation, which is especially useful if you have teleport control.
A cursed scroll of gold detection shows traps as gold. However, a non-cursed one shows traps as traps if you are confused.
A cursed scroll of destroy armor can be used to erodeproof a piece of armor if read while confused.
A cursed scroll of confuse monster confuses you. This is useful if you don't have other sources of confusion.
Pets are reluctant to enter a square with a cursed item (unless there is food in that square too). Because of that, cursed items can be used to restrict their movements, most notably in Sokoban to prevent them from getting stuck behind a boulder.
BUC identification
Main article: Curse-testing
An altar can be used to detect the beatitude of an item by means of the coloured flashes when the item is dropped on it, an amber flash indicates that the item is blessed, whereas a black flash means the item is cursed, if there is no flash the item is uncursed. Identifying an item this way is impossible when blind, and when hallucinating it is impossible to tell blessed and cursed items apart since the flash will appear different; however, the lack of a flash can still tell you that the item is uncursed.
For some items, such as gold pieces or scrolls of mail, the beatitude has no meaning and is always omitted. For some other items, such as weapons or rings with charges, it is not shown if the object is uncursed, if you have fully identified the item. Priests never see the uncursed-status, and can automatically tell the beatitude of any item they see, even if it has yet to be identified. If you want the game to override this behavior and show "uncursed" on every item you have identified as such, set the implicit_uncursed option to FALSE.
A scroll of identify will also show you the BUC status of an item.
Changing the BUC status of an item
There are quite a few ways to change the BUC status of items:
Curse removal or blessing
Main article: Curse removal
Dipping an object into a potion of holy water will change the BUC status from cursed to uncursed, and from uncursed to blessed, using one potion of holy water each time you dip it. Dipping a blessed item into holy water will not consume the potion and not wet the object.
An uncursed scroll of remove curse will remove the cursed status from the wielded object (whether it is a weapon or not), all worn items (armor, rings, amulet, blindfold, towel, and lenses), any leashes currently in use, and any carried loadstones.[2] A blessed scroll of remove curse will remove the cursed status from every object in your inventory. A cursed scroll of remove curse "disintegrates" and removes no curses, though it will still end any punishment.
A non-cursed scroll of enchant armor or scroll of enchant weapon will uncurse the armor/weapon it targets. A blessed scroll of enchant armor will bless uncursed armor.
Your deity may bless and repair your weapon or uncurse your inventory when you pray on an altar, depending on your Luck (see prayer for details).
When stepping on a magic trap, there is a 4.8% chance of an uncursing effect, equivalent to an uncursed scroll of remove curse.
#dipping items in fountains can curse and uncurse items (4β30 chance of uncursing, 1β30 chance of cursing). A fountain will never bless an item.
When dipping a unicorn horn or amethyst into a potion which then transforms, the result is uncursed, except for juice made with a cursed horn or an amethyst, which is cursed.[3]
Blessing removal or cursing
Dipping an object into a potion of unholy water will change the item from blessed to uncursed, and then from uncursed to cursed.
If you read a scroll of remove curse while confused, each affected uncursed object will have a 25% chance of becoming cursed and 25% chance of becoming blessed. The same objects are affected as when not confused, such as wielded objects, worn items, leashes in use, and carried loadstones.
Cursed scrolls of enchant weapon and armor will curse the item they target.
High-level spellcasting monsters (notably liches and the Wizard of Yendor) can randomly curse items in your inventory during combat. The message received is "You feel a malignant aura surround you."[4] Magic resistance and half spell damage reduce the amount of items that are cursed (but will not nullify the attack), while Magicbane will "catch the curse" and nullify the attack 95% of the time when wielded.
Quaffing from fountains can have a cursing effect on every item in your inventory (see fountain for details).
#dipping items in fountains can curse and uncurse items (4β30 chance of uncursing, 1β30 chance of cursing). It is never blessed.
A loadstone will curse itself automatically, making it impossible to drop should you pick it up again, and picking up a blessed scroll of scare monster will remove its blessing.
The dunce cap and the helm of opposite alignment can be generated uncursed, but autocurse when worn, preventing you from removing them by normal means.
A blessed eucalyptus leaf may be applied and used as a magic whistle; this act has a 1β50 chance of removing the blessing.
Removal of either curse or blessing
Cancelling an item will remove any blessing or curse, but may also have other (probably detrimental) effects such as removing enchantment or emptying a wand of charges.
Alchemy results are always uncursed.
Game messages
In-game, the phrase "Items of unknown B/C/U status" appears in the drop menu, but the "BUC" ordering is more common in discussions.
Generation
The random generation rate for blessed or cursed items varies as shown in the table below.
Item
Blessed
Uncursed
Cursed
Amulets
amulet of change
0.50%
9.50%
90.50%
amulet of restful sleep
0.50%
9.50%
90.50%
amulet of strangulation
0.50%
9.50%
90.50%
Other amulets
5.00%
90.00%
5.00%
Weapons
All weapons
8.64%
78.18%
13.18%
Armor
helm of opposite alignment
0.95%
8.60%
90.45%
gauntlets of fumbling
0.95%
8.60%
90.45%
fumble boots
0.95%
8.60%
90.45%
levitation boots
0.95%
8.60%
90.45%
Other armor
8.72%
78.96%
12.31%
Comestibles
Tins
5.00%
90.00%
5.00%
Other comestibles
0.00%
100.00%
0.00%
Scrolls
All scrolls
12.50%
75.00%
12.50%
Spellbooks
All spellbooks
2.94%
94.12%
2.94%
Potions
All potions
12.50%
75.00%
12.50%
Rings
ring of aggravate monster
0.00%
10.00%
90.00%
ring of hunger
0.00%
10.00%
90.00%
ring of polymorph
0.00%
10.00%
90.00%
ring of teleportation
0.00%
10.00%
90.00%
ring of adornment
15.73%
41.33%
42.93%
ring of protection
15.73%
41.33%
42.93%
ring of gain constitution
15.73%
41.33%
42.93%
ring of gain strength
15.73%
41.33%
42.93%
ring of increase accuracy
15.73%
41.33%
42.93%
ring of increase damage
15.73%
41.33%
42.93%
Other rings
0.00%
90.00%
10.00%
Wands
All wands
2.94%
94.12%
2.94%
Tools
tallow candle
10.00%
80.00%
10.00%
wax candle
10.00%
80.00%
10.00%
brass lantern
10.00%
80.00%
10.00%
oil lamp
10.00%
80.00%
10.00%
magic lamp
25.00%
50.00%
25.00%
can of grease
5.00%
90.00%
5.00%
crystal ball
25.00%
50.00%
25.00%
figurine
12.50%
75.00%
12.50%
Other tools
0.00%
100.00%
0.00%
Gems/Stones
loadstone on floor
0.00%
0.00%
100.00%
loadstone in a container
0.00%
9.98%
91.02%
Other stones
0.00%
100.00%
0.00%
Other
Other
0.00%
100.00%
0.00%
Items generated on "fake bones" are cursed 100% of the time.
Encyclopedia entry
The NetHack encyclopedia has this to say about cursed items:
Curses are longstanding ill-wishings which, in Fantasyland,
often manifest as semisentient. They have to be broken or
dispelled. The method varies according to the type and
origin of the Curse:
[...]
4. Curses on Rings and Swords. You have problems. Rings
have to be returned whence they came, preferably at over a
thousand degrees Fahrenheit, and the Curse means you won't
want to do this. Swords usually resist all attempts to
raise their Curses. Your best source is to hide the Sword
or give it to someone you dislike.
[ The Tough Guide to Fantasyland, by Diana Wynne Jones ]
References
β src/weapon.c in NetHack 3.6.1, line 325
β src/read.c in NetHack 3.6.1, line 1277
β src/potion.c in NetHack 3.6.1, line 2187
β src/sit.c in NetHack 3.6.1, line 326
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.1. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-361}} tag to the current version's tag or {{noversion}} as appropriate. |
# Computer parts
As part of its programming theme, NetHack: The Next Generation includes four items that are electronic or electrical components: the IC (integrated circuit, or "chip"), the diode, the transistor, and the relay. (These items also appear in SlashTHEM, along with other features from NHTNG.) All four items are part of the tool class, but are nonfunctional. Applying any non-artifact computer part will return the message "You don't understand anything about electronics !!!" (or, if hallucinating, "Hmm... is this stuff edible?") This will happen even for Geeks and Graduates, who despite their familiarity with software apparently do not understand the hardware of the computers they use.
Contents
1 Properties
2 Occurrence
3 Uses
4 References
Properties
All four items are made of iron and have white-colored symbols. They differ in unidentified appearance and in value, with base cost apparently decreasing with technological obsolescence.
Item
Appearance
Base Price
Weight
diode
two-wired thing
50
1
transistor
three-wired thing
100
1
IC
many-wired thing
5000
1
relay
four-wired thing
200
2
Note that a cursed IC only has a base price of 250 zm when selling to a shopkeeper. In SlashTHEM, even non-cursed ICs sell for 500 zm, making them significantly less valuable.
Occurrence
Hostile computers (the PDP-9, PDP-11, Vax, and Cray) will drop 5-14 random components when destroyed; each item has an equal probability of being a diode, transistor, or IC.
The Geek role starts with 1-7 ICs.
The relay is the base item for the Burned Moth Relay, an artifact which gives protection while carried. When applied, it gives a message which identifies its base item ("There's a little badly burned moth in that relay!"). Geeks and Graduates get an additional message: "You feel remembered of the old times" (or, if hallucinating, "of when the net was flat").
Uses
As mentioned above, computer parts do not have any significant function when applied. Some of them, especially ICs, are relatively valuable, so they might be worth collecting to sell (like precious gems) if you have found a general store or tool shop.
Polypiling computer parts will not create a computer monster. It might create an iron golem, though.
References |
# Fan labor
This is a list of productive creative activities engaged in by fans. These activities can include creation of written works, visual or computer-assisted art, music, or applied arts and costuming.
Contents
1 Webcomics
2 Fan fiction
3 Drawn art
4 Music
5 Videos
6 Miscellaneous
7 See also
Webcomics
Dudley's dungeon
Souljazz' Nethack Humour - short humorous nethack related webcomics
Rob and Figaro - longer form comic
Fan fiction
V'rgo's NetHack Stories - includes "The Ascension of the Ordinary Valkyrie" and "The Pacifist"
NetHack stories on fanfiction.net
ais523's expansion of NetHack's introduction
dtsund wrote some intentionally bad NetHack/Sonic crossover fan fiction as part of his Let's Play (and later, this opera script)
"Demogorgon's Patch", a horror story by GreyKnight
"Vanishing in a Puff of Logic: The Tediously Charmed Life of RegretMeNo(t) the Elven Wizard", an entire book(!) by Studio Dongo
"The Astral Plane"
"The Origins of the Maze of Menace"
"Just because it says READ ME doesn't mean you should", a short story from the Oracle's point of view.
Drawn art
NetHack haiku
Nethackery - a psychological NetHack map
NetHack map - a handdrawn NetHack map
NetHack map - another handdrawn NetHack map
Tourist - a rendition of a tourist
Valkyrie - a rendition of a valkyriet
Music
"NetHack" - a Parody Song by Rob Balder dot com
The Archeologist Song
Videos
Nethack | Staffel 1 - a series of German Let's Play YouTube videos by CafΓ© Milchkaffeebohne
German Let's Play NetHack and UnNetHack YouTube videos by Irrenhaus3
German Let's Play Slash'EM and Slash'EM Extended by Aaaaaimbot
Miscellaneous
NetHack CafΓ©: randomly-generated menus. I'll have the chickatrice nuggets and an uncursed water flavoured milkshake, please!
See also
Best of RGRN
The #nethack quote db captures the best chatter on IRC. |
# File:Coral ring.png
File
File history
File usageNo higher resolution available.
Coral_ring.png β(16 Γ 16 pixels, file size: 190 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'coral ring'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current11:56, 1 August 200616 Γ 16 (190 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'coral ring'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 14 pages uses this file:
Eating jewelry
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0 |
# People of secondary interest to NetHack
This article is a list of various notable people of secondary interest to the game of NetHack and its variants, explaining each person's works and the contributions to the game that they inspired.
Contents
1 Frank Herbert
2 Michael Moorcock
3 Jack Vance
3.1 Influence on variants
4 Fritz Leiber
5 David S. H. Rosenthal
6 References
Frank Herbert
Wikipedia has an article about:
Frank Herbert
Frank Herbert (October 8, 1920 β February 11, 1986) was an American science fiction author, best known for the 1965 novel Dune and its five sequels. He also wrote short stories and worked as a newspaper journalist, photographer, book reviewer, ecological consultant, and lecturer.
Dune is the best-selling science fiction novel of all time, and considered to be among the classics of the genre. Set in the distant future, it explores various themes: humanity's evolution; planetary science and ecology; and the intersection of religion, politics, economics and power in a future where humankind has undertaken the colonization of space.
The most noteworthy features adapted from Dune are the long worm, its teeth and the crysknives that can be fashioned from them. A quote from Frank Herbert's The Dosadi Experiment also provides the encyclopedia entry for the gas spore and its fellow spheres.
Michael Moorcock
Wikipedia has an article about:
Michael Moorcock
Michael Moorcock (b. 18 December 1939) is an English writer of science fiction and fantasy who has published literary novels, and is also a successful musician. His best selling works are the "Elric of MelnibonΓ©" stories centered around the titular sorcerer, who is frail, anemic and albino - Elric represents a deliberate reversal of clichΓ©s associated with Tolkien-inspired fantasy adventures.
As emperor of MelnibonΓ© Elric can call upon Arioch, a Lord of Chaos and Duke of Hell who serves as the traditional patron of the rulership and alternates between aiding Elric and antagonizing him. Elric is also the wielder of the demonic black blade Stormbringer, which is similarly his greatest asset and greatest hindrance: it confers enough strength and vitality for Elric to shake off his otherwise-required herbal regimen - as well as augmenting his fighting prowess - but the blade instead feeds on the souls of intelligent beings. A recurring theme in the series is how this codependency between sword and wielder brings doom to everything Elric holds dear, despite his best intentions.
A significant amount of Moorcock's influence on fantasy is based in his portrayals of the metaphyisical conflict between Law and Chaos - among many other things, this has partly and indirectly influenced the chaotic alignment's portrayal in NetHack. Stormbringer is the weapon gifted to a crowned chaotic character, who their god declares a soul-stealer for "the Glory of Arioch"; this may also reflect Elric's role as the Eternal Champion.
Jack Vance
Wikipedia has an article about:
Jack Vance
John Holbrook "Jack" Vance (August 28, 1916 β May 26, 2013) was an award-winning American mystery, fantasy, and science fiction writer who published most of his work under the name Jack Vance. Among Vance's many achievements are the 1984 World Fantasy Award for Life Achievement; Guest of Honor at the 1992 World Science Fiction Convention in Orlando, Florida; becoming the 15th Grand Master of the The Science Fiction and Fantasy Writers of America in 1997; and induction into the Science Fiction Hall of Fame in 2001.
Jack Vance's main influence on fiction that is most relevant to NetHack is the "Vancian" magic system, which can be seen in Dungeons & Dragons - the magic system in use is explicitly inspired by Vance's Dying Earth series, where magic users forget learned spells immediately upon casting them, and must re-study in order to cast them again. A Vancian-style system for spellcasting was present in NetHack from versions 1.3d to 3.2.3 - spells had to be learned or transcribed from spellbooks, and successfully learning the spell granted the user a limited number of castings before they had to relearn the spell. This was phased out with NetHack 3.3.0's integration of the Wizard Patch and its revamp of the spellcasting system into one that uses a more traditional system with magic points rather than a set number of uses; however, knowledge of the spell lasts a limited amount of turns, and can be refreshed when necessary by reading the appropriate spellbook (which can themselves be read a limited amount of times).
Vance's works have had other varying, indirect influences on NetHack:
The Monk quest artifact, The Eyes of the Overworld, is derived from the story of the same name written by Vance.
The encyclopedia entry for the sandestin uses an excerpt from another of his stories, Rhialto the Marvellous.
Many other monsters and features in variants of NetHack were indirectly influenced by Vance and his works as well.
Influence on variants
Vecna is a highly-notable D&D villain whose name is an anagram of Vance, and appears in SLASH, SLASH'EM, SlashTHEM, and EvilHack. In D&D lore, he is an incredibly powerful wizard-turned-lich who was betrayed and destroyed by his right-hand servant Kas, who used a powerful sword that Vecna either created or procured for him, depending on the source. Vecna's only remnants from the pitched battle were left hand and eye, which he never recovered even after resurfacing as a demigod - these became powerful artifacts, and at least one can be obtained in each of those variants, typically only by killing Vecna.
The term "grue" originated in Jack Vance's Dying Earth series, used to describe a human-bat hybrid predator. The name was then borrowed for the 1977 computer game Zork, where it is most famously remembered as the darkness-dwelling monster that would eat the player character quickly if they ventured too far into any dark area without a light source. While only appearing as a hallucinatory monster in NetHack itself, the devnull tournament had an homage to Zork as one of the many challenges, and the Grue itself is an actual monster in dNetHack.
Fritz Leiber
Wikipedia has an article about:
Fritz Leiber
Fritz Reuter Leiber Jr. (December 24, 1910 β September 5, 1992) was an American writer of fantasy, horror, and science fiction. He is considered one of the fathers of "sword and sorcery" fiction, coining the term in response to a 1961 letter from Michael Moorcock in the fanzine Amra. Moorcock initially proposed the term "epic fantasy" as a name for the sort of fantasy-adventure story written by Robert E. Howard - Leiber replied in the journal Ancalagon by suggesting "'sword-and-sorcery' as a good popular catchphrase for the field".
Leiber's greatest influence on the "sword and sorcery" genre is the Fafhrd and the Gray Mouser series of stories about a barbarian-and-thief pair of unlikely heroes, taking place in and around the city of Lankhmar - the two titular characters were based on Leiber and his friend, Harry Otto Fischer. Numerous writers have since paid homage to them and its characters; Terry Pratchett's city of Ankh-Morpork in particular bears more than a passing resemblance to Lankhmar. While Pratchett asserted this was unintended on his part, he does lean into it with the mention of a swordsman-thief "The Weasel" and his giant barbarian comrade "Bravd" in the opening scenes of the first Discworld novel.
Most of Leiber's influence on NetHack is naturally related to the Rogue role - The Master of Thieves serves as the Rogue quest leader, likely in acknowledgement of the above connection to Pratchett. The pantheon consists of Issek, Mog, and Kos, which are derived from the setting of the Fafhrd stories.
In terms of variants, SLASH 6 had the artifact rapier Scalpel, which was modeled after the Gray Mouser's weapon of choice - the artifact still exists as a deferred feature in the data of SLASH'EM, and was finally re-implemented in SlashTHEM as the Mouser's Scalpel. In the Convict patch integrated into many variants, the role of lawful god is given to Ilmater, a male deity from the Forgotten Realms setting of Dungeons & Dragons that is described as similar to the god Issek.
David S. H. Rosenthal
Wikipedia has an article about:
David S. H. Rosenthal
David Stuart Holmes Rosenthal (born 1948 in Cambridge, United Kingdom) is a notable British-American computer scientist who also works in digital preservation, and has worked at companies such as Nvidia and Sun. He was once a co-worker of Andries Brouwer, and David's Treasure Zoo is named for him; in Hack 1.0 and Hack 1.0.1, a player whose login name was "david" would encounter the treasure zoo much more frequently.[1] Versions of the game released long after include a rumor hinting at this.
The name also has a somewhat ironic connection: During the development of Hack 1.0, one of David's students at the Universiteit van Amsterdam used a wand of digging during their game to tunnel into a shop and steal its inventory, which was then sold back to the shopkeeper. At the time, the shopkeeper had a bottomless wallet and never got angry, so the student's character became extraordinarily rich overnight - this prompted early changes to shopkeeper behavior and inventory, including limiting the size of their wallet, increasing their stats, and making them turn hostile if the player attempts to steal items from them.
References
β Hack 1.0 mklev.c, line 147 |
# Gem
Item classes
" Amulets
[ Armor
% Comestibles
$ Coins
* Gems
! Potions
= Rings
? Scrolls
+ Spellbooks
` Statues
( Tools
` Boulders
) Weapons
/ Wands
For the material, see gemstone.
In NetHack, gems are simple and typically lightweight items found in the dungeon. They come in three varieties: valuable gems, worthless pieces of glass which look similar, and gray stones. Another type of item that uses the same glyph is the rock, which is handled differently.
Valuable identified gems may be sold for relatively large amounts of money at most general stores, which makes them valuable as a compact form of money. However, shopkeepers will always buy unidentified gems as if they are worthless glass, and will always sell unidentified gems as if they are valuable, possibly subject to a further 33% surcharge for being unidentified. Valuable gems may also be thrown to a co-aligned unicorn to get a large Luck increase. Throwing any valuable or worthless gem to a unicorn will pacify them, and will variably raise or lower luck in certain cases. See the unicorn page for details. Valuable gems also give score, but as score does not normally matter, this is typically of low importance.
Glass and rocks are relatively worthless, though they can be used for throwing if you should wish to conserve your other attacks. Additionally, they can occasionally be polymorphed into more valuable gems if included in a polypile, though it's not worth wasting a wand charge on them. Rocks can also be changed in to meatballs, useful for taming and for sale in shops.
Despite the name, a worthless piece of
<color> glass will not shatter like other glass items if thrown against a wall or dropped while levitating. You can fire them from slings as a lighter version of rocks; like rocks, they can be multishot. If they are used as ammo however, both worthless pieces of glass and precious gems may disappear (like arrows).
Contents
1 Tables of gems
1.1 By value
1.2 By color
2 Generation and identification
3 Prices when unidentified
4 Gray stones
5 SLASH'EM
5.1 Alchemy with gems
6 Encyclopedia entries
6.1 Gem or rock
6.2 Agate
6.3 Amber
6.4 Diamond
6.5 Dilithium
6.6 Emerald
6.7 Jacinth stone
6.8 Jade
6.9 Obsidian
6.10 Ruby and sapphire
6.11 Topaz stone
6.12 Turquoise stone
Tables of gems
By value
Some gems' appearances can change. In these cases all the options are listed. The actual appearance is randomly chosen from the options at the beginning of each new game, and is consistent throughout that game (if one fluorite is white, all fluorites in that game will be white). The hardness of a gem can be tested by #engraving with it; if the gem is hard, the game will prompt "What do you want to engrave?"; if it is soft, "What do you want to write in the dust?"
*
Name
Description
Cost (zm)
Weight
Hardness
Prob (β°)
Material
*
dilithium crystal
white gem
4500
1
soft
2
gemstone
*
diamond
white gem
4000
1
HARD
3
gemstone
*
ruby
red gem
3500
1
HARD
4
gemstone
*
jacinth stone
orange gem
3250
1
HARD
3
gemstone
*
sapphire
blue gem
3000
1
HARD
4
gemstone
*
black opal
black gem
2500
1
HARD
3
gemstone
*
emerald
green gem
2500
1
HARD
5
gemstone
**
turquoise stone
green gemblue gem
2000
1
soft
6
gemstone
*
citrine stone
yellow gem
1500
1
soft
4
gemstone
**
aquamarine stone
green gemblue gem
1500
1
HARD
6
gemstone
*
amber stone
yellowish brown gem
1000
1
soft
8
gemstone
*
topaz stone
yellowish brown gem
900
1
HARD
10
gemstone
*
jet stone
black gem
850
1
soft
6
gemstone
*
opal
white gem
800
1
soft
12
gemstone
*
chrysoberyl stone
yellow gem
700
1
soft
8
gemstone
*
garnet stone
red gem
700
1
soft
12
gemstone
*
amethyst stone
violet gem
600
1
soft
14
gemstone
*
jasper stone
red gem
500
1
soft
15
gemstone
****
fluorite stone
green gemblue gemwhite gemviolet gem
400
1
soft
15
gemstone
*
jade stone
green gem
300
1
soft
10
gemstone
*
obsidian stone
black gem
200
1
soft
9
gemstone
*
agate stone
orange gem
200
1
soft
12
gemstone
*
worthless piece of white glass
white gem
0
1
soft
77
glass
*
worthless piece of blue glass
blue gem
0
1
soft
77
glass
*
worthless piece of red glass
red gem
0
1
soft
77
glass
*
worthless piece of yellowish brown glass
yellowish brown gem
0
1
soft
77
glass
*
worthless piece of orange glass
orange gem
0
1
soft
76
glass
*
worthless piece of yellow glass
yellow gem
0
1
soft
77
glass
*
worthless piece of black glass
black gem
0
1
soft
76
glass
*
worthless piece of green glass
green gem
0
1
soft
77
glass
*
worthless piece of violet glass
violet gem
0
1
soft
77
glass
*
luckstone
gray stone
60
10
soft
10
mineral
*
loadstone
gray stone
1
500
soft
10
mineral
*
touchstone
gray stone
45
10
soft
8
mineral
*
flint stone
gray stone
1
10
soft
10
mineral
*
rock
rock
0
10
soft
100
mineral
By color
The gems that have a randomized appearance are marked with an asterisk, "*".
A user has suggested improving this page or section as follows:
"The unidentified sell price column hasn't been updated since 3.4.3 and is out of date, and probably nobody cares enough to update it, because the prices are a huge pain to calculate."
Color
Possibilities
Cost
Unidentified sell price
Level
Hardness
0
1
2
*White
dilithium crystal
4500
4
4
6
27
soft
diamond
4000
5
5
3
24
HARD
opal
800
5
7
3
1
soft
fluorite stone*
400
4
7
4
1
soft
worthless glass
0
8
6
4
1
soft
*Blue
sapphire
3000
8
3
6
15
HARD
turquoise stone*
2000
5
6
5
6
soft
aquamarine stone*
1500
7
3
3
1
HARD
fluorite stone*
400
4
7
4
1
soft
worthless glass
0
3
7
5
1
soft
*Red
ruby
3500
6
6
4
21
HARD
garnet stone
700
7
4
5
1
soft
jasper stone
500
3
6
3
1
soft
worthless glass
0
4
3
6
1
soft
*Yellowish brown
amber stone
1000
8
4
4
1
soft
topaz stone
900
3
5
5
1
HARD
worthless glass
0
5
4
3
1
soft
*Orange
jacinth stone
3250
7
7
5
18
HARD
agate stone
200
6
4
6
1
soft
worthless glass
0
6
5
4
1
soft
*Yellow
citrine stone
1500
6
7
6
3
soft
chrysoberyl stone
700
6
3
4
1
soft
worthless glass
0
7
6
5
1
soft
*Black
black opal
2500
3
4
3
12
HARD
jet stone
850
4
6
6
1
soft
obsidian stone
200
5
3
5
1
soft
worthless glass
0
8
7
6
1
soft
*Green
emerald
2500
4
5
4
9
HARD
aquamarine stone*
1500
7
3
3
1
HARD
jade stone
300
7
5
3
1
soft
fluorite stone*
400
4
7
4
1
soft
turquoise stone*
2000
5
6
5
6
soft
worthless glass
0
3
3
3
1
soft
*Violet
amethyst stone
600
8
5
6
1
soft
fluorite stone*
400
4
7
4
1
soft
worthless glass
0
4
4
4
1
soft
Generation and identification
To be formally identified means that a gem can be sold at a shop using its base price instead of just a few zorkmids; even if you've found all the other members of the white gem family, including the worthless glass bauble, the shopkeeper will not take "a white gem called diamond" at face value. Much like other forms of identification, gems can be formally identified by:
scrolls or spells of identification, the former of which is generally considered wasteful to use on gems unless it is blessed to begin with
Sitting on thrones and hoping for a blessed identification
Using a touchstone, which must be blessed to perform formal identification for everyone except gnomes and archeologists (who only require it to be uncursed).
Before all that, there are easy ways of determining which gems are worth the effort of formally identifying.
Some valuable gems can only be generated at specific dungeon levels or below. If a particular valuable gem would have been created but the dungeon level is not deep enough, a different valuable gem will be generated instead. Dungeon level does not otherwise affect gem probability, and the ratio of randomly generated gems to randomly generated glass is roughly 1:4 regardless of dungeon level.
These are the minimum levels for certain valuable gems:
Dungeon level
Gem
3
citrine stone
6
turquoise stone
9
emerald
12
black opal
15
sapphire
18
jacinth stone
21
ruby
24
diamond
27
dilithium crystal
Any other gems not listed above can be generated on any dungeon level.
Additionally, there are places where certain types of gems are guaranteed to be generated. Twelve gems β three diamonds (white), three emeralds (green), three rubies (red), and three amethysts (violet) β are guaranteed in the corner turrets of Fort Ludios, for example. Also, each bottom of the Gnomish Mines has several guaranteed gems, including at least an uncursed luckstone and an amethyst.
Amethysts have the special property of converting booze into fruit juice, which may be used to informally identify them (and also booze and fruit juice).
An uncursed touchstone can easily separate glass from valuable gems. Even without one, there are ways of distinguishing valuable gems from glass. Some players type-name all gems to take advantage of the fact the hardness/color/price/is-glass quadruple is unique for each type of gem. The inventory list automatically creates stacks of different unidentified gems that are described as the same color; there is only one pile of worthless glass of any given color. Next is hardness β all hard gems are valuable β and hardness can easily be tested by trying to engrave with gems on the dungeon floor. If you engrave in the dust, the gem is soft; if you scratch the floor itself, the gem is hard. Of the remaining groups of soft gems, you can throw one of each stack at a cross-aligned unicorn while utilizing naming tricks to keep track of which gems were found, which gems were to be thrown at the unicorn, and which gems were rejected by the unicorn. Cross-aligned unicorns only accept valuable gems "hesitatingly" and there is no Luck penalty for killing them, if without a Pet, though there may be an unknown Luck adjustment when they catch said valuable gems.
Do not bother to BUC identify your gems (not counting gray stones) at an altar. They are always generated uncursed and their BUC status has no effect. Marking them uncursed at an altar just causes the gems to fail to stack when you pick up more gems of the same type that haven't been formally BUC identified, wasting inventory slots. This can be particularly annoying if you are distinguishing valuable gems without formally identifying them, e.g. by throwing them at unicorns or using an uncursed touchstone, as it will prevent gems you pick up from stacking with named stacks.
Prices when unidentified
When selling gems which have not been formally identified to a shop, you will be offered a price from one of the "Unidentified sell price" columns. The values here will sometimes allow you to identify the gem. The column used is fixed for each shop (but may differ between shops), which may allow more gems to be identified if the column can first be determined.
The price table depends on compile time options. If you compiled NetHack yourself, check it is still valid.
Gray stones
A gray stone can be one of the following items:
Touchstones may be used to identify glass from gems, and even the variety of gem if it is a blessed touchstone or you are a gnome or archeologist.
Luckstones will augment your luck rather impressively; if you have a blessed luckstone and no other luck items, your good Luck will not timeout, bad Luck will, and you'll get +3 extra Luck.
Loadstones are a pun (dating back to early editions of Dungeons and Dragons): at 500 weight units, they weigh 50 times as much as the other gray stones, and they autocurse (and are generated cursed) so they cannot be dropped.
Flint stones have no particular purpose, but they do slightly better as sling ammo.
Unlike other gems, unidentified gray stones are priced by shopkeepers at their normal values, so price identification is a viable way to identify them.
SLASH'EM
Due to the existence of migohives, identifying four gems is slightly easier in SLASH'EM, because only these gems are generated in migohives: diamonds, rubies, agate stones, and fluorite stones. Hence, if you find a white gem in a migohive and can engrave with it, it's a diamond, and otherwise it's a fluorite stone. Blue, green, or purple gems found in migohives are also fluorite stones. If you find a red gem in a migohive, it's a ruby, and if you find an orange gem, it's an agate stone.
Alchemy with gems
Valuable gems can be dipped into a potion of acid to make new potions. See Alchemy Β§ Gem alchemy for details.
Encyclopedia entries
Gem or rock
The difference between false memories and true ones is the same as for jewels: it is always the false ones that look the most real, the most brilliant.
[ Salvador Dali ]
Agate
Translucent, cryptocrystalline variety of quartz and a subvariety of chalcedony. Agates are identical in chemical structure to jasper, flint, chert, petrified wood, and tiger's-eye, and are often found in association with opal. The colorful, banded rocks are used as a semiprecious gemstone and in the manufacture of grinding equipment. An agate's banding forms as silica from solution is slowly deposited into cavities and veins in older rock.
[ The Columbia Encyclopedia, Sixth Edition ]
Amber
"Tree sap," Wu explained, "often flows over insects and traps them. The insects are then perfectly preserved within the fossil. One finds all kinds of insects in amber - including biting insects that have sucked blood from larger animals."
[ Jurassic Park, by Michael Crichton ]
Diamond
The hardest known mineral (with a hardness of 10 on Mohs' scale). It is an allotropic form of pure carbon that has crystallized in the cubic system, usually as octahedra or cubes, under great pressure.
[ A Concise Dictionary of Physics ]
The diamond, _adamas_ or _dyamas_, is a transparent stone, like crystal, but having the colour of polished iron, but it cannot be destroyed by iron, fire or any other means, unless it is placed in the hot blood of a goat; with sharp pieces of diamond other stones are engraved and polished. It is no greater than a small nut. There are six kinds, however Adamant attracts metal; it expels venom; it produces amber (and is efficacious against empty fears and for those resisting spells). It is found in India, in Greece and in Cyprus, where magicians make use of it. It gives you courage; it averts apparitions; it removes anger and quarrels; it heals the mad; it defends you from your enemies. It should be set in gold or silver and worn on the left arm. It is likewise found in Arabia.
[ The Aberdeen Bestiary, translated by Colin McLaren ]
Dilithium
The most famous and the first to be named of the imaginary "minerals" of Star Trek is dilithium. ... Because of this mineral's central role in the storyline, a whole mythology surrounds it. It is, however, a naturally occurring substance within the mythology, as there are various episodes that make reference to the mining of dilithium deposits.... This name itself is imaginary and gives no real information on the structure or make-up of this substance other than that this version of the name implies a lithium and iron-bearing aluminosilicate of some sort. That said, the real mineral that most closely matches the descriptive elements of this name is ferroholmquistite which is a dilithium triferrodiallosilicate. If one goes on the premise that nature follows certain general norms, then one could extrapolate that dilithium might have a similar number of silicon atoms in its structure.
Keeping seven (i.e. hepto) ferrous irons and balancing the oxygens would give a theoretical formula of Li2Fe7Al2Si8O27. A mineral with this composition could theoretically exist, although it is doubtful that it would possess the more fantastic properties ascribed to dilithium.
[ The Mineralogy of Star Trek, by Jeffrey de Fourestier ]
Emerald
'Put off that mask of burning gold
With emerald eyes.'
'O no, my dear, you make so bold
To find if hearts be wild and wise,
And yet not cold.'
'I would but find what's there to find,
Love or deceit.'
'It was the mask engaged your mind,
And after set your heart to beat,
Not what's behind.'
'But lest you are my enemy,
I must enquire.'
'O no, my dear, let all that be;
What matter, so there is but fire
In you, in me?'
[ The Mask, by W.B. Yeats ]
Jacinth stone
Sweet in the rough weather
The voice of the turtle-dove-
'Beautiful altogether
Is my Love.
His Hands are open spread for love
And full of jacinth stones-
As the apple-tree among trees of the grove
Is He among the sons.'
[ The Beloved, by May Probyn ]
Jade
Nothing grew among the ruins of the city. The streets were broken and the walls of the houses had fallen, but there were no weeds flowering in the cracks and it seemed that the city had but recently been brought down by an earthquake. Only one thing still stood intact, towering over the ruins. It was a gigantic statue of white, gray and green jade - the statue of a naked youth with a face of almost feminine beauty that turned sightless eyes toward the north.
"The eyes!" Duke Avan Astran said. "They're gone!"
[ The Jade Man's Eyes, by Michael Moorcock ]
Obsidian
A volcanic glass, homogeneous in texture and having a low water content, with a vitreous luster and a conchoidal fracture. The color is commonly black, but may be some shade of red or brown, and cut sections sometimes appear to be green. Like other volcanic glasses, obsidian is a lava that has cooled too quickly for the contained minerals to crystallize. In chemical composition it is rich in silica and similar to granite. It is favored by primitive peoples for knives, arrowheads, spearheads, and other weapons and tools.
[ The Columbia Encyclopedia, Sixth Edition ]
Ruby and sapphire
_Corundum._ Mineral, aluminum oxide, Al2O3. The clear varieties are used as gems and the opaque as abrasive materials. Corundum occurs in crystals of the hexagonal system and in masses. It is transparent to opaque and has a vitreous to adamantine luster. [...] The chief corundum gems are the ruby (red) and the sapphire (blue).
[ The Columbia Encyclopedia, Sixth Edition ]
Topaz stone
Aluminum silicate mineral with either hydroxyl radicals or fluorine, Al2SiO4(F,OH)2, used as a gem. It is commonly colorless or some shade of pale yellow to wine-yellow; [...] The stone is transparent with a vitreous luster. It has perfect cleavage on the basal pinacoid, but it is nevertheless hard and durable. The brilliant cut is commonly used. Topaz crystals, which are of the orthorhombic system, occur in highly acid igneous rocks, e.g., granites and rhyolites, and in metamorphic rocks, e.g., gneisses and schists.
[ The Columbia Encyclopedia, Sixth Edition ]
Turquoise stone
TUBAL: There came divers of Antonio's creditors in my company to Venice that swear he cannot choose but break.
SHYLOCK: I am very glad of it; I'll plague him, I'll torture him; I am glad of it.
TUBAL: One of them showed me a ring that he had of your daughter for a monkey.
SHYLOCK: Out upon her! Thou torturest me, Tubal. It was my turquoise; I had it of Leah when I was a bachelor; I would not have given it for a wilderness of monkeys.
[ The Merchant of Venice, by William Shakespeare ]
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.
</color> |
# File:Greed.png
File
File history
File usage
MetadataNo higher resolution available.
Greed.png β(16 Γ 16 pixels, file size: 2 KB, MIME type: image/png)
Summary
A 16x16 SpliceHack monster tile.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current17:14, 11 November 201916 Γ 16 (2 KB)Agulp (talk | contribs)== Summary == A 16x16 SpliceHack monster tile. Category: SpliceHack Monsters
You cannot overwrite this file.
File usage
The following page uses this file:
Sin
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Compression schemeUncompressedPixel compositionRGB |
# Property
A property is any of several on-or-off traits of the hero or a monster. Properties include the resistances, the effects of rings, the temporary effects of certain potions, negative effects (as confusion, stoning), and others. A property may be intrinsic or extrinsic.
Intrinsic and extrinsic properties are binary; you either have it or you don't. Thus numerical traits (as alignment record, dexterity, luck, prayer timeout, etc.) are not properties in this sense. Enlightenment will reveal many properties of the hero, along with some other traits.
Contents
1 Intrinsic versus extrinsic
2 List of properties
2.1 Intrinsic properties
2.2 Extrinsic properties
2.3 Intrinsics that always time out
2.4 Intrinsics that cause harm on time out
3 Commentary
4 Source code
4.1 References
Intrinsic versus extrinsic
In NetHack, an intrinsic is any property that your character has internally, while an extrinsic is any property that your character derives from using, carrying or wearing an item.
You gain an extrinsic when you wield, wear or put on an item that provides it. The item is typically a ring, amulet, armor or artifact. For example, the amulet of ESP or the helm of telepathy can grant extrinsic telepathy; the extrinsic goes away when you take off the item. Some nice quest artifacts provide an extrinsic when carried; in that case, the extrinsic goes away when you drop or lose the artifact, or place it in a container.
There are more ways to gain an intrinsic.
You might gain it as an innate property of your role or race. For some innate properties, you need to first reach a certain experience level. For example, a Barbarian starts with poison resistance and gains intrinsic speed at level 7.
You might gain it "from outside". The principal ways to do this are crowning, eating certain corpses, eating jewelry or sitting on thrones.
The gremlin has an attack that may steal one of eleven intrinsics. Also, you can lose an innate property if something drains you below the required level. Eating a disenchanter corpse may also remove one of the same intrinsics that gremlin attacks affect.
List of properties
The following tables provide a brief description of each property that the hero might have, and some notable sources of that property. (The property may have other sources.) The individual articles for each property might provide more details.
The left column also gives the associated constant from prop.h, if any. The right column may refer to a monster flag (like M1_FLY); then you may search monst.c to find a monster with that flag for polymorph.
Intrinsic properties
It is possible to receive any of these properties as intrinsics that never time out. Some are also available as extrinsics, or as temporary intrinsics. This list includes each property that may be intrinsic, even if the only way is to eat the correct ring. (Eating a ring has a chance of failing to convey the property!)
Common nameof property
DescriptionNotable sources
fire resistanceFIRE_RES
Prevents fire damage, but does not fireproof your inventory.
Be a Monk at level 11, or a Priest at level 20
Eat a corpse (see fire resistance page)
Put on or eat a ring of fire resistance
Polymorph into a resistant monster (MR_FIRE)
cold resistanceCOLD_RES
Prevents cold damage, but does not protect your potions.
Be a Valkyrie
Be a Monk at level 13
Eat a corpse (see cold resistance page)
Put on or eat a ring of cold resistance
Polymorph into a resistant monster (MR_COLD)
sleep resistanceSLEEP_RES
Prevents sleep. Alternatively, free action works for potions only.
Be an elf at level 4
Eat a corpse (see sleep resistance page)
Eat a ring of free action (wearing it would provide free action)
Polymorph into a resistant monster (MR_SLEEP)
disintegration resistanceDISINT_RES
Prevents instadeath from black dragon breath (or use reflection to block the breath); also the only way to prevent instadeath from wide-angle disintegration beams.
Eat a black dragon corpse
Polymorph into a resistant monster (MR_DISINT)
shock resistanceSHOCK_RES
Prevents damage from electric attacks, but does not defend rings or wands.
Be a Monk at level 15
Eat a corpse (see shock resistance page)
Put on or eat a ring of shock resistance
Polymorph into a resistant monster (MR_ELEC)
poison resistancePOISON_RES
Prevents poisoning, also prevents the instadeath from poison.
Be an orc, Barbarian, or Healer
Be a monk at level 3 or a Tourist at level 20
Eat a corpse (see poison resistance page)
Wear an amulet versus poison or ring of poison resistance
Polymorph into a resistant monster (MR_POISON)
regenerationREGENERATION
Increases the rate of recovery of your hit points, so that they sooner return to maximum.
Put on or eat a ring of regeneration
Wield the Staff of Aesculapius
Polymorph into a monster with M1_REGEN; examples include trolls, vampires and werecreatures
searchingSEARCHING
Automatically search squares around you, increasing the chance that you notice hidden doors or traps.
Be a Ranger
Be a Monk at level 9, or an Archaeologist, Rogue, or Tourist at level 10
Put on or eat a ring of searching
Wield Excalibur
see invisibleSEE_INVIS
Allows you to see invisible monsters (and in SLASH'EM, invisible objects).
Be a Ranger at level 15
Quaff potion of see invisible (only permanent if blessed)
Put on or eat a ring of see invisible
Eat a stalker corpse while invisible
Polymorph into a monster with M1_SEE_INVIS
Drink from a fountain.
invisibleINVIS
Makes you invisible. Monsters may struggle to find you and miss with their attacks.
Quaff a potion of invisibility (only permanent if blessed)
Zap oneself with a wand of make invisible
Wear a cloak or ring of invisibility.
Eat a stalker corpse while temporarily invisible
Polymorph into a stalker (causes stunning) or a black light
Invoke the Orb of Detection
teleportation/teleportitisTELEPORT
Every few turns, randomly teleports you around the dungeon level.
(Sometimes) eat a leprechaun, nymph, tengu, or the Wizard of Yendor
Put on or eat a ring of teleportation
Polymorph into a monster with M1_TPORT
teleport controlTELEPORT_CONTROL
When you teleport, allows you to choose your destination tile.
Be a Monk or Wizard at level 17
(Sometimes) eat a tengu or the Wizard of Yendor
Put on or eat a ring of teleport control
Carry the Master Key of Thievery
Polymorph into a tengu (M1_TPORT_CNTRL)
polymorph/polymorphitisPOLYMORPH
Every few turns, randomly polymorphs you into another monster type.
Put on or eat a ring of polymorph
polymorph controlPOLYMORPH_CONTROL
When you polymorph, allows you to choose the type of monster to become.
Put on or eat a ring of polymorph control
(In SLASH'EM) be a Doppelganger at level 9
levitationLEVITATION
You float in the air, and cannot reach the floor! However, you can pass over moats, trap doors and pits (except the pits in Sokoban, due to air currents).
Quaff a potion of levitation (temporary)
Cast the spell from a spellbook of levitation (temporary)
Wear a ring of levitation or boots of levitation
Eat a ring of levitation (temporary)
Invoke the Heart of Ahriman
stealthSTEALTH
Allows you to move around quietly, so that your steps do not wake sleeping monsters.
Some roles have innate stealth (see stealth page)
Wear elven boots, elven cloak, or ring of stealth
Receive a favor from your god when praying
aggravate monsterAGGRAVATE_MONSTER
Increases probability that nearby sleeping monsters notice you and wake.
(For all heroes but cavemen and orcs) eating cat or dog meat, or eating your own race
Sacrificing a dead pet at an altar
Wear or eat a ring of aggravate monster
conflictCONFLICT
Monsters will attack other nearby monsters (including you), disregarding their tame/peaceful/hostile status.
Put on or eat a ring of conflict
Invoke the Sceptre of Might
protectionPROTECTION
Indicates that you either have intrinsic divine protection, or wear an item of protection, for the purpose of the enlightenment message.
Buy divine protection by donating to priests
Wear a cloak of protection or ring of protection
Receive a favor from your god when praying
protection from shape changersPROT_FROM_SHAPE_CHANGERS
Forces shapeshifters and chameleons to stay in normal form.
Put on or eat a ring of protection from shape changers
warningWARNING
Labels unseen, undetected nearby monsters with a danger indicator from 1 to 5.
Be a Monk at level 7, some roles at level 15
Put on or eat a ring of warning
Carry the Master Key of Thievery or the Orb of Fate
hungerHUNGER
Increases the rate that you lose nutrition. This is bad, unless you are trying to make room for your next meal.
Put on or eat a ring of hunger
telepathyTELEPAT
Intrinsic telepathy allows you to sense most monsters (except mindless monsters), but only when you are blind.
Eat a floating eye (100% chance) or (master) mind flayer corpse (50% chance, 100% if at maximum intelligence)
Receive a favor from your god when praying
Extrinsic telepathy also functions in a limited radius when you are not blind.
Wear an amulet of ESP or helm of telepathy
Carry the Longbow of Diana, the Orb of Detection, the Magic Mirror of Merlin, or the Platinum Yendorian Express Card
speedFAST
Intrinsic speed makes you fast, allowing four moves for every three turns.
Zap yourself with a wand of speed monster
Eat a quantum mechanic corpse to toggle the intrinsic
Receive a favor from your god when praying
Extrinsic speed, and temporary intrinsic speed, make you very fast, allowing five moves every three turns.
Quaff a potion of speed
Wear speed boots
food appraisal
Before eating something, warns you of any bad effects that might result, and allows you to abort. Lost after activating once.
Read a blessed scroll of food detection
Cast detect food at skilled or expert
unbreathingMAGICAL_BREATHING
Allows you to survive without breathing. You can go underwater. You will not choke on your food.
Put on or eat an amulet of magical breathing
Polymorph into a breathless monster (M1_BREATHLESS)
amphibiousness
Allows you to breathe both in the air and underwater. You can go underwater.
Polymorph into an amphibious monster, such as any ; (M1_AMPHIBIOUS)
Be breathless
jumpingJUMPING
Allows you to land on another tile in one move.
Be a Knight
Wear jumping boots
Read spellbook of jumping (provides a spell instead of the property)
infravisionINFRAVISION
Your eyes sense the heat from warm monsters, making them visible to you, even in unlit places.
Play as a dwarf, elf, gnome or orc (these have M3_INFRAVISION)
Polymorph into a monster with M3_INFRAVISION
Extrinsic properties
There are no sources that provide any of these properties as an intrinsic (without polymorphing), but they have extrinsic sources:
Common nameof property
DescriptionNotable sources
acid resistanceACID_RES
Prevents acid damage (from yellow dragon breath, or from eating acidic corpses), but does not rustproof your armor.
Wear an alchemy smock or yellow dragon scale mail
Polymorph into a resistant monster (MR_ACID)
stoning resistanceSTONE_RES
Prevents the stoning process. This is one way to fight cockatrices and chickatrices.
Polymorph into a resistant monster (MR_STONE), such as a cockatrice, elemental, gargoyle or black naga
(In SLASH'EM) wear an amulet versus stone
sliming resistance
Provides immunity to the sliming process; this protects against the slime attack of the green slime.[1]
Polymorph into a green slime, fire vortex, flaming sphere, fire elemental or salamander
Be unchanging
drain resistanceDRAIN_RES
Protects against loss of experience levels, for example from the drain life attack of monsters. Prevents instadeath from drain below level 1.
Wield Stormbringer or Excalibur or the Staff of Aesculapius
Polymorph into any undead monster, demon or werecreature[2]
adornmentADORNED
Indicates that you wear a ring of adornment (of any enchantment). This intrinsic allows an enlightenment message to be displayed.
Wear a ring of adornment (note: charisma is modified by the ring's enchantment)
reflectionREFLECTING
Bounces gaze and ray attacks away from you, so that they do not affect you.
Wear silver dragon scale mail
Wear a shield of reflection or amulet of reflection
Wield the Longbow of Diana
Polymorph into a silver dragon (not the baby form)
life savingLIFESAVED
When you die, the worn amulet of life saving will resurrect you.
Wear an amulet of life saving (do not eat this amulet!)
magic resistanceANTIMAGIC
Prevents damage from certain traps, from magic missile and certain other magic attacks, and rays/fingers of death, among other useful benefits.
Wear a cloak of magic resistance or gray dragon scale mail
Wield Magicbane
Carry certain quest artifacts
phasingPASSES_WALLS
You can walk through walls. This is useful for taking shortcuts without digging them, and fleeing from certain places. However, this property has no effect in Sokoban.
Polymorph into a xorn or earth elemental
(In SLASH'EM) cast the spell passwall.
hallucination resistanceHALLUC_RES
Prevents the effects of hallucination.
Wield Grayswandir
fumblingFUMBLING
Causes you to sometimes trip while walking, accidentally drop items, fall down stairs, and have other such problems.
Wear gauntlets of fumbling or fumble boots
water walkingWWALKING
You can cross water by walking on its surface (as an alternative to using levitation, magical breathing or swimming). If the boots are fireproof, they may also be used to cross lava.
Wear water walking boots
displacementDISPLACED
Produces a displaced image of you on a nearby square, such that monsters sometimes attack the image and miss you.
Wear a cloak of displacement
(In SLASH'EM) wear shimmering dragon scale mail
clairvoyanceCLAIRVOYANT
Every few turns, the map of the area around you appears in your mind. This helps explore new areas and discover hidden paths.
Buy temporary clairvoyance by donating to priests
Be a Wizard and wear a cornuthaum
Carry the Amulet of Yendor
energy regenerationENERGY_REGENERATION
Your power increases toward maximum at a much faster rate, allowing you to frequently cast spells (if you have enough nutrition).
Carry the Eye of the Aethiopica
half spell damageHALF_SPDAM
Carry the Orb of Detection, the Platinum Yendorian Express Card, the Orb of Fate or the Eye of the Aethiopica
half physical damageHALF_PHDAM
Carry the Master Key of Thievery or the Orb of Fate
sickness resistanceSICK_RES
Provides complete immunity to sickness--both illness and food poisoning.
Polymorph into a ghoul or any fungus
free actionFREE_ACTION
Prevents paralysis in most cases. Makes the potion of sleeping harmless, but does not prevent other forms of sleep. Reduces stunning from monster spells to one turn.
Wear a ring of free action (eating it would grant sleep resistance)
swimmingSWIMMING
Enables you to swim across water. This differs from levitation (to float across water) and breathless (to go underwater).
Polymorph into a swimming monster (M1_SWIM)
Ride a swimming steed
(In SLASH'EM) wear gauntlets of swimming
sustain abilityFIXED_ABIL
Prevents changes to your six attributes. Prevents the effects of exercise and abuse.
Put on a ring of sustain ability (eating never works)
flyingFLYING
Enables you to fly above the ground. Flight is better than levitation, because you may reach the ground and fly down stairs.
Polymorph into a flying monster, such as a dragon (M1_FLY)
Ride a flying steed
(In SLASH'EM) wear an amulet of flying
unchangingUNCHANGING
Holds you to your current form. Use this to prevent unwanted polymorph, or to remain forever in your polymorphed form.
Wear an amulet of unchanging
slow digestionSLOW_DIGESTION
Decreases the rate that you lose nutrition, allowing you to survive longer before starvation. Also prevents purple worms from digesting you.
Put on a ring of slow digestion (ring is inedible)
warned of monster typeWARN_OF_MON, WARN_UNDEAD
Detects all monsters on the dungeon level that match certain monster types.
To be warned of orcs, wield Sting
(In SLASH'EM) To be warned of undead, be an Undead Slayer at level 1, or Necromancer at level 3
Intrinsics that always time out
You may receive any of these properties in this table as a temporary intrinsic, but not as a permanent intrinsic. After a specific number of turns, you lose the temporary intrinsic. That may be well, because most of these properties have bad effects; you would want them to wear off over time.
Common nameof property
DescriptionNotable sources
stunSTUNNED
Movement commands may cause you to step in a random direction, and you may hit pets by mistake. Direction of Zapping, spellcasting and firing also has a high chance of being randomized. Prevents teleport control.
Attempt to cast a forgotten spell (sometimes).
Eat a bat, giant bat or stalker corpse.
Get hit by the Stun monster spell, or the stunning gaze attack of Baalzebub and Archons.
Polymorphing into a bat, giant bat, vampire bat, raven or stalker.
confusionCONFUSION
Among other effects, you will mispronounce any scroll that you read (causing the scroll to have an alternate effect), and you will have trouble with spells and spellbooks.
Attempt to cast a forgotten spell (sometimes).
Get hit by the confusing gaze attack of an umber hulk
blindnessBLINDED
Disables your eyes, blocking your sight (unless you wear the Eyes of the Overworld). Intrinsic blindness will heal eventually, or you may use a cure such as a carrot.
Attack of a raven, explosion of a yellow light.
The only cure for extrinsic blindness is to remove whatever is blocking your eyes. Cream pie will eventually fall off and can also by removed by the #wipe command.
Wear a blindfold or a towel.
Polymorph into a monster without eyes (M1_NOEYES).
restful sleepSLEEPING
You keep falling asleep.
Wear an amulet of restful sleep.
paralysis
You become immobile and miss a number of turns.
Quaff a potion of paralysis, or let a monster throw it at you.
wounded legsWOUNDED_LEGS
Among other effects, you can carry less weight, and you cannot jump or kick.
Jump out of a bear trap.
Kick wall, object, or nothing (sometimes).
Get hit by a xan's attack.
Step on a land mine.
hallucinationHALLUC
Gives a random appearance to any monster or object on the map, so that you do not know who or what you see. In SLASH'EM, hallucination also distorts the view of objects on the same square as you, including your inventory.
Eat a yellow mold or violet fungus.
Explosion of a black light.
slippery fingersGLIB
Causes wielded objects to drop from your grasp.
Eat greasy food from a tin.
Applying a cursed can of grease or choosing "-" as a target for a non-cursed one.
invulnerabilityINVULNERABLE
Blocks all damage and prevents most causes of death.
(In vanilla) only available as the "shimmering light" during prayer.
(In SLASH'EM) a weaker form of invulnerability can be obtained by quaffing a potion of invulnerability.
monster detectionDETECT_MONSTERS
Detect all monsters on the dungeon level. This property is only available as a temporary intrinsic.
Quaff a potion of monster detection.
Read a spellbook of detect monsters and cast the spell.
Intrinsics that cause harm on time out
These temporary intrinsics do not only time out and go away, they also cause do something (typically to cause instadeath) when they time out. When you have one of these properties, you only have some number of turns to remove the property and avoid its time-out effect.
Common nameof property
DescriptionNotable sources
sicknessSICK
A fatal illness; you must cure this or it becomes an instadeath.
Receive food poisoning by eating a very old corpse
Receive illness from the attack of Demogorgon, Juiblex, Scorpius or Pestilence
stoningSTONED
Gradual stiffening will turn you into a statue (causing instadeath).
Attack from a monster wielding a cockatrice corpse
nausea/vomitingVOMITING
Can cause stun and confusion; when nausea times out, you spew part of your food and lose some nutrition.[3]
Eat a tripe ration or a rotten egg
strangulationSTRANGLED
Your amulet will strangle you to instadeath in five turns, unless you can somehow remove it before then.
Wear an amulet of strangulation
slimeSLIMED
Green slime will overtake your body and kill you, unless you can somehow remove the slime or gain sliming resistance before that happens.
Attack from a green slime
Eat a green slime corpse
Commentary
The adjective intrinsic refers to something that is internal, inherit, within the body. We also use the term as a noun. The antonym of intrinsic is extrinsic.
Oddly, sometimes we also use the term "intrinsic" to refer to any property, whether that property is intrinsic or extrinsic. For example, we might refer to an "intrinsic" from a ring, though the ring is external to the character. This leads to oxymoronic phrases such as "extrinsic intrinsic".
The usage of "intrinsic" to mean "extrinsic" occurs in other pages on this wiki, and even within the source code of NetHack. For example, the comment at the top of wield.c refers to wielded weapons conveying intrinsics, though they would actually convey extrinsics. The set_artifact_intrinsic function in artifact.c is another example of this usage. The mintrinsics field of struct monst stores information about both intrinsic and extrinsic resistances of the monsters.[4]
The struct prop that tracks properties has only separated "intrinsic" and "extrinsic" since NetHack 3.3.0.[5]
One can justify the use of "intrinsic" to mean "extrinsic". For example, an amulet versus poison may be extrinsic to your body, but when you wear it, the effect spreads inside your body and becomes intrinsic. When you eat that kobold shaman corpse, or land on poison in a spiked pit, then the poison enters your body but has no effect. There must be some intrinsic defense in your body that stops the poison, though the ring remains outside on your finger. This explanation would not work so well for an amulet of reflection.
If you quaff a potion that provides a property, it is an intrinsic or extrinsic property? One argument states that the contents of the potion enters your body, so the property must be intrinsic. (A look at struct prop supports that argument.) The other argument states any property from an item, including a potion, is an extrinsic. The potion of blindness seems to grant intrinsic blindness (not extrinsic blindness, which you could #wipe away), but the potion of speed seems to grant extrinsic speed, equivalent with speed boots.
If you acquire a property through polymorph, it is an intrinsic or extrinsic property? One argument notes that the property is intrinsic to your current form; the other argument provides that your current form is extrinsic to your true form.
Source code
For details, see prop.h
The source code defines most of the properties at prop.h, line 8. Each property has a representative integer constant. Particularly in objects.c and artilist.h, the integer constants assign the properties granted by using certain items. The integer constants also serve as array indexes into the u.uprops, an array of struct prop that records the source of each of the hero's intrinsics and extrinsics.
While food appraisal and paralysis do not have constants in prop.h, they behave like other intrinsics, thus their inclusion in the lists on this page.
References
β mhitu.c, line 1524, mondata.h, line 51
β mondata.c in NetHack 3.4.3, line 73
β timeout.c in NetHack 3.4.3, line 51
β monst.h, line 63, mondata.h, line 14, mondata.c, line 23, worn.c, line 260
β NetHack 3.2.0/you.h, line 108, NetHack 3.3.0/prop.h, line 78 |
# Drain life (monster attack)
Drain life is a monster attack damage type that may reduce the experience level of the defender.
Contents
1 Effect
1.1 On players
1.2 On monsters
2 Monsters with the attack
3 Internals
4 Strategy
5 References
Effect
When a drain life attack hits, it has a 1 in 3 chance of taking effect. It may be prevented by drain resistance, magic cancellation, or if the attacker is a cancelled monster.[1][2][3]
The precise effects then depend on whether it is a monster or a player that is hit.
On players
Main article: Experience level#Losing levels
If a player's level was one, he dies.
Otherwise, the player's level is reduced by 1. His experience is reduced to the maximum for his new level. Maximum and current hit points are reduced by the same amount as they would have been increased had the player gained a level. They cannot be reduced below one hit point.[2][4]
On monsters
If a monster's level was zero, it dies.
Otherwise, the monster's level is reduced by 1. Its maximum and current hit points are reduced by 2d6.
If its hit points are reduced below 1, it dies.[1][3]
Monsters with the attack
The following monsters have this attack by default:[5][6][7]
V vampire
V vampire lord
V Vlad the Impaler
W barrow wight
W wraith
W Nazgul
& Demogorgon
Additionally, if the compile-time option SEDUCE is not defined, the seduction attack of the following monsters becomes a drain life attack:[8]
& succubus
& incubus
Internals
Drain life is represented by the macro AD_DRLI.[9]
Strategy
With magic cancellation changes in 3.6.0, drain life attacks have become a little less preventable. Thankfully, most of the time you don't need to worry about it, since the first lost level is immediately regained due to the experience gained when the attacker is killed. If you expect to get hit many times, you can temporarily equip MC3 items or wield one of the drain resistance artifacts; MC3 will reduce the level drain chance to 1 in 30, which is good enough for most purposes. If you do somehow lose two levels at once, you can regain the second one by drinking a blessed potion of full healing (which will also have its usual effect).
References
β 1.0 1.1 mhitm.c, line 991 monster draining a monster
β 2.0 2.1 mhitu.c, line 1130 monster draining a player
β 3.0 3.1 uhitm.c, line 1467 player draining a monster
β losexp in exper.c player loses a level
β Vampires in monst.c all V have a drain life attack
β Wraiths in monst.c all W have a drain life attack
β monst.c, line 2731 Demogorgon has a drain life attack
β monst.c, line 2554 foocubi have a drain life attack if SEDUCE is not defined
β monattk.h in NetHack 3.4.3, line 52: AD_DRLI macro
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 18:00, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
00:27 Leather glovesβ (diff | hist) . . (+2)β . . Umbire the Phantom (talk | contribs) (ββEvilHack: *)
23 July 2023
22:08
Leather glovesββ (5 changes | history)
. .
(+3,524)β . .
[Umbire the Phantomβ (5Γ)]
m
22:08
(cur | prev) . . (+4)β . . Umbire the Phantom (talk | contribs) (ββdNetHack: *)
22:07
(cur | prev) . . (+293)β . . Umbire the Phantom (talk | contribs) (ββEvilHack: elaborate)
m
13:27
(cur | prev) . . (+30)β . . Umbire the Phantom (talk | contribs) (ref)
13:27
(cur | prev) . . (+2,821)β . . Umbire the Phantom (talk | contribs) (and the rest)
12:50
(cur | prev) . . (+376)β . . Umbire the Phantom (talk | contribs) (formatting in preparation for later expansion/sourcing - unsure how to judge EA advice in either direction due to morning brain, so I'll leave that to the others) |
# Scroll of summoning
In FIQHack the scroll of create monster is replaced with the scroll of summoning.
In both cases, a monster is created.
The major difference between the two scrolls is that summoned monsters only exist for a limited amount of time, based on the beatitude of the scroll:
Blessed: 20 turns
Uncursed: 10 turns
Cursed: 100 turns
In addition, if the scroll is cursed, the monster will be centered on you, hostile, and hasted.
If you read a scroll of summoning while confused, a random item with the same beatitude as the scroll will be created.
Other than the case of reading a cursed scroll, you will be prompted to select a location for the creation of the new monster.
See the spellbook of summoning for other details on the difference between summon and create monster. |
# File:White dragon scales.png
File
File history
File usageNo higher resolution available.
White_dragon_scales.png β(16 Γ 16 pixels, file size: 205 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'white dragon scales'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current11:08, 1 August 200616 Γ 16 (205 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'white dragon scales'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 15 pages uses this file:
Dragon scale mail
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0
White dragon scales |
# File:Uranium imp.png
File
File history
File usage
MetadataNo higher resolution available.
Uranium_imp.png β(16 Γ 16 pixels, file size: 364 bytes, MIME type: image/png)
MMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMM
MMMMMMMMMDCCMMMM
MMMPPIMMDCDMDMMM
MMIMIPFCFDAAMMMM
MMMMMIIDGFMAAMMM
MMMMFFFFFFFAAAAM
MMMMMFOFNFAAAMAM
MMMMMMFFFAAAAMMA
MMMMNHDCDIPAMMMM
MMMHNHFDFIPIMMMM
MMFHAAFFFAAIFAMM
MMFFMAFDFAMFFAMM
MMMMMMFAFAAAMMMM
MMMMMGGAGGAMMMMM
MMMMMMMMMMMMMMMM
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current20:00, 4 September 201316 Γ 16 (364 bytes)Chris (talk | contribs)MMMMMMMMMMMMMMMM MMMMMMMMAAAAAMMM MMAAAAAAADCCAAMM MAAPPIAADCDMDAMM MAIAIPFCFDAAAAMM MAAAAIIDGFMAAMMM MMAAFFFFFFFAAAAM MMMAAFOFNFAAAMAM MMMAAAFFFAAAAMMA MMAANHDCDIPAAMMM MAAHNHFDFIPIAAMM AAFHAAFFFAAIFAAM AAFFAAFDFAAFFAAM MAAAA...
17:25, 4 September 201316 Γ 16 (357 bytes)Chris (talk | contribs)
You cannot overwrite this file.
File usage
The following 4 pages uses this file:
List of UnNetHack tiles
Uranium imp
User:Chris/dNetHack/Monsters
User:EasterlyIrk/Scratchpad
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Horizontal resolution37.8 dpcVertical resolution37.8 dpc |
# User talk:Pommessemmel
Welcome!
Welcome!
Hi! Welcome, and thanks for contributing to NetHackWiki!
The How to help and Style guide pages are excellent starting points.
Recent changes is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask on Help Desk forum, on my talk page, at the Community Portal or on the talk page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.
I'm really happy to have you here, and look forward to working with you! -- Tjr (Talk) 15:51, August 30, 2010
Note: This is an automatic greeting. |
# Default tileset scaled to 32x32
Created by enlarging the default tiles using the Scale2x algorithm.
This image needs to be converted to either .bmp (for Windows GUI) or to .xpm format (for X11) to be used in nethack.
Default Rogue
Default Rogue scaled to 32x32
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |
# Geryon's lair (SLASH'EM)
In SLASH'EM, Geryon's lair is located between levels 10 and 15 of Gehennom. It is surrounded by a standard Gehennom maze level.
Map
------------------------------------------------- | ------------|----------| | |....S......|..........|--------------------- | |....|......S..........S...|......|.........| | |---S--------..........|...------S-----S-...| ---...........|..........|...S............|--S- ..............|-S--------|---|.....&......|.>.| ---...........|..........|...|............|---- | |---------S--..........|...----------S----- | |....|......|..........S..........|.......| | |....S......|..........|----------|.......| | ------------|----------| --------- -------------------------------------------------
Geryon's position is marked. The level also contains eight minotaurs, four horned devils, three barbed devils, two random pieces of armor, two random weapons, a random gem, two random potions, three random scrolls, and eight fire traps.
See also
Special level (SLASH'EM) |
# Spellcasting
Keyboard commands
~
!
@
#
$
%
^
&
*
(
)
_
=
+
Q
W
E
R
T
Y
U
I
O
P
{
}
|
q
w
e
r
t
y
u
i
o
p
[
]
\
A
S
D
F
G
H
J
K
L
:
"
a
s
d
f
g
h
j
k
l
;
'
Z
X
C
V
B
N
M
<
>
?
z
x
c
v
b
n
m
,
.
/
q
w
e
r
t
u
i
o
p
Alt
a
s
d
f
j
l
Alt
c
v
n
m
?
Alt
A
C
R
T
O
Alt
a
c
d
o
p
r
t
[
Ctrl
For monsters' spellcasting mechanics, see monster spells.
In NetHack, spellcasting is the act of casting a spell, done by using the Z command. Casting a spell uses your innate magical power as a source, rather than using an external source of magic such as a scroll or wand.
Healers, Monks, Priests and Wizards begin the game with knowledge of one or more spells, whose corresponding spellbooks appear in their initial inventory; other roles must find at least one spellbook and successfully read it first.
Contents
1 Basics
2 Spellcasting costs
3 Forgotten spells
4 Calculating spell success rate
4.1 Minimum spell failure rates
5 Effects
5.1 Range
5.2 To-hit
5.3 Damage
6 Strategy
6.1 Role and attribute strategy
6.2 Skill and experience strategy
7 History
8 Variants
8.1 SLASH'EM
8.2 FIQHack
9 External links
10 References
Basics
You must know at least one spell in order to cast; when casting a spell, a menu of known spells and their chance of failure is displayed. You can also view your list of known spells by pressing +, and pressing + again allows you to rearrange the spells so you can place them on more convenient letters.
A spell's chance of failure is affected by your spellcasting attribute (either intelligence or wisdom), experience level, skill level, your role's innate magical affinity, and what armor you are wearing: metal armor in particular can impact chances of success, as well as any worn shield and their material if applicable. Failure rates can be reduced by wearing a robe, and can be additionally reduced further if the spell is an emergency spell or your role's special spell. For details, see the article section on how to calculate spell failure chance.
When you attempt to cast a spell, the game rolls for success or failure against this rate, with a message coming up if you failed to cast the spell; otherwise, the spell immediately takes effect, prompting for a direction if necessary. Training skills in spell schools is done by successfully casting spells in that school, and raises the percentage by an amount equal to the spell's level; the spell itself does not have to directly affect anything.
Casting spells requires a certain amount of energy and nutrition proportionate to the spell's level; failing to cast a spell correctly uses up only a portion of that energy, and the detect food spell does not drain nutrition when cast.[1][2] Wizards have access to hungerless casting that can reduce or even eliminate nutrition costs, based on their intelligence score.
You cannot cast a spell if you lack the required energy, and in certain circumstances your energy or nutrition can be drained enough that an otherwise successful spell will end up failing; see spellcasting costs for further information. There are also other circumstances and requirements that can affect spellcasting:
You cannot cast spells if you are stunned.[3]
Your strength must be at least 4 to cast a spell, unless you are trying to cast restore ability.
You cannot be overtaxed or overloaded in terms of encumbrance.
You must also be capable of physically vocalizing the spell to cast it[4] β strangulation and polyforms that are headless, only make animal sounds or are otherwise incapable of speaking (e.g., grid bug, jabberwock, mimic, jaguar) will stop you from casting spells.
You must also have at least one free hand to direct the energy β this means you cannot cast if there are cursed weapons or shields in both hands.
This only applies if you are in a form that has hands; polyforms that lack hands do not prevent you from casting.
If confused, you can attempt to cast spells, but they will always fail with the same effects as random spell failure.
While using teleport at will is also considered to be a cast of a spell, and follows many of the same rules as casting teleport away, there are a few notable differences - teleport at will ignores failure rates, for instance.
Spellcasting costs
Each spell costs an amount of energy equal to 5 times the spell's level in order to cast;[5] if you are carrying the Amulet of Yendor, it drains an amount of energy between 1 point and 2 times the usual cost as you attempt to cast.[6]. If you do not have the required energy to cast the spell, nothing happens; if the Amulet drains enough energy to prevent the spell being cast, this uses up a move.[7] If you have the energy for a spell and fail to cast it correctly, only half of that spell's energy cost (rounded down) is used up.
In addition, casting any spell other than detect food uses an amount of nutrition equal to two times the energy cost; this is usually 10 times the spell's level, before factoring in reduced-hunger casting for Wizards (hungerless casting ignores this entirely). A failed cast of a spell costs as much as a successful one, and carrying the Amulet has no impact on nutrition costs. Being weak and very close to fainting from hunger can prevent you from properly casting any spell other than detect food; fainting will outright prevent casting of those other spells, regardless of whether or not you have hungerless casting.
As an example, casting a level 3 spell normally requires 15 energy and 30 nutrition; if you fail to cast it, only 7 energy is used. When carrying the Amulet of Yendor, there is an energy penalty of 1 to 30 points, so the total energy cost varies from 16 to 45. The nutrition cost will always be 30 regardless of the circumstance.
Forgotten spells
Spell knowledge lasts for 20,000 turns after learning the spell from a spellbook; a spell is forgotten once this duration expires, and forgotten spells are marked with an asterisk * in the casting menu. Re-reading a spellbook for a spell with a timeout at or below 1,000 turns will refresh knowledge of that spell and reset the timeout to 20,000 turns;[8] attempting to read a spellbook before the timeout is low enough will not use up a reading of the spellbook (meaning it will not result in a usage fee with unpaid spellbooks in a shop).[9]
Attempting to cast a forgotten spell will leave you confused and/or stunned, with the duration dependent on the level of the forgotten spell; this does not consume any nutrition or power. The exact effects of casting a forgotten spell are as follows:[10]
Probability
Effect
40%
confused for (spell-level + 1) * 3 turns
30%
confused for (spell-level + 1) * 2 turns
stunned for (spell-level + 1) turns
20%
confused for (spell-level + 1) turns
stunned for (spell-level + 1) * 2 turns
10%
stunned for (spell-level + 1) * 3 turns
Forgotten spells are a common way to deliberately become confused and invoke the alternative effects of certain scrolls.
Calculating spell success rate
The spell failure rate given in the spellcasting menu is calculated using the listed algorithm below, and the values in the table below this list, with higher numbers signifying harsher penalties (limited to a maximum of 20):
Start with the "base" value associated with your role.
Each role also has an "Emergency" modifier for emergency spells - specifically, remove curse and all healing spells except for stone to flesh - that is applied when casting such a spell.[11]
If you are wearing any shield, add the amount in the "shield" field. Though these amounts are small, note that wearing any shield other than a small shield also incurs a severe penalty later in the success chance calculation.
If you are wearing metallic body armor, add the amount in the "Suit" field.
If you are also wearing a robe, only add half the amount (rounded down).[12]
If you are wearing a robe without metallic armor, then subtract the amount in the "Suit" field. [13]
If you are wearing a metallic helmet other than the helm of brilliance, add 4.[14][15]
If you are wearing metallic gloves, add 6.[16]
If you are wearing metallic boots, then add 2.[17]
If you are casting the corresponding special spell for your role (also listed in the table), subtract 4.
Class
Base
Emergency
Shield
Suit
Stat
Special spell
Archeologist
5
0
2
10
Int
Magic mapping
Barbarian
14
0
0
8
Int
Haste self
Caveman
12
0
1
8
Int
Dig
Healer
3
-3
2
10
Wis
Cure sickness
Knight
8
-2
0
9
Wis
Turn undead
Monk
8
-2
2
20
Wis
Restore ability
Priest
3
-2
2
10
Wis
Remove curse
Ranger
9
2
1
10
Int
Invisibility
Rogue
8
0
1
9
Int
Detect treasure
Samurai
10
0
0
8
Int
Clairvoyance
Tourist
5
1
2
10
Int
Charm monster
Valkyrie
10
-2
0
9
Wis
Cone of cold
Wizard
1
0
3
10
Int
Magic missile
The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.
Knights can now cast clerical spells as if they were not wearing metallic body armor, including the bonus for any worn robes.
Next, calculate your base chance of success, which is 5.5 times either your intelligence or wisdom depending on your role (see the "Stat" field). The maximum natural human Int/Wis of 18 gives a 99% base success rate. This chance is modified by the following factors:
SKILL level (Unskilled = 0, Basic = 1, Skilled = 2, Expert = 3)
spell level (LVL)
experience level (XL)
The formula used to modify this chance is:[18]
difficulty = (LVL * 4) - (SKILL * 6) - (XL/3) - 5
If difficulty is positive, the spell is considered difficult. Your chance is reduced according to the following formula. A difficulty of 1 therefore gives a 53% penalty, and a difficulty of 9 gives a 100% penalty.
If it is negative, it will be increased with diminishing returns: the absolute value is multiplied by (15/LVL), capped at 20, and added to
the base chance. A level 1 spell therefore achieves the full 20% bonus with a difficulty of -2. A level 7 spell cannot achieve a better difficulty than -5, which gives a bonus of 10%.
The resulting chance is clipped to the range of 0% to 120% success. If you are wearing a shield larger than a small shield, the chance is then reduced to 1β4 of the amount, or else halved if it is the special spell for your role[19] Finally, the chance of success is adjusted by your total penalty using the following formula:
The result is clipped to the range of 0% to 100% success.
One non-obvious consequence of this calculation is that sometimes gaining an experience level divisible by 3 can have a very large effect on the success rate of some spells.[20]
Spell Level
Skill Level
XL for large improvement
2
unskilled
9
3
unskilled
21
4
basic
15
5
basic
27
5
skilled
9
6
skilled
21
7
expert
15
Minimum spell failure rates
Because "chance" in the above section is capped at 120%, there is a point where improving your skill, spellcasting stat, or level will not decrease spellcasting failure rates. The only way to decrease failure rates below the listed minimum is to reduce your spellcasting penalty (by putting on a robe or removing penalizing armor). The following table shows the minimum spell failure rates for a given penalty, not including the penalty change of -4 from your special spell:
Penalty
Min. failure rate
...with large shield
...with large shield, special spell
β€-4
0
60+3*penalty
0
-3
0
51
5
-2
0
54
10
-1
0
57
15
0
0
60
20
1
0
63
25
2
0
66
30
3
0
69
35
4
0
72
40
5
0
75
45
6
0
78
50
7
3
81
55
8
12
84
60
9
21
87
65
10
30
90
70
11
39
93
75
12
48
96
80
13
57
99
85
14
66
100
90
15
75
100
95
16
84
100
100
17
93
100
100
β₯18
100
100
100
Effects
Many spells have a corresponding wand, scroll or potion whose effects are similar or exactly the same.[21][22][23]
Range
The distance of a beam-type spell ranges from 6β13 squares.[24] The distance of the ray from a spell of dig ranges from 8β25 squares;[25] all other ray-type spells have a range of 7β13 squares.[26]
To-hit
For applicable offensive spells, the chance of hitting a target with a given AC is based on a d20 roll, with an additional spell bonus calculated by taking the sum of all penalties and bonuses from your dexterity and the relevant spell skill (similar to physical combat).[27][28]
If the chance is 0, success is calculated using this formula, where is the spell bonus:
Otherwise, negative AC is 'weakened' to a random number between -1 and the actual AC, and the success is calculated using this formula, where is the spell bonus and the chance is represented by :[29]
Damage
A spell damage bonus based on intelligence (INT) and experience level (XL) is used in most attack spell damage calculations:[30]
Criteria
Bonus
INT <= 9
-3
INT <= 13 OR XL < 5
0
INT <= 18
+1
INT <= 24 OR XL < 14
+2
INT = 25
+3
Each spell has its own damage calculations that usually include this bonus in some manner:
Force bolt:
2d12 + spell damage bonus[31]
Drain life:[32][33]
base d8
d4 for level 0 monsters
4-8 for adult dragons
5-8 for named demons (though they are normally immune)
(base health) / (base level) for golems
Spell damage bonus is added after factoring the above, then damage is halved if the monster resists: otherwise, the spell deals double damage and also inflicts damage to max HP
Magic missile:[34]
(XL / 2 + 1)d6 + spell damage bonus
no damage if the monster has magic resistance
Cone of cold (below Skilled):[35]
(XL / 2 + 1)d6 + spell damage bonus; additional (XL / 2 + 1)d3 if monster has fire resistance
Fireball (below skilled)[36]
Base 12d6 damage explosion centered at the monster; no spell damage bonus
modified like Skilled below
Cone of cold and fireball (skilled or expert)[37]
2 to 9 explosions covering a 3 x 3 space, the first centered on a starting point up to 10 steps away, remaining centered randomly 9 spaces centered on starting point
base + spell damage on each monster in affected space for each explosion
Cone of Cold and monster has fire resistance or Fireball and monster has cold resistance: double damage[38]
Monster resists: 1/2 damage
additional damage for destroyed items[39]
Strategy
The three primary methods to improve your spellcasting rates are:
Increasing the relevant spellcasting attribute.
Increase your skill in the desired spell school(s).
Wear armor appropriate to your role's spellcasting abilities.
Role and attribute strategy
Your casting attribute, role Base value (per the above table), and metal armor determine your success chance for low-level spells. Experience level and spell school skill can raise your chance for high-level spells up to the chance of low-level spells, but will not make low-level spells more reliable.
Each point of your spellcasting attribute up to 16 is significant in determining your success chance with "easy" spells. Roles with lower base spellcasting penalties (i.e. "base" values of 5 or lower) may be able to get by with fewer points in that attribute, but tend to start with that attribute at the racial maximum in any case. An intelligence or wisdom score of 17-18 is significant for roles with higher base penalties or low-penalty roles wearing metal armor; score of 19-22 are significant for high-level spells that the 20-point "easy" bonus does not apply to; and scores of 23 or higher are only significant for "difficult" spells, which generally have low success chances regardless.
With a base success chance of 120%, your spellcasting penalty (Base modified by armor) must be 6 or less to achieve an overall 100% success chance. Roles that can achieve this without a robe are Archeologist, Healer, Priest, Tourist, and Wizard. Roles that can achieve this when casting emergency spells or their special spell are Knight and Monk. Roles that can achieve this with their special spell only are Ranger, Samurai, Rogue, and Valkyrie. The remaining two roles, Barbarian and Caveman, cannot achieve 100% success chance in any spell without a robe.
Skill and experience strategy
Spells are much easier to cast when their difficulty is zero or less. The following table lists the most difficult spell level that is still considered easy (i.e. with no penalty for spell level) given a set of particular experience and skill levels.
Highest easy spell level
Xlvl
Unskilled
Basic
Skilled
Expert
1β2
1
2
4
5
3β8
1
3
4
6
9β14
2
3
5
6
15β20
2
4
5
7
21β26
3
4
6
7
27β30
3
5
6
7
If your Intelligence or Wisdom is high, spells of this level or below are likely to have a near-100% base success chance. It is still possible to cast non-easy spells, but they tend to have much lower success chances. One exception is a high-level Monk wearing a robe; they get enough of a bonus from it that even difficult spells of up to level 5 can be 100% reliable. With 22 wisdom from a helm of brilliance, level 6 spells can also have a 100% success chance.
History
Spellcasting is introduced along with spellbooks in NetHack 1.3d. A spell first had to be learned by transcribing it from the spellbook, which would then disappear from your inventory afterward - if the transcription was successful, you could then use the #cast extended command to use the spell. Transcribing a spell would always fail and use up the spellbook if you were blind or confused. A given spell had a limited number of castings before it expired, and another spellbook is required in order to re-learn the spell. Armor interactions with spellcasting were introduced in NetHack 3.2.0, and the integration of the Wizard Patch into NetHack 3.3.0 marks the origin of the current spellcasting system.
In NetHack 3.6.0 and previous versions, including some variants based on these versions, the Amulet of Yendor would increase the cost of casting a spell, instead of draining energy as you tried to cast it. This meant that it would also increase the nutrition cost, and it would not prevent emergency uses of a spell. In the example above of casting a level 3 spell, if you had only 16 energy left, you could still try again and again, without using any time, until the random penalty is rolled as 1.[40] This was fixed in NetHack 3.6.1.
Variants
Many variants of NetHack end up making changes to the spellcasting system in some manner.
SLASH'EM
Main article: Spellcasting (SLASH'EM)
SLASH'EM makes several changes to NetHack's spellcasting: New spells have been added, and several existing ones have been reshuffled. SLASH'EM roles also tend to be more proficient in spell skills than their vanilla counterparts.
FIQHack
FIQHack has many changes to spellcasting for both players and monsters:
There are four new spells, all of which are level 7:
Charging (enchantment), which is equivalent to an uncursed scroll of charging.
Phase (escape), which gives 21-60 (additional) turns of phasing.
Astral eyesight (divination), gives 11-30 turns of astral vision.
Summon nasty (clerical), which is equivalent to the vanilla monster spell and summons tame monsters if you target a hostile monster.
The spell of identify is altered:
When cast at unskilled, the spell only identifies object type, appearance, and artifacts.
At Basic, it also IDs enchantment, object properties, charge count, tin content and egg type.
At Expert, the spell identifies fooproof state.
Various other spells have their levels changed:
Dig is level 2
Identify is level 2
Cancellation is level 5
Teleport away is level 5
Polymorph is level 7
Create familiar is level 2
The spell of create monster is replaced with the spell of summoning. Summoned monsters disappear after a set number of turns, based on casting skill.
Magic missile does less damage if cast at levels lower than expert.
Spellcasting no longer exercises wisdom; some spells can be maintained, which slowly drains energy but provides a continuous effect.
Instead of a spell failure percentage, the amount of power required to cast a spell changes:
Spell cost is (base cost) * 100 / success%. Force bolt costs 5pw at 0% fail, 10pw at 50% fail, 20pw at 75% fail, 500pw at 99% fail, 1000pw at 100% fail (treated as 99.5%)
The Amulet doubles spell cost, instead of randomly draining 2-3x energy per spell.
Monsters use the same spellcasting system as players, which means that high-level spellcasting monsters have a lot of energy and can cast multiple spells quickly. Monsters can also pick up and read spellbooks to gain new spells.
The curse items monster spell no longer exists, but certain curse effects are stronger and more common.
Bones ghosts may be replaced by equivalent player monsters with the same spells as the late player.
External links
NetHack Spell Failure Rate Calculator (JavaScript)
Older version of the above
References
β src/spell.c in NetHack 3.6.0, line 982: Failing to correctly cast a spell wastes only half of casting cost.
β src/spell.c in NetHack 3.6.0, line 929: Detect food has no casting hunger cost.
β src/spell.c in NetHack 3.6.6, line 644
β src/spell.c in NetHack 3.6.6, line 644
β src/spell.c in NetHack 3.6.0, line 908: Spell cost.
β src/spell.c in NetHack 3.6.1, line 952: Amulet of Yendor's penalty on spell cost.
β src/spell.c in NetHack 3.6.1, line 956: Attempting to cast a remembered spell without enough energy uses a move if Amulet drain occurred.
β src/spell.c in NetHack 3.6.0, line 379: Refreshing or learning a spell.
β src/spell.c in NetHack 3.6.0, line 376: Reading book of keenly known spell.
β spell_backfire in src/spell.c in NetHack 3.6.0: Casting a forgotten spell.
β src/spell.c in NetHack 3.6.0, line 1618: List of emergency spells.
β src/spell.c in NetHack 3.6.0, line 1601: Robe worn over metallic armor halves the spellcasting penalty of the armor.
β src/spell.c in NetHack 3.6.0, line 1603: Robe worn without metallic body armor increases spellcasting chance.
β src/spell.c in NetHack 3.6.0, line 95: Metal helmets interfere with the mind.
β src/spell.c in NetHack 3.6.0, line 1608: Helm of brilliance imposes no spellcasting penalty.
β src/spell.c in NetHack 3.6.0, line 96: Casting channels through the hands.
β src/spell.c in NetHack 3.6.0, line 97: All metal interferes to some degree.
β src/spell.c in NetHack 3.6.0, line 1643: Spellcasting chance formula.
β src/spell.c in NetHack 3.6.0, line 1673: Big shields significantly impair spellcasting.
β http://www.chiark.greenend.org.uk/~damerell/games/spellcliff.txt
β src/spell.c in NetHack 3.6.0, line 1044: wand similar
β src/spell.c in NetHack 3.6.0, line 1096: scroll similar
β src/spell.c in NetHack 3.6.0, line 1112: potion similar
β src/zap.c in NetHack 3.6.0, line 2849: beam spell range
β src/dig.c in NetHack 3.6.0, line 1442: dig spell range
β src/zap.c in NetHack 3.6.0, line 3846: ray spell range
β src/zap.c in NetHack 3.6.0, line 3733: spell to hit calculation
β src/zap.c in NetHack 3.6.0, line 2906: spell hit bonus
β src/hack.c in NetHack 3.6.0, line 294: negative ac weakened
β spell_damage_bonus in src/zap.c in NetHack 3.6.0: spell damage bonus
β src/zap.c in NetHack 3.6.0, line 160: force bolt damage
β src/zap.c in NetHack 3.6.0, line 371: drain life damage
β monhp_per_lvl in src/makemon.c in NetHack 3.6.0: drain life damage routine
β zhitm in src/zap.c in NetHack 3.6.0: routine containing mm and cold damage
β zhitm in src/zap.c in NetHack 3.6.0: routine containing mm and cold damage
β zap.c in NetHack 3.6.1, line 4035
β src/spell.c in NetHack 3.6.0, line 1010: skilled cold and fireball
β src/explode.c in NetHack 3.6.0, line 400: skilled cold and fireball resistance adjustments
β explode.c in NetHack 3.6.1, line 445
β https://github.com/NetHack/NetHack/commit/8ff02c11d9979497396d4921bf0d7cf81808c5d1
This page is based on a spoiler by Dylan O'Donnell. The original license is:
Redistribution, copying, and editing of these spoilers, with or without modification, are permitted provided that the following conditions are met:
The original contributors to any spoiler must continue to be credited.
Any modifications to the spoiler must be acknowledged and credited. |
# User talk:DTB
Welcome!
Welcome!
Hi, DTB! Welcome, and thanks for joining NetHackWiki!
The How to help and Style guide pages are excellent starting points.
Special:Recentchanges is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask at the Community Portal, the forum, or on the discussion page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.
You can put {{NAOplayer|NAO player account}} on your user page to link to your NAO player account. Capitalization matters.
We are really happy to have you here, and look forward to working with you!
This is an automated greeting.
-- New user message (talk) 18:03, 12 July 2022 (UTC) |
# Talk:Change of state
Is this article necessary?
This article doesn't say anything which isn't common sense, and all of the instances of changes of state are covered on their respective pages. Furthermore, this article seems to imply that NetHack has some sort of overall system of keeping track of the phase of an object - which it doesn't: it just has a few different instances where things change phase, all handled separately. -Ion frigate 09:54, 30 May 2011 (UTC) |
# Efembe
Efembe, the Mad Polypiler was a character played by Boudewijn Waijers around 1990, and was one of the reasons polypiling nowadays degrades objects.
The name Efembe, by the way, comes from the game of Moria, where entering FMB at character creation would generate a male dwarven priest, which was Boudewijn's favorite character to play there.
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 18:01, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
24 July 2023
m 16:09
EvilHackββ (3 changes | history)
. .
(+1,958)β . .
[K2β (3Γ)]
m
16:09
(cur | prev) . . (+1,831)β . . K2 (talk | contribs) (ββShields: details)
m
15:42
(cur | prev) . . (+113)β . . K2 (talk | contribs) (ββGame mechanics: placeholder for new skills)
m
15:15
(cur | prev) . . (+14)β . . K2 (talk | contribs) (ββAir: more wording)
23 July 2023
08:36 EvilHackβ (diff | hist) . . (-82)β . . Umbire the Phantom (talk | contribs) (pass for word choice and rephrasing)
22 July 2023
23:38 Wishβ (diff | hist) . . (+547)β . . Umbire the Phantom (talk | contribs) (ββGruntHack: copyedit + add some IRC recommendations)
21 July 2023
20:54 Wallet of Perseusβ (diff | hist) . . (+113)β . . Umbire the Phantom (talk | contribs) (word choice, note dnh, expand, etc.)
20:27 Oilskin sackβ (diff | hist) . . (+74)β . . Umbire the Phantom (talk | contribs) (ββStrategy: elaborate some)
14:30
EvilHackββ (3 changes | history)
. .
(+1,487)β . .
[K2β (3Γ)]
m
14:30
(cur | prev) . . (+17)β . . K2 (talk | contribs) (ββMajor changes: convicts and thievery)
14:17
(cur | prev) . . (+1,444)β . . K2 (talk | contribs) (ββGame mechanics: open air)
m
13:42
(cur | prev) . . (+26)β . . K2 (talk | contribs) (ββGame mechanics: move artifact twoweaponing behavior under 'twoweaponing' section)
18 July 2023
m 04:53 EvilHackβ (diff | hist) . . (0)β . . K2 (talk | contribs) (build date) |
# File:Ornamental cope.png
File
File history
File usageNo higher resolution available.
Ornamental_cope.png β(16 Γ 16 pixels, file size: 196 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'ornamental cope'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current11:52, 1 August 200616 Γ 16 (196 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'ornamental cope'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 24 pages uses this file:
Cloak of displacement
Cloak of displacement/ko
Cloak of invisibility
Cloak of invisibility/ko
Cloak of magic resistance
Cloak of protection
Cloak of protection/ko
List of vanilla NetHack tiles
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0
Poisonous cloak
The Mantle of Heaven
Template:Cloak top
Template talk:Armor |
# NetHack 3.6.5
NetHack Versions
Jay Fenlason's Hack
HACK for UNIX
Hack 1.21 for DOS
Hack for PDP-11
PC/IX Hack
Andries Brouwer's Hack
Hack 1.0
Hack 1.0.1
Hack 1.0.2
Hack 1.0.3
Early NetHack
NetHack 1.3d
NetHack 1.4f
NetHack 2.2a
NetHack 2.3e
The NetHack 3.0 Series
NetHack 3.0.0
NetHack 3.0.1
NetHack 3.0.2
NetHack 3.0.3
NetHack 3.0.4
NetHack 3.0.5
NetHack 3.0.6
NetHack 3.0.7
NetHack 3.0.8
NetHack 3.0.9
NetHack 3.0.10
The NetHack 3.1 Series
NetHack 3.1.0
NetHack 3.1.1
NetHack 3.1.2
NetHack 3.1.3
The NetHack 3.2 Series
NetHack 3.2.0
NetHack 3.2.1
NetHack 3.2.2
NetHack 3.2.3
The NetHack 3.3 Series
NetHack 3.3.0
NetHack 3.3.1
The NetHack 3.4 Series
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
The NetHack 3.6 Series
NetHack 3.6.0
NetHack 3.6.1
NetHack 3.6.2
NetHack 3.6.3
NetHack 3.6.4
NetHack 3.6.5
NetHack 3.6.6
NetHack 3.6.7
NetHack 3.6.5 is the 35th public release of NetHack. It was released on 27th January 2020. This release fixes several security exploits that existed in versions 3.6.0, 3.6.1, 3.6.2, 3.6.3 and 3.6.4, as well as some more minor bugs. There were no new gameplay features.[1]
Contents
1 Availability
2 Significant changes
2.1 Security
2.2 Bug fixes
3 References
Availability
NetHack 3.6.5 is available from the official NetHack website.
Significant changes
Security
Main article: Security
Six major security exploits were fixed. They were all buffer overflows that could be triggered by parsing options in configuration options or the command line.
Bug fixes
Other bug fixes include:[2]
fix accessing mons[-1] when trying to gate in a non-valid demon
fix accessing mons[-1] when monster figures out if a tin cures stoning
have string_for_opt() return empty_optstr on failure
ensure existing callers of string_for_opt() check return value before using it
use vsnprintf instead of vsprintf in pline.c where possible
Windows: includes a fix from a 3.6.4 post-release update where OPTIONS=map_mode:fit_to_screen could cause a game start failure
Windows: users with C-locale unmappable names could get game start failure
References
β https://github.com/NetHack/NetHack/blob/NetHack-3.6/doc/fixes36.5
β https://github.com/NetHack/NetHack/blob/NetHack-3.6/doc/fixes36.5 |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:53, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
21 July 2023
m 17:58 Elberethβ (diff | hist) . . (-3)β . . Silverwing235 (talk | contribs) (ββHistory: typo/grammar, punctuation)
20 July 2023
13:29 Inediateβ (diff | hist) . . (-41)β . . Darth l33t (talk | contribs) (Undo revision 152507 by Coz (talk) those are "g" and already covered) (Tag: Undo)
19 July 2023
16:47 Inediateβ (diff | hist) . . (+41)β . . Coz (talk | contribs) (Added gargoyles and wingeds as inediate) |
# Rat
Rats are long-tailed rodents, the three in the family being sewer rats, giant rats, and rabid rats. They are generally encountered in the early part of the dungeon. Their lycanthrope relative, the wererat, can summon an entourage of these creatures as allies.
Contents
1 Sewer rat
2 Giant rat
3 Rabid rat
4 Encyclopedia entry
5 Variants
5.1 Convict patch
5.1.1 Enormous rat
5.2 Rodent of unusual size
5.3 SLASH'EM
Sewer rat
r sewer rat
Difficulty
1
Attacks
Bite 1d3
r sewer rat
Difficulty
1
Attacks
Bite 1d3
Base level
0
Base experience
1
Speed
12
Base AC
7
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
20
Nutritional value
12
Size
Tiny
Resistances
None
Resistances conveyed
None
A sewer rat:
has no hands.
is an animal.
is carnivorous.
is normally generated hostile.
can be seen through infravision.
normally appears in small groups.
Reference
monst.c#line734
A sewer rat is just another weak monster, stronger than a newt but weaker than a kobold.
Giant rat
r giant rat
Difficulty
2
Attacks
Bite 1d3
r giant rat
Difficulty
2
Attacks
Bite 1d3
Base level
1
Base experience
8
Speed
10
Base AC
7
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
Yes
Weight
30
Nutritional value
30
Size
Tiny
Resistances
None
Resistances conveyed
None
A giant rat:
has no hands.
is an animal.
is carnivorous.
is normally generated hostile.
can be seen through infravision.
normally appears in small groups.
Reference
monst.c#line736
A giant rat has slightly more health and nutritional value than its sewer rat brethren, but it moves more slowly.
Rabid rat
r rabid rat
Difficulty
4
Attacks
Bite 2d4 poisonous (constitution)
r rabid rat
Difficulty
4
Attacks
Bite 2d4 poisonous (constitution)
Base level
2
Base experience
17
Speed
12
Base AC
6
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
30
Nutritional value
5
Size
Tiny
Resistances
poison
Resistances conveyed
None
A rabid rat:
has no hands.
is an animal.
is poisonous to eat.
is carnivorous.
is normally generated hostile.
can be seen through infravision.
Reference
monst.c#line742
A rabid rat is the most dangerous member of the rat family in NetHack. It has a special constitution-draining poisonous bite, which has a slim chance of causing instadeath if not poison resistant. This bite can be protected against with high magic cancellation. Its corpse is poisonous, but will not grant poison resistance.
Encyclopedia entry
Rats are long-tailed rodents. They are aggressive,
omnivorous, and adaptable, often carrying diseases.
"The rat," said O'Brien, still addressing his invisible
audience, "although a rodent, is carnivorous. You are aware
of that. You will have heard of the things that happen in
the poor quarters of this town. In some streets a woman dare
not leave her baby alone in the house, even for five minutes.
The rats are certain to attack it. Within quite a small time
they will strip it to the bones. They also attack sick or
dying people. They show astonishing intelligence in knowing
when a human being is helpless."
[ 1984, by George Orwell ]
Variants
Convict patch
The Convict patch and variants that implement it include larger species of rats. Existing rats grow up into them.
Convicts begin with a pet sewer rat and have a chance of taming or at least pacifying hostile rats by #chatting with them.
Enormous rat
r enormous rat
Difficulty
4
Attacks
Bite 1d6 physical
r enormous rat
Difficulty
4
Attacks
Bite 1d6 physical
Base level
3
Base experience
28
Speed
9
Base AC
6
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
200
Nutritional value
100
Size
small
Resistances
Resistances conveyed
An enormous rat:
has no hands.
is an animal.
is carnivorous.
is normally generated hostile.
can be seen through infravision.
appears only in Gehennom.
normally appears in small groups.
cannot be tamed.
In the Convict patch and most variants that incorporate it, giant rats grow up into enormous rats.
The development version of UnNetHack removes the enormous rat, so giant rats grow up directly into rodents of unusual size.
To set certain popular misconceptions to rest once and for all:
1) He was not found wandering the sewers of London as a child during
the winter of 1864, unable to say anything more than "Powerful
big rats, gentlemen."
2) He was never exhibited in public houses to the curious; only
briefly in July, 1865, to selected gentlemen of standing from
the scientific and literary community.
3) He did not have a vestigial tail.
4) He did indeed have what most people would commonly understand
as "eyes."
5) He was not actually the pilot of the Zeppelin, although he did
disappear for good following the explosion.
6) There is obviously no "underground kingdom beneath London,
inhabited by huge, intelligent rodents." And even if there were,
and suggestion of Neil's involvement in the mazy territorial
negotiations between Londons Above and Below can be considered a
joke, and in poor taste at that.
7) He was afraid of neither mirrors nor street conjurers.
8) There were no tooth marks on the bones.
[ The Season of Mists, Neil Gaiman ]
Rodent of unusual size
r rodent of unusual size
Difficulty
8
Attacks
Bite 2d6 physical
r rodent of unusual size
Difficulty
8
Attacks
Bite 2d6 physical
Base level
7
Base experience
92
Speed
8
Base AC
4
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
1 (Very rare)
Genocidable
Yes
Weight
500
Nutritional value
200
Size
medium
Resistances
Resistances conveyed
A rodent of unusual size:
has no hands.
is an animal.
is carnivorous.
is normally generated hostile.
can be seen through infravision.
appears only in Gehennom.
cannot be tamed.
Rodents of unusual size (R. o. U. S.) are the strongest rats in the Convict patch and variants that include it.
Enormous rats grow up into R. o. U. S., except in the development version of UnNetHack, where enormous rats are removed and giant rats grow up into R. o. U. S. instead.
"Rodents Of Unusual Size? I don't think they exist."
[The Princess Bride, by William Goldman ]
SLASH'EM
In SLASH'EM, if you throw cheese at a sewer rat you might tame it, but since rats are not remarkable pets it's probably not worth the effort.
SLASH'EM also includes a Rat King.
This page is based on a spoiler by J. Ali Harlow.
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |
# Throw
Keyboard commands
~
!
@
#
$
%
^
&
*
(
)
_
=
+
Q
W
E
R
T
Y
U
I
O
P
{
}
|
q
w
e
r
t
y
u
i
o
p
[
]
\
A
S
D
F
G
H
J
K
L
:
"
a
s
d
f
g
h
j
k
l
;
'
Z
X
C
V
B
N
M
<
>
?
z
x
c
v
b
n
m
,
.
/
q
w
e
r
t
u
i
o
p
Alt
a
s
d
f
j
l
Alt
c
v
n
m
?
Alt
A
C
R
T
O
Alt
a
c
d
o
p
r
t
[
Ctrl
You can throw just about any object you can carry in your inventory. To throw an item, press t, then the item letter, then a direction. Alternatively, quiver the item using shift + q, then fire the item with f. A thrown item acts as a projectile until it lands or hits something. You can generally specify a quantity as well (except for weapons), but the specific command to do so depends on your interface. In ASCII, press t, followed by a number, then a direction. In Windows, press t, check the item you wish to throw, specify a number, then a direction.
Contents
1 Throwing different types of objects
1.1 Weapons
1.2 Potions
1.3 Gems
1.4 Gold pieces
1.5 Food
1.6 Other items
2 Range
3 References
Throwing different types of objects
Weapons
A user has suggested improving this page or section as follows:
"Please clarify the effect of throwing weapons that are not traditionally thrown (i.e. swords, clubs, maces, etc.). Is there a damage or to-hit modification?"
Throwing weapons at monsters is a good strategy to use, especially when facing monsters with a passive attack. Daggers have a bonus to hit and thus are good throwing weapons. Other ranged weapons with this bonus include darts, shuriken, and spears. You can also throw arrows and crossbow bolts, but they are more effective when fired from a bow or crossbow.
Those of sufficient skill or who meet certain other conditions may be able to throw multiple weapons in one turn.
A boomerang will circle around and return to you when thrown, which allows it to hit several monsters (and possibly you as well).
The artifact weapon Mjollnir requires a strength of 25 to throw. If thrown by a Valkyrie, it will usually return to her hand.
An Aklys can be thrown a max range of 4 and will return 99% of the time. It doesn't have a strength or role requirement.
A greased item may slip when attempting to throw it, resulting in the object falling to the ground or sending it flying toward a random direction.
A cursed weapon doesn't weld to your hand when thrown, but it may fly to another direction. You can't throw a cursed weapon that has welded itself to your hand.
Potions
The chance of hitting a monster with a thrown potion is Dex β 125;[1] it does not depend on the monster's AC. If the potion misses, it will break without an effect on the target.
A monster that is hit by a potion will receive the effects of the potion's vapors. For example, throwing a potion of blindness at a monster will cause it to go blind, if the monster can go blind. Similarly, throwing a potion of healing at your pet can be used to heal it. Thrown potions are generally less effective than quaffed potions.
If you are adjacent to the place where a thrown potion breaks, you may be affected by its vapors.
Monsters can and will throw harmful potions at you, so be careful when leaving potions on the ground or they might be used against you later. Knowing this can help identify potions that are thrown at you. The potions that monsters like to throw are paralysis, blindness, confusion, sleeping, and acid.
A potion of oil can serve as a Molotov cocktail if you apply it before you throw it, dealing 4d4 damage.
Gems
Throwing a gem is the same as throwing a rock if you are throwing them at a monster. You can also throw gems at a unicorn of your alignment to increase your Luck. Throwing a gem to a hostile unicorn will pacify it, but has a random effect on Luck.
Gold pieces
Throwing gold pieces at certain monsters can work as a bribe. Throwing all your gold at a vault guard will also satisfy him. It will vanish along with the guard. ("That should do. Now beat it!"[2])
Throwing one gold piece in shops can help you determine if there is a mimic in its path, as it will block the gold piece. This may also wake the mimic, so be careful when doing this while standing next to a potential mimic.
Throwing your money away might keep it out of the greedy hands of a leprechaun, allowing you to retrieve it later.
Food
You can throw a treat to a pet to help train it to fetch items for you. Domestic animals can be tamed with thrown food appropriate to their diet. Most other food thrown at these animals will change them from hostile to peaceful. Be wary of throwing food to a pet that is eating, as your pet is so intent on devouring the food that the thrown item may hit them, which is considered abuse.
Throwing a cream pie at a monster can blind it. The Keystone Kops like to throw these pies at you.
Throwing an egg will cause it to break. A thrown cockatrice egg can turn a creature to stone if the target is vulnerable to petrification. There is a Luck penalty for breaking eggs that you have laid with the #sit command.
The chance of hitting a monster with an egg or a pie is the same as the chance of hitting it with a potion: Dex β 125.
Throwing a clove of garlic at an undead creature might scare it.
Other items
Throwing a heavy iron ball that is chained to you will pull you along in that direction for up to 4 squares, but beware using this method to cross waterβthe ball will travel 5 squares, and if it lands in water, you will be pulled down into the water with it. If you have an iron ball, it is worth throwing at enemies for its considerable damage and bonus to hit.
Giants can throw boulders, therefore you can throw boulders if you polymorph into a giant. Thrown boulders have +6 to-hit[3] and deal 1d20 damage plus strength bonus.
Throwing anything straight up in the air will cause it to hit you on the head, potentially fatally. This is especially true at staircases. Wearing protective headgear can reduce the damage, but it's better to simply avoid doing this. If in an undesirable polymorph, however, this "fatal" damage can be used to return you to your normal form sooner.
Throwing while levitating will propel you in the opposite direction. You will take damage if this propels you into a wall, even if you were already against the wall.
Range
When you throw an object, there is a maximum distance that it can travel before it falls to the ground and stops. If the object hits a monster or obstacle, it will stop immediately.
The range depends on the type of object and your strength,[4] as shown in the following table:
Item
Strength
3
4β5
6β7
8β9
10β11
12β13
14β15
16β17
18/00β18/31
18/32β21
22β23
24
25
Arrow, rock or gem (excluding loadstone)with appropriate launcher[5]
2
3
4
5
6
7
8
9
10
11
12
13
13
Arrow or bolt without appropriate launcher[6]
0
1
1
2
2
3
3
4
4
5
5
6
6
Mjollnir[7]
β
β
β
β
β
β
β
β
β
β
β
β
6
Other object with weight < 40[8]
1
2
3
4
5
6
7
8
9
10
11
12
12
In addition:
For a crossbow bolts fired from a crossbow, the range is 8, independent of strength.[9][10]
For a wielded aklys, the range has a maximum of 4.[11]
For a boulder, the range is 20 (but boulders can only be thrown when you are polymorphed into a giant).[12]
For a heavy iron ball, the range is the same as for "other object with weight < 40", minus the weight of the ball divided by 100 (rounded down).[13] This is capped at 5 when the ball is chained to you.[14]
A thrown loadstone always has a range of 1, unless you are wielding a sling, in which case the range is 2.[15] You cannot throw it at all if it is cursed.
For all other objects, the range is the same as for "other object with weight < 40", minus the weight of the object divided by 40 (rounded down).[16]
If you are underwater, the range of any thrown object is 1.[17]
In any case, the range of a thrown object will always be at least 1, unless the object you are throwing is an arrow or bolt with no appropriate launcher (in which case the range is 0 if your Strength is 3), or a pile of gold (in which case the range is 0 if it is too heavy).[18]
References
β dothrow.c in NetHack 3.6.1, line 1703
β dokick.c in NetHack 3.4.3, line 323
β dothrow.c in NetHack 3.6.0, line 1420
β dothrow.c in NetHack 3.4.3, line 943
β dothrow.c in NetHack 3.4.3, line 961
β dothrow.c in NetHack 3.4.3, line 961
β dothrow.c in NetHack 3.4.3, line 977
β dothrow.c in NetHack 3.4.3, line 952
β src/dothrow.c in NetHack 3.6.6, line 1206
β include/hack.h in NetHack 3.6.6, line 18
β src/dothrow.c in NetHack 3.6.6, line 1255
β dothrow.c in NetHack 3.4.3, line 975
β dothrow.c in NetHack 3.4.3, line 950
β dothrow.c in NetHack 3.4.3, line 955
β dothrow.c in NetHack 3.4.3, line 961
β dothrow.c in NetHack 3.4.3, line 952
β dothrow.c in NetHack 3.4.3, line 981
β dothrow.c in NetHack 3.4.3, line 1739
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |
# Nymph
nnn nymph
Difficulty
5
Attacks
Claw steal item, Claw seduce
nnn nymph
Difficulty
5
Attacks
Claw steal item, Claw seduce
Base level
3
Base experience
28
Speed
12
Base AC
9
Base MR
20
Alignment
0 (neutral)
Frequency (by normal means)
2 (Quite rare)
Genocidable
Yes
Weight
600
Nutritional value
300
Size
Medium
Resistances
None
Resistances conveyed
Causes teleportitis (30%)
A nymph:
has a head, a couple of arms, and a torso.
can teleport.
does not eat. (*)
is female.
is normally generated hostile.
can pick up weapons and food.
can be seen through infravision.
A water nymph also:
can swim.
Reference
monst.c#line590
Nymphs are monsters that appear in NetHack. There are three distinct types - the water nymph, wood nymph and mountain nymph. All three types of nymph compose the nymph monster class, and they are almost entirely identical.
Contents
1 Characteristics
1.1 Generation
2 Strategy
2.1 Removing unwanted items
2.2 As a polyform
2.3 As pets
3 History
4 Origin
5 Messages
5.1 Nymph polyself
6 Variants
6.1 SpliceHack
6.2 xNetHack
6.3 SlashTHEM
7 Encyclopedia entry
8 References
Characteristics
Nymphs all share the same base attributes. They have a high AC of 9 and mve at the same base speed as an unburdened and unhasted player character, but will teleport randomly while moving. Nymphs have no damaging attacks and will instead try to charm you into removing your armor, followed by an attempt to steal items before trying to teleport away. They are capable of using items they pick up or steal - putting on armor and amulets, zapping wands and quaffing potions. Eating a nymph's corpse has a chance of giving you teleportitis.
The water nymph shares the same qualities and attributes as her other counterparts, but can also swim and freely cross water.
Generation
In addition to random generation, nymphs are the first quest enemy class for Rogues, with a 14% chance of being generated in the quest branch. The Rogue quest home level also has nine guaranteed water nymphs, and each of the filler levels has two water nymphs.
Nymphs are generated asleep 80% of the time; however, if you have the Amulet of Yendor or summon one via a fountain, they are guaranteed to be awake.[1] Nymphs have a 50% chance of being generated with a mirror, and an independent 50% chance of carrying a potion of object detection.[2]
Ringing a cursed bell (including a cursed uncharged Bell of Opening) has a 1β4 chance of summoning a random type of nymph, unless any type of nymph is genocided or extinct; the summoned nymph will not have an inventory.[3] When dipping an item into a fountain or quaffing from one, there is a 1β30 chance of summoning a water nymph.
Strategy
Despite lacking damage-dealing attacks and having poor AC, nymphs are nevertheless very dangerous monsters - they should not be approached unless you can dispatch them before they close in and steal any items. It may be advisable to leave the items you least want stolen in a chest or other container elsewhere before nearing or pursuing a nymph; in most cases, it is preferable to leave them asleep if possible.
Elbereth can ward off awakened nymphs and give you some valuable space, while applying a mirror at a nymph will cause her to steal the mirror and teleport away, leaving your other items alone. It is also ideal to keep your pet nearby, especially if you are an early-game Wizard - a pet can hold the nymph at bay and hopefully kill her for you, but the nymph can still steal any items they are carrying, including saddles. Nymphs can be tamed using a wooden harp, but in practice this requires an impractically high dexterity and/or experience level.
Ranged attacks and spells are the most ideal for killing nymphs before they can close in on you - the exception to this is the force bolt spell or wand of striking, which can easily kill the nymph but will also break any fragile items she was carrying, including potions and mirrors. Breaking mirrors results in a β2 Luck penalty, which reduces your to-hit and prevents successful prayer if your total Luck is negative.
Wands are also useful against nymphs, but can be stolen and potentially used against you - a wand of teleportation or digging all but ensures that she will escape you several times before you can retrieve it or any other stolen goods. The wand of sleep can stop a nymph long enough for you to kill her before she reawakens, while a wand of slow monster can give you additional turns to deal damage; a wand of cancellation will make the nymph "plain", which renders her harmless, but she will still teleport away after unsuccessfully attempting to steal from you. Polearms or lances can also be effective for mounted players, who will ideally have a decently fast steed to maintain their one-square pounding distance.
Removing unwanted items
Nymphs and their theft attacks can be used to get rid of cursed items, usually by stashing or dropping every other item besides the offending objects; you can optionally retrieve the items if you want to uncurse them later. Punished players can use this to untether themselves from their heavy iron ball.
As a polyform
Nymphs can wear all armor, and water nymphs can additionally cross water; polyself into a nymph grants you these traits along with two unique abilities:
You can remove an iron chain with the #monster extended command.
You can steal gear from monsters without killing them.
Making a bare-handed attack will initiate the theft; if you are wielding a weapon, you will attack with that weapon and also make a theft attempt. If the theft attack hits a monster, you will steal an item from themβthis does not anger peaceful monsters. If the attack misses, the monster will treat it like any other missed attack, and peaceful monsters will become angry. If you are invisible and the monster cannot see invisible, the seduction attack will not trigger after the theft, and you will perform a regular attack instead, which can also anger monsters.[4] Be sure to check the AC of pets or peaceful monsters before stealing from them.
As pets
Tame nymphs are not particularly worthwhile due to their weak attributes, especially on a no-teleport level - there are very occasional situations where one can be used to steal items from other monsters, though this can often fail and the monster will retaliate. After successfully stealing an item, the nymph will teleport away as normal, and due to being tame will soon drop whatever she stole; this often requires you to find her and retrieve those items unless you have a magic whistle. In a scenario where you are trying to avoid and rob a hostile monster this way, you may end up having to fight them while locating the nymph pet.
History
Nymphs are first introduced in Hack for PDP-11, a variant of Jay Fenlason's Hack.
From Hack 1.0 to NetHack 2.3e, nymphs used the N glyph. The three distinct subtypes of nymph are introduced in NetHack 3.0.0, and all three were moved to the n glyph.
Origin
Wikipedia has an article about:
Nymph
A nymph is a minor female nature deity in ancient Greek folklore, and belief in nymphs survived in many parts of Greece up to as recently as the early 20th century. Usually depicted as beautiful maidens, they were not necessarily immortal, but lived much longer than humans. Nymphs are generally regarded as personifications of nature and typically tied to a specific place or landform.
They are often divided into various broad subgroups, such as the Meliae (ash tree nymphs), the Naiads (freshwater nymphs), the Nereids (sea nymphs), and the Oreads (mountain nymphs) - the three types of nymph in NetHack (wood, water and mountain) may be a rough analogue to this. Nymphs generating asleep may also be based on the common motif of a sleeping nymph in a grotto or spring, which became prominent in European sculpture during the Renaissance; these sculptures were based off a report in the 15th century of a similar Roman statue at a fountain near the Danube, which is now widely considered forged.
In Advanced Dungeons & Dragons, nymphs had no offensive capabilities of their own, but displayed the ability to charm and immobilize onlookers to much more severe degrees than displayed in NetHack - looking at one could cause permanent blindness, and the sight of a disrobing nymph could kill an onlooker outright. Nymphs were able to teleport short distances via a dimension door spell, hence their teleporting abilities in NetHack.
Messages
Nymph polyself
You smile at
<monster> seductively.
You attacked a monster that can see you, and it is of the opposite gender.
You talk to <monster> seductively.
As above, but the monster cannot see you.
You smile at <monster> engagingly.
You attacked a monster that can see you, and is not of the opposite gender.
You talk to <monster> engagingly.
As above, but the monster cannot see you.
You pretend to be friendly to <monster>.
You missed on your stealing attack.
Variants
SpliceHack
In SpliceHack, nymphs hate iron and take bonus damage from iron weapons, and they introduce themselves with classical Greek-style names while charming you.
xNetHack
In xNetHack, nymphs also hate the touch of iron and take an additional d6 damage when struck with an iron item - players polymorphed into nymphs take d3 damage when handling iron items. xNetHack nymphs also introduce themselves with classical Greek-style names before charming you.
SlashTHEM
In SlashTHEM, polymorphing into a mountain, water or wood nymph sets your carrying capacity at 4000 and sets your charisma to 18. Nymphs are also made into a playable race as well, with a corresponding "plain" nymph used for their corpses.
Encyclopedia entry
A female creature from Roman and Greek mythology, the nymph occupied rivers, forests, ponds, etc. A nymph's beauty is beyond words: an ever-young woman with sleek figure and long, thick hair, radiant skin and perfect teeth, full lipsand gentle eyes. A nymph's scent is delightful, and her long robe glows, hemmed with golden threads and embroidered with rainbow hues of unearthly magnificence. A nymph's demeanour is graceful and charming, her mind quick and witty.
"Theseus felt her voice pulling him down into fathoms of sleep. The song was the skeleton of his dream, and the dream was full of terror. Demon girls were after him, and a bull-man was goring him. Everywhere there was blood. There was pain. There was fear. But his head was in the nymph's lap and her musk was about him, her voice weaving the dream. He knew then that she had been sent to tell him of something dreadful that was to happen to him later. Her song was a warning. But she had brought him a new kind of joy, one that made him see everything differently. The boy, who was to become a hero, suddenly knew then what most heroes learn later -- and some too late -- that joy blots suffering and that the road to nymphs is beset by monsters."
[ The Minotaur by Bernard Evslin ]
References
β src/makemon.c in NetHack 3.6.7, line 1263: chance of nymphs being generated asleep
β src/makemon.c in NetHack 3.6.7, line 700
β src/apply.c in NetHack 3.6.7, line 1037
β src/mhitu.c in NetHack 3.6.7, line 2415
</monster></monster></monster></monster></monster> |
# Related changes
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
Recent changes options
Show last 50 | 100 | 250 | 500 changes in last 1 | 3 | 7 | 14 | 30 daysHide registered users | Hide anonymous users | Hide my edits | Show bots | Hide minor editsShow new changes starting from 17:29, 24 July 2023
Namespace:
all
(Main)
Talk
User
User talk
NetHackWiki
NetHackWiki talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Source
Source talk
Forum
Forum talk
Video
Video talk
User blog
User blog talk
Blog
Blog talk
Module
Module talk
Invert selection Associated namespaceTag filter:Page name: Show changes to pages linked to the given page instead
List of abbreviations:
N
This edit created a new page (also see list of new pages)
m
This is a minor edit
b
This edit was performed by a bot
(Β±123)
The page size changed by this number of bytes
23 July 2023
m 11:49 Object materialsβ (diff | hist) . . (+20)β . . Umbire the Phantom (talk | contribs) (lede, word choice) |
# Mindless thrall
@ mindless thrall File:Mindless thrall.png
Difficulty
13
Attacks
Bearhug 0d0 physical
@ mindless thrall File:Mindless thrall.png
Difficulty
13
Attacks
Bearhug 0d0 physical
Base level
12
Base experience
270
Speed
12
Base AC
10
Base MR
0
Alignment
0 (neutral)
Frequency (by normal means)
0 (Not randomly generated)
Genocidable
No
Weight
1450
Nutritional value
400
Size
medium
Resistances
sleep
Resistances conveyed
sleep
A mindless thrall:
is mindless.
has a head, a couple of arms, and a torso.
is omnivorous.
is not a valid polymorphable form.
is female.
is normally generated hostile.
is strong.
can pick up weapons and food.
can be seen through infravision.
cannot be tamed.
The mindless thrall, @, is a monster in dNetHack.
This page is a stub. Should you wish to do so, you can contribute by expanding this page. |
# Poison resistance/ko
λ
μ νμ κ²μ λ΄μμ κ°μ₯ μ€μν λ³Έμ§μ λ₯λ ₯μ€ νλλ‘ κ³ λ €λ©λλ€. ν΄λΉ μ νμ μ¦μ¬λ₯Ό ν¬ν¨ν λ
μ λμ ν¨κ³Όλ€λ‘λΆν° 보νΈν΄ μ€λλ€. μλ₯Ό λ€μ΄, λ€νΈ ν¨μ μ μΉλͺ
μ μΈ λ
λ€νΈλ₯Ό λ°μ¬ν μ μμ΅λλ€.
λ
μ νμ μμ€λ
μΌλ‘λΆν° 보νΈν΄ μ£Όμ§ μμ΅λλ€. κ·Έκ²μ μ§λ³μ λ¬Όμ½μ λμ ν¨κ³Όλ§ λΆλΆμ μΌλ‘ 보νΈν΄ μ€λλ€.
Contents
1 Sources
1.1 μμ ν μ체
1.2 μμ νμ§ μμ μ체
1.3 λ§€μ° μμ νμ§ μμ μ체
2 λ©μμ§
3 External links
Sources
Many corpses that offer poison resistance are themselves poisonous or otherwise dangerous (a notable exception is the corpses of shriekers, which can usually be found early). There are, however, many safe ways of acquiring poison resistance. μλ₯Ό λ€μ΄, rings and amulets both include one that protects you against poison. μ΄λ‘ μ© κ°μ· μμ λ
μΌλ‘λΆν° 보νΈν΄ μ€λλ€.
Barbarians, healers and orcs have a natural poison resistance. Monks get a natural poison resistance when they reach experience level 3 and tourists at level 20. Poison resistance is also granted when you are crowned.
λ€μκ³Ό κ°μ λ°©λ² μ€ νλλ‘ μ체λ‘λΆν° λ
μ νμ μμ νκ² μ»μ μ μμ΅λλ€:
λ³Έμ§μ μ νμ μ 곡νλ λΉλ
μ± μ체λ₯Ό λ¨Ήλλ€.
tinning kitλ₯Ό μ¬μ©ν΄ λ
μ΄ μλ μ체λ₯Ό μμ νκ² λ§λ λ€ (λͺ¨λ λ
μ± λͺ¬μ€ν°κ° λ
μ νμ λΆμ¬νμ§λ μλλ€λ κ²μ λͺ
μ¬νλΌ).
λ
μ νμ μ 곡νλ μμ΄ν
μ μ
λλ€. μ΄κ²μ λ
μ νμ λ°μ§, λ
μ νμ λΆμ , μ°κΈμ μμ
볡, λλ μ΄λ‘ μ© κ°μ· λλ μ΄λ‘ μ© λΉλμ΄ λ μ μλ€.
Use a unicorn horn to negate the strength drain caused by eating a poisonous corpse (this works because unlike poison attacks, corpse poison cannot cause instadeath, although it causes some HP loss).
λ₯λ ₯μΉ μ μ§μ λ°μ§λ₯Ό μ₯μ°©νκ³ λ
μ± μ체λ₯Ό λ¨Ήμ΄μ νμ΄ μ€μ΄λλκ²μ νΌν©λλ€.
λ§μ½ λΉμ μ΄ κΈ°λν μ μλ€λκ²μ μκ³ κ³ 4κ° νμ μμλ€λ κ²μ μλ€λ©΄, pick up junk to be overtaxed, and pray to reverse the strength loss after eating poisonous corpses.
The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.
Unicorn horns can no longer restore strength, so this tactic is not recommended unless you can cast the restore ability spell or don't mind using prayer.
μμ ν μ체
ν΄λΉνλ μ체λ λ
μ νμ μ»μ νλ₯ μ μ 곡νλ©°, λ¨Ήλλ° μννμ§ μμ΅λλ€:
λͺ¬μ€ν°
Conduct
Difficulty
Chance
λΉ¨κ° κ³°ν‘μ΄
vegan
2
3%
κ°μ κ³°ν‘μ΄
vegan
2
3%
λκ΅΄ κ±°λ―Έ
meaty
3
7%
red naga hatchling
meaty
4
10%
μ΄μ 골λ
meaty
10
12%
μ§λ€
meaty
4
13%
νλ μ €λ¦¬
vegan
5
13%
shrieker
vegan
2
20%
golden naga hatchling
meaty
4
20%
guardian naga hatchling
meaty
4
20%
quasit
meaty
7
20%
νμ΄λ‘리μ€ν¬
meaty
8
20%
λΉ¨κ° λκ°
meaty
8
20%
κ²μ μ λμ½
meaty
6
27%
νμ μ λμ½
meaty
6
27%
νμ μ λμ½
meaty
6
27%
λ¨λ¦¬λ λ°©μΈ
vegan
6
33%
ν©κΈ λκ°
meaty
13
67%
μμ νμ§ μμ μ체
ν΄λΉνλ μ체μ λ°©μΈμ λ
μ νμ μ 곡νλ κ²μ€ νλμ§λ§, κ·Έλ¬λ μ½κ° μνν©λλ€:
λͺ¬μ€ν°
Conduct
Difficulty
νλ₯
Notes
λ
Έλ κ³°ν‘μ΄
vegan
2
7%
λ
μ±κ³Ό νκ° μ λ°
νΈλ¬Έν΄λ£¨μ€
meaty
3
7%
λ
μ±
νμ νΈλ©
vegetarian
4
7%
μ°μ±
κ°μ νΈλ©
vegetarian
6
7%
μ°μ±
κ²μ νΈλ©
meaty
12
7%
μ°μ±
ν
ꡬ
meaty
7
13%
λν teleportitisμ μΌμΌν¬ μ μμ
ν¬λ‘λ§ν± λλκ³€
meaty
23
17%
λ
μ±, μμμΈ νμ€νΈ nemesis
black naga hatchling
meaty
4
20%
μ°μ±
violet fungus
vegan
5
20%
νκ° μ λ°
ν΄ν리
meaty
5
20%
λ
μ±
λ³μ κ°λ―Έ
meaty
6
20%
λ
μ±
μλλ₯΄μ λ§λ²μ¬
meaty
34
25%
μΈκ°μκ² μμΈ
λ±
meaty
6
27%
λ
μ±
λ¬Όλ±
meaty
7
27%
λ
μ±
ν¬λ¬λΉ
meaty
5
30%
λ
μ±
κ±°λ λ²λ
meaty
6
33%
λ
μ±
κ±°λ κ±°λ―Έ
meaty
7
33%
λ
μ±
κ·Έλ λ¦°
meaty
8
33%
λ
μ±
ꡬλ©μ΄ λ
μ¬
meaty
9
40%
λ
μ±
μ½λΈλΌ
meaty
10
40%
λ
μ±
xan
meaty
9
47%
λ
μ±
μ κ°
meaty
8
50%
λ
μ±
κ²μ λκ°
meaty
10
53%
μ°μ±
μ¬μλ²
meaty
12
60%
λ
μ±
μνΈμ λκ°
meaty
16
80%
λ
μ±
Scorpius
meaty
17
100%
λ
μ±, Ranger νμ€νΈ nemesis
μ΄λ‘ μ©
meaty
20
100%
λ
μ±
Master Kaen
meaty
31
100%
μΈκ°μκ² μμΈ
λ§€μ° μμ νμ§ μμ μ체
λΉμ μ΄ μν μ ν ννλ‘ ν΄λ¦¬λͺ¨νλ μνκ° μλ μ΄μ, ν΄λΉ μ체λ€μ€ μ΄λκ²μ΄λΌλ λ¨Ήμ κ²½μ° μ¦μ μμΌμ¬μ κ²°κ³Όλ₯Ό λΆλ¬μ¬ κ²μ
λλ€. If, however, you are in a stoning-resistant form before getting poison resistance, these corpses can provide it permanently. Note that tinning them does not make them safe to eat.
λͺ¬μ€ν°
Conduct
Difficulty
Chance
Note
μΉμΉ΄νΈλ¦¬μ€
meaty
7
27%
λ§μ§κ±°λ λ¨Ήμμλ μν μ λ°
μ½μΉ΄νΈλ¦¬μ€
meaty
8
33%
λ§μ§κ±°λ λ¨Ήμμλ μν μ λ°
λ©λμ¬
meaty
25
100%
λ¨Ήμμλ μν μ λ°
λ©μμ§
ν΄λΉνλ λ©μμ§λ λ
μ νκ³Ό κ΄λ ¨μμ΅λλ€:
"You feel healthy(!)"
λΉμ μ λ
μ νμ μ체λ tinμΌλ‘ λΆν° μ»μκ±°λ, μλμΉμΌλ‘ λ 벨 3μ λ¬μ±ν΄μ μ»μμ΅λλ€ (λ§μ§λ§μ κ²½μ°μλ λλνκ° μμ΅λλ€).
"You feel especially healthy."
You received poison resistance by eating a corpse or tin, while having extrinsic poison resistance (from a ring, amulet, etc.), or poison resistance from level gain.
"You feel hardy!"
λΉμ μ κ΄κ΄κ°μΌλ‘ λ 벨 20μ λ¬μ±ν¨μΌλ‘μ¨ λ
μ νμ μ»μμ΅λλ€.
"You feel a little sick!"
λΉμ μ κ·Έλ λ¦°μ 곡격 λλ¬Έμ λ
μ νμ μμμ΅λλ€.
"You feel less healthy!", "You feel less hardy!"
λΉμ μ μλμΉ/κ΄κ΄κ°μΌλ‘, λ 벨 λλ μΈμ ν΅ν΄ λ
μ νμ μμμ΅λλ€.
"You seem unaffected by the poison", "The poison doesn't seem to affect you."
μ΄ λ©μμ§λ€μ λΉμ μ΄ λ
μ κ±Έλ Έλ€λκ²μ λνλ΄μ§λ§, λ
μ ν λλ¬Έμ λΆμμ©μΌλ‘ κ³ ν΅λ°μ§ μμμ΅λλ€.
External links
Eating Corpses For Food And Intrinsics
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.1. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-361}} tag to the current version's tag or {{noversion}} as appropriate. |
# The Eyes of the Overworld
( β The Eyes of the Overworld β
Base item
pair of lenses
Affiliation
neutralMonkintelligent
When carried
(none)
When worn
magic resistanceastral visionProtects against blindnessProtects against Archon's stunning gaze
When invoked
enlightenment
Base price
2500 zm
Weight
3
The Eyes of the Overworld is the Monk quest artifact. It is the reward for completing the Monk quest, and is neutral for wishing purposes. Its base item type is a pair of lenses.
Contents
1 Effects
2 Strategy
2.1 Gaze attacks
2.2 Zen conduct
3 Origin
4 Encyclopedia entry
Effects
Main article: Astral vision
While wearing the Eyes, in addition to the usual effects of lenses, you are granted astral vision: the squares around you are illuminated as would be lit by a lamp. The Eyes also provide magic resistance when worn; prior to version 3.6.0, the Eyes provided magic resistance when simply carried. Invoking the Eyes provides enlightenment.
Astral vision penetrates walls, doors, solid rock, and any other obstruction. Objects seen through astral vision using the farlook command are described as though you had personally handled the item (a behavior similar to a blessed potion of object detection; for example, viewing a scroll on the floor will tell you its label, not merely "a scroll," and gems discovered embedded in rock will appear with whatever type-name you might have given them.
Blindness from any source will not obstruct your vision if you are wearing the Eyes; internally, the game tracks the duration and cause of your blindness, but all effects of those status ailments are overridden by astral vision, similar to Grayswandir's behavior with hallucination. Astral vision does not grant its usual "vision" properties while on the Rogue level; monsters, tiles, and items are not revealed through darkness or obstructions, but the Eyes will still prevent and override blindness.
Strategy
See also: Invoke Β§ Optimum invocation schedule
Astral vision is highly useful in trying to find secret doors or trying to navigate Gehennom without magic mapping.
The enlightenment from invoking the Eyes can be used as a method to identify useful rings and amulets.
Gaze attacks
Because Nethack assumes line-of-sight is symmetricalβthat is, if you have a clear line of sight to a monster, it can see you tooβmonsters are capable of using gaze attacks through walls and other obstructions if they are within a three-tile radius while you are wearing the Eyes. This can be lethally tragic when dealing with Medusa, or if a pesky umber hulk on the other side of an unphaseable or undiggable wall repeatedly confuses you. In such cases, it may be necessary to temporarily remove the Eyes, as astral vision becomes a liability instead of a boon.
Zen conduct
If you are attempting the Zen conduct, do not wear this item under any circumstances, as it will instantly break the conduct. As it no longer provides a benefit when carried and the invocation effect of enlightenment is easily achieved through other means, it's best to ignore this artifact altogether to avoid the risk of accidentally wearing it.
Origin
Wikipedia has an article about:
The Eyes of the Overworld
The Eyes of the Overworld is a 1966 novel in the Dying Earth series by Jack Vance. The anti-hero Cugel, a resourceful but amoral rogue, is tasked by a wizard to obtain the titular artifact from a squalid village whose "aristocracy" wears the Eyes, which allow them to see everything around them as though it were opulent luxury - fittingly, the Eyes are depicted as literal rose-tinted contact lenses.
Encyclopedia entry
... and finally there is "the Eyes of the Overworld". This obscure artifact pushes the wearer's view sense into the "overworld" -- another name for a segment of the Astral Plane. Usually, there is nothing to be seen. However, the wearer is also able to look back and see the area around herself, much like looking on a map. Why anyone would want to ...
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.6.4. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-364}} tag to the current version's tag or {{noversion}} as appropriate. |
# File:NethackArmor.pdf
File
File history
File usageSize of this JPG preview of this PDF file: 423 Γ 599 pixels. Other resolution: 169 Γ 240 pixels.
Go to page 1
2
next page βOriginal file β(1,239 Γ 1,754 pixels, file size: 65 KB, MIME type: application/pdf, 2 pages)
Summary
Armor reference (2 A4 pages), PDF
Licensing:
This work was created by uploader.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current08:34, 10 November 20101,239 Γ 1,754, 2 pages (65 KB)Ilmari Karonen (talk | contribs)Reupload missing file from Wikia: originally uploaded at 22:58, October 25, 2009 by User:P.bunbun
You cannot overwrite this file.
File usage
The following page uses this file:
Reference card |
# User:Oway
File:Placeholder 220px
About me
This is your user page. Please edit this page to tell the community about yourself!
My favorite pages
Add links to your favorite pages on the wiki here!
Favorite page #2
Favorite page #3 |
# File:Robe.png
File
File history
File usageNo higher resolution available.
Robe.png β(16 Γ 16 pixels, file size: 210 bytes, MIME type: image/png)
A 16x16 vanilla NetHack tile of the object 'robe'.
File history
Click on a date/time to view the file as it appeared at that time.
Date/TimeThumbnailDimensionsUserComment
current11:51, 1 August 200616 Γ 16 (210 bytes)BotFenix (talk | contribs)A 16x16 vanilla NetHack tile of the object 'robe'. Category:16x16 tiles
You cannot overwrite this file.
File usage
The following 10 pages uses this file:
List of vanilla NetHack tiles
NetHack 3.3.0
NetHack 3.3.1
NetHack 3.4.0
NetHack 3.4.1
NetHack 3.4.2
NetHack 3.4.3
NetHack 3.6.0
NetHack 3.7.0
Robe |
# User talk:Uptonbeat
Welcome!
Welcome!
Hi! Welcome, and thanks for contributing to NetHackWiki!
The How to help and Style guide pages are excellent starting points.
Recent changes is a great first stop, because you can see what other people are editing right this minute, and where you can help.
Questions? Need help? You can ask on my talk page, at the Community Portal or on the talk page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.
I'm really happy to have you here, and look forward to working with you! -- ZeroOne (Talk) 03:57, 24 April 2009 |
# Talk:Unicorn
What's the best way to get a co-aligned unicorn out of the way in Sokoban without killing it (or doing anything else that would cause a luck penalty)? I zapped it with a wand of teleportation. While that did get it out of the way, it became angry at me and started attacking the next time I saw it. --MadDawg2552 19:35, 8 January 2007 (UTC)
Got a pet? The pet could kill it. Ring of conflict also works if there are other enemies present. I'm curious why you can't just get the unicorn to walk away from you, though. They're pretty good at that naturally. --Mogri 22:21, 8 January 2007 (UTC)
The problem I was having was that I was trying to push a boulder down the hallway to the last pit and the unicorn would not leave the hallway. In Sokoban, there is not very much room to move around in, so it was either kill the unicorn or teleport it somewhere. The other option was to sit and wait, but it could be hundreds of turns before the unicorn found its way out of there. The pet thing could work, though, if you have a pet strong enough to kill a unicorn. --MadDawg2552 23:14, 8 January 2007 (UTC)
Well, (this is a bit late, I know), I'd suggest simply destroying the boulder. Why? -1 luck is irrelevant. Your luck changes towards 0 whenever turns%600, so -1 luck really stays at most 599 turns. If you have a luckstone and want to keep your luck up, you're overdoing it a bit -- holding luckstone alone is +3 luck, and at that point any identified gem chucked at the unicorn is +5 luck and doesn't go away. Heck, even #named gems are +2. So: Destroy the boulder, throw a gem at the unicorn. You can even calm the unicorn by throwing a rock at it.--Renx 13:50, 28 March 2009 (UTC)
I have found the white unicorn to be impervious to the wand of death. ββ―Preceding unsigned comment added by N8chz (talk β’ contribs) 24 February 2007
I tested it in wizard mode, the white unicorn is anything but impervious to the wand of death. --ZeroOne 23:18, 24 February 2007 (UTC)
I think perhaps there should be a strong(er) warning that, for all its useful properties- in the early game unicorns are hard to catch, hard to shoot or zap, hard to kill, hard to haul over to an altar (which never seems to get a mention- and forget luring it over), they are hard to eat, and hard to shift in Sokoban.
As a newbie player I tended to charge straight at a unicorn (buoyed by the prospect of horns and glory)- without considering how I was going to kill it without the use of projectiles, and with slower speed. Then once I killed it how was I going to lug it over to the altar? Slowly- much to the pleasure of Team ant. --PeterGFin 11:04, 29 April 2007 (UTC)
All that information is present in the article. About catching them: "...unicorns in NetHack are extremely fast (even to a player with intrinsic speed), and stay always a knights move or more away, so as to be out of range of both melee and ranged attacks. If the unicorn is pinned down in a corner, it may very well teleport away before the player can approach."
About killing them: "Unicorns also do surprising amounts of damage, getting in multiple kicks and butts per turn. They won't attack on their own, however, due to their tendency to stay out of range, so only moving directly next to one will lead to an attack."
About moving their corpses: "Weight 1300" --MadDawg2552 00:21, 27 May 2007 (UTC)
Does pounding work to hit them where most other things can't? --220.255.1.57 14:58, 31 May 2011 (UTC)
Yes, as long as you are at least skilled. Basic will only let you hit where a ranged attack could anyways. The unicorn will probably also try to teleport away after each hit, so pounding is probably only useful if it is stuck in a corner in Sokoban or another no-teleport level. -- Qazmlpok 16:48, 31 May 2011 (UTC)
Sometimes when I throw a type-named, unidentified gem to a coaligned unicorn, I get the message "The
<color> unicorn is not interested in your junk." instead of 'gratefully' or 'graciously' accepts. Anyone know what causes this? -Guest --216.252.195.246 21:58, 16 December 2014 (UTC)
That indicates that the gem is actually glass. Most likely you are occasionally making mistakes when trying to figure out the identities of valuable gems in the absence of formal id :-P.
--Chris (talk) 23:28, 16 December 2014 (UTC)
Co-aligned Unicorn only catches gems and no further messages
When I throw my gems/glass at a co-aligned Unicorn, it only says "The white unicorn catches the gem called <name>". I have already thrown 3 gems to it. Does my luck get modified under the hood or what is going on? Running nethack 3.6.0 on NAO. WarriorX90 (talk) 08:25, 25 October 2017 (UTC)
Edit: The Unicorn also drops the gems. WarriorX90 (talk) 09:16, 25 October 2017 (UTC)
A vs an unicorn
TIL. According to the internets it's "a unicorn" https://michigantoday.umich.edu/2015/11/17/a-vs-an/ . ββWinny (talk) 21:26, 18 June 2023 (UTC)
</name></color> |
# Drain strength
Drain strength is a monster spell in NetHack that reduces your strength attribute.
Effects
The spell is a melee-range mage spell; if cast at you and you do not have magic resistance, the spell will inflict 1d(x β 6) points of strength damage, where x is the monster's level. Any strength drain that would take you below 3 strength is instead subtracted sixfold from your current and maximum hit points.
Magic resistance completely negates the effects of this spell; half spell damage will halve the number of points of strength it attempts to drain. A ring of sustain ability will stop the loss of strength, but you still take damage to your current and max HP if that casting would have drained your strength below 3.
Strategy
This spell, along with the touch of death, is a big reason not to face powerful spellcasting monsters without MR - high-level casters can do massive amounts of damage with this spell, and maximum HP lost this way are not restored when your strength is restored (e.g., via a potion of restore ability). For example, a 70 HP character with 15 strength being attacked by a level 25 arch-lich will lose d19 strength from the spell - in the worst-case scenario, our character's strength will go to 3 and he will also lose 42 points from his maxHP, leaving him thoroughly hampered at 28 max HP.
Messages
You suddenly feel weaker!
A monster cast this spell at you, and you lost at least one point of strength from it. This is still displayed even if the stat loss is blocked through a ring of sustain ability.
You feel momentarily weakened.
As above, but nothing happened because you have magic resistance. |
# Fire helmet
[ β fire helmet β
Appearance
random
Slot
helm
AC
1
Special
fire resistance
Base price
50 zm
Weight
50
Material
iron
A fire helmet is a type of helm that appears in SlashTHEM. It has a randomized appearance and is made of iron.
The Firefighter quest artifact, the Fire Chief Helmet, is an artifact fire helmet.
Contents
1 Generation
2 Description
3 Strategy
4 History
5 Origin
6 References
Generation
All Firefighters start the game with a +0 fire helmet.[1]
Description
When worn, a fire helmet provides 1 AC and fire resistance.
Strategy
The fire helmet is one of two sources of fire resistance for a starting Firefighter, and offers protection from falling rock traps and piercers. Even after they find a better helm (such as a dwarvish iron helm from the Mines), the fire helmet is worth keeping in inventory for the resistance until you reach experience level 15 and/or obtain the Fire Chief Helmet. Other roles without intrinsic fire resistance will likely want this as a temporary source to tide them over until they can obtain it from a corpse, ring or other source. While intrinsic fire resistance is enough to justify removing the helm, note that it can be lost to gremlins as well as from one of the adverse effects of sitting on a throne.
Players attempting both foodless and crownless conducts might want to hold on to any fire helmets they find if they cannot find and identify a ring - once they have the property, they can replace it with a helm of brilliance, helm of telepathy or other helm at their leisure.
As humanoid pets have very few items they can use that can provide resistances (such as the cornuthaum and zipper boots), they will appreciate being given your spare fire helmet.
History
The fire helmet is derived from a similar item that appears in SLASH 6; its data can still be found in the source code of SLASH'EM.[2]
Origin
Wikipedia has an article about:
Firefighter's helmet
Firefighters have worn helmets for centuries to protect them from heat, cinders and falling objects. While their material composition has evolved from traditional leather to metals (including brass, nickel and aluminum), and then to composite helmets constructed of lightweight polymers and other plastics, their distinctive shape has changed little over the years.
References
β SlashTHEM 0.9.7 src/u_init.c, line 210
β SLASH'EM 0.0.7E7F2 do_wear.c, line 318 and line 382
SLASH 6 objects.c line 252 |
# abil-343.txt
This is a classic text spoiler, reproduced on NetHackWiki for reference and archival purposes. You should link to this page when you copy or excerpt it, but please do not modify the content.
Caution: As this is not an ordinary wiki page edited by the community, this spoiler may contain outdated or otherwise inaccurate information.
abil-343.txt Last edited 2003-12-17 for NetHack 3.4.3
Class- and race-dependent abilities and gained intrinsics in NetHack 3.4
Compiled by Dylan O'Donnell
<[email protected]>.
This spoiler doesn't attempt to list the various class and racial
modifiers to game activities; just the abilities peculiar to each.
Archeologist
~~~~~~~~~~~~
XL 1 : Stealth
XL 1 : Speed
XL 10: Searching
Can use two-weapon combat.
Can use uncursed touchstones as blessed.
Barbarian
~~~~~~~~~
XL 1 : Poison resistance
XL 7 : Speed
XL 15: Stealth
Can use two-weapon combat.
Cave(wo)man
~~~~~~~~~~~
XL 7 : Speed
XL 15: Warning
Exempt from penalties for cannibalism and eating domestic animals.
Healer
~~~~~~
XL 1 : Poison resistance
XL 15: Warning
Knight
~~~~~~
XL 7 : Speed
Can jump as chess knight.
Can #turn undead.
Can use two-weapon combat.
Monk
~~~~
XL 1 : Speed
XL 1 : Sleep resistance
XL 1 : See invisible
XL 3 : Poison resistance
XL 5 : Stealth
XL 7 : Warning
XL 9 : Searching
XL 11: Fire resistance
XL 13: Cold resistance
XL 15: Shock resistance
XL 17: Teleport control
Exercise wisdom by fasting.
Priest(ess)
~~~~~~~~~~~
XL 15: Warning
XL 20: Fire resistance
Can see objects' blessed/uncursed/cursed status.
Can #turn undead.
Ranger
~~~~~~
XL 1 : Searching
XL 7 : Stealth
XL 15: See invisible
Rogue
~~~~~
XL 1 : Stealth
XL 10: Searching
Can use two-weapon combat.
Samurai
~~~~~~~
XL 1 : Speed
XL 15: Stealth
Can use two-weapon combat.
Tourist
~~~~~~~
XL 10: Searching
XL 20: Poison resistance
Can use two-weapon combat.
Valkyrie
~~~~~~~~
XL 1 : Cold resistance
XL 1 : Stealth
XL 7 : Speed
A thrown Mjollnir (requires strength 25) will usually return to the hand.
Can use two-weapon combat.
Wizard
~~~~~~
XL 15: Warning
XL 17: Teleport control
Gets bonuses rather than penalties for wearing cornuthaums.
Warned before reading uncursed spellbooks with possibility of failure.
dwarf
~~~~~
XL 1 : Infravision
elf
~~~
XL 1 : Infravision
XL 4 : Sleep resistance
gnome
~~~~~
XL 1 : Infravision
Can use uncursed touchstones as blessed.
orc
~~~
XL 1 : Infravision
XL 1 : Poison resistance
Exempt from penalties for cannibalism and eating domestic animals.
Acknowledgements
~~~~~~~~~~~~~~~~
Corrections and clarifications provided by nyra.
This page is based on a spoiler by Dylan O'Donnell. The original license is:
Redistribution, copying, and editing of these spoilers, with or without modification, are permitted provided that the following conditions are met:
The original contributors to any spoiler must continue to be credited.
Any modifications to the spoiler must be acknowledged and credited.
</[email protected]> |
# UnNetHack
Screenshot of UnNetHack
UnNetHack 5 is a variant of NetHack 3.4.3, maintained by Patric Mueller and others.
The main intent of this fork is to put more randomness, challenges, and fun into NetHack.
It features more levels, several UI improvements designed to reduce tedium, and many gameplay-related changes.[1] Since 3.6.1 it also bundles a graphical tiles UI for Windows. The 5.1.0 version's default Windows tiles are not that good but it is bundled with DawnHack tiles.
For discussion, join the IRC channel #unnethack on irc.libera.chat or post to rec.games.roguelike.nethack.
For those curious what is added in UnNetHack, here is the Change Log that list major changes. If you want to see a complete list of changes, you can take a look at the commit browser.
The latest development source code is available from the Git repository, and there are several public servers where it can be played online.
Contents
1 Changes from NetHack 3.4.3
1.1 Patches and general code
1.2 Branch changes
1.2.1 Existing branches
1.2.2 New branches
1.3 Level changes
1.4 Bestiary
1.5 Objects
1.5.1 New objects
1.5.2 Artifacts
1.5.3 Other object changes
1.6 Wishing
2 See also
3 External links
4 References
Changes from NetHack 3.4.3
Patches and general code
UnNetHack incorporates the following patches:
The dump patch (with additional HTML output)
HeckΒ² patch
Menucolors
Statuscolors
Color alchemy
Portions of the Lethe patch, including Cthulhu
Version 5.0.0 adds the Convict role, with its associated equipment and monsters.
Several features are incorporated from SLASH'EM:
Show weight feature
The nymph level
The black market (modified)
The Vampire race (modified)
UnNetHack also fixes many vanilla bugs, such as the Astral call bug. Some of the changes made between 3.4.3 and 3.6.0 were taken from, or inspired by UnNetHack changes, and other variants incorporate content that originally appeared in UnNetHack.
UnNetHack features its own autoexplore implementation, adapted from AceHack.
Branch changes
Existing branches
Version 4.0.0 shortens Sokoban to three levels, adds new puzzle designs, and from UnNetHack 4.1.1 onwards, cheating in Sokoban does not incur a Luck penalty.
Main article: Sokoban (UnNetHack)
As of version 5.0.0, Fort Ludios is more likely to be accessible: the portal will now be in the first vault generated below level 10. It still has a chance of being inaccessible if no vaults are generated below level 10.
The adventurer will be accepted by the quest leader to perform the quest from experience level 10 (rather than having to achieve experience level 14.)
New branches
The Town (4.0.0): The Town is accessible from an upstairs located on the level below the entrance to Sokoban, and features numerous shops, a town watch, and muggers who will attempt to steal your inventory.
The Ruins of Moria (5.0.0): The Ruins of Moria are located in the main dungeon somewhere above the black market.
The Black market (4.0.0)
Sheol (5.0.0): Sheol is an ice-themed branch of Gehennom, with special monsters, traps, and even terrain types.
The Dragon Caves (4.0.0): The Dragon Caves are located deep within Gehennom, and consist of multiple dragon and purple worm-infested caverns, with several chromatic dragons waiting in a lair at the bottom.
For detailed changes in UnNetHack's dungeon branches, see the UnNethack dungeon map.
Level changes
Certain special levels have been modified or given alternate versions, including the Castle, Fort Ludios, the Valley of the Dead, Moloch's Sanctum, and the lairs of the various demon lords. Listed here are examples of some of the different level variations:
Castle
Asmodeus's lair
Juiblex's Swamp
Baalzebub's lair
Orcus Town
Lots of new maps for Big Room are also added.
Random level generation has also been modified. In addition to new special rooms, wallified corridors, and various other changes, the dungeon now contains random vaults that add significant variety to what the dungeon can look like.
The vibrating square is somewhat easier to find. When the player is two squares away from it, he will receive the message "you feel a faint trembling under your feet". One square away the player will receive the message "you feel a weak trembling under your feet". Once on top the vibrating square the message is the typical "you feel a strange vibration under your feet".
Moloch's Sanctum has been changed significantly. It now features a modified map with two sections separated by an expanse of lava and a double drawbridge. Inside the inner Sanctum, the initially peaceful priest of Moloch is accompanied with Cthulhu, who now carries the Amulet of Yendor, and who reappears a few turns after being killed. The Amulet teleports whenever it is dropped, so after killing Cthulhu for the first time the player must locate the amulet within the level. This may require continuing to fend off Cthulhuβunless the player finds a way to get rid of him permanently.
Bestiary
Many new monsters[2] are from other variants.
Name
Symbol
Origin
Notes
First Version
Locust[3]
a
SporkHack
Sickness bite
5.0.0
Snow ant
a
SLASH'EM
Freezing bite attack
4.0.0
Evil eye
e
Drains luck
5.0.0
Cthulhu
h
SLASH'EM/Lethe patch
Casts spells, sucks brains, and confuses
4.0.0
Uranium imp
i
Homestuck
Teleports along with player when attacked
5.0.0
Aphrodite
n
SLASH'EM
Steals, as a nymph
4.0.0
Deep orc[4][5]
o
The Lord of the Rings
Generated only in Moria
5.0.0
Enormous rat
r
Higher level than giant rat
5.0.0
Rodent of unusual size
r
The Princess Bride
Higher level than enormous rat
5.0.0
Anti-matter vortex
v
NetHack brass
Engulf and disintegrate
4.0.0, removed 5.0.0
Chillbug[6][7]
x
Adeon
Generated only in Sheol
5.0.0
Dark Angel[8]
A
Generated in Sheol
5.0.0
Weeping angel[9]
A
Doctor Who
Drains life and magic, level teleports
5.0.0
Weeping archangel
A
Drains life and magic, level teleports
5.0.0
Chromatic dragon[10]
D
Tiamat
4.0.0
Glowing dragon
D
Nephi
Armor is a light source
4.0.0
Baby glowing dragon
D
Nephi
4.0.0
Vorpal jabberwock
J
L
Beheads
4.0.0
White naga[11]
N
Generated only in Sheol
5.0.0
White naga hatchling
N
Generated only in Sheol
5.0.0
Blue slime[12]
P
Adeon
Generated in Sheol
5.0.0
Disintegrator
R
Biodiversity patch
Disintegrates
4.0.0
Devil's Snare
X
Harry Potter
Stationary, uses holding attack
5.0.0
Ice golem[13]
'
Adeon
Generated only in Sheol
5.0.0
Crystal ice golem[14][15]
'
SLASH'EM
Generated only in Sheol
5.0.0
Wax golem[16]
'
SLASH'EM
Burning touch, drops candles
4.0.0
Giant turtle
:
SporkHack
Blocks line-of-sight like a boulder
4.0.0
Punisher[17]
`
Adeon
Generated only in Sheol
5.0.0
Watcher in the Water[18]
;
The Lord of the Rings
Unique, found in Moria
5.0.0
Durin's Bane[19]
&
The Lord of the Rings
Unique, found in Moria
5.0.0
Lava demon
&
Convict patch
5.0.0
Black marketeer
@
SLASH'EM
One-eyed Sam
4.0.0
Executioner[20]
@
Unique, found in Sheol
5.0.0
Mugger
@
SLASH'EM
Steals
4.0.0
Robert the Lifer
@
Convict patch
Unique, quest leader for the Convict role
5.0.0
Warden Arianna
@
Convict patch
Unique, quest nemesis for the Convict role
5.0.0
Inmate
@
Convict patch
Quest guardian for the Convict role
5.0.0
Prison guard
@
Convict patch
5.0.0
Miner
@
Convict patch
5.0.0
Convict
@
Convict patch
Player monster
5.0.0
Dragons have been substantially modified in UnNetHack (more info on Dragon#UnNetHack).
The antimatter vortex was added in version 4.0.0 but removed in 5.0.0.
Objects
[21]
New objects
A tinfoil hat that blocks clairvoyance and impedes spellcasting.
Glowing dragon scales and scale mail, which act as a permanent light source and provide stone resistance.
Chromatic dragon scales and chromatic dragon scale mail, which provide all resistances (including reflection) except magic resistance (includes magic resistance as of 5.2.0).
Rings of gain intelligence, wisdom, and dexterity from SLASH'EM.
Potions of blood which have nutritional value for vampires.
Potions of vampire blood which polymorph the player into a vampire.
A scroll of flood, replacing the scroll of amnesia.
An iron safe as a container.
Artifacts
UnNetHack has the following "new" (vs vanilla) artifacts:
Itlachiayaque replaces the Orb of Detection as the quest artifact for the Archeologists.
Luck Blade from SLASH'EM is added in version 5.0.0, as the first sacrifice gift for Convicts (and a possible sacrifice gift for any Chaotic player).
Thiefbane has been added, in support of the black market.
Changes to The Banes:
The Banes can cancel their targeted monsters.
The Banes (not including Thiefbane) warn of their targeted monsters.
Werebane grants polymorph control while wielded.
Dragonbane grants fire, shock, cold, acid, poison, and disintegration resistance.
Wielding Trollsbane grants hungerless regeneration and prevents trolls from leaving corpses.
Ogresmasher increases wielder's constitution to 25, gives a +d4 damage to all monsters, and has a 50% chance of instantly killing ogres (a la Sporkhack). (While not named a "bane", Ogresmasher fits the category perfectly.)
Changes to other artifacts:
Vorpal Blade warns of jabberwocks.
The Heart of Ahriman now grants displacement and energy regeneration instead of stealth.
Other object changes
Wands will now turn to dust after the first time they are wrested, however, the odds of wresting have been greatly increased, and is dependent on BUC.
The scroll of genocide wipes out a single species throughout the dungeon when blessed, and a single species on the dungeon level when uncursed. Cursed genocide is unchanged
When a cursed object is fired or thrown, there is a chance that it will hit the ceiling instead of its target.
Wearing correct racial armor grants an extra 1 AC per piece worn.
Wishing
Main article: Wish#UnNetHack
Wishing is less accessibleβwands of wishing are generated already recharged once, and are the only source of wishes for magical items. Non-magical wishes are still available from magic lamps.
Thrones no longer grant wishes in any form.
See also
List of UnNetHack tiles
External links
Project page
Screenshots
Development blog
(Let's Play!) UnNetHack by KoboldLord (Conclusion)
GitHub level files
UnNetHack 5.1.0 level distribution graph
References
β http://groups.google.com/group/rec.games.roguelike.nethack/msg/5ee5599d1e6b7378
β http://sourceforge.net/apps/trac/unnethack/log/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1052/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1307/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1308/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1108/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1158/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1133/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1293
β http://sourceforge.net/apps/trac/unnethack/changeset/990/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1134/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1123/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1124/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1105/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1153/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/993/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1126/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1307/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1307/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/changeset/1136/trunk/src/monst.c
β http://sourceforge.net/apps/trac/unnethack/log/trunk/src/objects.c
A user has suggested improving this page or section as follows:
"This is out of date. UnNethack's latest release is 5.2.0, which makes some important changes, for example to Chromatic dragons and their mail. Also, source references will have to point to the git repo now, since the subversion has been archived." |
# Force
This article is about the extended command. For the force that sometimes prevents you from teleporting or climbing stairs, see mysterious force.
#force is the extended command to unlock a container with a weapon, either by prying or by smashing the lock. It cannot be used on doors, you will instead get the message "You decide not to force the issue."
Prying with an edged weapon (such as a dagger) is a better method, as it will do no harm to the container and its contents. However, it may break your weapon, so do not pry with your only (or best) weapon! Smashing the box with a blunt weapon (such as a mace) may destroy the whole container, including some or all of its contents. Otherwise, it would be best to leave the container until you have some means of unlocking it. Forcing the chest with an edged weapon exercises dexterity, while a blunt weapon exercises strength.[1]
Contents
1 Mechanics
1.1 Weapon breakage
1.2 Destroying the container
2 SLASH'EM
3 References
Mechanics
Edged weapons are weapons that use any of the following skills: dagger, knife, axe, short sword, broadsword, long sword, two-handed sword, scimitar or saber.
The per-turn percent chance of success is , where is the maximum amount of base damage the weapon deals to large monsters.[2] For example, a dagger deals 1d3 damage to large monsters, so the per-turn chance of success is . If you have not succeeded after 50 turns, you give up.[3]
Weapon breakage
When forcing open a locked container with an edged weapon, there is a chance the weapon will break, unless it is cursed.[4] Artifacts will resist breaking 99% of the time. The probability that a non-artifact, noncursed, edged weapon will survive an unsuccessful attempt to force a locked container is given in the following table, depending on the weapon's enchantment and erosion level:[5]
Enchantment
Erosion level
Uneroded
Eroded
Very eroded
Thoroughly eroded
+7
0.95
0.57
0.34
0.20
+6
0.90
0.54
0.33
0.19
+5
0.86
0.52
0.31
0.19
+4
0.82
0.49
0.30
0.18
+3
0.78
0.47
0.28
0.17
+2
0.74
0.45
0.27
0.16
+1
0.70
0.42
0.25
0.15
+0
0.67
0.40
0.24
0.14
-1
0.64
0.38
0.23
0.14
-2
0.61
0.36
0.22
0.13
-3
0.58
0.35
0.21
0.12
-4
0.55
0.33
0.20
0.12
-5
0.52
0.31
0.19
0.11
-6
0.50
0.30
0.18
0.11
-7
0.47
0.28
0.17
0.10
Destroying the container
If you successfully force the lock using a blunt weapon, there is a 25% chance that you also destroy the container.[6] If you do destroy the container, you will also destroy every potion in the container, and every non-potion in the container has a 25% chance of being destroyed.[7]
SLASH'EM
In SLASH'EM, you can also use the force command on doors to bash it down with your weapon.
References
β lock.c in NetHack 3.4.3, line 207: edged weapons exercise dexterity; blunt weapons exercise strength
β lock.c in NetHack 3.4.3, line 488: success probability depends on the weapon's damage vs. large monsters
β lock.c in NetHack 3.4.3, line 139: give up after 50 turns
β lock.c in NetHack 3.4.3, line 149: cursed weapons won't break
β lock.c in NetHack 3.4.3, line 148: whether an edged weapon breaks depends on its enchantment and erosion
β lock.c in NetHack 3.4.3, line 168: containers forced with blunt weapons destroyed 25% of the time
β lock.c in NetHack 3.4.3, line 182: contents of a destroyed container have 25% chance (or 100% for potions) of being destroyed
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate. |