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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: G = None
        self.q: B = None
        self.u: E = None
        self.x: H = None
        self.p: D = None
        self.r: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.t: E = None
        self.y: A = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: G = None
        self.q: B = None
        self.u: E = None
        self.x: H = None
        self.p: D = None
        self.r: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.x: A = None
        self.t: E = None
        self.y: A = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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