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

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.q: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: C = None
        self.z: C = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.s: A = None
        self.z: E = None
        self.r: B = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

a.s = l
a.x = m
a.v = h
k.o = l
l.y = i
l.z = i
l.p = d
l.t = g
l.v = j
g.y = i
g.z = e
g.q = k
g.u = k
e.u = i
e.y = l
e.z = l
e.v = k
d.o = j
d.t = j
d.p = a
d.s = a
d.z = e
d.r = k
j.p = i
j.q = e
j.r = e
j.y = k
j.o = l
j.u = m
i.q = g
h.p = i
h.q = e
h.r = e
h.y = k
h.o = l
h.u = m
m.s = l
m.x = a
m.v = h
assert a.s.y.q.q.o.v.u.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.v: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: E = None
        self.q: B = None
        self.u: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: H = None
        self.y: C = None
        self.z: C = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.s: A = None
        self.z: E = None
        self.r: B = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.txt = txt

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

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