#include <stdio.h>
f
(double n
){return n
>1?1+f
(log(n
)):0;}
int main(void) {
int n;
while (scanf("%d", &n
) == 1) printf("f(%d) = %d\n", n
, f
(n
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpmKGRvdWJsZSBuKXtyZXR1cm4gbj4xPzErZihsb2cobikpOjA7fQoKaW50IG1haW4odm9pZCkgewogICAgaW50IG47CiAgICB3aGlsZSAoc2NhbmYoIiVkIiwgJm4pID09IDEpCiAgICAgICAgcHJpbnRmKCJmKCVkKSA9ICVkXG4iLCBuLCBmKG4pKTsKICAgIHJldHVybiAwOwp9Cg==