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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: C = None
        self.w: E = None
        self.t: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.p: F = None
        self.s: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: A = None
        self.p: C = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: D = None
        self.o: E = None
        self.w: D = None
        self.y: E = None
        self.t: D = None
        self.q: D = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: C = None
        self.w: E = None
        self.t: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: A = None
        self.p: F = None
        self.s: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: A = None
        self.p: C = None
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: D = None
        self.o: E = None
        self.w: D = None
        self.y: E = None
        self.t: D = None
        self.q: D = None
        self.r: G = None
        self.txt = txt

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

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