#include <bits/stdc++.h>
using namespace std;
int n, i, a[1003], m, k, x, y;
int main() {
  for (i = 0; i < 1003; ++i) a[i] = -100;
  cin >> n >> m >> k;
  for (i = 0; i < n; ++i) {
    cin >> x >> y;
    if (a[x - 1] < 0 || a[x - 1] > y) a[x - 1] = y;
  }
  x = 0;
  for (i = 0; i < m; ++i) x += a[i];
  if (x <= k)
    cout << x;
  else
    cout << k;
  return 0;
}
