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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.s: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.txt = txt

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

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

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