class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.p: E = None
        self.o: F = None
        self.t: H = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: A = None
        self.v: E = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: A = None
        self.z: B = None
        self.o: F = None
        self.w: B = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.q: C = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: F = None
        self.q: D = None
        self.u: A = None
        self.s: D = None
        self.t: E = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: A = None
        self.v: E = None
        self.q: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: A = None
        self.z: B = None
        self.o: F = None
        self.w: B = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: E = None
        self.q: C = None
        self.y: C = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: F = None
        self.q: D = None
        self.u: A = None
        self.s: D = None
        self.t: E = None
        self.o: E = None
        self.txt = txt

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

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