Goodness of fit test for discrete extreme values