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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: E = None
        self.y: C = None
        self.s: B = None
        self.q: F = None
        self.o: F = None
        self.u: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: H = None
        self.s: C = None
        self.y: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: E = None
        self.y: C = None
        self.s: B = None
        self.q: F = None
        self.o: F = None
        self.u: G = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: H = None
        self.s: C = None
        self.y: A = None
        self.txt = txt

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

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

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