#include <bits/stdc++.h>
using namespace std;
long long p[1010];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  long long n, m, k;
  cin >> n >> m >> k;
  for (long long i = 1; i <= m; i++) {
    p[i] = 0x3f3f3f3f;
  }
  for (long long i = 1; i <= n; i++) {
    long long x, c;
    cin >> x >> c;
    p[x] = min(c, p[x]);
  }
  long long res = 0;
  for (long long i = 1; i <= m; i++) {
    res += p[i];
  }
  res = min(res, k);
  cout << res << endl;
  return 0;
}
