class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: I = None
        self.v: H = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: I = None
        self.r: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.t: H = None
        self.z: I = None
        self.u: C = None
        self.r: B = None
        self.y: B = None
        self.q: H = None
        self.o: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: A = None
        self.txt = txt

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

d = A("d")
m = B("m")
h = C("h")
g = D("g")
a = E("a")
k = F("k")
l = G("l")
f = H("f")
i = I("i")

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.q: I = None
        self.r: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: C = None
        self.t: H = None
        self.z: I = None
        self.u: C = None
        self.r: B = None
        self.y: B = None
        self.q: H = None
        self.o: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: A = None
        self.txt = txt

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

d = A("d")
m = B("m")
h = C("h")
g = D("g")
a = E("a")
k = F("k")
l = G("l")
f = H("f")
i = I("i")

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