#include <stdio.h>
#include <stdint.h>
void convert_to_big_endian(uint32_t value, uint8_t arr[4]) {
// Your code here
for(uint8_t i = 0; i < 4; i++){
arr[i] = uint8_t(value >> 24) & 0xFF; // right shift to get the most significant byte
value <<= 8; // left shift to push the next byte to a higher index
}
}
int main() {
uint32_t value;
uint8_t arr[4];
scanf("%u", &value);
convert_to_big_endian(value, arr);
for (int i = 0; i < 4; i++) {
printf("%u", arr[i]);
if(i<3){
printf(" ");
}
}
return 0;
}