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