#include
using namespace std;
typedef unsigned short int USI;
int main() {
setlocale(LC_ALL, "Russian");
unsigned int n;
cout << "n = ";<br> cin >> n;
USI h = (int)( ( n % 1000) / 100),
t = (int)( ( n % 10000) / 1000 );
cout << "сотен: " << h << '\n'<br> << "тысяч: " << t << '\n';<br> return 0;
}