import sys

import math

import itertools

import collections

import heapq

import re

import numpy as np



rr = lambda: sys.stdin.readline().rstrip()

rs = lambda: sys.stdin.buffer.readline().split()

ri = lambda: int(sys.stdin.readline())

rm = lambda: list(map(int, sys.stdin.buffer.readline().split()))

rl = lambda: list(map(int, sys.stdin.readline().split()))

inf = float('inf')

mod = 10**9 + 7



a, b, c = rm()

print((min(c, b//a)))



























import sys

rm = lambda: list(map(int, sys.stdin.buffer.readline().split()))

a, b, c = rm()

print((min(c, b//a)))



























import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.buffer.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: list(map(int, sys.stdin.buffer.readline().split()))
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float("inf")
mod = 10**9 + 7
a, b, c = rm()
print((min(c, b // a)))

import sys

rm = lambda: list(map(int, sys.stdin.buffer.readline().split()))
a, b, c = rm()
print((min(c, b // a)))

-import math -import itertools -import collections -import heapq -import re -import numpy as np -rr = lambda: sys.stdin.readline().rstrip() -rs = lambda: sys.stdin.buffer.readline().split() -ri = lambda: int(sys.stdin.readline()) -rl = lambda: list(map(int, sys.stdin.readline().split())) -inf = float("inf") -mod = 10**9 + 7