class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: C = None
        self.o: C = None
        self.s: B = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: A = None
        self.y: I = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: C = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: A = None
        self.y: I = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: C = None
        self.q: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.x: E = None
        self.txt = txt

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

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