class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.v: F = None
        self.s: F = None
        self.y: E = None
        self.t: C = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: C = None
        self.v: D = None
        self.s: E = None
        self.u: H = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.q: E = None
        self.u: G = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: D = None
        self.p: H = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: C = None
        self.v: D = None
        self.s: E = None
        self.u: H = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: H = None
        self.q: E = None
        self.u: G = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: D = None
        self.p: H = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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