#include <stdio.h>

int main() {
    char input = 0xD1;
    int output = (unsigned char)input & 0xFF;
    printf("%X\n", output);

    return 0;
}