class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: F = None
        self.p: B = None
        self.r: H = None
        self.u: H = None
        self.x: H = None
        self.q: D = None
        self.s: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: F = None
        self.p: E = None
        self.o: H = None
        self.x: G = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: D = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: H = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.w: B = None
        self.o: G = None
        self.t: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: F = None
        self.p: E = None
        self.o: H = None
        self.x: G = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: D = None
        self.r: H = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.u: H = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.w: B = None
        self.o: G = None
        self.t: C = None
        self.z: F = None
        self.txt = txt

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

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