class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: G = None
        self.p: C = None
        self.q: G = None
        self.s: D = None
        self.t: H = None
        self.r: D = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

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

e = A("e")
a = B("a")
f = C("f")
b = D("b")
j = E("j")
k = F("k")
l = G("l")
c = H("c")
n = A("n")

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

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

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

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

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

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

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

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

e = A("e")
a = B("a")
f = C("f")
b = D("b")
j = E("j")
k = F("k")
l = G("l")
c = H("c")
n = A("n")

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