class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: G = None
        self.v: H = None
        self.z: B = None
        self.o: E = None
        self.q: J = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.v: E = None
        self.q: J = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: G = None
        self.s: C = None
        self.o: F = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: H = None
        self.r: H = None
        self.q: H = None
        self.v: A = None
        self.s: C = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: F = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.o: A = None
        self.p: D = None
        self.s: D = None
        self.r: A = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.v: E = None
        self.q: J = None
        self.o: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: G = None
        self.s: C = None
        self.o: F = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: H = None
        self.r: H = None
        self.q: H = None
        self.v: A = None
        self.s: C = None
        self.u: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: F = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: C = None
        self.o: A = None
        self.p: D = None
        self.s: D = None
        self.r: A = None
        self.z: H = None
        self.txt = txt

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

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

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