text: #!/usr/bin/python
  
  import sys
  
  biggestSale = 0
  oldKey = None
  
  for line in sys.stdin:
      data = line.strip().split("\t")
  
      if len(data) != 2:
          continue
  
      thisKey, thisSale = data
  
      if oldKey and oldKey != thisKey:
          print "{0}\t{1}".format(oldKey, biggestSale)
          biggestSale = 0
  
      oldKey = thisKey
  
      if float(thisSale) > biggestSale:
          biggestSale = float(thisSale)
  
  if oldKey != None:
      print "{0}\t{1}".format(oldKey, biggestSale)