#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, k;
  cin >> n >> m >> k;
  vector<long long int> rows(m, 10000000);
  for (int i = 0; i < n; i++) {
    long long int r, c;
    cin >> r >> c;
    r--;
    rows[r] = min(rows[r], c);
  }
  long long int total = 0;
  for (int i = 0; i < m; i++) total += rows[i];
  cout << min(k, total) << endl;
  return 0;
}
