class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.r: B = None
        self.o: J = None
        self.w: G = None
        self.v: J = None
        self.z: E = None
        self.x: J = None
        self.s: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: J = None
        self.y: D = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: J = None
        self.y: D = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: D = None
        self.txt = txt

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

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