Gennady is one of the best child dentists in Berland. Today n children got an appointment with him, they lined up in front of his office.

All children love to cry loudly at the reception at the dentist. We enumerate the children with integers from 1 to n in the order they go in the line. Every child is associated with the value of his cofidence p_{i}. The children take turns one after another to come into the office; each time the child that is the first in the line goes to the doctor.

While Gennady treats the teeth of the i-th child, the child is crying with the volume of v_{i}. At that the confidence of the first child in the line is reduced by the amount of v_{i}, the second one — by value v_{i} - 1, and so on. The children in the queue after the v_{i}-th child almost do not hear the crying, so their confidence remains unchanged.

If at any point in time the confidence of the j-th child is less than zero, he begins to cry with the volume of d_{j} and leaves the line, running towards the exit, without going to the doctor's office. At this the confidence of all the children after the j-th one in the line is reduced by the amount of d_{j}.

All these events occur immediately one after the other in some order. Some cries may lead to other cries, causing a chain reaction. Once in the hallway it is quiet, the child, who is first in the line, goes into the doctor's office.

Help Gennady the Dentist to determine the numbers of kids, whose teeth he will cure. Print their numbers in the chronological order.


-----Input-----

The first line of the input contains a positive integer n (1 ≤ n ≤ 4000) — the number of kids in the line. 

Next n lines contain three integers each v_{i}, d_{i}, p_{i} (1 ≤ v_{i}, d_{i}, p_{i} ≤ 10^6) — the volume of the cry in the doctor's office, the volume of the cry in the hall and the confidence of the i-th child.


-----Output-----

In the first line print number k — the number of children whose teeth Gennady will cure.

In the second line print k integers — the numbers of the children who will make it to the end of the line in the increasing order.


-----Examples-----
Input
5
4 2 2
4 1 2
5 2 4
3 3 5
5 1 2

Output
2
1 3 
Input
5
4 5 1
5 3 9
4 1 2
2 1 8
4 1 9

Output
4
1 2 4 5 


-----Note-----

In the first example, Gennady first treats the teeth of the first child who will cry with volume 4. The confidences of the remaining children will get equal to  - 2, 1, 3, 1, respectively. Thus, the second child also cries at the volume of 1 and run to the exit. The confidence of the remaining children will be equal to 0, 2, 0. Then the third child will go to the office, and cry with volume 5. The other children won't bear this, and with a loud cry they will run to the exit.

In the second sample, first the first child goes into the office, he will cry with volume 4. The confidence of the remaining children will be equal to 5,  - 1, 6, 8. Thus, the third child will cry with the volume of 1 and run to the exit. The confidence of the remaining children will be equal to 5, 5, 7. After that, the second child goes to the office and cry with the volume of 5. The confidences of the remaining children will be equal to 0, 3. Then the fourth child will go into the office and cry with the volume of 2. Because of this the confidence of the fifth child will be 1, and he will go into the office last.

```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 = 'class CodeforcesTask585ASolution:\n    def __init__(self):\n        self.result = \'\'\n        self.child_count = 0\n        self.child = []\n\n    def read_input(self):\n        self.child_count = int(input())\n        for x in range(self.child_count):\n            self.child.append([x + 1] + [int(y) for y in input().split(" ")] + [True])\n\n    def process_task(self):\n        cured = 0\n        cured_order = []\n        corr_cry = []\n        for child in self.child:\n            #print([x[3] for x in self.child])\n            #print("Processing child {0}".format(child[0]))\n            if child[4]:\n                #print("child being cured {0}".format(child[0]))\n                # dentist cry\n                cured += 1\n                cured_order.append(child[0])\n                child[4] = False\n                x = child[0]\n                power = child[1]\n                while x < len(self.child) and power:\n                    self.child[x][3] -= power\n\n                    #print("reducing confidence of {0} by {1}".format(x + 1, power))\n                    if self.child[x][4]:\n                        power -= 1\n                    if self.child[x][3] < 0 and self.child[x][4]:\n                        #print("child {0} starts crying in corridor".format(x + 1))\n                        corr_cry.append(x + 1)\n                        self.child[x][4] = False\n                    x += 1\n                #print([x[3] for x in self.child])\n                while corr_cry:\n                    crying = corr_cry.pop(0)\n                    #print("crying on corridor {0}".format(crying))\n                    for x in range(crying, len(self.child)):\n                        self.child[x][3] -= self.child[crying - 1][2]\n                        if self.child[x][3] < 0 and self.child[x][4]:\n                            #print("child {0} starts crying in corridor".format(x + 1))\n                            corr_cry.append(x + 1)\n                            self.child[x][4] = False\n                #print([x[3] for x in self.child])\n        self.result = "{0}\\n{1}".format(cured, " ".join([str(x) for x in cured_order]))\n\n\n    def get_result(self):\n        return self.result\n\n\ndef __starting_point():\n    Solution = CodeforcesTask585ASolution()\n    Solution.read_input()\n    Solution.process_task()\n    print(Solution.get_result())\n\n__starting_point()'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 17373