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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.y: A = None
        self.r: C = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: H = None
        self.z: C = None
        self.r: B = None
        self.v: D = None
        self.txt = txt

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

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

f = A("f")
e = B("e")
m = C("m")
l = D("l")
a = E("a")
k = F("k")
c = G("c")
j = H("j")
d = C("d")

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.y: A = None
        self.r: C = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: G = None
        self.s: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.s: H = None
        self.z: C = None
        self.r: B = None
        self.v: D = None
        self.txt = txt

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

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

f = A("f")
e = B("e")
m = C("m")
l = D("l")
a = E("a")
k = F("k")
c = G("c")
j = H("j")
d = C("d")

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