class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.s: E = None
        self.u: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: H = None
        self.r: E = None
        self.p: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: H = None
        self.r: E = None
        self.p: B = None
        self.txt = txt

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

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

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

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