Resistor Power Rating
A resistor with voltage across it dissipates watts. Engineers pick a rating at least twice . Print (3 decimals) and the smallest standard rating from 0.125, 0.25, 0.5, 1, 2, 5, 10 W that is (as 0.25W, 1W, …), or Too much if none is enough.
Input
and .
Output
and the rating.
Constraints
,
Sample 1
Input
5 220
Output
0.114 0.25W
Sample 2
Input
12 10
Output
14.400 Too much