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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: J = None
        self.r: D = None
        self.y: B = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: B = None
        self.p: F = None
        self.u: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: H = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: J = None
        self.s: C = None
        self.u: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: J = None
        self.r: D = None
        self.y: B = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.t: B = None
        self.p: F = None
        self.u: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: H = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: J = None
        self.s: C = None
        self.u: A = None
        self.txt = txt

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

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

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