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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: H = None
        self.s: A = None
        self.u: G = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: B = None
        self.p: A = None
        self.o: J = None
        self.v: C = None
        self.z: D = None
        self.r: J = None
        self.u: J = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: H = None
        self.s: A = None
        self.u: G = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: B = None
        self.p: A = None
        self.o: J = None
        self.v: C = None
        self.z: D = None
        self.r: J = None
        self.u: J = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

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