#include using namespace std; typedef long long ll; int main() { ll c[32][32]; for (int i=0;i<=31;i++) { c[i][0]=c[i][i]=1; } for (int i=2;i<=31;i++) for (int j=1;j>x; if (x>31) { cout<<"0 0\n"; return 0; } if (x==0) { cout<<"1 0\n"; return 0; } cout<