Polar Explorer

No attempts yetTime limit1sMemory limit128 MB

Problem

You are a two dimensional explorer posted near the north pole of a distant two dimensional planet. The surface of the planet is a perfect circle, so there is no terrain on it to survey.

Then a distress call arrives from an alien ship that has crash landed somewhere on that surface. You built your own equipment, and all it reports is the angle between you and the crash site, measured at the center of the planet.

Your planet rover gets a measly 5 miles per gallon. From that angle and the gasoline you have left, decide whether you can drive to the crash site and back before the tank runs dry.

The rover travels along the surface and takes the shorter of the two arcs, so for an angle of ZZ degrees the central angle it actually covers is min(Z,360Z)\min(Z, 360 - Z) degrees.

Input

The input holds a series of data sets, at most 100 of them, with no blank line between data sets.

One data set has three parts.

  1. Start line: a single line START
  2. Input line: a single line X Y Z
    • XX (1X1001 \le X \le 100) is the radius of the planet in whole miles
    • YY (0Y1000 \le Y \le 100) is the gasoline left in the rover in whole gallons
    • ZZ (0Z3600 \le Z \le 360) is the angle between you and the crash site in whole degrees
  3. End line: a single line END

A single line ENDOFINPUT follows the last data set.

The circumference of a circle of radius rr is 2πr2 \pi r, and π\pi is 3.141593.14159.

Output

Print one line for each data set.

If the gasoline covers the round trip, print YES X, where XX is the fuel left once you are back, written as a whole number of gallons with the fraction dropped.

If the gasoline is not enough, print NO Y, where YY is the distance you can travel on the fuel you have, written as a whole number of miles.