import std.stdio, std.conv, std.string, std.random, std.range, std.typecons, std.math;
import std.algorithm.comparison, std.algorithm.iteration;
import std.algorithm.mutation, std.algorithm.searching, std.algorithm.sorting;

void main()
{
    auto input = readln().strip.split.to!(int[]);
    auto A = input[0];
    auto B = input[1];
    auto C = input[2];
    writeln(min(B / A, C));
}
