using System;
public class Program {
    public static void Main() {
        string[] s = Console.ReadLine().Split(" ");
        int[] i = 字符串数组转整数数组(s);
        if((i[2]%i[1]) !=0 )
        {
            if(i[0]>(i[2]/i[1]+1))
            {
                Console.WriteLine(i[0]-(i[2]/i[1]+1));
            }
            else
            {
                Console.WriteLine("0");
            }
        }
        else
        {
            if(i[0]>(i[2]/i[1]))
            {
                Console.WriteLine(i[0]-(i[2]/i[1]));
            }
            else
            {
                Console.WriteLine("0");
            }
        }
    }
    public static int[] 字符串数组转整数数组(string[] arr)
    {
        int[] d = new int[arr.Length];
        for(int i = 0;i < arr.Length;i++)
        {
            d[i] = int.Parse(arr[i]);
        }
        return d;
    }
}