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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: B = None
        self.r: F = None
        self.s: H = None
        self.w: F = None
        self.x: H = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.u: B = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: E = None
        self.w: C = None
        self.q: H = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: B = None
        self.r: F = None
        self.s: H = None
        self.w: F = None
        self.x: H = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.s: H = None
        self.u: B = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: E = None
        self.w: C = None
        self.q: H = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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