class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.p: E = None
        self.x: G = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: I = None
        self.r: H = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: I = None
        self.q: H = None
        self.r: B = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.o: E = None
        self.q: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: D = None
        self.y: F = None
        self.x: D = None
        self.s: A = None
        self.w: G = None
        self.r: E = None
        self.txt = txt

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

d = A("d")
n = B("n")
k = C("k")
m = D("m")
g = E("g")
h = F("h")
l = G("l")
j = H("j")
b = I("b")

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: I = None
        self.r: H = None
        self.u: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.x: I = None
        self.q: H = None
        self.r: B = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.o: E = None
        self.q: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: D = None
        self.y: F = None
        self.x: D = None
        self.s: A = None
        self.w: G = None
        self.r: E = None
        self.txt = txt

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

d = A("d")
n = B("n")
k = C("k")
m = D("m")
g = E("g")
h = F("h")
l = G("l")
j = H("j")
b = I("b")

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