How to get parent category ID in single page template

I’m solved, by using:

$category[0]->parent

Thanks anyway.