class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: F = None
        self.w: B = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: F = None
        self.w: J = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: H = None
        self.q: G = None
        self.t: J = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: I = None
        self.t: D = None
        self.w: E = None
        self.r: J = None
        self.v: I = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: H = None
        self.y: G = None
        self.v: F = None
        self.r: J = None
        self.t: G = None
        self.p: F = None
        self.w: F = None
        self.x: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: F = None
        self.w: J = None
        self.u: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: H = None
        self.q: G = None
        self.t: J = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: I = None
        self.t: D = None
        self.w: E = None
        self.r: J = None
        self.v: I = None
        self.q: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: J = None
        self.o: H = None
        self.y: G = None
        self.v: F = None
        self.r: J = None
        self.t: G = None
        self.p: F = None
        self.w: F = None
        self.x: F = None
        self.txt = txt

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

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

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