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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: A = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.o: B = None
        self.s: D = None
        self.v: C = None
        self.y: C = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: B = None
        self.u: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: F = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.u: A = None
        self.y: B = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: C = None
        self.o: B = None
        self.s: D = None
        self.v: C = None
        self.y: C = None
        self.x: H = None
        self.q: E = None
        self.txt = txt

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

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

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

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

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