class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: C = None
        self.u: C = None
        self.w: C = None
        self.o: E = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.y: A = None
        self.p: C = None
        self.z: G = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: C = None
        self.x: F = None
        self.y: E = None
        self.v: H = None
        self.o: G = None
        self.t: C = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.r: H = None
        self.y: A = None
        self.p: C = None
        self.z: G = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: C = None
        self.x: F = None
        self.y: E = None
        self.v: H = None
        self.o: G = None
        self.t: C = None
        self.r: G = None
        self.txt = txt

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

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