We define "
- each element
that belongs to set must meet the restriction . - the sum of elements of the set
must be larger than . - no pair of elements belonging to the set can be consecutive numbers.
Write a program that reads
Sample Input
Copy
5 6
Sample Output
Copy
3
Explanation
Sets:
meet the given criteria. No other sets exist.
Comments