class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: E = None
        self.q: G = None
        self.y: J = None
        self.v: F = None
        self.t: I = None
        self.z: F = None
        self.w: G = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: E = None
        self.q: G = None
        self.y: J = None
        self.v: F = None
        self.t: I = None
        self.z: F = None
        self.w: G = None
        self.x: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.txt = txt

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

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