class A:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: C = None
        self.z: A = None
        self.q: E = None
        self.x: G = None
        self.r: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: C = None
        self.x: E = None
        self.s: F = None
        self.o: B = None
        self.r: G = None
        self.v: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.r: F = None
        self.v: A = None
        self.x: D = None
        self.t: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: C = None
        self.x: E = None
        self.s: F = None
        self.o: B = None
        self.r: G = None
        self.v: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.r: F = None
        self.v: A = None
        self.x: D = None
        self.t: A = None
        self.txt = txt

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

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

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