#include <cstdio>
#include <iostream>
#include <type_traits>
using namespace std;

using scanfType1 = decltype(scanf);
using scanfType2 = int (const char * format, ...);
typedef int (scanfType3) (const char * format, ...);

int main() {
	cout << std::is_same<scanfType1, scanfType2>::value << endl;
	cout << std::is_same<scanfType2, scanfType3>::value << endl;
	cout << std::is_same<scanfType3, scanfType1>::value << endl;
	return 0;
}