class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.w: D = None
        self.s: B = None
        self.t: H = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: F = None
        self.t: A = None
        self.y: C = None
        self.r: C = None
        self.w: F = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: F = None
        self.v: B = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: A = None
        self.t: E = None
        self.x: G = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: H = None
        self.r: A = None
        self.s: C = None
        self.z: B = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: B = None
        self.y: B = None
        self.r: D = None
        self.u: A = None
        self.t: G = None
        self.txt = txt

i = A("i")
f = B("f")
b = C("b")
h = D("h")
l = E("l")
k = F("k")
d = G("d")
e = H("e")
c = D("c")

i.o = l
i.x = f
i.s = f
i.w = h
i.t = e
i.z = e
i.p = b
f.x = d
f.s = k
f.w = k
f.v = k
f.t = i
f.y = b
f.r = b
f.z = b
b.r = i
b.s = k
b.v = f
b.z = d
h.p = k
h.z = b
h.v = e
l.w = b
k.o = c
k.q = i
k.t = l
k.x = d
k.w = d
k.z = e
d.y = b
d.s = b
d.v = e
d.r = i
d.z = f
d.x = c
d.t = c
e.z = b
e.x = f
e.y = f
e.r = c
e.u = i
e.t = d
c.p = k
c.z = b
c.v = e
assert e.r.p.t.w.z.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.x: B = None
        self.w: D = None
        self.s: B = None
        self.t: H = None
        self.z: H = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: G = None
        self.s: F = None
        self.t: A = None
        self.y: C = None
        self.r: C = None
        self.w: F = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: F = None
        self.v: B = None
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.q: A = None
        self.t: E = None
        self.x: G = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.v: H = None
        self.r: A = None
        self.s: C = None
        self.z: B = None
        self.x: D = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: B = None
        self.y: B = None
        self.r: D = None
        self.u: A = None
        self.t: G = None
        self.txt = txt

i = A("i")
f = B("f")
b = C("b")
h = D("h")
l = E("l")
k = F("k")
d = G("d")
e = H("e")
c = D("c")

i.o = l
i.x = f
i.s = f
i.w = h
i.t = e
i.z = e
i.p = b
f.x = d
f.s = k
f.w = k
f.v = k
f.t = i
f.y = b
f.r = b
f.z = b
b.r = i
b.s = k
b.v = f
b.z = d
h.p = k
h.z = b
h.v = e
l.w = b
k.o = c
k.q = i
k.t = l
k.x = d
k.w = d
k.z = e
d.y = b
d.s = b
d.v = e
d.r = i
d.z = f
d.x = c
d.t = c
e.z = b
e.x = f
e.y = f
e.r = c
e.u = i
e.t = d
c.p = k
c.z = b
c.v = e
assert e.r.p.t.w.z.txt == "d"