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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: E = None
        self.q: I = None
        self.t: B = None
        self.p: G = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.o: A = None
        self.q: C = None
        self.r: H = None
        self.w: I = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: D = None
        self.p: D = None
        self.s: B = None
        self.v: F = None
        self.r: E = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.v: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: E = None
        self.q: I = None
        self.t: B = None
        self.p: G = None
        self.x: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: I = None
        self.z: I = None
        self.o: A = None
        self.q: C = None
        self.r: H = None
        self.w: I = None
        self.u: A = None
        self.p: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.q: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: D = None
        self.p: D = None
        self.s: B = None
        self.v: F = None
        self.r: E = None
        self.x: A = None
        self.txt = txt

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

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