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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: J = None
        self.x: H = None
        self.w: E = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: I = None
        self.o: E = None
        self.p: I = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: B = None
        self.z: B = None
        self.x: C = None
        self.r: I = None
        self.v: B = None
        self.w: J = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: G = None
        self.u: G = None
        self.z: C = None
        self.t: J = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.u: A = None
        self.r: H = None
        self.y: C = None
        self.z: A = None
        self.x: E = None
        self.o: D = None
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: J = None
        self.x: H = None
        self.w: E = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.v: I = None
        self.o: E = None
        self.p: I = None
        self.q: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: B = None
        self.z: B = None
        self.x: C = None
        self.r: I = None
        self.v: B = None
        self.w: J = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.v: G = None
        self.u: G = None
        self.z: C = None
        self.t: J = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: D = None
        self.u: A = None
        self.r: H = None
        self.y: C = None
        self.z: A = None
        self.x: E = None
        self.o: D = None
        self.q: I = None
        self.txt = txt

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

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