class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: J = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: D = None
        self.q: F = None
        self.v: I = None
        self.z: F = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: C = None
        self.r: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: J = None
        self.p: G = None
        self.s: D = None
        self.w: H = None
        self.t: F = None
        self.r: A = None
        self.q: A = None
        self.u: H = None
        self.z: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: D = None
        self.q: F = None
        self.v: I = None
        self.z: F = None
        self.x: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: C = None
        self.r: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: J = None
        self.p: G = None
        self.s: D = None
        self.w: H = None
        self.t: F = None
        self.r: A = None
        self.q: A = None
        self.u: H = None
        self.z: A = None
        self.txt = txt

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

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

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