class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: H = None
        self.q: E = None
        self.z: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.y: H = None
        self.q: E = None
        self.z: D = None
        self.p: C = None
        self.txt = txt

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

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

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