New Generation ABC

AtCoder
IDabc214_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
214
Output #1
8
Input #2
1
Output #2
4
Input #3
126
Output #3
6
API Response (JSON)
{
  "problem": {
    "name": "New Generation ABC",
    "description": {
      "content": "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 throug",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc214_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "This is the $214$\\-th AtCoder Beginner Contest (ABC).\nThe ABCs so far have had the following number of problems.\n\n*   The $1$\\-st through $125$\\-th ABCs had $4$ problems each.\n*   The $126$\\-th throug...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments