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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: I = None
        self.y: A = None
        self.z: C = 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.q: G = None
        self.w: G = None
        self.p: A = None
        self.t: G = None
        self.u: H = None
        self.r: B = None
        self.y: J = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.v: C = None
        self.u: D = None
        self.p: D = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.p: H = None
        self.t: C = None
        self.u: I = None
        self.s: C = None
        self.z: I = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.p: I = None
        self.y: A = None
        self.z: C = 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.q: G = None
        self.w: G = None
        self.p: A = None
        self.t: G = None
        self.u: H = None
        self.r: B = None
        self.y: J = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: B = None
        self.v: C = None
        self.u: D = None
        self.p: D = None
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: D = None
        self.p: H = None
        self.t: C = None
        self.u: I = None
        self.s: C = None
        self.z: I = None
        self.o: E = None
        self.txt = txt

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

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