class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: H = None
        self.v: I = None
        self.y: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: B = None
        self.p: B = None
        self.o: D = None
        self.r: D = None
        self.v: A = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: G = None
        self.p: C = None
        self.s: C = None
        self.y: C = None
        self.r: I = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

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

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

f = A("f")
a = B("a")
e = C("e")
n = D("n")
c = E("c")
k = F("k")
i = G("i")
m = H("m")
h = I("h")
g = J("g")

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: B = None
        self.p: B = None
        self.o: D = None
        self.r: D = None
        self.v: A = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: G = None
        self.p: C = None
        self.s: C = None
        self.y: C = None
        self.r: I = None
        self.u: C = None
        self.q: C = None
        self.txt = txt

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

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

f = A("f")
a = B("a")
e = C("e")
n = D("n")
c = E("c")
k = F("k")
i = G("i")
m = H("m")
h = I("h")
g = J("g")

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