class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: G = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.o: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: G = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.o: A = None
        self.p: F = None
        self.txt = txt

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

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

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