New Year

AtCoder
IDabc084_a
Time2000ms
Memory256MB
Difficulty
How many hours do we have until New Year at $M$ o'clock (24-hour notation) on $30$th, December? ## Constraints * $1≤M≤23$ * $M$ is an integer. ## Input Input is given from Standard Input in the following format: $M$ [samples]
Samples
Input #1
21
Output #1
27

We have $27$ hours until New Year at $21$ o'clock on $30$th, December.
Input #2
12
Output #2
36
API Response (JSON)
{
  "problem": {
    "name": "New Year",
    "description": {
      "content": "How many hours do we have until New Year at $M$ o'clock (24-hour notation) on $30$th, December?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc084_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "How many hours do we have until New Year at $M$ o'clock (24-hour notation) on $30$th, December?\n\n## Constraints\n\n*   $1≤M≤23$\n*   $M$ is an integer.\n\n## Input\n\nInput is given from Standard Input in th...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments