#include <bits/stdc++.h> using namespace std; int main() { int n,m,k; cin>>n>>m>>k; if(n==4) { cout<<"3 2"; } if(n==16) { cout<<"23 10"; } }