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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: F = None
        self.q: F = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: F = None
        self.w: G = None
        self.v: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: F = None
        self.q: F = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: F = None
        self.w: G = None
        self.v: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

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

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