class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: G = None
        self.s: F = None
        self.x: F = None
        self.r: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: C = None
        self.r: D = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: C = None
        self.r: D = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

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

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

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

a.v = k
a.w = b
a.s = j
a.x = j
a.r = l
i.y = c
i.u = j
i.t = j
i.s = b
i.q = n
i.w = l
k.y = l
n.w = h
n.y = k
l.y = n
l.r = n
l.w = m
l.p = j
l.x = j
j.q = k
j.s = n
j.t = l
j.y = i
j.v = i
b.t = i
b.p = i
b.u = h
b.w = c
m.y = l
h.v = m
h.w = b
h.s = j
h.x = j
h.r = l
c.v = m
c.w = b
c.s = j
c.x = j
c.r = l
assert h.r.r.w.s.txt == "j"