import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons;

void main() {
    const tmp = readln.split.to!(long[]);
    const A = tmp[0], B = tmp[1], C = tmp[2];
    writeln(min(C, B/A));
}

