class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: G = None
        self.s: A = None
        self.q: E = None
        self.v: D = None
        self.x: H = None
        self.w: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: A = None
        self.v: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: B = None
        self.u: C = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.w: A = None
        self.v: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.y: B = None
        self.u: C = None
        self.t: D = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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