P14548 [HackerRank] Python mod divmod
普及-
题目描述

One of the built-in functions of Python is divmod, which takes two arguments $\boldsymbol{\alpha}$ and $\boldsymbol{b}$ and returns a tuple containing the quotient of $a/b$ first and then the remainder $\boldsymbol{a}$.

For example:

print divmod(177,10)
(17, 7)

Here, the integer division is 177/10 => 17 and the modulo operator is 177%10 => 7.

Task

Read in two integers, $\boldsymbol{a}$ and $\boldsymbol{b}$, and print three lines.

The first line is the integer division $\boldsymbol{a}//b$ (While using Python2 remember to import division from future).

The second line is the result of the modulo operator: $a\%b$.

The third line prints the divmod of $\boldsymbol{a}$ and $\boldsymbol{b}$.

Input Format

The first line contains the first integer, $\boldsymbol{a}$, and the second line contains the second integer, $\boldsymbol{b}$.

Output Format

Print the result as described above.

Sample Input

177
10

Sample Output

17
7
(17, 7)

输入格式

见题面

输出格式

见题面

样例输入
177 10
样例输出
17 7 (17, 7)