class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: H = None
        self.p: F = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: H = None
        self.y: B = None
        self.z: A = None
        self.u: E = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: B = None
        self.z: H = None
        self.r: A = None
        self.x: H = None
        self.v: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.s: E = None
        self.w: E = None
        self.txt = txt

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

b = A("b")
g = B("g")
n = C("n")
h = D("h")
e = E("e")
k = F("k")
a = G("a")
m = H("m")
d = D("d")
l = G("l")

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: H = None
        self.y: B = None
        self.z: A = None
        self.u: E = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: B = None
        self.z: H = None
        self.r: A = None
        self.x: H = None
        self.v: D = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: G = None
        self.s: E = None
        self.w: E = None
        self.txt = txt

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

b = A("b")
g = B("g")
n = C("n")
h = D("h")
e = E("e")
k = F("k")
a = G("a")
m = H("m")
d = D("d")
l = G("l")

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