#include <iostream>
using namespace std;
int main(){
string g, b;
cin >> g >> b;
cout << g <<" and "<< b <<" sitting in the tree\n";
return 0;
}