class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.o: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: C = None
        self.o: F = None
        self.q: F = None
        self.z: H = None
        self.r: E = None
        self.s: B = None
        self.x: A = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.y: B = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.v: G = None
        self.p: F = None
        self.t: F = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.x: A = None
        self.z: F = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.v: C = None
        self.o: F = None
        self.q: F = None
        self.z: H = None
        self.r: E = None
        self.s: B = None
        self.x: A = None
        self.y: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: F = None
        self.y: B = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.v: G = None
        self.p: F = None
        self.t: F = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.x: A = None
        self.z: F = None
        self.p: D = None
        self.txt = txt

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

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

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