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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: G = None
        self.p: B = None
        self.v: B = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.s: F = None
        self.u: D = None
        self.y: F = None
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: G = None
        self.p: B = None
        self.v: B = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: G = None
        self.z: H = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.s: F = None
        self.u: D = None
        self.y: F = None
        self.p: A = None
        self.txt = txt

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

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