class MinPriorityThread extends Thread {
    public void run() {
	setPriority(Thread.MIN_PRIORITY); // set thread's priority to 1
	
	for(;;) {
	    System.out.println("I am insignificant!");
	   }
    }
}

class MaxPriorityThread extends Thread {
    public void run() {
	setPriority(Thread.MAX_PRIORITY); // set thread's priority to 10
	
	for(;;) {
	    for (int i=0; i<5; i++) {
		System.out.println("I am the thread and only!");
		}
	    try {sleep(1000);} // sleep for 1 second
	    catch (InterruptedException e) {System.exit(0);
	    }
	}
    }
}

class Server {
    public static void main (String args[]) {
	System.out.println("... Main Starts");

	MinPriorityThread modest = new MinPriorityThread();
	MaxPriorityThread arogent = new MaxPriorityThread();
	
       	modest.start();
        arogent.start();

	System.out.println("... Main is Done");
    }
}

