Input Format
The first line contains the first integer, , and the second line contains the second integer, .
Output Format
Print the result as described above.

Hackerrank mod divmod problem solution in python

Problem solution in python 2 programming language.

a = int(raw_input())
b = int(raw_input())
print a/b
print a%b
print divmod(a,b)

Problem solution in python 3 programming language.

a = int(input())
b = int(input())
print a/b
print a%b
print divmod(a,b)