int n = Convert.ToInt32(Console.ReadLine());
int i = 0;
string cf = ""; //存放
while (n!=0)
{
i = n % 10;
if (i!=0)
{
cf = "" + i +cf;
}
n /= 10;
}
int jg = int.Parse(cf); //结果
Console.WriteLine(jg);