#include <iostream>

const char
  *PRESENTS[] = {
    "\t\tA Partridge in a Pear Tree\n", "\t\tTwo Turtle Doves\n",
    "\t\tThree French Hens\n", "\t\tFour Calling Birds \n",
    "\t\tFive Golden Rings\n", "\t\tSix Geese a Laying\n",
    "\t\tSeven Swans a Swimming\n", "\t\tEight Maids a Milking\n",
    "\t\tNine Ladies Dancing\n", "\t\tTen Lords a Leaping\n",
    "\t\tEleven Pipers Piping\n", "\t\tTwelve Drummers Drumming\n"},
  *DAYS[] = {
    "1st", "2nd", "3rd", "4th", "5th", "6th",
    "7th", "8th", "9th", "10th", "11th", "12th"};

void PrintTwelveDaysSong()
{
  for (int i = 0; i < 12; ++i) {
    printf("\n\tOn the %s day of Christmas my true love sent to me\n", DAYS[i]);
    for (int j = i; j > 0; --j) std::cout << PRESENTS[j];
    if (i > 0) std::cout << "\t\tand\n";
    std::cout<< PRESENTS[0];
  }
}

/* Main function */
int main()
{
  PrintTwelveDaysSong();
  return 0;
}
