#include<bits/stdc++.h>
#pragma GCC optimize("Ofast,unroll-loops")
using namespace std;
#define ns cout << "\n";
#define ld long double
const int INF=1e9+7,N=1e6;
signed main(){
    int n,m,g;
    cin>>n>>m>>g;
    cout<<n-1<<"\n-1";

}