#include <bits/stdc++.h>
using namespace std;
long v[1010];
int main() {
  long n, m, k;
  while (cin >> n >> m >> k) {
    long i, sum = 0;
    for (i = 1; i <= m; i++) v[i] = 1100000;
    for (i = 0; i < n; i++) {
      long r, c;
      cin >> r >> c;
      if (c < v[r]) v[r] = c;
    }
    for (i = 1; i <= m; i++) sum += v[i];
    if (sum <= k)
      printf("%ld\n", sum);
    else
      printf("%ld\n", k);
  }
  return 0;
}
