#include <iostream> 
#include <iomanip>
using namespace std;
int main() {
    int n;
    cin >> n;
    for(int width = 1; width <=6; width++) {
        cout << setw(width) << setfill('0') << n
        << end1;
    }
    return 0;
}