#include<bits/stdc++.h>
using namespace std;
void f(int n)
{
if(n<10)
{
cout<<n;
}
else
{
cout<<n%10;
f(n/10);
}
}
int main()
{
f(12345);
return 0;
}
#include<bits/stdc++.h>
using namespace std;
void f(int n)
{
if(n<10)
{
cout<<n;
}
else
{
cout<<n%10;
f(n/10);
}
}
int main()
{
f(12345);
return 0;
}