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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: G = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: C = None
        self.q: G = None
        self.x: G = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: G = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: C = None
        self.q: G = None
        self.x: G = None
        self.t: A = None
        self.v: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: I = None
        self.txt = txt

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

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