A coding problem