Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Weather Report

By newbie_mukit, mdvirus · Limits 500ms, 128 MB

Santu is a newcomer in Rangpur. He could not adjust to the strange weather in Rangpur. He goes out for various tasks. But most of the time, it starts raining and he has to come home drenched. He wants you to write a program for him to get rid of this problem. Now you write a program that reports a certain day’s weather to Santu.

Input

The probability of rain on a certain day will be given as input in percentage. The probability of rain is limited to 0% to 100%.

Output

  • If the probability of rain on that certain day is 70% or higher, print “Bad weather.” (without quotes).
  • If the probability of rain on that certain day is 30% or less, print “Good weather.” (without quotes).
  • If the probability of rain on that certain day is between 30% and 70% (excluding 30 and 70), print “Confusing weather.” (with quotes).

Samples

InputOutput
29
Good weather.
InputOutput
71
Bad weather.

Discussion

Statistics


81% Solution Ratio

mashfiqur404Earliest, 4M ago

fire_tornadoFastest, 0.0s

Burn_FireblazeLightest, 0 B

mashfiqur404Shortest, 104B

Submit

Login to submit

Related Contests