using System;
using System.Collections.Generic;
using System.Text;
namespace Ctest
{
class Program
{
static void Main(string[] args)
{
long k = 0;
long.TryParse(Console.ReadLine(), out k);
if (k == 0) return;
else
{
printfresult(k);
}
}
static void printfresult(long x)
{
long i = 0;
for (; ;i++ )
{
if(x<Math.Pow(2,i))break;
}
i--;
for (; i >= 0; i--)
{
int tmp=(int)Math.Pow(2,i);
if (x > tmp)
{
Console.Write(tmp.ToString()+"+");
x -= tmp;
}
else if (x == tmp)
{
Console.Write(tmp.ToString());
break;
}
}
Console.WriteLine();
Main(null);
}
}
}