class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: I = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: A = None
        self.w: A = None
        self.r: B = None
        self.q: I = None
        self.s: E = None
        self.t: B = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.x: E = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: C = None
        self.txt = txt

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

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

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

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

l = A("l")
c = B("c")
k = C("k")
d = D("d")
i = E("i")
f = F("f")
g = G("g")
m = H("m")
a = I("a")

l.o = g
l.v = a
l.z = k
l.p = i
c.w = m
c.t = l
c.s = f
k.z = a
k.q = a
k.x = l
k.w = l
k.v = l
k.r = c
k.t = c
k.s = i
d.p = m
d.r = k
d.q = k
d.x = i
i.y = g
i.z = k
f.r = m
f.u = a
g.z = a
m.t = l
m.s = l
m.x = l
m.r = l
m.u = g
m.p = f
m.v = i
a.w = f
a.s = f
a.y = g
assert l.z.s.z.t.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: I = None
        self.z: C = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.x: A = None
        self.w: A = None
        self.r: B = None
        self.q: I = None
        self.s: E = None
        self.t: B = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: C = None
        self.x: E = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: C = None
        self.txt = txt

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

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

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

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

l = A("l")
c = B("c")
k = C("k")
d = D("d")
i = E("i")
f = F("f")
g = G("g")
m = H("m")
a = I("a")

l.o = g
l.v = a
l.z = k
l.p = i
c.w = m
c.t = l
c.s = f
k.z = a
k.q = a
k.x = l
k.w = l
k.v = l
k.r = c
k.t = c
k.s = i
d.p = m
d.r = k
d.q = k
d.x = i
i.y = g
i.z = k
f.r = m
f.u = a
g.z = a
m.t = l
m.s = l
m.x = l
m.r = l
m.u = g
m.p = f
m.v = i
a.w = f
a.s = f
a.y = g
assert l.z.s.z.t.t.txt == "l"