class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: G = None
        self.t: B = None
        self.q: E = None
        self.p: D = None
        self.w: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: G = None
        self.s: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: C = None
        self.r: D = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: G = None
        self.s: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: C = None
        self.r: D = None
        self.q: E = None
        self.t: E = None
        self.txt = txt

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

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