class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: A = None
        self.x: G = None
        self.p: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.s: C = None
        self.w: D = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: A = None
        self.t: A = None
        self.o: A = None
        self.u: A = None
        self.s: H = None
        self.y: D = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.x: G = None
        self.r: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: A = None
        self.s: C = None
        self.w: D = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.q: A = None
        self.t: A = None
        self.o: A = None
        self.u: A = None
        self.s: H = None
        self.y: D = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.x: G = None
        self.r: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: F = None
        self.v: G = None
        self.txt = txt

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

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