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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: D = None
        self.s: F = None
        self.q: C = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: A = None
        self.s: A = None
        self.q: B = None
        self.o: F = None
        self.txt = txt

d = A("d")
i = B("i")
e = C("e")
j = D("j")
f = E("f")
b = F("b")
g = G("g")
m = H("m")
k = F("k")
l = E("l")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: D = None
        self.s: F = None
        self.q: C = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.u: A = None
        self.s: A = None
        self.q: B = None
        self.o: F = None
        self.txt = txt

d = A("d")
i = B("i")
e = C("e")
j = D("j")
f = E("f")
b = F("b")
g = G("g")
m = H("m")
k = F("k")
l = E("l")

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