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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.s: D = None
        self.y: G = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.u: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.s: D = None
        self.y: G = None
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.u: G = None
        self.txt = txt

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

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

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