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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

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