#include /* Samsung SSD Firmware Deobfuscation Tool * v0.2 - 2015/02/06 by Harry Sintonen * Public Domain * * Inspired by the insanely complex original at: * https://github.com/ddcc/samsung_ssd/blob/30b1b28398964d8253625527d65d4a2c9e6d3049/samsung.c */ int main(void) { int c; while ((c = getchar()) != EOF) putchar( ( c >> 5 ^ -!(c & 16) ) << 4 | c & 0xf ); return 0; }