def foo(x):
    if x in ('b', 'c', 'a'):
        print x
    else:
        print "!", x

foo('a')
foo('z')
