#include <iostream>
using namespace std;
struct A {
int a_, b_;
constexpr A(int a): a_(a+a), b_(a*a) {}
};
struct B {
int a_, b_, c_;
constexpr B(int x, int y): a_(x+y), b_(x-y), c_(x*y) {}
};
struct R {
int r_;
R(int a, int b) : r_(a + rand()%(b-a)) {}
};
struct C {
static constexpr A a_ {3};
static constexpr B b_ {4,5};
static const R r_;
const R q_ {123,456};
};
const R C::r_ {100,500};
int main() {
// your code goes here
C c;
cout << c.a_.a_ << " " << c.a_.b_ << endl;
cout << c.b_.a_ << " " << c.b_.b_ << " " << c.b_.c_ << endl;
cout << c.r_.r_ << " " << c.q_.r_ << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IEEgewoJaW50IGFfLCBiXzsKCWNvbnN0ZXhwciBBKGludCBhKTogYV8oYSthKSwgYl8oYSphKSB7fQp9OwoKc3RydWN0IEIgewoJaW50IGFfLCBiXywgY187Cgljb25zdGV4cHIgQihpbnQgeCwgaW50IHkpOiBhXyh4K3kpLCBiXyh4LXkpLCBjXyh4KnkpIHt9Cn07CgpzdHJ1Y3QgUiB7CglpbnQgcl87CglSKGludCBhLCBpbnQgYikgOiByXyhhICsgcmFuZCgpJShiLWEpKSB7fQp9OwoKc3RydWN0IEMgewoJc3RhdGljIGNvbnN0ZXhwciBBIGFfIHszfTsKCXN0YXRpYyBjb25zdGV4cHIgQiBiXyB7NCw1fTsKCXN0YXRpYyBjb25zdCBSIHJfOwoJCgljb25zdCBSIHFfIHsxMjMsNDU2fTsKfTsKY29uc3QgUiBDOjpyXyB7MTAwLDUwMH07CgppbnQgbWFpbigpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCUMgYzsKCWNvdXQgPDwgYy5hXy5hXyA8PCAiICIgPDwgYy5hXy5iXyA8PCBlbmRsOwoJY291dCA8PCBjLmJfLmFfIDw8ICIgIiA8PCBjLmJfLmJfIDw8ICIgIiA8PCBjLmJfLmNfIDw8IGVuZGw7Cgljb3V0IDw8IGMucl8ucl8gPDwgIiAiIDw8IGMucV8ucl8gPDwgZW5kbDsKCXJldHVybiAwOwp9