Visiting a friend? It's only polite to bring a little something with you.

Heads of state aren't exempt from this unspoken rule, except that every present the White House accepts from other foreign dignitaries must be logged, tagged, and stored in official archives. (For the unfamiliar, there's an excellent "West Wing" episode about this.) Gift-giving is a routine part of diplomacy, but it also makes for interesting public data.

On Thursday, President Obama released a list of all the gifts he accepted in 2011 on behalf of the United States. For each gift, the PDF names the donor country, a description of the gift, an estimate of its value and a reason why Obama accepted it (typically something having to do with not wanting to make a scene by rejecting the present, even if they were just boring old "Witcher 2" DVDs). Faced with all this government data, there was only one thing to do with it: plug everything into a spreadsheet and see which foreign leaders outspent each other to impress the most powerful man in the world. The heat map above ranks countries according to the total value of their 2011 gifts to Obama, with darker colors representing more generous states.

Judging by how often they appear on the list (16 times), former French President Nicolas Sarkozy and his wife Carla Bruni at first seemed to have an easy lead on everyone else. But in fact, France was only the third-most generous country to the United States by the value of its gifts ($42,144.86). Coming ahead of it was Brazil ($43,802.46), which seemed really fixated on giving Obama rare soccer jerseys. But the award for Most Lavish Foreign Dignitary goes to the president of Gabon.

Yes, you read that right. Gabon, the tiny West African nation with a population the size of Idaho's and a 2011 per-capita GDP of $16,000. That year, Gabon's Ali Bongo Ondimba gave a single gift to Obama, and it alone was worth $52,695 -- 20 percent more than the value of all of Brazil's gifts combined, and 25 percent more than all of France's gifts. What exactly did Ondimba present to the White House that was worth more than 132 iPads put together? Here's the relevant entry in the report:

By using this service you agree not to post material that is obscene, harassing, defamatory, or
otherwise objectionable. Although GovExec.com does not monitor comments posted to this site (and
has no obligation to), it reserves the right to delete, edit, or move any material that it deems
to be in violation of this rule.

Join us at ELC 2017 - The Premier Conference for Federal IT Leaders
Are you results-driven? Successful in your field? A thought-leader? If so, then join us Oct. 29-31, 2017 in Williamsburg, VA to harness the unprecedented change that is occurring around us to make our federal government more effective, secure and citizen-driven. ELC 2017 is the must-attend government IT event connecting senior government and industry executives with innovative opportunities to engage, learn, and collaborate. Find out more: goo.gl/TpC6FQ goo.gl