#include <iostream>

using namespace std;

typedef unsigned char u8;
typedef unsigned int u32;

class Test {
    u8 four_bit_field : 4;
    u8 eight_bit_field;
    u32 twenty_bit_field : 20;
}__attribute__((packed));

class Test2 {
    u8 four_bit_field : 4;
    u8 eight_bit_field : 8;
    u32 twenty_bit_field : 20;
}__attribute__((packed));

int main()
{
    cout << sizeof(Test) << endl;
    cout << sizeof(Test2) << endl;
}