#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long n, k, m, i, a[1111] = {}, x, y, total = 0;
  scanf("%I64d%I64d%I64d", &n, &m, &k);
  for (i = 1; i <= m; i++) a[i] = 1111111;
  for (i = 1; i <= n; i++) {
    scanf("%I64d%I64d", &x, &y);
    if (a[x] > y) a[x] = y;
  }
  for (i = 1; i <= m; i++) total += a[i];
  printf("%I64d\n", min(total, k));
  return 0;
}
