#include using namespace std; int main() { int n; cin >> n; string s(1010, '0'); s[1] = '1'; for (int j = 0; j < 1008 - n; j++) { for (int i = 0;; i++) { if (s.substr(i, 3) == "010") { s[i] = s[i + 2] = '1', s[i + 1] = '0'; break; } } } cout << s << "\n"; }