class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: B = None
        self.x: H = None
        self.r: H = None
        self.o: J = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: B = None
        self.z: H = None
        self.r: C = None
        self.s: E = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: B = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: B = None
        self.z: H = None
        self.r: C = None
        self.s: E = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: B = None
        self.txt = txt

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

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

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

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