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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: A = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.u: C = None
        self.o: B = None
        self.txt = txt

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

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

a = A("a")
m = B("m")
n = C("n")
e = D("e")
h = E("h")
f = F("f")
j = G("j")
l = G("l")

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

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

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.s: A = None
        self.x: E = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: A = None
        self.u: C = None
        self.o: B = None
        self.txt = txt

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

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

a = A("a")
m = B("m")
n = C("n")
e = D("e")
h = E("h")
f = F("f")
j = G("j")
l = G("l")

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