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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: A = None
        self.z: F = None
        self.txt = txt

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

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

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

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

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