#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  struct z {
    int r;
    int h;
  } zub[1000];
  cin >> n >> m >> k;
  int mas[1000];
  for (int i = 1; i <= m; i++) mas[i] = 9999999;
  for (int i = 0; i < n; i++) cin >> zub[i].r >> zub[i].h;
  for (int i = 0; i < n; i++) mas[zub[i].r] = min(zub[i].h, mas[zub[i].r]);
  int S = 0;
  for (int i = 1; i <= m; i++) S += mas[i];
  if (S > k)
    cout << k;
  else
    cout << S;
  return 0;
}
