group_list = ["Tom", "Allen", "Jane", "William", "Tony"]

print(group_list[:2])
print(group_list[1:-1])
print(group_list[3:])