class A:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: H = None
        self.p: G = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: F = None
        self.r: E = None
        self.o: F = None
        self.t: F = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

e = A("e")
f = B("f")
i = C("i")
c = D("c")
g = E("g")
n = F("n")
b = G("b")
j = H("j")
k = C("k")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: F = None
        self.r: E = None
        self.o: F = None
        self.t: F = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

e = A("e")
f = B("f")
i = C("i")
c = D("c")
g = E("g")
n = F("n")
b = G("b")
j = H("j")
k = C("k")

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