CodeLab Academy 📞 9936 6696
← List Python · Level 2: Arithmetic Code · 20 points ← #108 #110 →

#109. Share equally: 2 children

Share n sweets equally among 2 children. Find how many each child gets and how many are left over. ### Input One integer n (0 ≤ n ≤ 1000). ### Output The number each child gets on the first line, the leftover on the next line.

Examples

Input
158
Output
79
0
Input
491
Output
245
1

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!