class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: C = None
        self.w: H = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: J = None
        self.v: H = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.y: I = None
        self.v: H = None
        self.x: B = None
        self.s: I = None
        self.t: A = None
        self.w: B = None
        self.u: C = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: J = None
        self.v: H = None
        self.u: H = None
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: F = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: G = None
        self.y: I = None
        self.v: H = None
        self.x: B = None
        self.s: I = None
        self.t: A = None
        self.w: B = None
        self.u: C = None
        self.z: G = None
        self.txt = txt

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

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