import java.util.ArrayList;
import java.util.Iterator;
public class MainClass {
public static void main(String[] a) {
ArrayList nums = new ArrayList();
nums.add("O");
nums.add("Two");
nums.add("Three");
nums.add("Four");
String s;
Iterator e = nums.iterator();
while (e.hasNext()) {
s = (String) e.next();
System.out.println(s);
}
}
}