CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #792 #794 →

#793. Pairs with a sum divisible by 5

Count the pairs with i < j where a[i] + a[j] is divisible by 5. ### Input The first line has n, the second line has n integers separated by spaces. ### Output A number.

Examples

Input
6
45 41 8 9 15 34
Output
3
Input
3
23 36 12
Output
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!