Segments
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

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 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.

输入描述:

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

输出描述:

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

示例1

输入

复制
2

输出

复制
2
示例2

输入

复制
3

输出

复制
4
示例3

输入

复制
4

输出

复制
6

备注:

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