#include "stdafx.h"
#include <iostream>
using namespace std;
void arith(int a)
{
if(a%10!=0)
{
arith(a/10);
cout<<a%10;
}
}
int _tmain(int argc, _TCHAR* argv[])
{
int a=486862;
arith(a);
int m;
cin>>m;
}
#include <iostream>
using namespace std;
void arith(int a)
{
if(a%10!=0)
{
arith(a/10);
cout<<a%10;
}
}
int _tmain(int argc, _TCHAR* argv[])
{
int a=486862;
arith(a);
int m;
cin>>m;
}