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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: D = None
        self.v: G = None
        self.q: I = None
        self.x: I = None
        self.p: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: I = None
        self.u: E = None
        self.v: J = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.u: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: G = None
        self.t: F = None
        self.x: G = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

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

l.v = j
l.x = m
l.o = c
l.r = f
l.t = d
l.y = e
i.u = j
i.w = f
i.v = e
i.q = k
i.x = k
i.p = l
c.q = k
c.p = k
c.y = k
c.w = j
c.v = j
c.r = d
c.t = m
c.o = l
f.r = e
f.x = k
f.w = k
f.u = h
f.v = m
h.u = k
h.o = k
h.p = k
h.w = f
h.t = l
h.x = e
h.z = m
h.y = c
d.z = h
e.o = i
e.w = c
e.t = c
e.y = k
e.x = f
e.z = f
j.v = c
j.x = c
j.p = c
j.o = k
j.t = h
j.r = i
j.s = i
k.s = c
k.y = l
k.u = j
m.r = j
m.s = e
m.x = e
m.t = d
m.o = d
m.p = l
assert i.w.v.p.y.y.s.t.r.txt == "
class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: J = None
        self.o: C = None
        self.r: D = None
        self.t: F = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.w: D = None
        self.v: G = None
        self.q: I = None
        self.x: I = None
        self.p: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: I = None
        self.u: E = None
        self.v: J = None
        self.w: I = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: A = None
        self.u: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: G = None
        self.t: F = None
        self.x: G = None
        self.p: A = None
        self.o: F = None
        self.txt = txt

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

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