#include using namespace std; int main() { int n; cin >> n; string s(2000, '0'); s[1] = '1'; for (int j = 0; j < 1998 - 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"; }