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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

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