class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: E = None
        self.x: B = None
        self.p: B = None
        self.q: E = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: B = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: B = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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