#include using namespace std; int N; main() { cin>>N; if(N==0)cout<<"9 1"<