#include <stdio.h>
#include <stdint.h>
typedef union {
uint32_t value;
uint8_t bytes[4];
} Register;
// Write logic here to extract bytes using union
void print_bytes(uint32_t input) {
Register uni;
uni.value = input;
printf("%d %d %d %d", uni.bytes[0], uni.bytes[1], uni.bytes[2], uni.bytes[3]);
}
int main() {
uint32_t num;
scanf("%u", &num);
print_bytes(num);
return 0;
}