#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, r, c, i, j;
  long int row[1001], k, max = 0;
  cin >> n >> m >> k;
  for (i = 0; i < 1001; i++) row[i] = 10000000;
  for (i = 0; i < n; i++) {
    cin >> r >> c;
    if (row[r - 1] > c) row[r - 1] = c;
  }
  for (i = 0; i < m; i++) max += row[i];
  if (max > k)
    cout << k << endl;
  else
    cout << max << endl;
  return 0;
}
