class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: C = None
        self.u: D = None
        self.z: A = None
        self.v: H = None
        self.s: C = None
        self.o: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.y: H = None
        self.t: B = None
        self.q: H = None
        self.v: B = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: F = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.y: H = None
        self.t: B = None
        self.q: H = None
        self.v: B = None
        self.z: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.s: F = None
        self.y: A = None
        self.txt = txt

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

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