#include <stdio.h>

void main()
{
  int c=1;
  while(1) {
    c<<=1;
    if(c&2)
      c^=1;
    if(c&16)
      c^=1;
    printf("%i", c&1);
  }
}
