class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: E = None
        self.z: C = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.t: C = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: C = None
        self.s: H = None
        self.y: G = None
        self.t: J = None
        self.o: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.v: D = None
        self.x: I = None
        self.w: G = None
        self.u: F = None
        self.o: J = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: J = None
        self.x: J = None
        self.u: G = None
        self.q: C = None
        self.r: C = None
        self.w: E = None
        self.o: C = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

k = A("k")
m = B("m")
a = C("a")
h = D("h")
e = E("e")
c = F("c")
n = G("n")
b = H("b")
j = I("j")
f = J("f")

k.q = m
k.w = e
k.z = a
k.y = h
m.v = a
m.y = a
m.t = a
m.p = n
a.v = f
a.s = n
a.o = c
a.y = j
a.u = m
h.p = k
h.x = a
h.s = b
h.y = n
h.t = f
h.o = c
e.w = c
e.u = j
c.t = f
c.v = a
c.u = a
c.p = k
c.o = m
c.x = n
n.u = j
n.o = h
n.s = f
b.r = h
b.v = h
b.q = n
b.w = n
b.x = j
b.u = c
b.p = c
b.y = c
b.o = f
j.y = n
j.u = n
j.s = f
j.x = f
j.q = a
j.r = a
j.o = a
j.t = a
j.w = e
f.q = j
assert n.s.q.y.o.o.t.q.x.txt == "
class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.w: E = None
        self.z: C = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: C = None
        self.t: C = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.x: C = None
        self.s: H = None
        self.y: G = None
        self.t: J = None
        self.o: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.v: D = None
        self.x: I = None
        self.w: G = None
        self.u: F = None
        self.o: J = None
        self.p: F = None
        self.y: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: J = None
        self.x: J = None
        self.u: G = None
        self.q: C = None
        self.r: C = None
        self.w: E = None
        self.o: C = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

k = A("k")
m = B("m")
a = C("a")
h = D("h")
e = E("e")
c = F("c")
n = G("n")
b = H("b")
j = I("j")
f = J("f")

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