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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: B = None
        self.w: E = None
        self.t: C = None
        self.r: E = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: B = None
        self.w: E = None
        self.t: C = None
        self.r: E = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

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