class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: H = None
        self.w: G = None
        self.q: G = None
        self.r: G = None
        self.t: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.q: E = None
        self.p: E = None
        self.v: J = None
        self.o: G = None
        self.u: G = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: C = None
        self.y: F = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.q: E = None
        self.p: E = None
        self.v: J = None
        self.o: G = None
        self.u: G = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: A = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: C = None
        self.y: F = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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