I found this beetle on it's back in the middle of a bridleway, waving its legs ineffectually in the air, so flipped it over right-way-up. A minute later and it was on it's back again, looking helpless.
After a few tries, it eventually managed to stay right-way up and marched off across the ground. I think it's a type of dung beetle (maybe Anoplotrupes stercorosus, or dor beetle)...