class A:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: B = None
        self.y: E = None
        self.o: I = None
        self.p: G = None
        self.s: F = None
        self.w: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: C = None
        self.v: C = None
        self.y: F = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.o: B = None
        self.r: E = None
        self.v: I = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.x: B = None
        self.w: F = None
        self.t: I = None
        self.y: B = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.w: C = None
        self.v: C = None
        self.y: F = None
        self.x: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.o: B = None
        self.r: E = None
        self.v: I = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.x: B = None
        self.w: F = None
        self.t: I = None
        self.y: B = None
        self.s: A = None
        self.txt = txt

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

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

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

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