You are given an integer N. Consider all possible segments on the coordinate axis with endpoints at integer points with coordinates between 0 and N, inclusive; there will be $\frac{n(n + 1)}{2}$ of them.

You want to draw these segments in several layers so that in each layer the segments don't overlap (they might touch at the endpoints though). You can not move the segments to a different location on the coordinate axis. 

Find the minimal number of layers you have to use for the given N.


-----Input-----

The only input line contains a single integer N (1 ≤ N ≤ 100).


-----Output-----

Output a single integer - the minimal number of layers required to draw the segments for the given N.


-----Examples-----
Input
2

Output
2

Input
3

Output
4

Input
4

Output
6



-----Note-----

As an example, here are the segments and their optimal arrangement into layers for N = 4. [Image]

Difficulty: interview

Starter code:

Solutions:
n=int(input())
print(max((i+1)*(n-i)for i in range(n)))


n = int(input())

a = (n + 1) // 2
b = (n + 2) // 2

print(a * b)

import sys
n = int(input())
ans = 0
while n > 0:
    ans += n
    n -= 2
print(ans)


n = int(input())
ans = 0
if(n % 2 == 0):
	ans += (n//2) * (n//2+1)
else:
	ans += ((n+1)//2)**2

print(ans)

n = int(input())
k = n + 1
print((k*k)//4)

n = int(input())
if n % 2 == 0:
    b = 2
else:
    b = 1
s = 0
for i in range(b, n + 1, 2):
    s += i
print(s)

n = int(input())

ans = 0

for i in range(n, 0, -2):
	ans += i

print(ans)

n = int(input())
ans = 0
for i in range(n):
    ans = max(ans, (i + 1) * (n - i))
print(ans)

n=int(input())
ar=[]
for x in range(0,n+1):
    for y in range(x+1,n+1):
        ar.append([x,y])
ans=0
for x in ar:
    if x[0] <= (n+1-(n%2))/2 <= x[1]:
        ans+=1
print(ans)


n = int(input())
def f(x):
	if x == 1:
		return 1
	if x % 2:
		return f(x - 1) + (x + 1) // 2
	return f(x - 1) + x // 2
print(f(n))

n = int(input())

cnt = 0
while n > 0:
    cnt += n
    n -= 2

print(cnt)


n = int(input())
l, r = 0, n
ans = 0
while l < r:
    ans += r - l
    l += 1
    r -= 1
print(ans)


def f(n):
  if n <= 1:
    return n
  else:
    return f(n-2) + n

n = int(input())
print(f(n))

n = int(input())
cnt = 0
cur_cnt = 1
for i in range(n, 0, -1):
    cnt += min(cur_cnt, i)
    cur_cnt += 1
print(cnt)


from math import *
a = int(input())
a += 1
print(floor(a*a/4))

n = int(input())

summa = 0
while n>0:
    summa+=n
    n-=2
print(summa)


n = int(input())
print((n+1)**2//4)


n = int(input())
ans = 0
for i in range(1, n + 1):
	if n >= 2 * i:
		ans += i
	else:
		ans += n - i + 1
print(ans)


n = int(input())
sm = 0
for i in range(n, -1, -2):
	sm+=i
	if n<=2: break
print(sm)

n = int(input())

ans = 0

for i in range(n // 2 + (0 if n % 2 == 0 else 1)):
    l = n - 2 * i
    if l <= 0:
        break
    ans += l

print(ans)
    


'''input
4
'''
n = int(input())
l = [[False] * n]
for s in range(n):
	for e in range(s+1, n+1):
		for x in range(len(l)):
			if True not in l[x][s:e]:
				l[x][s:e] = [True] * (e-s)
				break
		else:
			l.append([False] * n)
			l[-1][s:e] = [True] * (e-s)
print(len(l))


n = int(input())

memo = dict()

def f(n):
    if n == 1:
        return 1
    if n == 2:
        return 2
    if n in memo:
        return memo[n]
    memo[n] = n + f(n-2)
    return memo[n]

print(f(n))


n = int(input())
k = (n//2)*(n//2+1)
print(k if n%2==0 else k+(n+1)//2)


n = int(input())

if n % 2 == 0:
    print((n // 2) * (n // 2 + 1))
else:
    nn = (n - 1) // 2
    print(n * (n + 1) // 2 - nn * (nn + 1))