#include<bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int ans = N;
int temp = 0;
while (N != 0) {
temp = temp * 10 + N % 10;
N /= 10;
}
if (ans > 0)
cout << temp << endl;
else if (ans == 0)
cout << "0" << endl;
else
cout<< temp << endl;
system("pause");
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
double ans = 0;
double temp1 = (1 + sqrt(5)) / 2;
double temp2 = (1 - sqrt(5)) / 2;
cin >> n;
ans = (1 / sqrt(5))*(pow(temp1,n)-pow(temp2,n));
cout << fixed<<setprecision(2)<<ans << endl;
system("pause");
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main() {
int M, N;
cin >> M >> N;
int temp = 0;
int arry[10] = { 0 };
for (int i = M; i <= N; i++) {
temp = i;
while (temp) {
arry[temp % 10]++;
temp /= 10;
}
}
for (int i = 0; i < 10; i++) {
cout << arry[i]<<" ";
}
cout << endl;
system("pause");
return 0;
}