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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: E = None
        self.p: A = None
        self.w: F = None
        self.o: F = None
        self.v: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: A = None
        self.y: B = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.q: C = None
        self.u: G = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.x: E = None
        self.p: A = None
        self.w: F = None
        self.o: F = None
        self.v: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.r: A = None
        self.y: B = None
        self.z: F = None
        self.v: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: G = None
        self.q: C = None
        self.u: G = None
        self.p: G = None
        self.txt = txt

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

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