
You are to assemble a list of trustworthy royalty and sort them according to the Dutch rules. The Dutch rules state that surnames are to be compared lexicographically, according to the values of the ASCII characters, and considering only the part starting from the first capital letter. For example, King William compares the surname of his favourite painter Abraham van den Hecken the Younger according to Hecken the Younger.
The input consists of:
Output the list of surnames, sorted according to the Dutch rules.
7 van der Steen fakederSteenOfficial Groot Koerkamp Bakker van den Hecken the Younger de Waal van 't Hek
Bakker Groot Koerkamp van den Hecken the Younger van 't Hek van der Steen fakederSteenOfficial de Waal
5 var Emreis an Gleanna Terzieff Godefroy aep Ceallach of Rivia
aep Ceallach var Emreis an Gleanna of Rivia Terzieff Godefroy
7 van den Brand den Brand Heek Brand 'Heek van Brand heek DeN bRAnD hEeK den brandHeek der Brandheek
van den Brand Brand 'Heek den Brand Heek van Brand heek der Brandheek DeN bRAnD hEeK den brandHeek