class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: G = None
        self.p: F = None
        self.x: G = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: G = None
        self.p: F = None
        self.x: G = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.txt = txt

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

k.v = m
i.p = l
l.t = f
l.z = j
l.x = j
l.p = e
l.q = e
b.y = k
b.w = k
b.p = k
b.q = e
b.z = e
b.v = f
b.s = m
b.t = i
b.x = c
m.q = i
m.v = i
m.x = c
m.s = c
m.p = l
m.r = b
e.v = c
e.r = l
j.q = f
j.z = e
j.y = i
f.q = k
f.y = l
f.s = l
f.w = e
f.x = e
f.v = c
f.r = c
f.o = i
c.s = j
c.t = b
assert e.r.x.y.p.t.w.v.s.txt == "j"