Let's read 3 characters a,b,c then we print a then c.
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); char a,b,c;cin>>a>>b>>c; cout<<a<<c<<"\n"; }