class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.w: H = None
        self.o: J = None
        self.y: B = None
        self.u: G = None
        self.z: D = None
        self.s: H = None
        self.r: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: C = None
        self.x: F = None
        self.v: F = None
        self.u: H = None
        self.p: H = None
        self.w: B = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: C = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: A = None
        self.v: H = None
        self.s: G = None
        self.u: F = None
        self.w: C = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: C = None
        self.x: F = None
        self.v: F = None
        self.u: H = None
        self.p: H = None
        self.w: B = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: C = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: A = None
        self.v: H = None
        self.s: G = None
        self.u: F = None
        self.w: C = None
        self.q: D = None
        self.txt = txt

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

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

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