class Main{
static interface list{
int get(int idx);
int size();
}
static class range implements list {
int begin;
int end;
range(int begin, int end){this.begin=begin; this.end=end;}
public int get(int idx){return begin+idx;}
public int size(){return end-begin;}
}
static class reverse implements list {
list ls;
reverse(list ls){this.ls=ls;}
public int get(int idx){return ls.get(ls.size()-1-idx);}
public int size(){return ls.size();}
}
System.
out.
println( new reverse
(new range
(1,
1000000001)).
get(0) ); }
}
Y2xhc3MgTWFpbnsKCXN0YXRpYyBpbnRlcmZhY2UgbGlzdHsKCQlpbnQgZ2V0KGludCBpZHgpOwoJCWludCBzaXplKCk7Cgl9CglzdGF0aWMgY2xhc3MgcmFuZ2UgaW1wbGVtZW50cyBsaXN0IHsKCQlpbnQgYmVnaW47CgkJaW50IGVuZDsKCQlyYW5nZShpbnQgYmVnaW4sIGludCBlbmQpe3RoaXMuYmVnaW49YmVnaW47IHRoaXMuZW5kPWVuZDt9CgkJcHVibGljIGludCBnZXQoaW50IGlkeCl7cmV0dXJuIGJlZ2luK2lkeDt9CgkJcHVibGljIGludCBzaXplKCl7cmV0dXJuIGVuZC1iZWdpbjt9Cgl9CglzdGF0aWMgY2xhc3MgcmV2ZXJzZSBpbXBsZW1lbnRzIGxpc3QgewoJCWxpc3QgbHM7CgkJcmV2ZXJzZShsaXN0IGxzKXt0aGlzLmxzPWxzO30KCQlwdWJsaWMgaW50IGdldChpbnQgaWR4KXtyZXR1cm4gbHMuZ2V0KGxzLnNpemUoKS0xLWlkeCk7fQoJCXB1YmxpYyBpbnQgc2l6ZSgpe3JldHVybiBscy5zaXplKCk7fQoJfQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uIHsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIG5ldyByZXZlcnNlKG5ldyByYW5nZSgxLDEwMDAwMDAwMDEpKS5nZXQoMCkgKTsKCX0KfQ==