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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: A = None
        self.y: A = None
        self.o: G = None
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: F = None
        self.s: C = None
        self.z: E = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.t: A = None
        self.y: A = None
        self.o: G = None
        self.p: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: F = None
        self.s: C = None
        self.z: E = None
        self.q: C = None
        self.txt = txt

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

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

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