#include <iostream>
#include <iomanip>
void printNumber(int x) {
std::cout << "X:" << std::setw(6) << x << ":X\n";
}
void printStuff() {
printNumber(528);
printNumber(3);
printNumber(73826);
printNumber(37);
}
int main() {
std::cout << "Left-aligned\n";
std::cout << std::left;
printStuff();
std::cout << "Right-aligned\n";
std::cout << std::right;
printStuff();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KCnZvaWQgcHJpbnROdW1iZXIoaW50IHgpIHsKICAgIHN0ZDo6Y291dCA8PCAiWDoiIDw8IHN0ZDo6c2V0dyg2KSA8PCB4IDw8ICI6WFxuIjsKfQoKdm9pZCBwcmludFN0dWZmKCkgewogICAgcHJpbnROdW1iZXIoNTI4KTsKICAgIHByaW50TnVtYmVyKDMpOwogICAgcHJpbnROdW1iZXIoNzM4MjYpOwogICAgcHJpbnROdW1iZXIoMzcpOwp9CgppbnQgbWFpbigpIHsKICAgIHN0ZDo6Y291dCA8PCAiTGVmdC1hbGlnbmVkXG4iOwogICAgc3RkOjpjb3V0IDw8IHN0ZDo6bGVmdDsKICAgIHByaW50U3R1ZmYoKTsKICAgIHN0ZDo6Y291dCA8PCAiUmlnaHQtYWxpZ25lZFxuIjsKICAgIHN0ZDo6Y291dCA8PCBzdGQ6OnJpZ2h0OwogICAgcHJpbnRTdHVmZigpOwoKfQ==