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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: G = None
        self.r: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: J = None
        self.x: I = None
        self.r: A = None
        self.v: F = None
        self.o: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: G = None
        self.r: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: J = None
        self.x: I = None
        self.r: A = None
        self.v: F = None
        self.o: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.txt = txt

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

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