class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: H = None
        self.z: C = None
        self.r: G = None
        self.u: J = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: A = None
        self.t: I = None
        self.o: I = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: J = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.v: A = None
        self.t: I = None
        self.o: I = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.r: J = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

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

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

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