#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> #include<iomanip> using namespace std; int main(){ int n; cin >> n; cout.fill('0'); cout << setw(3) << n << endl; /* //default cout << n << endl; // width 5 cout.width(5); cout << n << endl; // width will be influenced only once cout << n << endl; //save default fill character and set fill character char prevFill = cout.fill('0'); // 0 fill cout << n << endl; // width 10 cout << setw(10) << n << endl; // remain setfill character cout << setw(5) << n << endl; // recover prevFill cout.fill(prevFill); cout << setw(5) << n << endl; */ }