class A:
    def __init__(self, txt: str):
        self.r: J = None
        self.v: F = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: B = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.q: H = None
        self.z: H = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: D = None
        self.v: B = None
        self.x: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: H = None
        self.r: B = None
        self.u: A = None
        self.q: G = None
        self.txt = txt

e = A("e")
i = B("i")
c = C("c")
b = D("b")
d = E("d")
a = F("a")
k = G("k")
m = H("m")
n = I("n")
l = J("l")

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: B = None
        self.z: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: F = None
        self.q: H = None
        self.z: H = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: D = None
        self.v: B = None
        self.x: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: H = None
        self.r: B = None
        self.u: A = None
        self.q: G = None
        self.txt = txt

e = A("e")
i = B("i")
c = C("c")
b = D("b")
d = E("d")
a = F("a")
k = G("k")
m = H("m")
n = I("n")
l = J("l")

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