import java.io.*; import java.util.*; import java.nio.file.*; import java.nio.charset.Charset; public class Lugeja1{ public static void main(String[] arg) throws IOException{ List aastad=Files.readAllLines(Paths.get("synniaastad.txt"), Charset.defaultCharset()); System.out.println(aastad); } }