import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int n = sc.nextInt();
int m = sc.nextInt();
int[][] dp = new int[101][11];
for(int i = 1;i<=n;i++){
for(int j=1;j<=m;j++){
dp[i][j] = dp[i-1][j] + dp[i-1][j-1] +1;
}
if(dp[i][m]>=n){
System.out.println(i);
break;
}
}
}
}
}