class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: I = None
        self.q: D = None
        self.y: I = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: I = None
        self.q: E = None
        self.x: D = None
        self.u: H = None
        self.s: G = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.x: A = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.s: J = None
        self.u: H = None
        self.o: F = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.u: C = None
        self.y: E = None
        self.z: D = None
        self.w: F = None
        self.s: B = None
        self.x: J = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: I = None
        self.q: E = None
        self.x: D = None
        self.u: H = None
        self.s: G = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: E = None
        self.x: A = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.s: J = None
        self.u: H = None
        self.o: F = None
        self.q: J = None
        self.r: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: C = None
        self.u: C = None
        self.y: E = None
        self.z: D = None
        self.w: F = None
        self.s: B = None
        self.x: J = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: F = None
        self.v: D = None
        self.txt = txt

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

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