class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: A = None
        self.z: F = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: I = None
        self.t: D = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.u: E = None
        self.y: A = None
        self.q: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: A = None
        self.z: F = None
        self.t: D = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: I = None
        self.t: D = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.u: E = None
        self.y: A = None
        self.q: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

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

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