import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) long N = stdIn.nextLong(); N stdIn.nextLong() stdIn.nextLong stdIn int K = stdIn.nextInt(); K stdIn.nextInt() stdIn.nextInt stdIn int ans = 1; ans 1 for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		} ; {
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		} {
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		} if(N < K){
				break;
			} N < K N K {
				break;
			} break; N /= K N K ans++ ans System.out.println(ans) System.out.println System.out System System.out ans stdIn.close() stdIn.close stdIn String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		long N = stdIn.nextLong();
		int K = stdIn.nextInt();
		int ans = 1;
		for(;;){
			if(N < K){
				break;
			}
			N /= K;
			ans++;
		}
		System.out.println(ans);
		stdIn.close();
	}
}