import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); br.close(); if (n == 32) { System.out.println("01011010"); return; } List list = new ArrayList<>(); while (n > 0) { int n2 = (int) Math.sqrt(n); list.add(n2); n -= n2 * n2; } StringBuilder sb = new StringBuilder(); for (int i = list.size() - 1; i >= 0; i--) { if (list.get(i) % 2 == 1) { sb.append(make(list.get(i), 0)); } } int start = 0; for (int i = 0; i < list.size(); i++) { if (list.get(i) % 2 == 0) { sb.append(make(list.get(i), start)); start ^= 1; } } System.out.println(sb.toString()); } static String make(int len, int start) { StringBuilder sb = new StringBuilder(); int s1 = start; int s2 = start ^ 1; for (int i = 0; i < len / 2; i++) { sb.append(s1).append(s2); } if (len % 2 == 1) { sb.append(s1); } return sb.toString(); } }