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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: G = None
        self.x: B = None
        self.v: E = None
        self.w: I = None
        self.o: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.z: A = None
        self.t: D = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.x: F = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.q: F = None
        self.r: H = None
        self.y: E = None
        self.t: G = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: G = None
        self.x: B = None
        self.v: E = None
        self.w: I = None
        self.o: J = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.z: A = None
        self.t: D = None
        self.w: D = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: B = None
        self.x: F = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.q: F = None
        self.r: H = None
        self.y: E = None
        self.t: G = None
        self.u: F = None
        self.txt = txt

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

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

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