CF742A Arpa’s hard exam and Mehrdad’s naive cheat

题目描述

给你一个数N,问你1378的N次幂个位是多少

输入格式

The single line of input contains one integer $ n $ ( $ 0

输出格式

Print single integer — the last digit of $ 1378^{n} $ .

说明/提示

在第一个样例,1378^1是1378,所以个位是8 在第二个样例,1378^2是1898884,所以个位是4