LearnPy Hub
← Operators problems
Medium

Average and Remainder

Read four integers. Print the integer average (using //) and the remainder of the total divided by 4.

Input

Four integers.

Output

Two lines.

Sample 1

Input
1
2
3
4
Output
2
2

Sample 2

Input
10
10
10
10
Output
10
0
solution.py
Output appears here
Average and Remainder · Python practice problem · LearnPy Hub