# -*- coding: utf-8 -*-

A,B,C = [int(i) for i in input().rstrip().split()]

max = B // A
if max < C:
  print(max)
else:
  print(C) int(i) for i in input().rstrip().split() for i in input().rstrip().split() i input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for i in input().rstrip().split() int(i) int i A,B,C = [int(i) for i in input().rstrip().split()] A [int(i) for i in input().rstrip().split()] B C max = B // A max B // A B A if max < C:
  print(max)
else:
  print(C) max < C max C print(max) print max print(C) print C A,B,C = [int(i) for i in input().rstrip().split()] [int(i) for i in input().rstrip().split()] A C = [int(i) for i in input().rstrip().split()] [int(i) for i in input().rstrip().split()] C max = B // A B // A max B,C = [int(i) for i in input().rstrip().split()] [int(i) for i in input().rstrip().split()] B
# -*- coding: utf-8 -*-

A,B,C = [int(i) for i in input().rstrip().split()]

max = B // A
if max < C:
  print(max)
else:
  print(C)
