def wdname(first,last):
dname=first+' '+last
return dname
while True:
print 'input your name:'
print 'q quit'
fname=raw_input('first:')
if fname=='q':
break
lname=raw_input('last:')
if lname=='q':
break
qname=wdname(fname,lname)
print('hello '+qname+' !')