#include <iostream>

int main() {
    int x{4};
    int y{9};
    const int* read{&x};
    x = 7;
    std::cout << *read << '\n';
    read = &y;
    std::cout << *read << '\n';
    int* const fixed{&x};
    *fixed = 8;
    const int* const both{&y};
    y = 10;
    std::cout << *fixed << ' ' << *both << '\n';
    const int frozen{6};
    const int* frozen_read{&frozen};
    std::cout << *frozen_read << '\n';
    return 0;
}
