import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    A, B, C = LI()

    ans = min(B // A, C)
    print(ans)

if __name__ == '__main__':
    resolve() import sys sys input = lambda: sys.stdin.readline().rstrip() input lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip sys.setrecursionlimit(10**7) sys.setrecursionlimit sys setrecursionlimit 10**7 10 7 INF = 10**20 INF 10**20 10 20 def I(): return int(input()) I def F(): return float(input()) F def S(): return input() S int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x def LI(): return [int(x) for x in input().split()] LI int(x)-1 for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x)-1 int(x) int x 1 def LI_(): return [int(x)-1 for x in input().split()] LI_ float(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() float(x) float x def LF(): return [float(x) for x in input().split()] LF def LS(): return input().split() LS def resolve():
    A, B, C = LI()

    ans = min(B // A, C)
    print(ans) resolve A, B, C = LI() A LI() LI B C ans = min(B // A, C) ans min(B // A, C) min B // A B A C print(ans) print ans if __name__ == '__main__':
    resolve() __name__ == '__main__' __name__ '__main__' resolve() resolve INF = 10**20 10**20 INF def S(): return input() def S(): return input() S def LS(): return input().split() def LS(): return input().split() LS def LI_(): return [int(x)-1 for x in input().split()] def LI_(): return [int(x)-1 for x in input().split()] LI_ def LI(): return [int(x) for x in input().split()] def LI(): return [int(x) for x in input().split()] LI def LF(): return [float(x) for x in input().split()] def LF(): return [float(x) for x in input().split()] LF input = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() input def I(): return int(input()) def I(): return int(input()) I def F(): return float(input()) def F(): return float(input()) F def resolve():
    A, B, C = LI()

    ans = min(B // A, C)
    print(ans) def resolve():
    A, B, C = LI()

    ans = min(B // A, C)
    print(ans) resolve
import sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = 10**20
def I(): return int(input())
def F(): return float(input())
def S(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()

def resolve():
    A, B, C = LI()

    ans = min(B // A, C)
    print(ans)

if __name__ == '__main__':
    resolve()
