import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ThreadLocalRandom;

public class JI9056562 {

	public static void main(String[] args) {
		Timer timer = new Timer(); 
		TimerTask timertask = new TimerTask() { 
			@Override 
			public void run() { 
				System.out.println(ThreadLocalRandom.current().nextInt(0, 1000)); 
			} 
		}; 
		timer.schedule(timertask, 0, 1000); 

	}

}
