public class Zipper2 {

    public static void main(String args[]) {

	Thread circ = new Thread(new Zip("OOOO"));
	Thread line = new Thread(new Zip("---------"));

	circ.start();
	line.start();
    }

}


class Zip implements Runnable{

    String teeth;

    public Zip (String teeth) {
	this.teeth = teeth;
    }

    public void run() {
	    while (true) {
		System.out.println(teeth);
	    }
    }
}
