class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: H = None
        self.t: E = None
        self.s: G = None
        self.v: E = None
        self.z: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: E = None
        self.x: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.x: A = None
        self.p: B = None
        self.o: G = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.v: C = None
        self.y: E = None
        self.q: E = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.o: E = None
        self.r: B = None
        self.x: E = None
        self.txt = txt

c = A("c")
a = B("a")
h = C("h")
l = D("l")
i = E("i")
n = F("n")
k = G("k")
g = H("g")

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: C = None
        self.w: E = None
        self.x: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.x: A = None
        self.p: B = None
        self.o: G = None
        self.r: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: F = None
        self.v: C = None
        self.y: E = None
        self.q: E = None
        self.x: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: G = None
        self.o: E = None
        self.r: B = None
        self.x: E = None
        self.txt = txt

c = A("c")
a = B("a")
h = C("h")
l = D("l")
i = E("i")
n = F("n")
k = G("k")
g = H("g")

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