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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: H = None
        self.u: G = None
        self.y: G = None
        self.z: A = None
        self.r: D = None
        self.p: H = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: G = None
        self.t: B = None
        self.z: D = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.x: H = None
        self.v: H = None
        self.t: D = None
        self.u: A = None
        self.r: C = None
        self.w: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.v: H = None
        self.u: G = None
        self.y: G = None
        self.z: A = None
        self.r: D = None
        self.p: H = None
        self.x: G = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: G = None
        self.t: B = None
        self.z: D = None
        self.y: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: A = None
        self.x: H = None
        self.v: H = None
        self.t: D = None
        self.u: A = None
        self.r: C = None
        self.w: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: D = None
        self.z: D = None
        self.txt = txt

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

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

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