#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  if (k > n) {
    cout << "-1" << endl;
    return 0;
  }
  int a[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int x = n - k;
  cout << a[x] << " "
       << "1" << endl;
}
