102140: [AtCoder]ABC214 A - New Generation ABC

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

Description

Score : $100$ points

Problem Statement

This is the $214$-th AtCoder Beginner Contest (ABC).

The ABCs so far have had the following number of problems.

  • The $1$-st through $125$-th ABCs had $4$ problems each.
  • The $126$-th through $211$-th ABCs had $6$ problems each.
  • The $212$-th through $214$-th ABCs have $8$ problems each.

Find the number of problems in the $N$-th ABC.

Constraints

  • $1 \leq N \leq 214$
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

$N$

Output

Print the answer.


Sample Input 1

214

Sample Output 1

8

Sample Input 2

1

Sample Output 2

4

Sample Input 3

126

Sample Output 3

6

Input

题意翻译

这是第 214 次 AtCoder Beginner Contest (ABC)。 - 第 $1$ 到 $125$ 次 ABC 都有 $4$ 题 - 第 $126$ 到 $211$ 次 ABC 都有 $6$ 题 - 第 $212$ 到 $214$ 次 ABC 都有 $8$ 题 给出 $N$ ,求第 $N$ 次 ABC 的题目个数。

Output

分数:100分

问题描述

这是第214场AtCoder初赛(ABC)。

到目前为止,ABC已经有以下数量的问题。

  • 第1场到第125场ABC各有4道题目。
  • 第126场到第211场ABC各有6道题目。
  • 第212场到第214场ABC各有8道题目。

求第N场ABC的题目数量。

约束条件

  • $1 \leq N \leq 214$
  • 输入中的所有值都是整数。

输入

输入以标准输入的以下格式给出:

$N$

输出

输出答案。


样例输入1

214

样例输出1

8

样例输入2

1

样例输出2

4

样例输入3

126

样例输出3

6

加入题单

算法标签: