class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: D = None
        self.r: C = None
        self.s: H = None
        self.v: C = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: C = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: I = None
        self.o: G = None
        self.u: G = None
        self.z: D = None
        self.q: F = None
        self.y: I = None
        self.v: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: B = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: G = None
        self.z: G = None
        self.y: H = None
        self.txt = txt

i = A("i")
g = B("g")
j = C("j")
a = D("a")
c = E("c")
f = F("f")
h = G("h")
n = H("n")
l = I("l")

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.t: G = None
        self.y: C = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: I = None
        self.o: G = None
        self.u: G = None
        self.z: D = None
        self.q: F = None
        self.y: I = None
        self.v: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: B = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: E = None
        self.x: G = None
        self.z: G = None
        self.y: H = None
        self.txt = txt

i = A("i")
g = B("g")
j = C("j")
a = D("a")
c = E("c")
f = F("f")
h = G("h")
n = H("n")
l = I("l")

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