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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.z: C = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: J = None
        self.q: G = None
        self.z: G = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: G = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: E = None
        self.y: F = None
        self.u: G = None
        self.w: I = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: E = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: I = None
        self.q: B = None
        self.r: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: C = None
        self.z: C = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.p: J = None
        self.q: G = None
        self.z: G = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: G = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: E = None
        self.y: F = None
        self.u: G = None
        self.w: I = None
        self.o: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.q: E = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: I = None
        self.q: B = None
        self.r: B = None
        self.txt = txt

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

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