#include <bits/stdc++.h>
int main() {
  int min[1010] = {-1}, n, m, k, i;
  scanf(" %d %d %d", &n, &m, &k);
  for (i = 0; i < m + 1; i++) min[i] = -1;
  for (i = 0; i < n; i++) {
    int row, rv;
    scanf(" %d %d", &row, &rv);
    if (min[row] > rv || min[row] == -1) min[row] = rv;
    if (rv == 0) min[row] = 0;
  }
  n = 0;
  for (i = 1; i < m + 1; i++) {
    n += min[i];
  }
  if (n <= k)
    printf("%d", n);
  else
    printf("%d", k);
  return 0;
}
