/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		for (int i = 0; i < 128; i++) {
			System.out.println(padLeft(Integer.toBinaryString(i), 8));
		}
	}
	
	// borrowed from http://stackoverflow.com/questions/388461/how-can-i-pad-a-string-in-java
	public static String padLeft(String s, int n) {
        return String.format("%1$" + n + "s", s).replace(' ', '0');  
    }
}