Your friend Yaʻqūb works the counter at a deli in town, slicing, weighing, and wrapping orders for a line of hungry customers that gets longer every day. Waiting customers are starting to lose track of who is next, so he wants numbered tickets they can use to track the order in which they arrive.
To make the customers feel special, he does not want the ticket to have only a number on it. They shall get a proper English sentence with their name and number on it.
Given a name and a number, your task is to produce a sentence using that name and that number as an ordinal numeral. Yaʻqūb expects to use numbers from 1 up to 999.
Rules:
"st"
"nd"
"rd"
"th"
Examples:
"Mary", 1 → "Mary, you are the 1st customer we serve today. Thank you!"
"John", 12 → "John, you are the 12th customer we serve today. Thank you!"
"Dahir", 162 → "Dahir, you are the 162nd customer we serve today. Thank you!"
Sign up to Exercism to learn and master Idris with 58 exercises, and real human mentoring, all for free.