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