class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: J = None
        self.v: G = None
        self.s: J = None
        self.z: I = None
        self.w: C = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: D = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: J = None
        self.t: C = None
        self.w: D = None
        self.z: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: F = None
        self.z: A = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: G = None
        self.o: G = None
        self.v: D = None
        self.x: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: D = None
        self.z: C = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: J = None
        self.t: C = None
        self.w: D = None
        self.z: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: F = None
        self.z: A = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: G = None
        self.o: G = None
        self.v: D = None
        self.x: F = None
        self.txt = txt

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

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