class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.o: B = None
        self.x: C = None
        self.w: E = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.x: H = None
        self.w: H = None
        self.r: B = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

n = A("n")
l = B("l")
a = C("a")
m = D("m")
k = E("k")
g = F("g")
c = G("c")
b = H("b")
i = F("i")

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.x: H = None
        self.w: H = None
        self.r: B = None
        self.y: H = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

n = A("n")
l = B("l")
a = C("a")
m = D("m")
k = E("k")
g = F("g")
c = G("c")
b = H("b")
i = F("i")

n.s = a
n.x = a
n.o = l
n.w = k
n.y = k
n.u = c
l.u = i
l.o = i
l.q = a
a.v = b
a.w = m
m.w = a
m.x = n
m.v = n
k.t = c
k.z = l
k.r = l
k.x = b
k.w = b
k.y = b
k.p = b
g.z = l
g.u = l
g.o = c
g.r = b
g.q = b
g.y = m
c.x = l
b.r = c
i.z = l
i.u = l
i.o = c
i.r = b
i.q = b
i.y = m
assert m.x.y.x.r.x.o.z.u.q.txt == "b"