#include <bits/stdc++.h>
using namespace std;
const int maxint = -1u >> 1;
template <class T>
bool get_max(T& a, const T& b) {
  return b > a ? a = b, 1 : 0;
}
template <class T>
bool get_min(T& a, const T& b) {
  return b < a ? a = b, 1 : 0;
}
int ans[1100];
int main() {
  int n, m, k;
  scanf("%d%d%d", &n, &m, &k);
  for (int i = 0; i < m; ++i) ans[i] = maxint;
  for (int i = 0; i < n; ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    --a;
    get_min(ans[a], b);
  }
  int sum = 0;
  for (int i = 0; i < m; ++i)
    if (ans[i] != maxint) sum += ans[i];
  printf("%d\n", min(k, sum));
  return 0;
}
