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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: F = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: E = None
        self.z: D = None
        self.s: B = None
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: C = None
        self.s: J = None
        self.o: J = None
        self.u: H = None
        self.x: J = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: H = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: F = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: E = None
        self.z: D = None
        self.s: B = None
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: C = None
        self.s: J = None
        self.o: J = None
        self.u: H = None
        self.x: J = None
        self.t: B = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.o: H = None
        self.q: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

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