#include <iostream>
#include <string>
#include <bitset>

using namespace std;

template <typename T>
std::string binary_repr(T value) {
    // The bitset size is set to match the type size.
    return std::bitset<sizeof(T)*8>(value).to_string();
}

int main() {
    char c = 'A';
    short s = 123;
    int i = 123456;
    long long l = 123456789;

    cout << binary_repr(c) << endl;
    cout << binary_repr(s) << endl;
    cout << binary_repr(i) << endl;
    cout << binary_repr(l) << endl;

    return 0;
}