#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnR5cGVkZWYgdW5zaWduZWQgY2hhciB1ODsKdHlwZWRlZiB1bnNpZ25lZCBpbnQgdTMyOwoKY2xhc3MgVGVzdCB7CiAgICB1OCBmb3VyX2JpdF9maWVsZCA6IDQ7CiAgICB1OCBlaWdodF9iaXRfZmllbGQ7CiAgICB1MzIgdHdlbnR5X2JpdF9maWVsZCA6IDIwOwp9X19hdHRyaWJ1dGVfXygocGFja2VkKSk7CgpjbGFzcyBUZXN0MiB7CiAgICB1OCBmb3VyX2JpdF9maWVsZCA6IDQ7CiAgICB1OCBlaWdodF9iaXRfZmllbGQgOiA4OwogICAgdTMyIHR3ZW50eV9iaXRfZmllbGQgOiAyMDsKfV9fYXR0cmlidXRlX18oKHBhY2tlZCkpOwoKaW50IG1haW4oKQp7CiAgICBjb3V0IDw8IHNpemVvZihUZXN0KSA8PCBlbmRsOwogICAgY291dCA8PCBzaXplb2YoVGVzdDIpIDw8IGVuZGw7Cn0=