class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: H = None
        self.u: E = None
        self.w: B = None
        self.q: A = None
        self.x: I = None
        self.t: C = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: I = None
        self.o: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: C = None
        self.x: A = None
        self.z: C = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: H = None
        self.u: E = None
        self.w: B = None
        self.q: A = None
        self.x: I = None
        self.t: C = None
        self.z: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: I = None
        self.o: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: A = None
        self.y: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: C = None
        self.x: A = None
        self.z: C = None
        self.w: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.txt = txt

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

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