When taking digital photos, it is important to get the proper exposure (brightness). A photo can be represented as a grid of
Most digital cameras have an exposure correction feature. By choosing a correction constant
Given an image, first determine if it is underexposed, overexposed, or correctly exposed. If the image is not correctly exposed, please find the
Constraints
It is guaranteed that no underexposed or overexposed image has a required
Input Specification
The first line will contain two space-separated integers,
The next
Output Specification
On one line, output the string underexposed
, overexposed
, or correctly exposed
. If the image is not correctly exposed, output an additional line containing one positive real number, the required
Sample Input 1
2 3
0.36 0.304 0.12
0.408 0.312 0.96
Sample Output 1
underexposed
1.25
Sample Input 2
2 3
0.48 0.58 0.56
0.38 0.40 0.48
Sample Output 2
correctly exposed
Comments