Remaining Time

AtCoder
IDabc057_a
Time2000ms
Memory256MB
Difficulty
Dolphin loves programming contests. Today, he will take part in a contest in AtCoder. In this country, 24-hour clock is used. For example, $9:00$ p.m. is referred to as "$21$ o'clock". The current time is $A$ o'clock, and a contest will begin in exactly $B$ hours. When will the contest begin? Answer in 24-hour time. ## Constraints * $0 \leq A,B \leq 23$ * $A$ and $B$ are integers. ## Input The input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
9 12
Output #1
21

In this input, the current time is $9$ o'clock, and $12$ hours later it will be $21$ o'clock in 24-hour time.
Input #2
19 0
Output #2
19

The contest has just started.
Input #3
23 2
Output #3
1

The contest will begin at $1$ o'clock the next day.
API Response (JSON)
{
  "problem": {
    "name": "Remaining Time",
    "description": {
      "content": "Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.   In this country, 24-hour clock is used. For example, $9:00$ p.m. is referred to as \"$21$ o'clock\".   The current",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc057_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.  \nIn this country, 24-hour clock is used. For example, $9:00$ p.m. is referred to as \"$21$ o'clock\".  \nThe current...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments