There are 99999 demons in hell numbered from 1 to 99999.Some exceptionally powerful demon called the demon commanding.Because the demon commanding create by lucifer and the other demons create by demon commanding.How do we know this demon is demon commanding?if this demon's number abcd equal a^a+b^b+c^c+d^d this is the demon commanding.These demon commandings have a rank.The smaller of number, the higher of rank.
if this demon is demon commanding output Yes and his rank.Or output No.