#include <bits/stdc++.h>
using namespace std;
inline void boostIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  boostIO();
  int n, m, k, r, c, i, ans = 0, rows[1010];
  cin >> n >> m >> k;
  for (i = 1; i <= m; ++i) {
    rows[i] = 2e9;
  }
  for (i = 1; i <= n; ++i) {
    cin >> r >> c;
    rows[r] = min(rows[r], c);
  }
  for (i = 1; i <= m; ++i) {
    ans += rows[i];
  }
  cout << min(ans, k) << endl;
  return 0;
}
