class A:
    def __init__(self, txt: str):
        self.r: B = None
        self.z: C = None
        self.q: C = None
        self.t: B = None
        self.o: G = None
        self.s: E = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: H = None
        self.r: G = None
        self.o: C = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: C = None
        self.o: A = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: H = None
        self.r: G = None
        self.o: C = None
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: A = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: C = None
        self.o: A = None
        self.w: A = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

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