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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: E = None
        self.v: G = None
        self.r: A = None
        self.z: G = None
        self.u: E = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: E = None
        self.v: G = None
        self.r: A = None
        self.z: G = None
        self.u: E = None
        self.q: E = None
        self.s: H = None
        self.txt = txt

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

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

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

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

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

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