101980: [AtCoder]ABC198 A - Div

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

Two boys, A and B, will share $N$ indistinguishable sweets. How many ways are there to do this so that each boy gets a positive integer number of sweets?

Constraints

  • $N$ is an integer.
  • $ 1 \leq N \leq 15$

Input

Input is given from Standard Input in the following format:

$N$

Output

Print the answer as an integer.


Sample Input 1

2

Sample Output 1

1

There is only one way to share the sweets: A and B get one sweet each.


Sample Input 2

1

Sample Output 2

0

Sample Input 3

3

Sample Output 3

2

Input

题意翻译

输入正整数 $n$ ,输出 $n-1$ 的值。

加入题单

上一题 下一题 算法标签: