This is a very simply formulated task. Let's call an integer number `N` 'green' if `N²` ends with all of the digits of `N`. Some examples:

`5` is green, because `5² = 25` and `25` ends with `5`.

`11` is not green, because `11² = 121` and `121` does not end with `11`.

`376` is green, because `376² = 141376` and `141376` ends with `376`.

Your task is to write a function `green` that returns `n`th green number, starting with `1` - `green (1) == 1`

---

## Data range

```if:haskell
`n <= 4000` for Haskell
```
```if:java
`n <= 5000` for Java
```
```if:python
`n <= 5000` for Python
```
```if:javascript
`n <= 3000` for JavaScript

Return values should be `String`s, and should be exact. A BigNum library is recommended.
```

```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

def _disabled_input(*args, **kwargs):
    raise RuntimeError("input() is disabled in callable mode")
builtins.input = _disabled_input

ns = {"__name__": "__judge__"}  # prevent if __name__ == "__main__" blocks
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "def green(n):\n    if n < 6:\n        return [1, 5, 6, 25, 76][n-1]\n    nums = ['25', '376']\n    ads = ['0', '0', '0', '0', '0', '6', '9', '90', '10', '8', '7', '2', '1', '8', '2', '7', '8', '1',\n           '8', '1', '9', '400', '9', '5', '7', '2', '6', '3', '4', '5', '7', '2', '2', '7', '9', '60',\n           '3', '7', '2', '2', '7', '800', '9', '9', '1', '6', '3', '3', '6', '9', '10', '8', '4', '5',\n           '900', '9', '9', '90', '10', '8', '6', '3', '10', '9', '8', '9', '30', '6', '2', '7', '3',\n           '6', '2', '7', '4', '5', '3', '6', '2', '7', '4', '5', '7', '2', '4', '5', '4', '5', '9',\n           '1000', '9', '9', '8', '1', '8', '8', '1', '6', '3', '6', '3', '1', '8', '9', '80', '1', '4',\n           '5', '90', '9', '50', '4', '3', '6', '3', '6', '8', '1', '2', '7', '6', '3', '9', '900', '9',\n           '10', '8', '90', '9', '50', '4', '1', '8', '6', '3', '9', '70', '2', '80', '9', '1', '30',\n           '9', '6', '8', '1', '8', '1', '9', '10', '8', '9', '80', '1', '3', '6', '7', '2', '9', '300',\n           '9', '6', '5', '4', '60', '9', '3', '90', '9', '60', '3', '6', '3', '7', '2', '4', '5', '6',\n           '3', '2', '7', '5', '4', '1', '8', '8', '1', '3', '6', '700', '9', '9', '2', '6', '3', '5',\n           '4', '5', '4', '4', '5', '9', '90', '80', '1', '6', '3', '4', '5', '2', '7', '6', '3', '1',\n           '8', '80', '9', '1', '8', '1', '7', '2', '3', '6', '5', '4', '1', '8', '7', '2', '6', '3',\n           '9', '10', '8', '3', '6', '80', '9', '1', '7', '2', '4', '5', '60', '9', '3', '50', '9', '4',\n           '9', '60', '3', '2', '7', '6', '3', '7', '2', '3', '6', '5', '4', '1', '8', '8', '1', '9',\n           '60', '3', '20', '9', '7', '5', '4', '4', '5', '9', '70', '2', '80', '9', '1', '1', '8', '50',\n           '9', '4', '10', '9', '8', '9', '80', '1', '5', '4', '3', '6', '5', '4', '1', '8', '3', '6', \n           '6', '3', '3', '6', '2', '7', '6', '3', '7', '2', '7', '2', '7', '2', '4', '5', '3', '6', '1', \n           '8', '1', '8', '1', '8', '7', '2', '4', '5', '3', '6', '7', '2', '8', '1', '8', '1', '5', '4', \n           '2', '7', '3', '6', '70', '9', '2', '8', '1', '3', '6', '4', '5', '8', '1', '6', '3', '4', '5',\n           '8', '1', '70', '9', '2', '8', '1', '2', '7', '1', '8', '7', '2', '1', '8', '9', '90', '40', \n           '5', '1', '8', '6', '3', '5', '4', '8', '1', '8', '1', '6', '3', '1', '8', '2', '7', '2', '7', \n           '5', '4', '4', '5', '2', '7', '5', '4', '40', '9', '5', '3', '6', '8', '1', '8', '1', '4', '5', \n           '90', '9', '90', '80', '1', '8', '1', '1', '8', '8', '1', '4', '5', '3', '6', '9', '80', '1', \n           '2', '7', '9', '70', '2', '90', '9', '50', '4', '40', '9', '5', '8', '1', '6', '3', '6', '3', \n           '3', '6', '8', '1', '7', '2', '6', '3', '1', '8', '6', '3', '6', '3', '6', '3', '5', '4', '6', \n           '3', '9', '80', '1', '9', '50', '4', '1', '8', '30', '9', '6', '3', '6', '8', '1', '6', '3', \n           '5', '4', '4', '5', '9', '40', '5', '6', '3', '5', '4', '2', '7', '1', '8', '2', '7', '9', '90', \n           '30', '6', '3', '6', '7', '2', '4', '5', '2', '7', '1', '8', '8', '1', '2', '7', '80', '9', '1', \n           '6', '3', '3', '6', '5', '4', '4', '5', '3', '6', '2', '7', '4', '5', '9', '90', '400', '9', \n           '5', '2', '7', '7', '2', '8', '1', '4', '5', '70', '9', '2', '3', '6', '3', '6', '9', '90', \n           '80', '1', '2', '7', '7', '2', '3', '6', '9', '80', '1', '7', '2', '7', '2', '5', '4', '4', '5',\n           '3', '6', '8', '1', '500', '9', '9', '4', '60', '9', '3', '60', '9', '3', '9', '80', '1', '6', \n           '3', '1', '8', '5', '4', '4', '5', '1', '8', '2', '7', '4', '5', '4', '5', '8', '1', '3', '6', \n           '4', '5', '9', '80', '1', '7', '2', '5', '4', '2', '7', '6', '3', '9', '90', '60', '3', '7', \n           '2', '5', '4', '3', '6', '2', '7', '3', '6', '2', '7', '3', '6', '8', '1', '7', '2', '8', '1', \n           '6', '3', '2', '7', '7', '2', '3', '6', '6', '3', '8', '1', '8', '1', '4', '5', '9', '60', '3', \n           '9', '80', '1', '3', '6', '5', '4', '2', '7', '50', '9', '4', '6', '3', '1', '8', '1', '8', '20',\n           '9', '7', '6', '3', '8', '1', '8', '1', '9', '70', '2', '2', '7', '7', '2', '5', '4', '1', '8', \n           '7', '2', '4', '5', '6', '3', '8', '1', '4', '5', '5', '4', '2', '7', '9', '500', '9', '4', '9', \n           '80', '1', '8', '1', '9', '40', '5', '2', '7', '2', '7', '900', '9', '9', '50', '4', '1', '8', \n           '2', '7', '7', '2', '9', '30', '6', '90', '9', '70', '2', '1', '8', '8', '1', '8', '1', '5', '4', \n           '4', '5', '7', '2', '4', '5', '4', '5', '9', '60', '3', '4', '5', '9', '600', '9', '3', '9', \n           '300', '9', '6', '5', '4', '8', '1', '4', '5', '7', '2', '9', '90', '80', '1', '1', '8', '80', \n           '9', '1', '6', '3', '8', '1', '9', '80', '1', '9', '60', '3', '4', '5', '5', '4', '3', '6', '9', \n           '5000', '9', '9', '4', '9', '600', '9', '3', '4', '5', '5', '4', '7', '2', '5', '4', '6', '3', \n           '2', '7', '10', '9', '8', '6', '3', '4', '5', '2', '7', '4', '5', '8', '1', '5', '4', '4', '5', \n           '9', '40', '5', '2', '7', '7', '2', '8', '1', '3', '6', '2', '7', '3', '6', '6', '3', '3', '6', \n           '1', '8', '2', '7', '5', '4', '1', '8', '7', '2', '6', '3', '3', '6', '9', '20', '7', '1', '8', \n           '70', '9', '2', '7', '2', '4', '5', '1', '8', '5', '4', '5', '4', '4', '5', '7', '2', '1', '8', \n           '9', '70', '2', '2', '7', '2', '7', '2', '7', '4', '5', '8', '1', '50', '9', '4', '6', '3', '1', \n           '8', '4', '5', '8', '1', '70', '9', '2', '30', '9', '6', '9', '60', '3', '8', '1', '3', '6', '3', \n           '6', '7', '2', '9', '10', '8', '1', '8', '6', '3', '4', '5', '4', '5', '2', '7', '4', '5', '7', \n           '2', '7', '2', '7', '2', '8', '1', '7', '2', '3', '6', '2', '7', '6', '3', '7', '2', '4', '5', \n           '4', '5', '5', '4', '1', '8', '70', '9', '2', '3', '6', '8', '1', '8', '1', '6', '3', '9', '8000', \n           '9', '9', '1', '2', '7', '3', '6', '2', '7', '7', '2', '8', '1', '4', '5', '5', '4', '5', '4', \n           '7', '2', '3', '6', '9', '80', '1', '600', '9', '9', '3', '3', '6', '4', '5', '10', '9', '8', '6', \n           '3', '7', '2', '5', '4', '4', '5', '1', '8', '9', '500', '9', '4', '8', '1', '3', '6', '3', '6', \n           '20', '9', '7', '4', '5', '6', '3', '3', '6', '2', '7', '9', '10', '8', '2', '7', '8', '1', '70', \n           '9', '2', '50', '9', '4', '4', '5', '3', '6', '60', '9', '3', '8', '1', '9', '700', '9', '2', '7', \n           '2', '2', '7', '4', '5', '8', '1', '4', '5', '1', '8', '5', '4', '1', '8', '5', '4', '8', '1', \n           '8', '1', '2', '7', '8', '1', '3', '6', '7', '2', '1', '8', '4', '5', '4', '5', '6', '3', '7', '2', \n           '1', '8', '4', '5', '4', '5', '8', '1', '9', '40', '5', '3', '6', '4', '5', '8', '1', '7', '2', '80', \n           '9', '1', '9', '50', '4', '1', '8', '2', '7', '6', '3', '4', '5', '70', '9', '2', '8', '1', '7', \n           '2', '7', '2', '8', '1', '10', '9', '8', '1', '8', '5', '4', '50', '9', '4', '4', '5', '8', '1', \n           '2', '7', '5', '4', '6', '3', '6', '3', '8', '1', '8', '1', '1', '8', '3', '6', '3', '6', '30', '9', \n           '6', '4', '5', '2', '7', '9', '30', '6', '6', '3', '8', '1', '5', '4', '8', '1', '4', '5', '9', '20', \n           '7', '1', '8', '1', '8', '1', '8', '8', '1', '7', '2', '7', '2', '6', '3', '1', '8', '4', '5', '8', \n           '1', '5', '4', '4', '5', '30', '9', '6', '2', '7', '6', '3', '5', '4', '2', '7', '100', '9', '9', \n           '8', '4', '5', '5', '4', '3', '6', '1', '8', '4', '5', '7', '2', '3', '6', '2', '7', '40', '9', '5', \n           '4', '5', '8', '1', '7', '2', '7', '2', '7', '2', '1', '8', '2', '7', '4', '5', '4', '5', '50', '9', \n           '4', '7', '2', '4', '5', '2', '7', '9', '700', '9', '2', '2', '7', '2', '7', '1', '8', '60', '9', \n           '3', '2', '7', '4', '5', '2', '7', '4', '5', '2', '7', '2', '7', '9', '90', '60', '3', '9', '70', '2', \n           '80', '9', '1', '5', '4', '6', '3', '7', '2', '3', '6', '6', '3', '2', '7', '1', '8', '6', '3', '8', \n           '1', '7', '2', '4', '5', '1', '8', '5', '4', '1', '8', '9', '60', '3', '8', '1', '7', '2', '6', '3', \n           '4', '5', '2', '7', '6', '3', '9', '90', '90', '60', '3', '2', '7', '5', '4', '1', '8', '3', '6', '7', \n           '2', '30', '9', '6', '5', '4', '2', '7', '6', '3', '9', '90', '20', '7', '5', '4', '90', '9', '80', \n           '1', '7', '2', '9', '50', '4', '8', '1', '8', '1', '6', '3', '80', '9', '1', '4', '5', '7', '2', '9', \n           '40', '5', '5', '4', '4', '5', '20', '9', '7', '2', '7', '7', '2', '3', '6', '9', '50', '4', '50', \n           '9', '4', '6', '3', '60', '9', '3', '4', '5', '6', '3', '8', '1', '1', '8', '4', '5', '8', '1', '7', \n           '2', '7', '2', '8', '1', '4000', '9', '9', '9', '5', '4', '5', '3', '6', '6', '3', '40', '9', '5', '5', \n           '4', '7', '2', '7', '2', '9', '20', '7', '6', '3', '5', '4', '1', '8', '8', '1', '9', '60', '3', '9', \n           '10', '8', '6', '3', '5', '4', '4', '5', '4', '5', '9', '500', '9', '4', '9', '80', '1', '4', '5', '8', \n           '1', '5', '4', '5', '4', '300', '9', '9', '6', '4', '5', '6', '3', '70', '9', '2', '8', '1', '3', '6', \n           '2', '7', '1', '8', '6', '3', '7', '2', '4', '5', '1', '8', '40', '9', '5', '4', '5', '7', '2', '10', \n           '9', '8', '5', '4', '4', '5', '3', '6', '5', '4', '9', '90', '10', '8', '2', '7', '7', '2', '8', '1', \n           '5', '4', '1', '8', '7', '2', '3', '6', '1', '8', '4', '5', '7', '2', '8', '1', '2', '7', '6', '3', '2', \n           '7', '5', '4', '2', '7', '1', '8', '5', '4', '2', '7', '3', '6', '9', '800', '9', '1', '4', '5', '70', \n           '9', '2', '7', '2', '9', '50', '4', '20', '9', '7', '5', '4', '6', '3', '3', '6', '8', '1', '2', '7', \n           '8', '1', '9', '80', '1', '8', '1', '8', '1', '6', '3', '7', '2', '6', '3', '20', '9', '7', '80', '9', \n           '1', '2', '7', '8', '1', '3', '6', '6', '3', '9', '40', '5', '3', '6', '2', '7', '4', '5', '2', '7', '1', \n           '8', '6', '3', '2', '7', '40', '9', '5', '6', '3', '6', '3', '4', '5', '8', '1', '9', '90', '10', '8', \n           '1', '8', '5', '4', '3', '6', '60', '9', '3', '1', '8', '9', '900', '9', '30', '6', '6', '3', '3', '6', \n           '1', '8', '400', '9', '9', '5', '5', '4', '7', '2', '1', '8', '8', '1', '2', '7', '7', '2', '1', '8', '3', \n           '6', '1', '8', '7', '2', '8', '1', '1', '8', '1', '8', '70', '9', '2', '1', '8', '5', '4', '7', '2', '3', \n           '6', '6', '3', '1', '8', '5', '4', '7', '2', '10', '9', '8', '2', '7', '4', '5', '2', '7', '4', '5', '6', \n           '3', '5', '4', '4', '5', '7', '2', '2', '7', '80', '9', '1', '90', '9', '80', '1', '1', '8', '1', '8', \n           '6', '3', '3', '6', '9', '80', '1', '60', '9', '3', '2', '7', '7', '2', '3', '6', '20', '9', '7', '4', \n           '5', '4', '5', '9', '30', '6', '6', '3', '9', '10', '8', '2', '7', '2', '7', '70', '9', '2', '1', '8', \n           '80', '9', '1', '8', '1', '7', '2', '8', '1', '1', '8', '8', '1', '6', '3', '3', '6', '4', '5', '6', '3', \n           '3', '6', '40', '9', '5', '5', '4', '9', '30', '6', '2', '7', '7', '2', '2', '7', '2', '7', '90', '9', \n           '70', '2', '20', '9', '7', '70', '9', '2', '5', '4', '5', '4', '9', '10', '8', '3', '6', '2', '7', '7', '2', \n           '9', '20', '7', '1', '8', '9', '40', '5', '9', '50', '4', '3', '6', '1', '8', '8', '1', '7', '2', '7', '2', \n           '4', '5', '8', '1', '7', '2', '1', '8', '2', '7', '3', '6', '1', '8', '3', '6', '2', '7', '8', '1', '9', \n           '10', '8', '500', '9', '9', '4', '7', '2', '2', '7', '3', '6', '2', '7', '1', '8', '4', '5', '8', '1', '5', \n           '4', '6', '3', '8', '1', '3', '6', '1', '8', '1', '8', '3', '6', '3', '6', '5', '4', '2', '7', '1', '8', \n           '9', '50', '4', '2', '7', '1', '8', '30', '9', '6', '5', '4', '9', '90', '70', '2', '8', '1', '4', '5', '7', \n           '2', '1', '8', '4', '5', '2', '7', '9', '90', '20', '7', '90', '9', '70', '2', '7', '2', '1', '8', '2', '7', \n           '1', '8', '2', '7', '5', '4', '1', '8', '8', '1', '3', '6', '4', '5', '1', '8', '5', '4', '4', '5', '7', '2', \n           '5', '4', '7', '2', '9', '20', '7', '50', '9', '4', '3', '6', '6', '3', '2', '7', '70', '9', '2', '6', '3', \n           '3', '6', '4', '5', '1', '8', '8', '1', '4', '5', '3', '6', '8', '1', '6', '3', '4', '5', '4', '5', '7', '2', \n           '70', '9', '2', '4', '5', '700', '9', '9', '2', '50', '9', '4', '5', '4', '8', '1', '3', '6', '2', '7', '2', \n           '7', '5', '4', '5', '4', '5', '4', '3', '6', '5', '4', '4', '5', '3', '6', '7', '2', '3', '6', '2', '7', '2', \n           '7', '10', '9', '8', '3', '6', '9', '60', '3', '4', '5', '6', '3', '3', '6', '1', '8', '6', '3', '5', '4', '1', \n           '8', '70', '9', '2', '5', '4', '2', '7', '4', '5', '1', '8', '7', '2', '600', '9', '9', '3', '7', '2', '1',  \n           '8', '2', '7', '80', '9', '1', '1', '8', '9', '50', '4', '6', '3', '7', '2', '8', '1', '7', '2', '1', '8', '6', \n           '3', '3', '6', '4', '5', '1', '8', '3', '6', '3', '6', '1', '8', '9', '30', '6', '5', '4', '3', '6', '3', '6', \n           '7', '2', '6', '3', '5', '4', '2', '7', '3', '6', '1', '8', '9', '200', '9', '7', '1', '8', '2', '7', '6',\n           '3', '5', '4', '3', '6', '1', '8', '6', '3', '6', '3', '60', '9', '3', '4', '5', '2', '7', '4', '5', '6',\n           '3', '7', '2', '5', '4', '9', '80', '1', '40', '9', '5', '8', '1', '2', '7', '5', '4', '3', '6', '2', '7',\n           '7', '2', '1', '8', '7', '2', '3', '6', '40', '9', '5', '9', '10', '8', '4', '5', '5', '4', '4', '5', '60',\n           '9', '3', '6', '3', '3', '6', '1', '8', '3', '6', '6', '3', '3', '6', '6', '3', '9', '20', '7', '6', '3',\n           '9', '40', '5', '6', '3', '5', '4', '8', '1', '4', '5', '4', '5', '8', '1', '5', '4', '6', '3', '5', '4',\n           '8', '1', '7', '2', '3', '6', '1', '8', '2', '7', '2', '7', '1', '8', '4', '5', '5', '4', '5', '4', '4',\n           '5', '3', '6', '3', '6', '2', '7', '2', '7', '2', '7', '2', '7', '30', '9', '6', '7', '2', '5', '4', '9',\n           '70', '2', '5', '4', '1', '8', '1', '8', '8', '1', '2', '7', '400', '9', '9', '5', '80', '9', '1', '5',\n           '4', '8', '1', '3', '6', '8', '1', '7', '2', '1', '8', '6', '3', '7', '2', '3', '6', '7', '2', '5', '4',\n           '1', '8', '5', '4', '80', '9', '1', '1', '8', '4', '5', '1', '8', '5', '4', '6', '3', '7', '2', '7', '2',\n           '4', '5', '8', '1', '8', '1', '3', '6', '9', '50', '4', '4', '5', '1', '8', '8', '1', '1', '8', '9', '20',\n           '7', '80', '9', '1', '3', '6', '4', '5', '4', '5', '5', '4', '6', '3', '5', '4', '2', '7', '8', '1',\n           '2', '7', '5', '4', '7', '2', '6', '3', '6', '3', '7', '2', '7', '2', '7', '2', '5', '4', '4', '5',\n           '6', '3', '1', '8', '7', '2', '70', '9', '2', '70', '9', '2', '8', '1', '7', '2', '9', '50', '4',\n           '5', '4', '60', '9', '3', '8', '1', '7', '2', '100', '9', '9', '8', '4', '5', '3', '6', '2', '7',\n           '70', '9', '2', '2', '7', '3', '6', '3', '6', '1', '8', '2', '7', '3', '6', '9', '200', '9', '7',\n           '8', '1', '1', '8', '1', '8', '5', '4', '1', '8', '5', '4', '50', '9', '4', '5', '4', '5', '4', '3',\n           '6', '5', '4', '10', '9', '8', '3', '6', '1', '8', '4', '5', '7', '2', '1', '8', '1', '8', '1', '8',\n           '5', '4', '2', '7', '1', '8', '6', '3', '2', '7', '90', '9', '50', '4', '4', '5', '2', '7', '40', '9',\n           '5', '9', '20', '7', '10', '9', '8', '2', '7', '2', '7', '3', '6', '9', '400', '9', '5', '8', '1', '6',\n           '3', '6', '3', '9', '20', '7', '6', '3', '8', '1', '6', '3', '8', '1', '1', '8', '5', '4', '1', '8', '70',\n           '9', '2', '1', '8', '6', '3', '9', '50', '4', '2', '7', '7', '2', '2', '7', '80', '9', '1', '7', '2', '5',\n           '4', '7', '2', '9', '30', '6', '9', '10', '8', '2', '7', '1', '8', '4', '5', '6', '3', '5', '4', '8',\n           '1', '3', '6', '3', '6', '9', '80', '1', '1', '8', '7', '2', '7', '2', '4', '5', '90', '9', '50', '4',\n           '7', '2', '5', '4', '6', '3', '4', '5', '8', '1', '2', '7', '4', '5', '9', '20', '7', '90', '9', '50',\n           '4', '1', '8', '3', '6', '30', '9', '6', '6', '3', '4', '5', '3', '6', '3', '6', '2', '7', '8', '1', '1',\n           '8', '9', '80', '1', '3', '6', '9', '50', '4', '7', '2', '6', '3', '1', '8', '1', '8', '8', '1', '2', '7',\n           '3', '6', '90', '9', '80', '1', '9', '80', '1', '9', '70', '2', '2', '7', '6', '3', '1', '8', '2', '7', '6',\n           '3', '9', '10', '8', '6', '3', '2', '7', '2', '7', '1', '8', '2', '7', '4', '5', '2', '7', '8', '1', '3',\n           '6', '20', '9', '7', '8', '1', '1', '8', '10', '9', '8', '2', '7', '8', '1', '6', '3', '50', '9', '4',\n           '2', '7', '7', '2', '4', '5', '6', '3', '6', '3', '9', '30', '6', '10', '9', '8', '9', '80', '1', '3',\n           '6', '4', '5', '5', '4', '40', '9', '5', '6', '3', '2', '7', '5', '4', '5', '4', '4', '5', '4', '5', '1',\n           '8', '90', '9', '80', '1', '4', '5', '7', '2', '4', '5', '3', '6', '6', '3', '6', '3', '4', '5', '20',\n           '9', '7', '7', '2', '9', '70', '2', '7', '2', '7', '2', '7', '2', '8', '1', '3', '6', '8', '1', '1',\n           '8', '4', '5', '7', '2', '8', '1', '6', '3', '60', '9', '3', '2', '7', '6', '3', '7', '2', '9', '200',\n           '9', '7', '3', '6', '2', '7', '7', '2', '2', '7', '2', '7', '7', '2', '5', '4', '5', '4', '4', '5', '3',\n           '6', '7', '2', '2', '7', '8', '1', '9', '90', '30', '6', '8', '1', '8', '1', '8', '1', '3', '6', '70', '9',\n           '2', '2', '7', '4', '5', '40', '9', '5', '6', '3', '2', '7', '4', '5', '1', '8', '80', '9', '1', '5', '4',\n           '8', '1', '9', '70', '2', '1', '8', '8', '1', '5', '4', '5', '4', '6', '3', '5', '4', '3', '6', '2', '7',\n           '2', '7', '2', '7', '5', '4', '9', '3000', '9', '9', '6', '1', '8', '8', '1', '3', '6', '1', '8', '6',\n           '3', '70', '9', '2', '20', '9', '7', '2', '7', '7', '2', '7', '2', '1', '8', '5', '4', '1', '8', '3',\n           '6', '7', '2', '5', '4', '3', '6', '9', '20', '7', '3', '6', '90', '9', '50', '4', '3', '6', '8', '1',\n           '5', '4', '6', '3', '7', '2', '5', '4', '4', '5', '7', '2', '9', '70', '2', '70', '9', '2', '7', '2',\n           '9', '30', '6', '7', '2', '8', '1', '80', '9', '1', '8', '1', '5', '4', '9', '30', '6', '1', '8', '7',\n           '2', '5', '4', '7', '2', '1', '8', '7', '2', '1', '8', '4', '5', '5', '4', '4', '5', '8', '1', '60', '9',\n           '3', '7', '2', '60', '9', '3', '4', '5', '8', '1', '8', '1', '9', '50', '4', '5', '4', '4', '5', '40', '9',\n           '5', '2', '7', '7', '2', '4', '5', '3', '6', '2', '7', '4', '5', '1', '8', '2', '7', '5', '4', '7', '2', '1',\n           '8', '9', '90', '50', '4', '5', '4', '4', '5', '90', '9', '50', '4', '70', '9', '2', '4', '5', '5', '4',\n           '5', '4', '6', '3', '2', '7', '7', '2', '9', '30', '6', '6', '3', '6', '3', '5', '4', '1', '8', '5', '4',\n           '7', '2', '5', '4', '2', '7', '4', '5', '1', '8', '1', '8', '5', '4', '4', '5', '5', '4', '6', '3', '20',\n           '9', '7', '1', '8', '8', '1', '4', '5', '3', '6', '6', '3', '1', '8', '7', '2', '5', '4', '1', '8', '6',\n           '3', '8', '1', '80', '9', '1', '2', '7', '7', '2', '2', '7', '7', '2', '5', '4', '9', '30', '6', '3',\n           '6', '90', '9', '90', '80', '1', '2', '7', '4', '5', '3', '6', '3', '6', '9', '50', '4', '5', '4', '50',\n           '9', '4', '3', '6', '60', '9', '3', '9', '40', '5', '8', '1', '9', '70', '2', '10', '9', '8', '8', '1',\n           '3', '6', '2', '7', '2', '7', '8', '1', '5', '4', '5', '4', '5', '4', '7', '2', '6', '3', '8', '1',\n           '600', '9', '9', '3', '6', '3', '2', '7', '8', '1', '90', '9', '20', '7', '2', '7', '80', '9', '1',\n           '8', '1', '3', '6', '9', '60', '3', '9', '10', '8', '80', '9', '1', '7', '2', '5', '4', '2', '7', '3',\n           '6', '6', '3', '7', '2', '4', '5', '5', '4', '9', '40', '5', '5', '4', '1', '8', '6', '3', '8', '1',\n           '6', '3', '9', '90', '500', '9', '4', '9', '90', '20', '7', '90', '9', '60', '3', '6', '3', '2', '7',\n           '5', '4', '7', '2', '3', '6', '1', '8', '9', '40', '5', '8', '1', '4', '5', '6', '3', '8', '1', '7',\n           '2', '7', '2', '8', '1', '9', '20', '7', '6', '3', '9', '60', '3', '2', '7', '7', '2', '6', '3', '1',\n           '8', '5', '4', '6', '3', '9', '10', '8', '5', '4', '9', '80', '1', '1', '8', '5', '4', '8', '1', '1',\n           '8', '5', '4', '5', '4', '3', '6', '8', '1', '80', '9', '1', '6', '3', '4', '5', '2', '7', '9', '20',\n           '7', '1', '8', '5', '4', '9', '30', '6', '4', '5', '5', '4', '5', '4', '30', '9', '6', '7', '2', '30',\n           '9', '6', '60', '9', '3', '7', '2', '7', '2', '4', '5', '6', '3', '8', '1', '7', '2', '2', '7', '6',\n           '3', '8', '1', '2', '7', '8', '1', '9', '80', '1', '2', '7', '4', '5', '30', '9', '6', '7', '2', '9',\n           '600', '9', '3', '7', '2', '3', '6', '4', '5', '3', '6', '3', '6', '1', '8', '9', '40', '5', '6', '3',\n           '1', '8', '3', '6', '1', '8', '50', '9', '4', '4', '5', '5', '4', '1', '8', '7', '2', '8', '1', '2', '7',\n           '5', '4', '3', '6', '7', '2', '2', '7', '9', '40', '5', '5', '4', '1', '8', '9', '90', '500', '9', '4',\n           '5', '4', '70', '9', '2', '4', '5', '6', '3', '3', '6', '80', '9', '1', '9', '50', '4', '9', '40', '5',\n           '3', '6', '1', '8', '1', '8', '2', '7', '4', '5', '5', '4', '9', '10', '8', '4', '5', '7', '2', '60', '9',\n           '3', '2', '7', '8', '1', '5', '4', '7', '2', '50', '9', '4', '8', '1', '9', '80', '1', '3', '6', '7', '2',\n           '9', '90', '20', '7', '5', '4', '5', '4', '2', '7', '5', '4', '8', '1', '4', '5', '1', '8', '6', '3',\n           '30', '9', '6', '6', '3', '9', '40', '5', '1', '8', '8', '1', '90', '9', '40', '5', '9', '10', '8', '3',\n           '6', '5', '4', '9', '60', '3', '90', '9', '40', '5', '6', '3', '2', '7', '5', '4', '8', '1', '600', '9',\n           '9', '3', '60', '9', '3', '7', '2', '2', '7', '2', '7', '2', '7', '8', '1', '7', '2', '5', '4', '9', '10',\n           '8', '2', '7', '3', '6', '2', '7', '6', '3', '6', '3', '2', '7', '7', '2', '8', '1', '1', '8', '5', '4', '1',\n           '8', '1', '8', '1', '8', '6', '3', '3', '6', '3', '6', '9', '20', '7', '5', '4', '7', '2', '5', '4', '3',\n           '6', '3', '6', '9', '40', '5', '2', '7', '4', '5', '7', '2', '9', '90', '10', '8', '80', '9', '1', '8', '1',\n           '6', '3', '7', '2', '6', '3', '5', '4', '8', '1', '5', '4', '2', '7', '5', '4', '7', '2', '4', '5', '8', '1',\n           '5', '4', '2', '7', '5', '4', '7', '2', '8', '1', '6', '3', '9', '60', '3', '9', '20', '7', '1', '8', '3',\n           '6', '7', '2', '7', '2', '2', '7', '1', '8', '20', '9', '7', '5', '4', '7', '2', '1', '8', '7', '2', '6',\n           '3', '2', '7', '1', '8', '1', '8', '2', '7', '2', '7', '40', '9', '5', '7', '2', '6', '3', '9', '10', '8',\n           '3', '6', '7', '2', '8', '1', '1', '8', '1', '8', '7', '2', '7', '2', '7', '2', '2', '7', '2', '7', '6', '3',\n           '90', '9', '90', '60', '3', '9', '20', '7', '1', '8', '6', '3', '8', '1', '1', '8', '3', '6', '90', '9', '40',\n           '5', '3', '6', '5', '4', '2', '7', '6', '3', '4', '5', '7', '2', '50', '9', '4', '9', '10', '8', '9', '600',\n           '9', '3', '1', '8', '3', '6', '3', '6', '2', '7', '4', '5', '2', '7', '70', '9', '2', '7', '2', '2', '7', '7',\n           '2', '3', '6', '2', '7', '6', '3', '7', '2', '8', '1', '4', '5', '1', '8', '1', '8', '4', '5', '1', '8', '9',\n           '80', '1', '2', '7', '8', '1', '7', '2', '5', '4', '3', '6', '2', '7', '7', '2', '5', '4', '6', '3', '70',\n           '9', '2', '4', '5', '1', '8', '5', '4', '4', '5', '8', '1', '4', '5', '2', '7', '5', '4', '8', '1', '7', '2',\n           '6', '3', '8', '1', '3', '6', '1', '8', '20', '9', '7', '5', '4', '8', '1', '4', '5', '60', '9', '3', '7',\n           '2', '6', '3', '8', '1', '8', '1', '9', '20', '7', '1', '8', '7', '2', '20', '9', '7', '3', '6', '4', '5',\n           '3', '6', '9', '90', '10', '8', '4', '5', '8', '1', '3', '6', '30', '9', '6', '7', '2', '9', '70', '2', '50',\n           '9', '4', '900', '9', '9', '70', '2', '7', '2', '5', '4', '4', '5', '2', '7', '2', '7', '5', '4', '1', '8',\n           '6', '3', '70', '9', '2', '4', '5', '8', '1', '30', '9', '6', '6', '3', '8', '1', '6', '3', '700', '9', '9',\n           '2', '5', '4', '1', '8', '9', '90', '50', '4', '2', '7', '2', '7', '5', '4', '8', '1', '2', '7', '8', '1',\n           '1', '8', '1', '8', '2', '7', '4', '5', '70', '9', '2', '3', '6', '2', '7', '5', '4', '6', '3', '9', '10',\n           '8', '40', '9', '5', '7', '2', '5', '4', '7', '2', '3', '6', '1', '8', '4', '5', '90', '9', '50', '4', '60',\n           '9', '3', '1', '8', '3', '6', '2', '7', '6', '3', '4', '5', '9', '300', '9', '6', '9', '20', '7', '1', '8',\n           '2', '7', '5', '4', '3', '6', '4', '5', '8', '1', '60', '9', '3', '3', '6', '2', '7', '9', '60', '3', '4',\n           '5', '8', '1', '1', '8', '3', '6', '7', '2', '6', '3', '2', '7', '6', '3', '8', '1', '7', '2', '1', '8', '9',\n           '50', '4', '20', '9', '7', '7', '2', '5', '4', '6', '3', '5', '4', '40', '9', '5', '1', '8', '5', '4', '2',\n           '7', '4', '5', '2', '7', '7', '2', '2', '7', '2', '7', '9', '70', '2', '6', '3', '8', '1', '1', '8', '5', '4',\n           '4', '5', '4', '5', '8', '1', '70', '9', '2', '7', '2', '3', '6', '2', '7', '1', '8', '3', '6', '6', '3', '9',\n           '20', '7', '3', '6', '4', '5', '8', '1', '3', '6', '2', '7', '7', '2', '5', '4', '1', '8', '4', '5', '1', '8',\n           '2', '7', '5', '4', '6', '3', '6', '3', '9', '60', '3', '6', '3', '4', '5', '30', '9', '6', '6', '3', '3',\n           '6', '5', '4', '3', '6', '80', '9', '1', '6', '3', '2', '7', '1', '8', '2', '7', '1', '8', '5', '4', '9',\n           '70', '2', '9', '50', '4', '9', '70', '2', '5', '4', '4', '5', '1', '8', '1', '8', '8', '1', '1', '8', '1',\n           '8', '7', '2', '6', '3', '9', '50', '4', '6', '3', '8', '1', '3', '6', '4', '5', '7', '2', '6', '3', '7',\n           '2', '5', '4', '40', '9', '5', '6', '3', '2', '7', '1', '8', '9', '70', '2', '9', '20', '7', '30', '9', '6',\n           '2', '7', '1', '8', '2', '7', '2', '7', '2', '7', '3', '6', '6', '3', '8', '1', '6', '3', '8', '1', '6',\n           '3', '9000', '9', '9', '9', '90000', '9', '9', '9', '20', '7', '1', '8', '6', '3', '5', '4', '80', '9',\n           '1', '9', '80', '1', '8', '1', '7', '2', '7', '2', '1', '8', '2', '7', '1', '8', '2', '7', '5', '4', '4',\n           '5', '2', '7', '3', '6', '10', '9', '8', '2', '7', '4', '5', '3', '6', '9', '20', '7', '4', '5', '9', '20',\n           '7', '4', '5', '50', '9', '4', '8', '1', '5', '4', '3', '6', '5', '4', '8', '1', '7', '2', '2', '7', '1',\n           '8', '1', '8', '1', '8', '4', '5', '4', '5', '7', '2', '2', '7', '2', '7', '3', '6', '8', '1', '6', '3',\n           '1', '8', '1', '8', '9', '80', '1', '1', '8', '4', '5', '4', '5', '2', '7', '6', '3', '6', '3', '4', '5',\n           '8', '1', '9', '30', '6', '7', '2', '1', '8', '4', '5', '500', '9', '9', '4', '2', '7', '5', '4', '6',\n           '3', '9', '500', '9', '4', '3', '6', '4', '5', '20', '9', '7', '2', '7', '60', '9', '3', '6', '3', '4',\n           '5', '90', '9', '90', '40', '5', '4', '5', '7', '2', '3', '6', '5', '4', '9', '70', '2', '7', '2', '4',\n           '5', '9', '60', '3', '60', '9', '3', '6', '3', '5', '4', '20', '9', '7', '3', '6', '4', '5', '30', '9',\n           '6', '3', '6', '5', '4', '4', '5', '20', '9', '7', '3', '6', '8', '1', '3', '6', '8', '1', '8', '1', '1',\n           '8', '7', '2', '1', '8', '2', '7', '8', '1', '9', '80', '1', '7', '2', '4', '5', '7', '2', '4', '5', '6',\n           '3', '7', '2', '5', '4', '2', '7', '2', '7', '6', '3', '60', '9', '3', '3', '6', '4', '5', '7', '2', '3',\n           '6', '8', '1', '3', '6', '9', '50', '4', '3', '6', '6', '3', '4', '5', '6', '3', '2', '7', '7', '2', '1',\n           '8', '4', '5', '8', '1', '4', '5', '4', '5', '7', '2', '3', '6', '70', '9', '2', '5', '4', '5', '4', '9',\n           '50', '4', '90', '9', '40', '5', '9', '20', '7', '7', '2', '300', '9', '9', '6', '6', '3', '6', '3', '2',\n           '7', '5', '4', '4', '5', '9', '90', '20', '7', '6', '3', '10', '9', '8', '6', '3', '7', '2', '1', '8',\n           '40', '9', '5', '7', '2', '8', '1', '3', '6', '2', '7', '6', '3', '2', '7', '100', '9', '9', '8', '9',\n           '70', '2', '6', '3', '7', '2', '9', '20', '7', '8', '1', '7', '2', '6', '3', '1', '8', '9', '20', '7',\n           '4', '5', '6', '3', '60', '9', '3', '4', '5', '4', '5', '6', '3', '3', '6', '20', '9', '7', '9', '10',\n           '8', '2', '7', '9', '50', '4', '4', '5']\n    count = 5\n    while n > count:\n        nums[0] = ads[count] + nums[0]\n        if len(nums[0]) > len(nums[1]):\n            nums[0], nums[1] = nums[1], nums[0]\n        elif len(nums[0]) == len(nums[1]):\n            nums.sort()\n        count += 1\n    return int(nums[0])"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

_target = None
_fn_name = 'green'
if _fn_name:
    if "Solution" in ns:
        try:
            _obj = ns["Solution"]()
            if hasattr(_obj, _fn_name):
                _target = getattr(_obj, _fn_name)
        except Exception:
            _target = None
    if _target is None and _fn_name in ns and callable(ns[_fn_name]):
        _target = ns[_fn_name]
# Fallback: if there's exactly one user-defined function, use it
if _target is None:
    _cands = [v for k, v in ns.items() if callable(v) and getattr(v, "__module__", "") in ("__judge__", "__main__")]
    _user_funcs = [c for c in _cands if getattr(c, "__name__", "").startswith("_") is False]
    if len(_user_funcs) == 1:
        _target = _user_funcs[0]
if _target is None:
    raise RuntimeError(f"Could not resolve callable '{_fn_name}'")

_raw = sys.stdin.read().strip()
if _raw:
    _parsed = json.loads(_raw)
    if isinstance(_parsed, dict):
        _kwargs = _parsed.get("kwargs", {})
        _args = _parsed.get("args", [])
    else:
        _args, _kwargs = _parsed, {}
else:
    _args, _kwargs = [], {}
if not isinstance(_args, (list, tuple)):
    _args = [_args]
_res = _target(*_args, **_kwargs)
try:
    sys.stdout.write(repr(_res) + "\n")
except Exception:
    pass

```

Measured memory_bytes: 5700