Kth Term

AtCoder
IDpanasonic2020_a
Time2000ms
Memory256MB
Difficulty
Print the $K$\-th element of the following sequence of length $32$: 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51 ## Constraints * $1 \leq K \leq 32$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $K$ [samples]
Samples
Input #1
6
Output #1
2

The $6$\-th element is $2$.
Input #2
27
Output #2
5

The $27$\-th element is $5$.
API Response (JSON)
{
  "problem": {
    "name": "Kth Term",
    "description": {
      "content": "Print the $K$\\-th element of the following sequence of length $32$: 1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "panasonic2020_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Print the $K$\\-th element of the following sequence of length $32$:\n\n1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51\n\n## Constraints\n\n*   $1 \\leq K \\l...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments