class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: H = None
        self.p: D = None
        self.x: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: G = None
        self.u: A = None
        self.o: B = None
        self.p: J = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: J = None
        self.o: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: F = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: G = None
        self.u: A = None
        self.o: B = None
        self.p: J = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: J = None
        self.o: C = None
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: F = None
        self.v: F = None
        self.q: D = None
        self.txt = txt

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

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

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