Allow only short or only long.