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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.u: H = None
        self.t: G = None
        self.s: H = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: J = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: B = None
        self.u: H = None
        self.t: G = None
        self.s: H = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: J = None
        self.p: D = None
        self.txt = txt

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

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

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