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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: A = None
        self.q: I = None
        self.s: C = None
        self.v: D = None
        self.r: A = None
        self.u: C = None
        self.y: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: C = None
        self.x: D = None
        self.z: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: A = None
        self.q: I = None
        self.s: C = None
        self.v: D = None
        self.r: A = None
        self.u: C = None
        self.y: I = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: C = None
        self.x: D = None
        self.z: D = None
        self.txt = txt

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

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