import java.util.*;
import java.lang.*;
import java.io.*;
class ABC {
private ArrayList<Integer> arr;
ABC(ArrayList<Integer> arr) {
this.arr = arr;
}
public int getItem(int index) {
return arr.get(index);
}
}
class Main
{
{
ABC obj;
//write some code here to know the size of array list used in ABC.
// we can assume that somehow array list is initalized but we dont know the size.
}
}
CmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgQUJDIHsKCXByaXZhdGUgQXJyYXlMaXN0PEludGVnZXI+IGFycjsKCQoJQUJDKEFycmF5TGlzdDxJbnRlZ2VyPiBhcnIpIHsKCQl0aGlzLmFyciA9IGFycjsKCX0KCQoJcHVibGljIGludCBnZXRJdGVtKGludCBpbmRleCkgewoJCXJldHVybiBhcnIuZ2V0KGluZGV4KTsKCX0KfQoKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCSAgICBBQkMgb2JqOwoJCS8vd3JpdGUgc29tZSBjb2RlIGhlcmUgdG8ga25vdyB0aGUgc2l6ZSBvZiBhcnJheSBsaXN0IHVzZWQgaW4gQUJDLgoJCS8vIHdlIGNhbiBhc3N1bWUgdGhhdCBzb21laG93IGFycmF5IGxpc3QgaXMgaW5pdGFsaXplZCBidXQgd2UgZG9udCBrbm93IHRoZSBzaXplLiAKCX0KfQ==