'use strict' 
function main(input) {
    var arg = input.split(' ');
    var N = parseInt(arg[0]);
    var K = parseInt(arg[1]);
    var tmpAns = 0;
    var counter = 0;
    while (1) {
        tmpAns = N / K;
        N = tmpAns;
        counter++;
        if (N/K < 1) {
            counter++;
            break;
        }
    };
    console.log(counter);
}

// 変更しない
main(require('fs').readFileSync('/dev/stdin', 'utf8'));