def getvalue(s):
	"""
	getvalue() takes a string like <aaa>bbbbb<cc> and returns bbbbb
	"""
	p = s.find('>')
	s = s[p+1:]
	s = s[::-1]
# string reverse
	p = s.find('<')
	s = s[p+1:]
	s = s[::-1]
# string reverse, again
	return s