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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: H = None
        self.s: G = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: C = None
        self.x: A = None
        self.o: G = None
        self.p: C = None
        self.s: G = 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.s: F = None
        self.z: B = None
        self.o: D = None
        self.w: C = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: H = None
        self.s: G = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: C = None
        self.x: A = None
        self.o: G = None
        self.p: C = None
        self.s: G = 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.s: F = None
        self.z: B = None
        self.o: D = None
        self.w: C = None
        self.v: E = None
        self.x: G = None
        self.txt = txt

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

h.t = g
h.w = g
h.s = l
h.r = j
h.p = j
h.z = i
h.u = a
h.o = e
l.r = h
e.r = j
g.o = h
g.z = c
g.u = c
g.s = j
a.o = j
i.w = e
i.u = e
i.p = e
i.x = h
i.o = j
i.s = j
j.u = l
c.s = i
c.z = l
c.o = g
c.w = e
c.v = a
c.x = j
assert i.x.t.z.x.u.r.p.txt == "j"