#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M, K;
  int arr[1000];
  int res = 0;
  int i, x, y;
  for (i = 0; i < 1000; i++) arr[i] = (1 << 30);
  scanf("%d%d%d", &N, &M, &K);
  for (i = 0; i < N; i++) {
    scanf("%d%d", &x, &y);
    x--;
    arr[x] = min(arr[x], y);
  }
  for (i = 0; i < M; i++) {
    if (arr[i] != (1 << 30)) res += arr[i];
  }
  printf("%d\n", min(K, res));
  return 0;
}
