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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.r: A = None
        self.o: F = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: B = None
        self.r: A = None
        self.o: F = None
        self.t: A = None
        self.txt = txt

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

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

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

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