Shashank is playing a game with his friends.
There are n sticks located in a row at points $a_1,a_2, ...,a_n$. Each stick has a height- $h_i$. A person can chop a stick down, after which it takes over one of the regions [$a_i$ - $h_i$, $a_i$] or [$a_i$, $a_i$ + $h_i$]. The stick that is not chopped remains at the point $a_i$. A person can chop a stick in a particular direction if the region to be taken up by the chopped stick does not overlap with an already existing point. The winner $($s$)$ of the game will be one or more people who can answer the question: What is the maximum number of sticks that can be chopped?
Shashank wants to win the game and hence he needs needs your help in finding out what is the maximum number of sticks that can be chopped down.

-----Input:-----
- The first line of each input contains a single integer n.
- n lines follow. Each of the n lines contain a pair of integers: $a_i,h_i$.

-----Output:-----
Output in a single line answer- the maximum number of sticks that can be chopped down.

-----Constraints-----
- $1 \leq n \leq 10^5$
- $1 \leq a_i,h_i \leq 10^9$
- The pairs are given in the order of ascending $a_i$. No two sticks are located at the same point.

-----Sample Input 1:-----
5
1 2
2 1
5 10
10 9
19 1

-----Sample Input 2:-----
5
1 2
2 1
5 10
10 9
20 1

-----Sample Output 1:-----
3

-----Sample Output 2:-----
4

-----EXPLANATION:-----
In the first example you can fell the sticks as follows:
- chop the stick 1 to the left — now it will take over the region $[ - 1;1]$
- chop the stick 2 to the right — now it will take over the region $[2;3]$
- spare the stick 3— it will take over the point $5$
- spare the stick 4— it will take over the point $10$
- chop the stick 5 to the right — now it will take over the region $[19;20]$

```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 = "\nn=int(input())\nsticks=[]\ncount=2\n\nfor i in range(n):\n inn=input().split(' ')\n sticks.append([int(inn[0]),int(inn[1])])\nif len(sticks)<2:\n print(len(sticks))\n return\narea=[[sticks[0][0]-sticks[0][1],sticks[0][0]],\n\n[sticks[-1][0],sticks[-1][0]+sticks[-1][1]]\n\n]\n\n# print(sticks)\n# print(area)\nfor i in sticks:\n area.append([i[0],i[0]])\ndef check(aa,hh):\n a=aa-hh\n h=aa\n flag=0\n for i in area:\n  if i==[aa,aa]:\n   continue\n  if i[0]==i[1] and a<=i[0] and h>=i[0]:\n   flag=-1\n   break\n  if a<=i[0] and h>=i[0]:\n   \n   flag=-1\n   break\n  if a<=i[0] and h>=i[1]:\n   \n   flag=-1\n   break\n  if a<=i[1] and h>=i[1]:\n   \n   flag=-1\n   break\n  if a>=i[0] and h<=i[1]:\n   \n   flag=-1\n   break\n if flag==0:\n  return [a,h]\n flag=1\n a=aa\n h=aa+hh\n for i in area:\n  if i==[aa,aa]:\n   continue\n  if i[0]==i[1] and a<=i[0] and h>=i[0]:\n   flag=-1\n   break\n  if a<=i[0] and h>=i[0]:\n   \n   flag=-1\n   break\n  if a<=i[0] and h>=i[1]:\n   \n   flag=-1\n   break\n  if a<=i[1] and h>=i[1]:\n   \n   flag=-1\n   break\n  if a>=i[0] and h<=i[1]:\n   \n   flag=-1\n   break\n if flag==1:\n  return [a,h]\n return -1\n\n\nfor i in sticks[1:-1]:\n  temp=check(i[0],i[1])\n \n  if temp==-1:\n   continue\n  count+=1\n  area.append(temp)\n\nprint(count)\n\n\n \n\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: