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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: E = None
        self.r: A = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: E = None
        self.r: H = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.z: B = None
        self.u: I = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.o: C = None
        self.y: D = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: G = None
        self.x: E = None
        self.r: A = None
        self.y: A = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.z: E = None
        self.r: H = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: E = None
        self.q: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: C = None
        self.z: B = None
        self.u: I = None
        self.x: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.o: C = None
        self.y: D = None
        self.u: B = None
        self.x: B = None
        self.txt = txt

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

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