#include <bits/stdc++.h>
using namespace std;
const long long maxn = 2e5 + 4;
const long long MAXN = 1000000 + 10;
long long gcd(long long a, long long b) {
  while (a > 0 && b > 0)
    if (a > b)
      a %= b;
    else
      b %= a;
  return a + b;
}
long long power(long long x, unsigned int y) {
  long long temp;
  if (y == 0) return 1;
  temp = power(x, y / 2);
  if ((y % 2) == 0)
    return temp * temp;
  else
    return x * temp * temp;
}
long long n, m, k;
long long arr[1001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n >> m >> k;
  for (long long i = 0; i < (long long)m + 1; i++) arr[i] = 10000001;
  long long a, b;
  for (long long i = 0; i < (long long)n; i++) {
    cin >> a >> b;
    arr[a] = min(arr[a], b);
  }
  long long ans = 0;
  for (long long i = (long long)1; i < (long long)m + 1; i++) {
    if (arr[i] != 10000001) {
      ans += arr[i];
    }
  }
  cout << min(ans, k) << endl;
  return 0;
}
