#!/usr/bin/env python3

# Infinite loop remember to break it
l = ['bob', 'tom']
while True:
    s = input('What do you want to do?\n') 
    if s == 'add':
        l.append(input('Enter a name:\n'))
    elif s == 'pop':
        print('Removed:', l.pop(0))
    elif s == 'print':
        print(l)
    elif s == 'q':
        break