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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: D = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: H = None
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: J = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: J = None
        self.z: D = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: H = None
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: J = None
        self.s: C = None
        self.txt = txt

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

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

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

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