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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.q: H = None
        self.o: E = None
        self.y: G = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: I = None
        self.t: A = None
        self.o: B = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.v: F = None
        self.z: C = None
        self.o: B = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: E = None
        self.r: F = None
        self.p: G = None
        self.w: J = None
        self.u: C = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: B = None
        self.z: C = None
        self.x: E = None
        self.y: A = None
        self.txt = txt

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

i.q = f
i.v = l
i.p = l
i.s = d
i.o = a
i.r = c
i.u = g
d.p = c
d.w = g
d.y = j
b.v = j
b.z = a
b.o = a
b.q = l
b.y = m
b.w = d
c.u = i
c.z = a
a.w = i
a.t = i
a.q = i
a.s = g
a.o = d
a.r = b
j.y = b
m.y = f
m.v = j
m.z = b
m.o = d
m.p = d
m.x = a
l.x = b
l.r = b
l.v = b
l.o = j
g.o = l
g.z = a
g.r = j
g.p = m
g.w = f
g.u = b
g.y = b
f.v = l
f.q = d
f.z = b
f.x = a
f.y = i
assert g.z.t.v.o.y.z.o.y.txt == "
class A:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: H = None
        self.s: B = None
        self.o: E = None
        self.r: D = None
        self.u: I = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: E = None
        self.q: H = None
        self.o: E = None
        self.y: G = None
        self.w: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: I = None
        self.t: A = None
        self.o: B = None
        self.q: A = None
        self.r: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: J = None
        self.v: F = None
        self.z: C = None
        self.o: B = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.o: F = None
        self.r: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: E = None
        self.r: F = None
        self.p: G = None
        self.w: J = None
        self.u: C = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: B = None
        self.z: C = None
        self.x: E = None
        self.y: A = None
        self.txt = txt

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

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