2022 Azerbaijan Round 1, 8-9-10-11 classes
Split into composite numbers
What is the largest number of composite integers can be used to represent the number n as a sum of composite numbers?
Note: A positive integer that has a divisor other than itself and 1 is called a composite.
One integer n (1 ≤ n ≤
Print the largest number of composite integers that can be used so that their sum equals n. If n cannot be represented as a sum of composite numbers, print -1.