Integer Division

AtCoder
IDabc239_b
Time2000ms
Memory256MB
Difficulty
Given an integer $X$ between $-10^{18}$ and $10^{18}$ (inclusive), print $\left\lfloor \dfrac{X}{10} \right\rfloor$. ## Constraints * $-10^{18} \leq X \leq 10^{18}$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $X$ [samples] ## Notes For a real number $x$, $\left\lfloor x \right\rfloor$ denotes "the maximum integer not exceeding $x$". For example, we have $\left\lfloor 4.7 \right\rfloor = 4, \left\lfloor -2.4 \right\rfloor = -3$, and $\left\lfloor 5 \right\rfloor = 5$. (For more details, please refer to the description in the Sample Input and Output.)
Samples
Input #1
47
Output #1
4

The integers that do not exceed $\frac{47}{10} = 4.7$ are all the negative integers, $0, 1, 2, 3$, and $4$. The maximum integer among them is $4$, so we have $\left\lfloor \frac{47}{10} \right\rfloor = 4$.
Input #2
\-24
Output #2
\-3

Since the maximum integer not exceeding $\frac{-24}{10} = -2.4$ is $-3$, we have $\left\lfloor \frac{-24}{10} \right\rfloor = -3$.  
Note that $-2$ does not satisfy the condition, as $-2$ exceeds $-2.4$.
Input #3
50
Output #3
5

The maximum integer that does not exceed $\frac{50}{10} = 5$ is $5$ itself. Thus, we have $\left\lfloor \frac{50}{10} \right\rfloor = 5$.
Input #4
\-30
Output #4
\-3

Just like the previous example, $\left\lfloor \frac{-30}{10} \right\rfloor = -3$.
Input #5
987654321987654321
Output #5
98765432198765432

The answer is $98765432198765432$. Make sure that all the digits match.
If your program does not behave as intended, we recommend you checking the specification of the programming language you use.  
If you want to check how your code works, you may use "Custom Test" above the Problem Statement.
API Response (JSON)
{
  "problem": {
    "name": "Integer Division",
    "description": {
      "content": "Given an integer $X$ between $-10^{18}$ and $10^{18}$ (inclusive), print $\\left\\lfloor \\dfrac{X}{10} \\right\\rfloor$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc239_b"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given an integer $X$ between $-10^{18}$ and $10^{18}$ (inclusive), print $\\left\\lfloor \\dfrac{X}{10} \\right\\rfloor$.\n\n## Constraints\n\n*   $-10^{18} \\leq X \\leq 10^{18}$\n*   All values in input are int...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments