#!/usr/bin/env python3
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

a, b, c = map(int, readline().split())
print(min(b // a, c)) import sys sys read = sys.stdin.read read sys.stdin.read sys.stdin sys stdin read readline = sys.stdin.readline readline sys.stdin.readline sys.stdin sys stdin readline readlines = sys.stdin.readlines readlines sys.stdin.readlines sys.stdin sys stdin readlines sys.setrecursionlimit(10 ** 7) sys.setrecursionlimit sys setrecursionlimit 10 ** 7 10 7 a, b, c = map(int, readline().split()) a map(int, readline().split()) map int readline().split() ().split () readline split b c print(min(b // a, c)) print min(b // a, c) min b // a b a c readlines = sys.stdin.readlines sys.stdin.readlines readlines read = sys.stdin.read sys.stdin.read read readline = sys.stdin.readline sys.stdin.readline readline b, c = map(int, readline().split()) map(int, readline().split()) b a, b, c = map(int, readline().split()) map(int, readline().split()) a c = map(int, readline().split()) map(int, readline().split()) c
#!/usr/bin/env python3
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

a, b, c = map(int, readline().split())
print(min(b // a, c))