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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: A = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.o: C = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: A = None
        self.z: C = None
        self.v: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.o: C = None
        self.q: D = None
        self.txt = txt

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

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