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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: G = None
        self.q: G = None
        self.v: A = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: H = None
        self.z: C = None
        self.x: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: E = None
        self.z: C = None
        self.t: B = None
        self.q: G = None
        self.x: B = None
        self.p: B = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: D = None
        self.x: C = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: B = None
        self.v: F = None
        self.x: A = None
        self.t: C = None
        self.q: D = None
        self.p: B = None
        self.w: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: G = None
        self.q: G = None
        self.v: A = None
        self.t: D = None
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: H = None
        self.z: C = None
        self.x: D = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: F = None
        self.w: E = None
        self.z: C = None
        self.t: B = None
        self.q: G = None
        self.x: B = None
        self.p: B = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: D = None
        self.x: C = None
        self.v: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: B = None
        self.v: F = None
        self.x: A = None
        self.t: C = None
        self.q: D = None
        self.p: B = None
        self.w: D = None
        self.txt = txt

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

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