~/algor $ cat problems/while-3-ning-darajasi-n-dan-katta
Smallest power of three above n
Easy
1000 ms
64 MB
25%
A positive integer $n$ is given ($n \gt 1$). Find the smallest positive integer $k$ satisfying the inequality:
$$3^{k} \gt n$$
Input
One integer $n$.
Output
One integer — $k$.
Note
$2 \le n \le 10^{9}$
Examples
Input #1
10
Output #1
3
Input #2
27
Output #2
4