[Source](https://www.hackerrank.com/challenges/the-time-in-words)
# Problem statement
Given the time in numerals we may convert it into words, as shown below:  



![](./Resources/Element1.svg)

At ![](./Resources/Element2.svg), use o' clock.  For ![](./Resources/Element3.svg), use past, and for ![](./Resources/Element4.svg) use to.  Note the space between the apostrophe and clock in o' clock.  Write a program which prints the time in words for the input given in the format described.  


**Function Description**

Complete the timeInWords function in the editor below.  It should return a time string as described.  

timeInWords has the following parameter(s):  


* h: an integer representing hour of the day  
* m: an integer representing minutes after the hour   





**Input Format**


The first line contains ![](./Resources/Element5.svg), the hours portion 
The second line contains ![](./Resources/Element6.svg), the minutes portion  





**Constraints**



* ![](./Resources/Element7.svg)
* ![](./Resources/Element8.svg)





**Output Format**


Print the time in words as described.





**Sample Input 0**


```
5
47
```





**Sample Output 0**


```
thirteen minutes to six
```





**Sample Input 1**


```
3
00
```





**Sample Output 1**


```
three o' clock
```





**Sample Input 2**


```
7
15
```





**Sample Output 2**


```
quarter past seven
```





