write checking the input of dolphins number