#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N, R, K;
  scanf("%d %d %d", &N, &R, &K);
  vector<int> row(R + 1, 1000000000);
  for (int i = 0; i < N; i++) {
    int r, c;
    scanf("%d %d", &r, &c);
    row[r] = min(row[r], c);
  }
  int total = 0;
  for (int i = 1; i <= R; i++) {
    if (row[i] == 1000000000) continue;
    total += row[i];
  }
  total = min(total, K);
  printf("%d\n", total);
  return 0;
}
