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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.p: G = None
        self.r: I = None
        self.q: H = None
        self.w: J = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: D = None
        self.v: E = None
        self.y: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.p: G = None
        self.r: I = None
        self.q: H = None
        self.w: J = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.x: D = None
        self.v: E = None
        self.y: B = None
        self.txt = txt

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

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

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