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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: G = None
        self.w: G = None
        self.t: H = None
        self.y: F = None
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.v: C = None
        self.q: B = None
        self.t: B = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.p: B = None
        self.z: B = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.x: G = None
        self.w: G = None
        self.t: H = None
        self.y: F = None
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.o: D = None
        self.v: C = None
        self.q: B = None
        self.t: B = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: F = None
        self.p: B = None
        self.z: B = None
        self.s: E = None
        self.txt = txt

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

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