problem 100

refer to http://www.alpertron.com.ar/QUAD.HTM