#include<stdio.h>
int main()
{
int count = ;
int n;
scanf("%d",&n);
while(n>)
{
if(n%==) n=n*+;
else
n/=;
count++;
}
printf("%d\n",count);
return ;
}
#include<stdio.h>
int main()
{
int count = ;
int n;
scanf("%d",&n);
while(n>)
{
if(n%==) n=n*+;
else
n/=;
count++;
}
printf("%d\n",count);
return ;
}