#import <Foundation/Foundation.h>
union mixed {int i; float f; char c;};
int main() {
union mixed x;
x.i = 5;
NSLog(@"%d", x.i);
x.f = 2.5;
NSLog(@"%f", x.f);
x.c = 'A';
NSLog(@"%c", x.c);
return 0;
}
ICNpbXBvcnQgPEZvdW5kYXRpb24vRm91bmRhdGlvbi5oPgogICAgICAgIAp1bmlvbiBtaXhlZCB7aW50IGk7IGZsb2F0IGY7IGNoYXIgYzt9OwoKaW50IG1haW4oKSB7CiAgICAKICAgIHVuaW9uIG1peGVkIHg7CiAgICB4LmkgPSA1OwogICAgTlNMb2coQCIlZCIsIHguaSk7CiAgICB4LmYgPSAyLjU7CiAgICBOU0xvZyhAIiVmIiwgeC5mKTsKICAgIHguYyA9ICdBJzsKICAgIE5TTG9nKEAiJWMiLCB4LmMpOwogICAgCiAgICByZXR1cm4gMDsKfQ==