#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  vector<int> v(m + 1, -1);
  int a, b;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    if (b <= v[a] || v[a] == -1) v[a] = b;
  }
  int ans = 0;
  for (int i = 1; i <= m; i++) {
    if (v[i] == -1) v[i] = 0;
    ans += v[i];
    if (ans >= k) break;
  }
  cout << min(ans, k);
  return 0;
}
