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

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: D = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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

j.s = f
j.o = a
j.u = b
j.t = e
d.r = b
d.v = b
d.p = e
d.q = k
d.y = k
d.s = k
d.t = i
d.o = j
d.w = h
d.u = a
e.x = h
i.u = f
i.y = c
a.u = f
a.q = i
a.o = b
b.y = f
b.v = e
b.u = h
f.o = i
f.u = b
f.t = c
f.s = e
f.x = k
f.z = k
f.q = k
f.r = a
k.r = a
k.o = a
k.w = j
c.w = i
h.s = e
h.p = e
h.o = i
h.t = i
h.r = i
h.x = f
h.w = j
h.z = j
h.y = a
assert c.w.y.w.u.o.u.t.w.y.w.txt == "
class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: E = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: D = None
        self.o: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: E = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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

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