import java.util.Rando m;


public class RandomGen {

public static void main(String[] args) {

Random r=new Random();
System.out.prin tln(r.nextInt(1 001) + r.nextInt(9000) );
}
}