class A:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: E = None
        self.t: I = None
        self.u: C = None
        self.z: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.t: I = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: D = None
        self.v: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: I = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: B = None
        self.t: I = None
        self.s: C = None
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: D = None
        self.v: D = None
        self.r: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: I = None
        self.q: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.txt = txt

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

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