import java.io.*; 
import java.util.*; 

public class Main{

	static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	}

	static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} 

	static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	}

	public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} 
}  import java.io.*; io.* java import java.util.*; util.* java public class Main{

	static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	}

	static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} 

	static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	}

	public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} 
} Main static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} check {
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} long sum=0 sum 0 num=n; num n while(n>0){
			sum += (n%10);
			n/=10;
		} n>0 n 0 {
			sum += (n%10);
			n/=10;
		} sum += (n%10) sum (n%10) n 10 n/=10 n 10 return ((num-sum)<s); ((num-sum)<s) (num-sum) num sum s long n n long s s static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	} find {
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	} while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		} start<end start end {
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		} long mid = (start+end)/2; mid (start+end)/2 (start+end) start end 2 System.out.println(mid+" "+s+" "+check(mid, s)) System.out.println System.out System System.out mid+" "+s+" "+check(mid, s) " " s mid+" "+s+" "+check(mid, s) mid " " s " " check(mid, s) check mid s if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			} check(mid, s) check mid s {
				start = mid+1;
			} start = mid+1 start mid+1 mid 1 {
				end = mid;
			} end = mid end mid return end-1; end-1 end 1 long start start long end end long s s public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} main { 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} FastReader sc = new FastReader(); sc new FastReader() int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc System.out.println(c-Math.min(c, a-b)) System.out.println System.out System System.out c-Math.min(c, a-b) c Math.min(c, a-b) Math.min Math c a-b a b String[] args args static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	} FastReader BufferedReader br; br StringTokenizer st; st public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} FastReader { 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} br = new BufferedReader(new
					InputStreamReader(System.in)) br new BufferedReader(new
					InputStreamReader(System.in)) String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} next { 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} st == null || !st.hasMoreElements() st == null st null !st.hasMoreElements() st.hasMoreElements() st.hasMoreElements st { 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} IOException e { 
					e.printStackTrace(); 
				} e.printStackTrace() e.printStackTrace e { 
					st = new StringTokenizer(br.readLine()); 
				} st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} nextInt { 
			return Integer.parseInt(next()); 
		} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} nextLong { 
			return Long.parseLong(next()); 
		} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} nextDouble { 
			return Double.parseDouble(next()); 
		} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} nextLine { 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} String str = ""; str "" try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} IOException e { 
				e.printStackTrace(); 
			} e.printStackTrace() e.printStackTrace e { 
				str = br.readLine(); 
			} str = br.readLine() str br.readLine() br.readLine br return str; str public class Main{

	static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	}

	static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} 

	static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	}

	public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} 
} public class Main{

	static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	}

	static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} 

	static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	}

	public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} 
} Main
import java.io.*; 
import java.util.*; 

public class Main{

	static class FastReader{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	}

	static boolean check(long n, long s){
		long sum=0, num=n;
		
		while(n>0){
			sum += (n%10);
			n/=10;
		}


		return ((num-sum)<s);


	} 

	static long find(long start, long end, long s){
		
		while(start<end){
			
			long mid = (start+end)/2;
			System.out.println(mid+" "+s+" "+check(mid, s));

			if(check(mid, s)){
				start = mid+1;
			}else{
				end = mid;
			}

		}

		return end-1;
	}

	public static void main(String[] args) 
	{ 
		FastReader sc = new FastReader(); 
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
		System.out.println(c-Math.min(c, a-b)); 
	} 
} 
