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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: H = None
        self.y: B = None
        self.s: E = None
        self.r: I = None
        self.p: D = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: H = None
        self.s: I = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: I = None
        self.v: E = None
        self.t: E = None
        self.w: I = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: H = None
        self.y: B = None
        self.s: E = None
        self.r: I = None
        self.p: D = None
        self.w: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: H = None
        self.s: I = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: I = None
        self.v: E = None
        self.t: E = None
        self.w: I = None
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.q: A = None
        self.u: C = None
        self.txt = txt

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

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