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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: D = None
        self.r: E = None
        self.v: B = None
        self.z: D = None
        self.txt = txt

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

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

n.w = a
n.p = c
j.r = k
j.o = k
j.z = b
j.s = b
j.y = d
j.t = a
b.w = n
d.x = c
d.y = b
d.t = b
d.w = e
d.s = a
d.z = n
e.y = k
e.r = k
e.x = j
e.u = d
e.q = a
e.v = c
a.p = k
a.y = d
a.r = e
a.v = j
a.z = c
k.v = n
k.x = n
k.r = n
k.u = n
k.y = e
k.z = j
c.x = d
c.y = b
c.t = b
c.w = e
c.s = a
c.z = n
assert j.o.y.v.s.r.q.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: D = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: D = None
        self.r: E = None
        self.v: B = None
        self.z: D = None
        self.txt = txt

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

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

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