Zaikia has $N$ sticks of distinct positive lengths $A_1,A_2,\dots,A_N$. For no good reason at all, he wants to know if there is a triplet of sticks which when connected end-to-end will form a non-trivial triangle. Here non-trivial refers to a triangle with positive area.
Help Zaikia know if such a triplet exists or not. If such a triplet exists, help him find the lexicographically largest applicable triplet.Input
- The first line contains an integer $N$.
- The second line contains $N$ space-seperated integers $A_1,A_2,\dots,A_N$. Output
- In the first line print YES if a triplet exists or NO if it doesn't.
- If such a triplet exists, then in the second line print the lexicographically largest applicable triplet.Constraints
- $3 \leq N \leq {2}\times{10}^{5}$
- $1 \leq A_i \leq {10}^{9}$ for each valid $i$Sample Input 1
5
4 2 10 3 5
Sample Output 1
YES
5 4 3
Explanation 1
There are three unordered triplets of sticks which can be used to create a triangle:
- $4,2,3$
- $4,2,5$
- $4,3,5$
Arranging them in lexicographically largest fashion
- $4,3,2$
- $5,4,2$
- $5,4,3$
Here $5,4,3$ is the lexicographically largest so it is the triplet which dristiron wantsSample Input 2
5
1 2 4 8 16
Sample Output 2
NO
Explanation 2
There are no triplets of sticks here that can be used to create a triangle.

```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 = "import sys\r\ntokenizedInput = sys.stdin.read().split()\r\n\r\ndef triplets(n, arr):\r\n    array = sorted(arr, reverse=False)\r\n    temp = []\r\n    result = []\r\n    i = 0\r\n    for i in range(len(array)):\r\n        if i < len(array)-2:\r\n            if array[i]+array[i+1] > array[i+2]:\r\n                temp.append(array[i])\r\n                temp.append(array[i+1])\r\n                temp.append(array[i+2])\r\n                i = 3\r\n                temp = sorted(temp, reverse=False)\r\n                for i, num in enumerate(temp):\r\n                    if temp[0]+temp[1] > temp[2]:\r\n                        result.append(sorted(temp, reverse=True))\r\n                temp = []\r\n            else:\r\n                i += 1\r\n    max = 0\r\n    i = 0\r\n    if result:\r\n        for count, eacharr in enumerate(result):\r\n            if eacharr[0] > max:\r\n                max = eacharr[0]\r\n                i = count\r\n        listToStr = ' '.join([str(elem) for elem in result[i]])\r\n        print('YES')\r\n        print(listToStr)\r\n    else:\r\n        print('NO')\r\n\r\ndef main():\r\n    lst = []\r\n    \r\n    n = list(map(int, tokenizedInput[:1]))\r\n    lst = list(map(int, tokenizedInput[1:]))\r\n    return triplets(n, lst)\r\n        \r\n\r\ndef __starting_point():\r\n    main()\r\n\n__starting_point()"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 12627