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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: E = None
        self.w: E = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.o: C = None
        self.x: C = None
        self.t: C = None
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.v: C = None
        self.q: D = None
        self.p: E = None
        self.txt = txt

e = A("e")
c = B("c")
n = C("n")
d = D("d")
m = E("m")
k = F("k")
i = G("i")
j = H("j")
h = B("h")
a = F("a")

e.o = n
e.t = n
e.x = n
e.q = n
e.w = h
e.s = d
e.p = d
e.v = m
c.s = j
c.y = i
c.r = m
n.t = h
n.q = e
n.v = e
n.w = c
n.o = d
d.v = i
d.y = m
d.w = m
d.t = j
m.x = j
m.r = n
k.w = i
k.y = i
k.v = j
k.o = n
k.x = n
k.t = n
k.u = n
i.x = a
i.q = e
i.p = c
j.u = c
j.t = a
j.v = n
j.q = d
j.p = m
h.s = j
h.y = i
h.r = m
a.w = i
a.y = i
a.v = j
a.o = n
a.x = n
a.t = n
a.u = n
assert h.y.x.y.p.r.r.t.y.txt == "
class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: B = None
        self.t: C = None
        self.s: D = None
        self.x: C = None
        self.p: D = None
        self.v: E = None
        self.q: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: E = None
        self.w: E = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: H = None
        self.o: C = None
        self.x: C = None
        self.t: C = None
        self.u: C = None
        self.y: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: F = None
        self.v: C = None
        self.q: D = None
        self.p: E = None
        self.txt = txt

e = A("e")
c = B("c")
n = C("n")
d = D("d")
m = E("m")
k = F("k")
i = G("i")
j = H("j")
h = B("h")
a = F("a")

e.o = n
e.t = n
e.x = n
e.q = n
e.w = h
e.s = d
e.p = d
e.v = m
c.s = j
c.y = i
c.r = m
n.t = h
n.q = e
n.v = e
n.w = c
n.o = d
d.v = i
d.y = m
d.w = m
d.t = j
m.x = j
m.r = n
k.w = i
k.y = i
k.v = j
k.o = n
k.x = n
k.t = n
k.u = n
i.x = a
i.q = e
i.p = c
j.u = c
j.t = a
j.v = n
j.q = d
j.p = m
h.s = j
h.y = i
h.r = m
a.w = i
a.y = i
a.v = j
a.o = n
a.x = n
a.t = n
a.u = n
assert h.y.x.y.p.r.r.t.y.txt == "i"