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

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: I = None
        self.z: J = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.u: I = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.o: C = None
        self.s: E = None
        self.p: D = None
        self.q: A = None
        self.x: C = None
        self.w: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: C = None
        self.o: H = None
        self.q: H = None
        self.y: E = None
        self.s: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: I = None
        self.z: J = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: I = None
        self.u: I = None
        self.z: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.o: C = None
        self.s: E = None
        self.p: D = None
        self.q: A = None
        self.x: C = None
        self.w: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.p: C = None
        self.o: H = None
        self.q: H = None
        self.y: E = None
        self.s: H = None
        self.txt = txt

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

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