Alberta Collegiate Programming Contest 2017

#### Start

2017-10-14 18:00 UTC

## Alberta Collegiate Programming Contest 2017

#### End

2017-10-14 23:00 UTC
The end is near!
Contest is over.
Not yet started.
Contest is starting in -558 days 15:41:50

5:00:00

0:00:00

# Problem JAnthony and Diablo

Anthony has a pet hamster named Diablo. Diablo enjoys having lots of space to move around, so Anthony wants to build him a cage that covers as much area as possible.

However, Diablo also likes to dig and hide very much, and when he does, it is an absolute pain for Anthony to find Diablo (Diablo is very good at hiding). Therefore, Anthony wants to make sure the cage he builds for Diablo is not too big. In particular, Anthony wants to make sure the area of the cage is exactly $A$ square meters; any area larger than $A$ square meters will be too much work to find Diablo when he hides, any area smaller than $A$ square meters will be too uncomfortable for Diablo.

Anthony has $N$ meters of fencing that can be cut/bent at any point, and wonders if it is possible to build a cage of any shape that has area exactly $A$ with the materials he has. Write a program to help him out!

## Input

The input contains two real numbers $0<A\leq 100$ and $0\leq N\leq 1000$.

## Output

Output a single line with “Diablo is happy!” if Anthony can build his cage for Diablo, “Need more materials!” otherwise.

Sample Input 1 Sample Output 1
1.000000 4.000000

Diablo is happy!

Sample Input 2 Sample Output 2
1.000000 0.000000

Need more materials!
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7416878938674927, "perplexity": 4557.198405567895}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578765115.93/warc/CC-MAIN-20190426093516-20190426115516-00489.warc.gz"}