class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.p: G = None
        self.o: A = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: B = None
        self.p: A = None
        self.s: A = None
        self.w: C = None
        self.y: B = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: A = None
        self.p: G = None
        self.o: A = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: B = None
        self.p: A = None
        self.s: A = None
        self.w: C = None
        self.y: B = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: D = None
        self.z: C = None
        self.txt = txt

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

h.t = n
h.x = l
e.p = l
l.y = b
l.v = b
l.z = b
l.p = a
l.s = k
b.q = a
b.x = h
b.o = h
b.t = h
b.p = k
a.t = c
a.x = e
a.y = e
a.p = h
a.s = h
a.w = l
a.r = k
n.o = a
n.p = a
n.v = a
n.s = e
n.z = e
n.t = h
n.x = l
k.v = i
k.o = b
k.z = l
i.o = a
i.p = a
i.v = a
i.s = e
i.z = e
i.t = h
i.x = l
c.t = a
c.x = e
c.y = e
c.p = h
c.s = h
c.w = l
c.r = k
assert e.p.p.y.p.y.txt == "b"