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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: A = None
        self.t: D = None
        self.w: E = None
        self.v: B = None
        self.o: H = None
        self.u: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.x: A = None
        self.o: E = None
        self.u: E = None
        self.w: D = None
        self.v: C = None
        self.t: F = None
        self.txt = txt

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

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

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

f.s = g
f.y = k
j.q = a
j.y = e
j.s = e
i.x = e
i.z = f
i.t = c
i.w = k
i.u = k
i.v = j
i.o = g
c.t = e
c.w = f
k.y = g
k.v = l
e.s = l
e.q = g
a.z = f
a.x = f
a.s = k
a.o = k
a.u = k
a.w = c
a.v = i
a.t = e
g.w = c
g.x = l
g.o = l
l.w = j
l.z = e
l.y = k
assert l.y.v.w.y.s.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: F = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: A = None
        self.t: D = None
        self.w: E = None
        self.v: B = None
        self.o: H = None
        self.u: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: E = None
        self.x: A = None
        self.o: E = None
        self.u: E = None
        self.w: D = None
        self.v: C = None
        self.t: F = None
        self.txt = txt

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

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

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

f.s = g
f.y = k
j.q = a
j.y = e
j.s = e
i.x = e
i.z = f
i.t = c
i.w = k
i.u = k
i.v = j
i.o = g
c.t = e
c.w = f
k.y = g
k.v = l
e.s = l
e.q = g
a.z = f
a.x = f
a.s = k
a.o = k
a.u = k
a.w = c
a.v = i
a.t = e
g.w = c
g.x = l
g.o = l
l.w = j
l.z = e
l.y = k
assert l.y.v.w.y.s.w.txt == "j"