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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: B = None
        self.z: B = None
        self.q: H = None
        self.w: H = None
        self.s: F = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: G = None
        self.r: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: B = None
        self.z: B = None
        self.q: H = None
        self.w: H = None
        self.s: F = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: G = None
        self.r: C = None
        self.txt = txt

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

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

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