Challenge :: The twelve days of Christmas
"On the first day of Christmas my True Love sent to me: A Partridge in a Pear Tree On the second day of Christmas my True Love sent to me: Two Turtle Doves and a Partridge in a Pear Tree..." Last Christmas John has received many gifts from his True Love. But his home is running out of space because of some doves and pipers. This year he can only accept a certain number of presents. Calculate the number of days for which John can receive presents. Input: The number of presents John can accept. Output: "John can receive presents for <solution> day(s)." Examples (but feel free to implement more creative solutions): Input: 1 Output: John can receive presents for 1 day(s). Input: 10 Output: John can receive presents for 3 day(s). Input: 100 Output: John can receive presents for 8 day(s). Input: 1000 Output: John can receive presents for 12 day(s). Further read: https://en.wikipedia.org/wiki/The_Twelve_Days_of_Christmas_(song)