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

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.v: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: E = None
        self.t: G = None
        self.w: C = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

l = A("l")
c = B("c")
m = C("m")
d = D("d")
g = E("g")
h = F("h")
e = G("e")
n = H("n")
k = I("k")

l.v = m
l.o = d
l.z = n
l.w = h
c.v = d
c.t = d
c.p = e
c.o = m
c.u = g
c.s = l
c.r = l
c.z = k
m.p = h
m.z = h
m.t = l
m.v = n
m.u = c
m.y = k
m.r = g
m.w = g
d.z = n
d.y = c
g.r = d
g.w = d
g.v = m
g.q = k
h.z = n
h.q = g
h.t = e
h.w = m
h.s = c
e.y = k
e.w = d
n.s = h
n.z = h
n.u = c
n.r = m
k.t = m
assert n.s.q.v.t.txt == "
class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: D = None
        self.z: H = None
        self.w: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: D = None
        self.v: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: E = None
        self.t: G = None
        self.w: C = None
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.w: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

l = A("l")
c = B("c")
m = C("m")
d = D("d")
g = E("g")
h = F("h")
e = G("e")
n = H("n")
k = I("k")

l.v = m
l.o = d
l.z = n
l.w = h
c.v = d
c.t = d
c.p = e
c.o = m
c.u = g
c.s = l
c.r = l
c.z = k
m.p = h
m.z = h
m.t = l
m.v = n
m.u = c
m.y = k
m.r = g
m.w = g
d.z = n
d.y = c
g.r = d
g.w = d
g.v = m
g.q = k
h.z = n
h.q = g
h.t = e
h.w = m
h.s = c
e.y = k
e.w = d
n.s = h
n.z = h
n.u = c
n.r = m
k.t = m
assert n.s.q.v.t.txt == "l"