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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: A = None
        self.p: D = None
        self.u: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: C = None
        self.x: C = None
        self.p: C = None
        self.o: A = None
        self.r: A = None
        self.y: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: A = None
        self.p: D = None
        self.u: G = None
        self.q: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: C = None
        self.x: C = None
        self.p: C = None
        self.o: A = None
        self.r: A = None
        self.y: G = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.q: C = None
        self.txt = txt

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

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