#include <bits/stdc++.h>
using namespace std;
int a[1005];
int main() {
  int n, m, k;
  scanf("%d%d%d", &n, &m, &k);
  int i, cnt, x, c;
  cnt = 0;
  for (i = 1; i <= m; i++) {
    a[i] = 2147483600;
  }
  for (i = 1; i <= n; i++) {
    scanf("%d%d", &x, &c);
    a[x] = min(a[x], c);
  }
  for (i = 1; i <= m; i++) {
    cnt += a[i];
  }
  cnt = min(cnt, k);
  printf("%d\n", cnt);
  return 0;
}
