class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: F = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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