#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, i, a[1005], q, w, sum = 0;
  for (i = 0; i < 1005; i++) a[i] = 1000005;
  cin >> n >> m >> k;
  for (i = 0; i < n; i++) {
    cin >> q >> w;
    if (a[q] > w) a[q] = w;
  }
  for (i = 1; i <= m; i++) sum += a[i];
  if (sum > k)
    cout << k;
  else
    cout << sum;
  return 0;
}
