Author: | A. Karabanov | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 256 Mb | |
Output file: | Standard output |
During a woodwork lesson at school, Timofey got his hands onto the try-square with wooden handle and metallic blade. Since Timofey has already finished his assignment (producing a stool), he started to roll the try-square along the coordinate axis. Starting position and movement direction are shown on the picture.
Your program must, given the coordinate of the point on the axis, determine which part of the try-square touched it.
Input contains three integers a, b and n — lengths of the wooden and metallic internal sides of the try-square and the coordinate of point. It is guaranteed that a and b are catheti of Pythagorean triangle (that is, hypotenuse is a whole integer).
Output must contain a single word:
wood
, if point is touched by the wooden handle,metal
, if point is touched by the metal blade,empty
, if point is not touched by the try-square.3≤a<b≤1000
1≤n≤109
No. | Standard input | Standard output |
---|---|---|
1 |
|
|