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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.u: F = None
        self.q: A = None
        self.v: F = None
        self.p: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: E = None
        self.s: C = None
        self.p: E = None
        self.w: H = None
        self.r: C = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.o: H = None
        self.t: G = None
        self.x: C = None
        self.p: B = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: G = None
        self.x: B = None
        self.w: B = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.o: E = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: B = None
        self.w: B = None
        self.r: B = None
        self.s: F = None
        self.y: E = None
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: A = None
        self.u: F = None
        self.q: A = None
        self.v: F = None
        self.p: E = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: E = None
        self.s: C = None
        self.p: E = None
        self.w: H = None
        self.r: C = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: H = None
        self.o: H = None
        self.t: G = None
        self.x: C = None
        self.p: B = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: G = None
        self.x: B = None
        self.w: B = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: D = None
        self.o: E = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.x: B = None
        self.w: B = None
        self.r: B = None
        self.s: F = None
        self.y: E = None
        self.z: E = None
        self.txt = txt

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

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