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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: I = None
        self.q: F = None
        self.p: G = None
        self.t: D = None
        self.r: D = None
        self.x: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: D = None
        self.r: E = None
        self.w: E = None
        self.y: H = None
        self.z: C = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.x: E = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: I = None
        self.q: F = None
        self.p: G = None
        self.t: D = None
        self.r: D = None
        self.x: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: D = None
        self.r: E = None
        self.w: E = None
        self.y: H = None
        self.z: C = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: C = None
        self.x: E = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: F = None
        self.txt = txt

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

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