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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: C = None
        self.x: E = None
        self.u: E = None
        self.r: D = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.r: C = None
        self.z: E = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.r: H = None
        self.x: A = None
        self.p: A = None
        self.v: A = None
        self.s: A = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: C = None
        self.txt = txt

l = A("l")
g = B("g")
d = C("d")
a = D("a")
m = E("m")
c = F("c")
k = G("k")
n = H("n")
h = D("h")
j = G("j")

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: C = None
        self.x: E = None
        self.u: E = None
        self.r: D = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.r: C = None
        self.z: E = None
        self.v: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: A = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.r: H = None
        self.x: A = None
        self.p: A = None
        self.v: A = None
        self.s: A = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: C = None
        self.txt = txt

l = A("l")
g = B("g")
d = C("d")
a = D("a")
m = E("m")
c = F("c")
k = G("k")
n = H("n")
h = D("h")
j = G("j")

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