class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: G = None
        self.q: C = None
        self.o: F = None
        self.y: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.v: C = None
        self.t: F = None
        self.r: G = None
        self.p: E = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: G = None
        self.v: C = None
        self.t: F = None
        self.r: G = None
        self.p: E = None
        self.y: G = None
        self.txt = txt

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

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

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

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

j.t = c
j.p = h
j.q = f
j.y = f
j.o = b
c.v = h
c.y = h
c.t = h
c.p = i
c.w = l
f.r = b
l.u = f
l.v = f
l.o = h
l.r = h
l.y = h
l.t = b
l.p = i
i.y = j
i.v = j
i.u = f
i.q = f
i.p = c
i.t = c
i.s = c
b.t = l
b.p = l
b.w = j
h.z = j
h.w = b
h.y = b
h.t = c
h.r = c
h.q = f
assert c.w.r.q.r.w.y.r.txt == "b"