Fish can analyse the social status of others.