class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: G = None
        self.x: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: C = None
        self.z: E = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: D = None
        self.q: G = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: C = None
        self.z: E = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: D = None
        self.q: G = None
        self.s: G = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

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

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