class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: H = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: F = None
        self.v: B = None
        self.o: F = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.u: B = None
        self.r: A = None
        self.w: A = None
        self.y: A = None
        self.p: E = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: H = None
        self.o: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: F = None
        self.v: B = None
        self.o: F = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: B = None
        self.u: B = None
        self.r: A = None
        self.w: A = None
        self.y: A = None
        self.p: E = None
        self.q: A = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

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