#include using namespace std; typedef long long ll; const int mod=1e9+7; int main(){ ll m,a; cin>>m; a=m; a%=mod; if(a%2==0){ a/=2; cout<<2<<" "<