class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: G = None
        self.y: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: B = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: A = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.o: D = None
        self.r: F = None
        self.p: I = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: H = None
        self.q: D = None
        self.p: H = None
        self.u: H = None
        self.o: D = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: B = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: A = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.o: D = None
        self.r: F = None
        self.p: I = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: H = None
        self.q: D = None
        self.p: H = None
        self.u: H = None
        self.o: D = None
        self.v: G = None
        self.txt = txt

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

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

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