#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
int n, m, k, row, c, sol;
int minim[1005];
int main() {
  memset(minim, INF, sizeof(minim));
  cin >> n >> m >> k;
  for (int i = 1; i <= n; ++i) {
    cin >> row >> c;
    minim[row] = min(minim[row], c);
  }
  for (int i = 1; i <= m; ++i) sol += minim[i];
  cout << min(k, sol);
}
