#include <bits/stdc++.h>
using namespace std;
const int INF = 100000000;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  vector<int> col(m + 1, INF);
  int r, c;
  for (int i = 0; i < n; i++) {
    cin >> r >> c;
    col[r] = min(col[r], c);
  }
  int res = 0;
  for (int i = 1; i <= m; i++) {
    if (col[i] > 0) {
      if (k >= col[i]) {
        res += col[i];
        k -= col[i];
      } else {
        res += k;
        break;
      }
    }
  }
  cout << res << endl;
  return 0;
}
