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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: A = None
        self.t: G = None
        self.v: A = None
        self.o: H = None
        self.s: E = None
        self.r: I = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.q: I = None
        self.x: I = None
        self.u: B = None
        self.o: I = None
        self.v: C = None
        self.y: F = None
        self.txt = txt

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

g = A("g")
a = B("a")
e = C("e")
i = D("i")
n = E("n")
d = F("d")
b = G("b")
l = H("l")
c = I("c")
m = G("m")

g.z = d
a.p = g
a.y = g
a.v = g
a.t = m
a.o = l
a.x = l
a.s = n
a.r = c
a.q = i
e.t = d
i.u = a
i.y = a
i.z = d
i.o = g
i.q = m
n.w = l
n.o = a
d.w = g
d.q = l
d.p = c
d.o = c
b.w = l
b.y = d
l.s = d
l.r = d
l.y = d
l.q = c
l.x = c
l.o = c
l.u = a
l.v = e
c.o = l
c.w = i
c.x = n
c.t = d
c.v = g
m.w = l
m.y = d
assert e.t.p.v.z.o.txt == "
class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: A = None
        self.t: G = None
        self.v: A = None
        self.o: H = None
        self.s: E = None
        self.r: I = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.o: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: F = None
        self.q: I = None
        self.x: I = None
        self.u: B = None
        self.o: I = None
        self.v: C = None
        self.y: F = None
        self.txt = txt

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

g = A("g")
a = B("a")
e = C("e")
i = D("i")
n = E("n")
d = F("d")
b = G("b")
l = H("l")
c = I("c")
m = G("m")

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