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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: E = None
        self.r: G = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: B = None
        self.s: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: E = None
        self.r: G = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

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

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

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

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