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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: F = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.t: H = None
        self.v: F = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: F = None
        self.u: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: G = None
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: E = None
        self.t: H = None
        self.v: F = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: C = None
        self.txt = txt

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

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

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