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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: H = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: J = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.v: I = None
        self.y: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.t: H = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: J = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.v: I = None
        self.y: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: A = None
        self.txt = txt

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

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

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