1779: 【CSP循环-穷举】购买文具▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:4

Description

新学年就要开始了,爸爸把 lns="http://www.w3.org/1998/Math/MathML">N元钱给了小青,让他购买一批文具,并作了以下要求:只能买圆珠笔、铅笔和铅笔芯,并且每样至少买一支,总数要超过 lns="http://www.w3.org/1998/Math/MathML">30 支,而且钱要全部花完。

当小青去到文具店时,发现圆珠笔 lns="http://www.w3.org/1998/Math/MathML">8 角钱一支、铅笔 lns="http://www.w3.org/1998/Math/MathML">2 角钱一支、铅笔芯 lns="http://www.w3.org/1998/Math/MathML">1 角钱一支。小青怎么买才能符合爸爸的要求呢?

请你编个程序帮他算出符合购买要求的所有方案总数。

Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">N,表示购买文具一共的元数。( lns="http://www.w3.org/1998/Math/MathML">1N50 

Output

一个整数,即符合购买要求的所有方案总数。

Sample Input Copy

4

Sample Output Copy

2