class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: F = None
        self.z: F = None
        self.r: C = None
        self.q: D = None
        self.o: E = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: B = None
        self.v: C = None
        self.q: D = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: F = None
        self.r: D = None
        self.u: F = None
        self.z: C = None
        self.p: C = None
        self.txt = txt

j = A("j")
b = B("b")
h = C("h")
d = D("d")
e = E("e")
n = F("n")
i = G("i")
g = E("g")

j.w = n
j.s = n
j.z = n
j.r = h
j.q = d
j.o = g
j.u = g
b.p = i
h.s = d
h.o = j
d.y = i
d.x = b
d.t = h
d.q = n
d.s = g
d.w = j
d.v = j
e.r = b
e.x = b
e.v = h
e.w = h
e.q = d
e.z = i
n.p = d
n.y = d
i.o = j
i.y = n
i.u = n
i.r = d
i.z = h
i.p = h
g.r = b
g.x = b
g.v = h
g.w = h
g.q = d
g.z = i
assert e.x.p.o.q.t.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: F = None
        self.z: F = None
        self.r: C = None
        self.q: D = None
        self.o: E = None
        self.u: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: B = None
        self.v: C = None
        self.q: D = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: F = None
        self.r: D = None
        self.u: F = None
        self.z: C = None
        self.p: C = None
        self.txt = txt

j = A("j")
b = B("b")
h = C("h")
d = D("d")
e = E("e")
n = F("n")
i = G("i")
g = E("g")

j.w = n
j.s = n
j.z = n
j.r = h
j.q = d
j.o = g
j.u = g
b.p = i
h.s = d
h.o = j
d.y = i
d.x = b
d.t = h
d.q = n
d.s = g
d.w = j
d.v = j
e.r = b
e.x = b
e.v = h
e.w = h
e.q = d
e.z = i
n.p = d
n.y = d
i.o = j
i.y = n
i.u = n
i.r = d
i.z = h
i.p = h
g.r = b
g.x = b
g.v = h
g.w = h
g.q = d
g.z = i
assert e.x.p.o.q.t.txt == "h"