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

#185. Share equally: 8 children

Share n cards equally among 8 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
937
Output
117
1
Input
645
Output
80
5

💡 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!