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 = "# cook your dish here\n#Coding is about expressing your feeling and\n#there is always a better way to express your feeling _Deepak\nimport sys\n# sys.stdin=open('input.txt','r')\n# sys.stdout=open('output.txt','w')\nfrom sys import stdin,stdout\nfrom collections import deque,defaultdict\nfrom math import ceil,floor,inf,sqrt,factorial,gcd,log2\nfrom copy import deepcopy\nii1=lambda:int(stdin.readline().strip())\nis1=lambda:stdin.readline().strip()\niia=lambda:list(map(int,stdin.readline().strip().split()))\nisa=lambda:stdin.readline().strip().split()\nmod=1000000007\n# s=is1()\n# n = len(s)\n# count,res,flag,subans=1,0,0,1\n# subcount=0\n# for i in range(0,n-1):\n#     if s[i]=='c' or s[i]=='k':\n#         flag=1\n#         break\n#     if s[i]==s[i+1] and (s[i]=='f' or s[i]=='g'):\n#         count+=1\n#     elif count>1:\n#         subans*=(count*(count-1))//2\n#         count=1\n#         subcount+=1\n# if s[-1]=='c' or s[-1]=='k':\n#     flag=1\n# elif count>1:\n#     subans*=(count*(count-1))//2\n#     subcount+=1\n# if flag:\n#     print(0)\n# else:\n#     res=(1<<(subcount-1))\n#     res*=subans\n#     print(res%mod)\nn = ii1()\narr=[None]*n\nfor ii in range(n):\n arr[ii]=iia()\ncount=2\nif n==1 or n==2:\n print(n)\nelse:\n flag=[0]*n\n flag[0]=-1\n flag[-1]=1\n for i in range(1,n-1):\n  if flag[i-1]==-1:\n   if arr[i][0]-arr[i-1][0]>arr[i][1]:\n    flag[i] =- 1\n    count += 1\n   elif arr[i+1][0]-arr[i][0]>arr[i][1]:\n    flag[i] = 1\n    count += 1\n  elif flag[i-1]==1:\n   if arr[i][0]-(arr[i-1][0]+arr[i-1][1])>arr[i][1]:\n    flag[i]=-1\n    count += 1\n   elif arr[i+1][0]-arr[i][0]>arr[i][1]:\n    flag[i]=1\n    count += 1\n  else:\n   if arr[i][0]-arr[i-1][0]>arr[i][1]:\n    flag[i]=-1\n    count+=1\n   elif arr[i+1][0]-arr[i][0]>arr[i][1]:\n    flag[i]=1\n    count+=1\n print(count)\n\n\n\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 178763