per nextum in unam tum XI conscribementis fac sic

    vestibulo perlegementum da varo.

    morde varo.

    seqis cumula varum.

cis



per nextum in unam tum XI conscribementis fac sic

    seqis decumulamenta da varo.

    varum privamentum fodementum da aresulto.

    varum tum III elevamentum tum V multiplicamentum da bresulto.

    aresultum tum bresultum addementum da resulto.



    si CD tum resultum non praestantiam fac sic

        dictum sic f(%d) = %.2f cis tum varum tum resultum egresso describe.

        novumversum egresso scribe.

    cis

    si CD tum resultum praestantiam fac sic

        dictum sic f(%d) = MAGNA NIMIS! cis tum varum egresso describe.

        novumversum egresso scribe.        

    cis

cis




-----Input-----

The input consists of several integers, one per line. Each integer is between -50 and 50, inclusive.


-----Output-----

As described in the problem statement.


-----Example-----
Input
0
1
-2
-3
-4
-5
-6
-7
-8
-9
10

Output
f(10) = MAGNA NIMIS!
f(-9) = -3642.00
f(-8) = -2557.17
f(-7) = -1712.35
f(-6) = -1077.55
f(-5) = -622.76
f(-4) = -318.00
f(-3) = -133.27
f(-2) = -38.59
f(1) = 6.00
f(0) = 0.00

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "seq = [\n\t'f(-50) = -624992.93',\n\t'f(-49) = -588238.00',\n\t'f(-48) = -552953.07',\n\t'f(-47) = -519108.14',\n\t'f(-46) = -486673.22',\n\t'f(-45) = -455618.29',\n\t'f(-44) = -425913.37',\n\t'f(-43) = -397528.44',\n\t'f(-42) = -370433.52',\n\t'f(-41) = -344598.60',\n\t'f(-40) = -319993.68',\n\t'f(-39) = -296588.76',\n\t'f(-38) = -274353.84',\n\t'f(-37) = -253258.92',\n\t'f(-36) = -233274.00',\n\t'f(-35) = -214369.08',\n\t'f(-34) = -196514.17',\n\t'f(-33) = -179679.26',\n\t'f(-32) = -163834.34',\n\t'f(-31) = -148949.43',\n\t'f(-30) = -134994.52',\n\t'f(-29) = -121939.61',\n\t'f(-28) = -109754.71',\n\t'f(-27) = -98409.80',\n\t'f(-26) = -87874.90',\n\t'f(-25) = -78120.00',\n\t'f(-24) = -69115.10',\n\t'f(-23) = -60830.20',\n\t'f(-22) = -53235.31',\n\t'f(-21) = -46300.42',\n\t'f(-20) = -39995.53',\n\t'f(-19) = -34290.64',\n\t'f(-18) = -29155.76',\n\t'f(-17) = -24560.88',\n\t'f(-16) = -20476.00',\n\t'f(-15) = -16871.13',\n\t'f(-14) = -13716.26',\n\t'f(-13) = -10981.39',\n\t'f(-12) = -8636.54',\n\t'f(-11) = -6651.68',\n\t'f(-10) = -4996.84',\n\t'f(-9) = -3642.00',\n\t'f(-8) = -2557.17',\n\t'f(-7) = -1712.35',\n\t'f(-6) = -1077.55',\n\t'f(-5) = -622.76',\n\t'f(-4) = -318.00',\n\t'f(-3) = -133.27',\n\t'f(-2) = -38.59',\n\t'f(-1) = -4.00',\n\t'f(0) = 0.00',\n\t'f(1) = 6.00',\n\t'f(2) = 41.41',\n\t'f(3) = 136.73',\n\t'f(4) = 322.00',\n\t'f(5) = MAGNA NIMIS!',\n\t'f(6) = MAGNA NIMIS!',\n\t'f(7) = MAGNA NIMIS!',\n\t'f(8) = MAGNA NIMIS!',\n\t'f(9) = MAGNA NIMIS!',\n\t'f(10) = MAGNA NIMIS!',\n\t'f(11) = MAGNA NIMIS!',\n\t'f(12) = MAGNA NIMIS!',\n\t'f(13) = MAGNA NIMIS!',\n\t'f(14) = MAGNA NIMIS!',\n\t'f(15) = MAGNA NIMIS!',\n\t'f(16) = MAGNA NIMIS!',\n\t'f(17) = MAGNA NIMIS!',\n\t'f(18) = MAGNA NIMIS!',\n\t'f(19) = MAGNA NIMIS!',\n\t'f(20) = MAGNA NIMIS!',\n\t'f(21) = MAGNA NIMIS!',\n\t'f(22) = MAGNA NIMIS!',\n\t'f(23) = MAGNA NIMIS!',\n\t'f(24) = MAGNA NIMIS!',\n\t'f(25) = MAGNA NIMIS!',\n\t'f(26) = MAGNA NIMIS!',\n\t'f(27) = MAGNA NIMIS!',\n\t'f(28) = MAGNA NIMIS!',\n\t'f(29) = MAGNA NIMIS!',\n\t'f(30) = MAGNA NIMIS!',\n\t'f(31) = MAGNA NIMIS!',\n\t'f(32) = MAGNA NIMIS!',\n\t'f(33) = MAGNA NIMIS!',\n\t'f(34) = MAGNA NIMIS!',\n\t'f(35) = MAGNA NIMIS!',\n\t'f(36) = MAGNA NIMIS!',\n\t'f(37) = MAGNA NIMIS!',\n\t'f(38) = MAGNA NIMIS!',\n\t'f(39) = MAGNA NIMIS!',\n\t'f(40) = MAGNA NIMIS!',\n\t'f(41) = MAGNA NIMIS!',\n\t'f(42) = MAGNA NIMIS!',\n\t'f(43) = MAGNA NIMIS!',\n\t'f(44) = MAGNA NIMIS!',\n\t'f(45) = MAGNA NIMIS!',\n\t'f(46) = MAGNA NIMIS!',\n\t'f(47) = MAGNA NIMIS!',\n\t'f(48) = MAGNA NIMIS!',\n\t'f(49) = MAGNA NIMIS!',\n\t'f(50) = MAGNA NIMIS!'\n]\n\nstk = []\n\ntry:\n\twhile True:\n\t\tn = int(input())\n\t\tstk.append(seq[n + 50] + '\\n')\nexcept EOFError:\n\tprint(''.join(stk[::-1]))\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 14856