How to put texts at the end of curves?

[Deleted]  

please see the following figure: