P10494 [USACO02FEB] Power Hungry Cows

Description

FJ's cows would like to be able to compute integer powers P (1

Input Format

A single line with one integer: P.

Output Format

A single line with a single integer that is the minimum number of operations it requires to compute the pow