#include <stdio.h> #include <math.h> #include <string.h> int main() { char a[33]; int b[5]; char c; int sum = 0; int count = 0; int k = 0; for (int i = 0; i < 32; i++) { c = getchar(); a[i] = c; } for (int i = 31; i >= 0; i--) { if (a[i] == ‘1‘) { sum += pow(2, count); } count++; if (count % 8 == 0) { b[k] = sum; k++; count = 0; sum = 0; } } for (int i = 3; i >= 0; i--) { printf("%d", b[i]); if (i != 0) { printf("."); } } }